/* Bláha Trade – Reference (výpis a detail), návrh 12. 10. 2026.
   Barvy a písma z bt-modern.css (--bt-green, --bt-forest, --bt-ink, --bt-wood, --bt-mist). Bez zaoblení – jako zbytek webu. */

.bt-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--bt-green);
	font: 700 13px/1 Montserrat, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.bt-kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.bt-ico-camera { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1.8 2.5H21a1 1 0 0 1 1 1V19a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6.5a1 1 0 0 1 1-1h4.2zm3 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6z'/%3E%3C/svg%3E"); }
.bt-ico-calendar { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3zM5 9v10h14V9zm2 2h4v4H7z'/%3E%3C/svg%3E"); }
.bt-ico-tag { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8.6l9.7 9.7a1 1 0 0 1 0 1.4l-7.2 7.2a1 1 0 0 1-1.4 0L3 11.6zm4.5 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E"); }

/* =========================== VÝPIS =========================== */
.bt-refs { padding: 70px 0 90px; }
.bt-refs__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px 60px; align-items: end; margin-bottom: 44px; }
.bt-refs__title { margin: 0 0 16px; color: var(--bt-ink); font: 700 46px/1.1 Montserrat, Arial, sans-serif; }
.bt-refs__lead { max-width: 60ch; margin: 0; color: #666; font-size: 17px; line-height: 1.7; }
.bt-refs__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 2px solid var(--bt-ink); }
.bt-refs__stats > div { padding: 18px 16px 0 0; }
.bt-refs__stats > div + div { padding-left: 18px; border-left: 1px solid #e2e2dc; }
.bt-refs__stats dt { color: var(--bt-ink); font: 700 40px/1 Montserrat, Arial, sans-serif; }
.bt-refs__stats dd { margin: 8px 0 0; color: #777; font-size: 14px; line-height: 1.35; }

.bt-refs__bar { position: sticky; top: 70px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px 30px;
	margin: 0 -15px 30px; padding: 14px 15px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #ecece6; }
.bt-refs__filter { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-refs__filter button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #dcdcd4; background: #fff; color: var(--bt-ink);
	font: 600 14px/1 Arimo, Arial, sans-serif; cursor: pointer; transition: border-color .25s, background-color .25s, color .25s; }
.bt-refs__filter button span { min-width: 22px; padding: 3px 6px; background: var(--bt-mist); color: #777; font-size: 12px; text-align: center; transition: inherit; }
.bt-refs__filter button:hover { border-color: var(--bt-green); color: var(--bt-forest); }
.bt-refs__filter button.is-active { border-color: var(--bt-forest); background: var(--bt-forest); color: #fff; }
.bt-refs__filter button.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.bt-refs__status { flex: none; margin: 0; color: #888; font-size: 14px; }
.bt-refs__status b { color: var(--bt-ink); }

.bt-refs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.bt-ref { position: relative; display: flex; flex-direction: column; background: #fff; color: inherit; text-decoration: none;
	box-shadow: 0 1px 0 #e6e6e0, 0 0 0 1px #efefea; transition: box-shadow .4s var(--bt-ease), transform .4s var(--bt-ease); }
.bt-ref[hidden] { display: none; }
.bt-ref:hover, .bt-ref:focus-visible { color: inherit; transform: translateY(-4px); box-shadow: 0 22px 44px rgba(26, 32, 20, .13); }
.bt-ref__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bt-mist); }
.bt-ref__media picture, .bt-ref__media img { display: block; width: 100%; height: 100%; }
.bt-ref__media img { object-fit: cover; transition: transform .9s var(--bt-ease); }
.bt-ref:hover .bt-ref__media img { transform: scale(1.06); }
.bt-ref__media::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: var(--bt-green); transform: scaleX(0); transform-origin: left;
	transition: transform .55s var(--bt-ease-cut); }
.bt-ref:hover .bt-ref__media::after { transform: scaleX(1); }
.bt-ref__year { position: absolute; top: 0; left: 0; padding: 8px 12px; background: var(--bt-ink); color: #fff; font: 700 13px/1 Montserrat, Arial, sans-serif; letter-spacing: .06em; }
.bt-ref__photos { position: absolute; right: 12px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
	background: rgba(20, 24, 17, .72); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.bt-ref__photos i { width: 14px; height: 14px; }
.bt-ref__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.bt-ref__cats { margin-bottom: 8px; color: var(--bt-green); font: 700 12px/1.4 Montserrat, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bt-ref__cats em { color: #aaa; font-style: normal; }
.bt-ref__name { margin: 0 0 10px; color: var(--bt-ink); font: 700 20px/1.3 Montserrat, Arial, sans-serif; text-transform: none; transition: color .25s; }
.bt-ref:hover .bt-ref__name { color: var(--bt-forest); }
.bt-ref__place { display: inline-flex; align-items: center; gap: 6px; color: #777; font-size: 14px; }
.bt-ref__place i { width: 15px; height: 15px; color: var(--bt-green); }
.bt-ref__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--bt-forest);
	font: 700 12px/1 Montserrat, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bt-ref__more::after { content: '→'; font-size: 15px; transition: transform .3s var(--bt-ease); }
.bt-ref:hover .bt-ref__more::after { transform: translateX(5px); }

/* první (nejnovější) reference velká – jen když je zobrazeno vše */
.bt-refs__grid:not(.is-filtered):not(.is-three) .bt-ref.is-featured { grid-column: span 2; grid-row: span 2; }
.bt-refs__grid:not(.is-filtered):not(.is-three) .bt-ref.is-featured .bt-ref__media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.bt-refs__grid:not(.is-filtered):not(.is-three) .bt-ref.is-featured .bt-ref__name { font-size: 28px; }
.bt-refs__grid:not(.is-filtered):not(.is-three) .bt-ref.is-featured .bt-ref__body { flex: none; }
.bt-refs__empty { padding: 40px; background: var(--bt-mist); color: #666; text-align: center; }

::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* výzva pod výpisem */
.bt-refs-cta { padding: 0 0 90px; }
.bt-refs-cta__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px 60px; align-items: center; padding: 50px 56px;
	background: var(--bt-forest) repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); color: rgba(255, 255, 255, .85); }
.bt-refs-cta__in .bt-kicker { color: #c9d6b8; }
.bt-refs-cta__in h2 { margin: 0 0 10px; color: #fff; font: 700 30px/1.25 Montserrat, Arial, sans-serif; }
.bt-refs-cta__in p { margin: 0; font-size: 16px; line-height: 1.6; }
.bt-refs-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.bt-refs-cta__tel { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 18px/1 Montserrat, Arial, sans-serif; }
.bt-refs-cta__tel:hover { color: #c9d6b8; }
.bt-refs-cta__tel i { width: 18px; height: 18px; }

@media (max-width: 1199px) {
	.bt-refs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bt-refs__grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.bt-refs__head { grid-template-columns: 1fr; }
	.bt-refs__bar { position: static; flex-direction: column; align-items: flex-start; }
	.bt-refs__grid.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bt-refs-cta__in { grid-template-columns: 1fr; padding: 40px 30px; }
}
@media (max-width: 767px) {
	.bt-refs { padding: 40px 0 60px; }
	.bt-refs__title { font-size: 34px; }
	.bt-refs__stats dt { font-size: 30px; }
	.bt-refs__filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -15px; padding: 0 15px 4px; scrollbar-width: none; }
	.bt-refs__filter button { flex: none; }
	.bt-refs__grid, .bt-refs__grid.is-three { grid-template-columns: 1fr; gap: 20px; }
	.bt-refs__grid:not(.is-filtered):not(.is-three) .bt-ref.is-featured { grid-column: auto; grid-row: auto; }
	.bt-refs__grid:not(.is-filtered):not(.is-three) .bt-ref.is-featured .bt-ref__media { aspect-ratio: 4 / 3; min-height: 0; }
	.bt-refs__grid:not(.is-filtered):not(.is-three) .bt-ref.is-featured .bt-ref__name { font-size: 22px; }
}

/* =========================== DETAIL =========================== */
.bt-refd { padding-bottom: 80px; }
.bt-refd__hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(360px, 62vh, 620px); overflow: hidden; background: var(--bt-ink); }
.bt-refd__hero picture, .bt-refd__hero .bt-refd__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.bt-refd__hero .bt-refd__bg { object-fit: cover; }
.bt-refd__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 17, .25) 0%, rgba(20, 24, 17, 0) 30%, rgba(20, 24, 17, .78) 100%); }
.bt-refd__hero-in { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: 96px; color: #fff; }
.bt-refd__crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .75); }
.bt-refd__crumbs li + li::before { content: '›'; margin-right: 6px; color: rgba(255, 255, 255, .5); }
.bt-refd__crumbs a { color: #fff; }
.bt-refd__crumbs a:hover { color: #c9d6b8; }
.bt-refd__kicker { margin: 0 0 12px; color: #c9d6b8; font: 700 13px/1.4 Montserrat, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bt-refd__title { max-width: 22ch; margin: 0; color: #fff; font: 700 clamp(30px, 4.6vw, 54px)/1.08 Montserrat, Arial, sans-serif; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.bt-refd__jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .6); color: #fff;
	font: 700 12px/1 Montserrat, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.bt-refd__jump:hover { background: #fff; color: var(--bt-forest); }
.bt-refd__jump i { width: 16px; height: 16px; }

.bt-refd__facts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; margin: -56px 0 60px; background: #fff; box-shadow: 0 20px 50px rgba(26, 32, 20, .12);
	border-top: 4px solid var(--bt-green); }
.bt-refd__facts > div { flex: 1 1 160px; padding: 22px 26px; }
.bt-refd__facts > div.is-wide { flex: 2.4 1 320px; }
.bt-refd__facts > div + div { border-left: 1px solid #ecece6; }
.bt-refd__facts dt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #888; font: 700 12px/1 Montserrat, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.bt-refd__facts dt i { width: 16px; height: 16px; color: var(--bt-green); }
.bt-refd__facts dd { margin: 0; color: var(--bt-ink); font: 700 19px/1.35 Montserrat, Arial, sans-serif; }
.bt-refd__facts dd a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; background: var(--bt-mist); color: var(--bt-forest);
	font: 700 13px/1.2 Arimo, Arial, sans-serif; transition: background-color .25s, color .25s; }
.bt-refd__facts dd a:hover { background: var(--bt-forest); color: #fff; }

.bt-refd__main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 70px; align-items: start; margin-bottom: 70px; }
.bt-refd__text h2, .bt-refd__gallery h2, .bt-refd__related h2 { margin: 0 0 18px; color: var(--bt-ink); font: 700 28px/1.25 Montserrat, Arial, sans-serif; }
.bt-refd__desc, .bt-refd__desc p { color: #555; font-size: 17px; line-height: 1.8; }
.bt-refd__desc p { margin: 0 0 14px; }
.bt-refd__cta { position: sticky; top: 100px; padding: 30px; background: var(--bt-mist); border-left: 4px solid var(--bt-green); }
.bt-refd__cta p { margin: 0 0 16px; color: #555; line-height: 1.6; }
.bt-refd__tel { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--bt-ink); font: 700 20px/1 Montserrat, Arial, sans-serif; }
.bt-refd__tel i { width: 18px; height: 18px; color: var(--bt-green); }
.bt-refd__tel:hover { color: var(--bt-forest); }

.bt-refd__gallery { margin-bottom: 70px; scroll-margin-top: 100px; }
.bt-refd__gallery h2 span { margin-left: 10px; color: #999; font: 400 16px Arimo, Arial, sans-serif; }
.bt-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; }
.bt-gal__item { position: relative; overflow: hidden; background: var(--bt-mist); }
.bt-gal__item:first-child { grid-column: span 2; grid-row: span 2; }
.bt-gal__item picture, .bt-gal__item img { display: block; width: 100%; height: 100%; }
.bt-gal__item img { object-fit: cover; transition: transform .9s var(--bt-ease), filter .5s; }
.bt-gal__item:hover img { transform: scale(1.06); }
.bt-gal__zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 24, 17, 0); transition: background-color .35s; }
.bt-gal__zoom::after { content: ''; width: 48px; height: 48px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a563d' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.3-4.3M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 22px no-repeat;
	opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--bt-ease); }
.bt-gal__item:hover .bt-gal__zoom { background: rgba(20, 24, 17, .28); }
.bt-gal__item:hover .bt-gal__zoom::after { opacity: 1; transform: none; }

.bt-refd__related { margin-top: 70px; }
.bt-refd__related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.bt-refd__related-head a { color: var(--bt-forest); font: 700 13px/1 Montserrat, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.bt-refd__related-head a::after { content: ' →'; }

@media (prefers-reduced-motion: no-preference) {
	.bt-refd__hero .bt-refd__bg { animation: bt-refd-zoom 1.6s var(--bt-ease) both; }
	.bt-refd__hero-in > * { animation: bt-refd-rise .8s var(--bt-ease) both; }
	.bt-refd__hero-in > :nth-child(2) { animation-delay: .1s; } .bt-refd__hero-in > :nth-child(3) { animation-delay: .18s; } .bt-refd__hero-in > :nth-child(4) { animation-delay: .26s; }
	.bt-refd__facts { animation: bt-refd-rise .8s .3s var(--bt-ease) both; }
}
@keyframes bt-refd-zoom { from { transform: scale(1.08); } }
@keyframes bt-refd-rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 991px) {
	.bt-refd__main { grid-template-columns: 1fr; }
	.bt-refd__cta { position: static; }
	.bt-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 170px; }
}
@media (max-width: 767px) {
	.bt-refd__hero { min-height: 380px; }
	.bt-refd__hero-in { padding-bottom: 76px; }
	.bt-refd__facts { margin: -40px 0 40px; }
	.bt-refd__facts > div { flex-basis: 50%; padding: 16px 18px; }
	.bt-refd__facts > div + div { border-left: 0; }
	.bt-refd__facts > div:nth-child(n+2) { border-top: 1px solid #ecece6; }
	.bt-refd__facts > div.is-wide { flex-basis: 100%; }
	.bt-refd__facts dd { font-size: 17px; }
	.bt-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
	.bt-refd__text h2, .bt-refd__gallery h2, .bt-refd__related h2 { font-size: 23px; }
	.bt-refd__related-head { flex-direction: column; gap: 0; margin-bottom: 18px; }
}
