/* === HOME-SPECIFIC SECTIONS === */

/* === PROOF BAR === */
.proof-bar {
  background: var(--navy);
  color: var(--white);
  padding: 20px var(--pad-x);
  border-top: 1px solid rgba(194,163,107,.30);
}
.proof-bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.82);
}
.proof-sep { color: var(--gold); opacity: .6; }
.proof-link {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.proof-link:hover { color: var(--gold); }

/* === CHOOSE AGENT === */
.choose-agent {
  padding: var(--section) 0;
  background: var(--bg);
  overflow: hidden;
}
.choose-agent-head {
  max-width: var(--wrap);
  margin: 0 auto var(--section);
  padding: 0 var(--pad-x);
}
.choose-agent-head p { color: var(--ink-mid); margin-top: 16px; }

.agent-split {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
@media (max-width: 767px) {
  .agent-split { grid-template-columns: 1fr; gap: 2px; }
}

.agent-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: clamp(32px, 4vw, 52px) clamp(28px, 3.5vw, 48px);
  cursor: default;
  transition: flex var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 460px;
}
.agent-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.agent-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: bottom center;
  opacity: .22;
  transition: opacity var(--t-base);
}
.agent-card:hover .agent-card-bg img { opacity: .32; }

.agent-card-content { position: relative; z-index: 1; }
.agent-style-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(194,163,107,.35);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.agent-name {
  font-family: var(--ff-heading);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  font-variation-settings: "opsz" 72, "SOFT" 0;
  margin-bottom: 8px;
}
.agent-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.agent-desc {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  max-width: 40ch;
}
.agent-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-tel {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .01em;
}
.agent-tel:hover { color: var(--gold-light); }

/* Dim inactive card on hover */
@media (min-width: 768px) and (hover: hover) {
  .agent-card { transition: filter var(--t-base); }
  .agent-split:has(.agent-card:hover) .agent-card:not(:hover) { filter: brightness(.55); }
}

/* Focus keyboard */
.agent-card:focus-within { outline: 2px solid var(--gold); outline-offset: -2px; }

/* === LISTINGS SECTION === */
.listings-section {
  padding: var(--section) 0;
  background: var(--white);
}
.listings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.listings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: clamp(24px, 4vw, 36px);
  border-bottom: 1.5px solid var(--bg-alt);
}
.listings-tab {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 10px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color var(--t-fast), border-color var(--t-fast);
  letter-spacing: .02em;
}
.listings-tab:hover { color: var(--ink); }
.listings-tab.active { color: var(--navy); border-bottom-color: var(--gold-line); }
.tab-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--ink-muted);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 5px;
}
.listings-tab.active .tab-count { background: var(--gold-line); color: #fff; }

.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
}

.prop-card {
  background: var(--bg);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.prop-card:hover { transform: scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.prop-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.prop-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.prop-card:hover .prop-card-img img { transform: scale(1.05); }
.prop-card-status {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
}
.prop-card-status.sold { background: var(--ink-muted); }
.prop-card-status.reserved { background: var(--gold-line); color: var(--white); }
.prop-card-status--sold { background: var(--ink-mid) !important; }
.prop-card-status--rent { background: var(--navy-mid) !important; }
.prop-card-status--reserved { background: var(--gold-line) !important; }

.prop-card-body { padding: 16px 18px 20px; }
.prop-card-price {
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  font-variation-settings: "opsz" 36, "SOFT" 0;
  margin-bottom: 6px;
}
.prop-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.prop-card-loc {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.prop-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prop-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-mid);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 2px;
}

/* === VIDEO SECTION === */
.video-section {
  padding: var(--section) 0;
  background: var(--navy-deep);
}
.video-section .section-label { color: var(--gold); margin-bottom: 12px; }
.video-section h2 { color: var(--white); margin-bottom: clamp(32px, 5vw, 48px); }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .video-main { grid-row: 1 / 3; }
}

.video-thumb {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
}
.video-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.video-thumb:hover .video-thumb-img { transform: scale(1.03); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,27,56,.35);
  transition: background var(--t-base);
}
.video-thumb:hover .video-play { background: rgba(16,27,56,.5); }
.video-play-btn {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), background var(--t-fast);
}
.video-thumb:hover .video-play-btn { transform: scale(1.1); }
.video-play-btn svg { color: var(--navy); margin-left: 4px; }

.video-title {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
}
.video-main .video-title { font-size: 16px; padding: 16px 20px; }

/* === PROCESS SECTION === */
.process-section {
  padding: var(--section) 0;
  background: var(--bg);
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(36px, 5vw, 52px);
  counter-reset: step;
}
@media (min-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Process step entrance animation */
@keyframes stepIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes numIn {
  from { opacity: 0; transform: scale(1.4) translateX(8px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.process-step {
  padding: clamp(24px, 3vw, 36px);
  border-top: 1px solid transparent;
  counter-increment: step;
  position: relative;
  opacity: 0;
  transition: transform .28s cubic-bezier(.22,.68,0,1.2), background .22s ease, box-shadow .28s ease;
  cursor: default;
  border-radius: 4px;
}
@media (min-width: 768px) and (hover: hover) {
  .process-step:hover {
    transform: translateY(-4px) scale(1.025);
    background: rgba(194,163,107,.06);
    box-shadow: 0 12px 36px rgba(24,39,77,.09), 0 1px 0 rgba(194,163,107,.20);
    z-index: 2;
  }
  .process-step:hover::before {
    color: rgba(194,163,107,.55);
    transition: color .22s ease;
  }
  .process-step:hover .process-step-title {
    color: var(--navy);
  }
}
.process-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--bg-alt);
  transform: scaleX(0);
  transform-origin: left;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: clamp(24px, 3vw, 36px);
  right: clamp(24px, 3vw, 36px);
  font-family: var(--ff-heading);
  font-size: 48px;
  font-weight: 300;
  color: rgba(184,151,90,.22);
  line-height: 1;
  font-variation-settings: "opsz" 72, "SOFT" 0;
  pointer-events: none;
  opacity: 0;
}

/* Triggered when grid is in view */
.process-grid.animated .process-step {
  animation: stepIn .55s var(--ease) forwards;
}
.process-grid.animated .process-step::before {
  animation: numIn .6s var(--ease) forwards;
}
.process-grid.animated .process-step::after {
  animation: lineGrow .5s ease forwards;
}
/* Stagger each step */
.process-grid.animated .process-step:nth-child(1) { animation-delay: 0ms; }
.process-grid.animated .process-step:nth-child(1)::before { animation-delay: 120ms; }
.process-grid.animated .process-step:nth-child(1)::after  { animation-delay: 0ms; }
.process-grid.animated .process-step:nth-child(2) { animation-delay: 90ms; }
.process-grid.animated .process-step:nth-child(2)::before { animation-delay: 200ms; }
.process-grid.animated .process-step:nth-child(2)::after  { animation-delay: 90ms; }
.process-grid.animated .process-step:nth-child(3) { animation-delay: 180ms; }
.process-grid.animated .process-step:nth-child(3)::before { animation-delay: 290ms; }
.process-grid.animated .process-step:nth-child(3)::after  { animation-delay: 180ms; }
.process-grid.animated .process-step:nth-child(4) { animation-delay: 270ms; }
.process-grid.animated .process-step:nth-child(4)::before { animation-delay: 380ms; }
.process-grid.animated .process-step:nth-child(4)::after  { animation-delay: 270ms; }
.process-grid.animated .process-step:nth-child(5) { animation-delay: 360ms; }
.process-grid.animated .process-step:nth-child(5)::before { animation-delay: 460ms; }
.process-grid.animated .process-step:nth-child(5)::after  { animation-delay: 360ms; }
.process-grid.animated .process-step:nth-child(6) { animation-delay: 450ms; }
.process-grid.animated .process-step:nth-child(6)::before { animation-delay: 550ms; }
.process-grid.animated .process-step:nth-child(6)::after  { animation-delay: 450ms; }

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .process-step { opacity: 1; }
  .process-step::before { opacity: 1; }
  .process-step::after { transform: scaleX(1); }
  .process-grid.animated .process-step,
  .process-grid.animated .process-step::before,
  .process-grid.animated .process-step::after { animation: none; }
}

.process-step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  margin-top: 4px;
  max-width: 28ch;
}
.process-step-desc {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.6;
  max-width: 38ch;
}

/* === REFERENCE SECTION === */
.reference-section {
  padding: var(--section) 0;
  background: var(--white);
}
.reference-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 52px);
}
@media (min-width: 900px) {
  .reference-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.ref-main {
  background: var(--navy);
  color: var(--white);
  padding: clamp(32px, 4vw, 52px);
  border-radius: var(--r-card);
}
.ref-quote-mark {
  font-family: var(--ff-heading);
  font-size: 80px;
  line-height: .7;
  color: var(--gold-line);
  opacity: .6;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.ref-quote-text {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
  max-width: 52ch;
}
.ref-author { font-size: 14px; font-weight: 600; color: var(--gold-light); }
.ref-source { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }

.ref-small-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ref-small {
  background: var(--bg);
  padding: 20px 22px;
  border-radius: var(--r-card);
  border-left: 3px solid var(--gold-line);
}
.ref-small-text {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 44ch;
}
.ref-small-author { font-size: 13px; font-weight: 600; color: var(--ink); }

/* === MARKET SECTION === */
.market-section {
  padding: var(--section) 0;
  background: var(--navy);
  overflow: hidden;
}
.market-section .section-label { color: var(--gold); }

.market-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .market-inner { grid-template-columns: 1fr 1fr; }
}

.market-text { }
.market-desc {
  color: rgba(255,255,255,.72);
  margin-top: 16px;
  max-width: 46ch;
  line-height: 1.7;
}

.market-districts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(28px, 4vw, 40px);
}
.market-districts li {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 10px 0;
}
.market-districts li:last-child { border-bottom: 1px solid rgba(255,255,255,.10); }

.market-link {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.70);
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.market-link:hover { color: var(--gold); }
.market-link::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(194,163,107,0.40);
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.market-link:hover::before { background: var(--gold); }

/* === PRAGUE MAP SVG === */
.market-map {
  position: relative;
}
.prague-map-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.prague-boundary {
  transition: stroke-opacity .4s;
}
.district-p10, .district-p4 {
  transition: filter .3s;
}
.map-district-label {
  font-size: 11px;
  fill: rgba(194,163,107,0.60);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  pointer-events: none;
}
.map-loc-label {
  font-size: 10px;
  fill: rgba(255,255,255,0.65);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  pointer-events: none;
  dominant-baseline: middle;
}
.map-dot {
  filter: drop-shadow(0 0 4px rgba(194,163,107,.7));
}
.dot-pulse-ring {
  animation: dotPulse 2.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.15; transform-origin: center; transform: scale(1); }
  50% { opacity: 0.40; transform: scale(1.4); }
}
.vltava {
  animation: riverShimmer 4s ease-in-out infinite;
}
@keyframes riverShimmer {
  0%, 100% { opacity: .45; }
  50% { opacity: .65; }
}

/* === CONTACT SECTION === */
.contact-section {
  padding: var(--section) 0;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
  margin-top: clamp(36px, 5vw, 52px);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-person-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.contact-person-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.contact-person-tel { font-size: 20px; font-weight: 600; color: var(--navy); display: block; margin-top: 2px; }
.contact-person-tel:hover { color: var(--gold-line); }
.contact-office { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--bg-alt); }
.contact-office p { font-size: 15px; color: var(--ink-mid); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1.5px solid var(--bg-alt);
  border-radius: var(--r-btn);
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { height: 100px; padding: 12px 14px; resize: vertical; }
.form-privacy {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-privacy input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.form-submit { width: 100%; }
.form-hp { display: none; }
