/* Additional components used across inner pages */

/* ------- Search bar (Home/Kaufen hero) ------- */
.search-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0;
  background: var(--ivory-100);
  border: 1px solid var(--line-on-light);
  box-shadow: 0 20px 40px rgba(8, 26, 23, 0.12);
  margin: 32px auto 0;
  max-width: 780px;
}
.search-bar__field {
  padding: 18px 22px;
  border-right: 1px solid var(--line-on-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-bar__field:last-of-type { border-right: 0; }
.search-bar__label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mink-taupe);
}
.search-bar__select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: 0.95rem/1.4 var(--font-sans);
  color: var(--graphite-ink);
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%230B2520' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 18px;
  /* Prevent overflow when option text is longer than the column */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.search-bar__field { min-width: 0; }
.search-bar { min-width: 0; }
.search-bar__button {
  background: var(--access-green);
  color: var(--ivory-stone);
  padding: 0 36px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s var(--ease);
}
.search-bar__button:hover { background: var(--deep-forest); }
@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar__field { border-right: 0; border-bottom: 1px solid var(--line-on-light); }
  .search-bar__field:nth-child(odd) { border-right: 1px solid var(--line-on-light); }
  .search-bar__button { grid-column: span 2; padding: 18px; justify-content: center; }
}

/* ------- Quote / Claim box ------- */
.quote-box {
  background: var(--ivory-200);
  padding: 48px 40px;
  position: relative;
  border: 1px solid var(--line-on-light);
}
.quote-box__mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--access-green);
  margin-bottom: 20px;
}
.quote-box__mono img { width: 28px; height: auto; }
.quote-box__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--access-green);
  line-height: 1.4;
  margin-bottom: 16px;
}
.quote-box__author {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mink-taupe);
}

/* ------- Icon service tile (home & services) ------- */
.icon-tile {
  text-align: center;
  padding: 32px 20px;
}
.icon-tile__icon {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border: 1px solid var(--line-on-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--access-green);
}
.section--dark .icon-tile__icon { border-color: var(--line-on-dark); color: var(--champagne-sand); }
.section--deep .icon-tile__icon { border-color: var(--line-on-dark); color: var(--champagne-sand); }

.icon-tile__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--access-green);
}
.section--dark .icon-tile__title,
.section--deep .icon-tile__title { color: var(--ivory-stone); }
.icon-tile__text {
  font-size: 0.88rem;
  color: var(--graphite-ink);
  opacity: 0.75;
  margin: 0;
  max-width: 28ch;
  margin-left: auto; margin-right: auto;
}
.section--dark .icon-tile__text,
.section--deep .icon-tile__text { color: rgba(243, 238, 230, 0.78); opacity: 1; }

/* ------- Timeline (process steps) ------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute; top: 28px; left: 6%; right: 6%; height: 1px;
  background: var(--line-on-light);
  z-index: 0;
}
.section--dark .timeline::before,
.section--deep .timeline::before { background: var(--line-on-dark); }

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}
.step__dot {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: var(--ivory-100);
  border: 1px solid var(--line-on-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--access-green);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.section--dark .step__dot {
  background: var(--access-green);
  border-color: var(--champagne-sand);
  color: var(--champagne-sand);
}
.section--deep .step__dot {
  background: var(--deep-forest);
  border-color: var(--champagne-sand);
  color: var(--champagne-sand);
}
.step__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mink-taupe);
  margin-bottom: 8px;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--access-green);
  margin: 0 0 6px;
}
.section--dark .step__title,
.section--deep .step__title { color: var(--ivory-stone); }
.step__text {
  font-size: 0.82rem;
  color: var(--graphite-ink);
  opacity: 0.7;
  margin: 0;
}
.section--dark .step__text,
.section--deep .step__text { color: rgba(243, 238, 230, 0.75); opacity: 1; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ------- Step tooltip on hover ------- */
.step[data-tip] {
  position: relative;
  cursor: help;
}
.step[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 240px;
  padding: 14px 18px;
  background: var(--access-green);
  color: var(--ivory-stone);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0.01em;
  border: 1px solid var(--champagne-sand);
  box-shadow: 0 12px 28px rgba(8, 26, 23, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 10;
  white-space: normal;
}
.step[data-tip]::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--access-green);
  margin-bottom: 7px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  z-index: 10;
}
.step[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.step[data-tip]:hover::before { opacity: 1; }

/* On dark sections: invert tooltip */
.section--dark .step[data-tip]::after,
.section--deep .step[data-tip]::after {
  background: var(--ivory-stone);
  color: var(--graphite-ink);
  border-color: var(--champagne-sand);
}
.section--dark .step[data-tip]::before,
.section--deep .step[data-tip]::before { border-top-color: var(--ivory-stone); }

/* ------- FAQ ------- */
.faq {
  border-top: 1px solid var(--line-on-light);
}
.faq__item {
  border-bottom: 1px solid var(--line-on-light);
}
.faq__q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--access-green);
  gap: 20px;
}
.faq__q::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--champagne-sand);
  transition: transform 0.3s var(--ease);
}
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq__item.is-open .faq__a { max-height: 600px; }
.faq__a-inner {
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--graphite-ink);
  opacity: 0.8;
  max-width: 75ch;
}

/* ------- Detail page (property detail) ------- */
.detail-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a4a42 0%, #0B2520 100%);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.detail-media__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.detail-media__thumbs > div {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #355652 0%, #0B2520 100%);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-on-light);
  margin: 32px 0;
}
.spec-grid > div {
  padding: 24px 20px;
  border-right: 1px solid var(--line-on-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-grid > div:last-child { border-right: 0; }
.spec-grid__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mink-taupe);
}
.spec-grid__value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--access-green);
}
@media (max-width: 700px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-on-light); }
  .spec-grid > div:nth-child(2) { border-right: 0; }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 0.78rem;
  padding: 8px 14px;
  border: 1px solid var(--line-on-light);
  color: var(--access-green);
  background: var(--ivory-100);
  letter-spacing: 0.02em;
}

/* ------- Team cards ------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team {
  text-align: left;
}
.team__photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #c9b99a 0%, #9b8a70 100%);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.team__photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.14  0 0 0 0 0.1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
.team__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--access-green);
  margin: 0 0 4px;
}
.team__role {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mink-taupe);
  margin-bottom: 10px;
}
.team__bio { font-size: 0.88rem; color: var(--graphite-ink); opacity: 0.78; margin: 0; }

/* ------- Map placeholder ------- */
.map {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(11, 37, 32, 0.04), rgba(216, 199, 163, 0.08)),
    repeating-linear-gradient(0deg, rgba(11, 37, 32, 0.06) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(11, 37, 32, 0.06) 0 1px, transparent 1px 60px),
    var(--ivory-200);
  border: 1px solid var(--line-on-light);
  position: relative;
  overflow: hidden;
}
.map__pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  width: 36px; height: 36px;
  background: var(--access-green);
  border-radius: 50% 50% 50% 0;
  transform-origin: center;
  transform: translate(-50%, -100%) rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map__pin::after {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--champagne-sand);
}
.map__btn {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  background: var(--ivory-100);
  border: 1px solid var(--line-on-light);
  padding: 10px 18px;
  font-size: 0.82rem;
  color: var(--access-green);
  font-weight: 500;
  white-space: nowrap;
}

/* ------- Form message ------- */
.form__msg {
  font-size: 0.88rem;
  color: var(--access-green);
  padding: 14px 18px;
  background: var(--ivory-200);
  border: 1px solid var(--champagne-sand);
  display: none;
}
.form__msg.is-visible { display: block; }

/* ------- Chart (market page) ------- */
.chart { display: grid; gap: 12px; }
.chart__row { display: grid; grid-template-columns: 140px 1fr 80px; gap: 16px; align-items: center; }
.chart__label { font-size: 0.88rem; color: var(--graphite-ink); }
.chart__bar { height: 10px; background: var(--ivory-200); border-radius: 2px; overflow: hidden; }
.chart__fill { height: 100%; background: linear-gradient(90deg, var(--access-green), #1e4a42); border-radius: 2px; }
.chart__value { font-family: var(--font-serif); color: var(--access-green); font-size: 0.95rem; }

/* ------- Reveal animation ------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------- Reelly skeletons (loading state) ------- */
.prop--skeleton {
  pointer-events: none;
  position: relative;
  overflow: hidden;
}
.prop--skeleton::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: skel 1.6s ease-in-out infinite;
}
@keyframes skel {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* When [data-reelly] is also a .prop-grid, keep grid spacing intact */
[data-reelly].prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 900px) { [data-reelly].prop-grid { grid-template-columns: 1fr; } }

/* ===================================================
   REELLY-INTEGRATION (Cards, Pagination, Detail, Tabs)
   =================================================== */

/* Card with WhatsApp action */
.prop {
  position: relative;
  background: var(--ivory-100);
  overflow: hidden;
  border: 1px solid var(--line-on-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.prop:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(8, 26, 23, 0.18); }

.prop__main { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.prop__main:hover { color: inherit; }
.prop:hover .prop__media img { transform: scale(1.06); }
.prop__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e4a42 0%, #0B2520 100%);
}

.prop__eur {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--mink-taupe);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.prop__wa {
  position: absolute;
  bottom: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 3;
}
.prop__wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.5);
  color: white;
}

/* Reelly grid wrapper */
.reelly-shell { display: flex; flex-direction: column; gap: 32px; }
.reelly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 900px) { .reelly-grid { grid-template-columns: 1fr; } }

.reelly-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--mink-taupe);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
}

/* Pagination */
.reelly-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.reelly-page {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-on-light);
  background: var(--ivory-100);
  color: var(--access-green);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.reelly-page:hover:not(:disabled) {
  background: var(--access-green);
  color: var(--ivory-stone);
  border-color: var(--access-green);
}
.reelly-page.is-current {
  background: var(--access-green);
  color: var(--ivory-stone);
  border-color: var(--access-green);
}
.reelly-page:disabled { opacity: 0.4; cursor: default; }
.reelly-page-ellipsis { color: var(--mink-taupe); padding: 0 6px; }

/* Page-size switcher */
.reelly-page-size {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reelly-page-size__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mink-taupe);
  margin-right: 8px;
}
.reelly-page-size button {
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--graphite-ink);
  background: transparent;
  border: 1px solid var(--line-on-light);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.reelly-page-size button:hover { border-color: var(--access-green); color: var(--access-green); }
.reelly-page-size button.is-active {
  background: var(--access-green);
  color: var(--ivory-stone);
  border-color: var(--access-green);
}

/* WhatsApp full-width button */
.btn--whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.btn--whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; color: white; }

/* Detail page layout */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-main { min-width: 0; }
.detail-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 12px; }
.detail-aside .detail-cta {
  position: sticky; top: 100px;
  background: var(--ivory-200);
  padding: 32px;
  border: 1px solid var(--line-on-light);
}

.detail-thumbs__more {
  display: flex; align-items: center; justify-content: center;
  background: var(--access-green);
  color: var(--ivory-stone);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* Unit-Tabs */
.unit-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-on-light);
  margin: 8px 0 24px;
  flex-wrap: wrap;
}
.unit-tab {
  padding: 12px 20px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--graphite-ink);
  opacity: 0.6;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.unit-tab:hover { opacity: 1; }
.unit-tab.is-active {
  opacity: 1;
  color: var(--access-green);
  border-bottom-color: var(--access-green);
}
.unit-panel { display: none; }
.unit-panel.is-active { display: block; }
.unit-spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--ivory-200);
  padding: 24px;
  border: 1px solid var(--line-on-light);
}
.unit-spec > div { display: flex; flex-direction: column; gap: 6px; }
.unit-spec .muted { color: var(--mink-taupe); font-weight: 400; font-size: 0.9rem; }
@media (max-width: 700px) { .unit-spec { grid-template-columns: 1fr; } }

/* Payment plan table */
.payment-plan {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
}
.payment-plan td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-on-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--graphite-ink);
}
.payment-plan tr:last-child td { border-bottom: 0; }

/* Floor plans lead-capture */
.floorplans__locked {
  background: var(--ivory-200);
  padding: 28px;
  border: 1px solid var(--line-on-light);
  border-radius: 0;
}
.floorplans__form { gap: 14px; }
.floorplans__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.floorplans__list li {
  padding: 12px 16px;
  background: var(--ivory-200);
  border: 1px solid var(--line-on-light);
}

/* OpenStreetMap embed */
.osm-map {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line-on-light);
  margin-top: 8px;
}

/* ===== LOCATION MODAL — searchable list of all Reelly locations ===== */
.loc-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
}
.loc-modal.is-open { display: block; }
.loc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 26, 23, 0.55);
  backdrop-filter: blur(4px);
}
.loc-modal__panel {
  position: relative;
  margin: 6vh auto;
  width: 92%; max-width: 520px;
  max-height: 78vh;
  background: var(--ivory-stone);
  border: 1px solid var(--access-green);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(8, 26, 23, 0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.loc-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-on-light);
}
.loc-modal__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--access-green);
}
.loc-modal__close {
  background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1;
  color: var(--access-green);
  cursor: pointer;
  padding: 4px 10px;
}
.loc-modal__close:hover { color: var(--champagne-sand); }
.loc-modal__search {
  margin: 14px 22px;
  padding: 12px 14px;
  border: 1px solid var(--line-on-light);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #fff;
  color: var(--access-green);
}
.loc-modal__search:focus { outline: none; border-color: var(--access-green); }
.loc-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 14px 18px;
}
.loc-modal__item {
  display: block; width: 100%;
  text-align: left;
  background: transparent; border: 0;
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--access-green);
  border-bottom: 1px solid rgba(8, 26, 23, 0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.loc-modal__item:hover { background: rgba(216, 199, 163, 0.18); }
.loc-modal__item:last-child { border-bottom: none; }
.loc-modal__empty {
  padding: 24px 8px;
  color: var(--mink-taupe);
  font-style: italic;
  text-align: center;
}
@media (max-width: 600px) {
  .loc-modal__panel {
    margin: 0;
    width: 100%; max-width: 100%;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0;
  }
}

/* ===== DETAIL PAGE — UI/UX-optimised ===== */

/* Back-to-overview button — sits above the breadcrumb */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  margin-bottom: 14px;
  background: transparent;
  border: 1px solid var(--line-on-light);
  border-radius: 2px;
  color: var(--access-green);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.detail-back:hover {
  background: var(--access-green);
  border-color: var(--access-green);
  color: var(--ivory-stone);
}
.detail-back svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.detail-back:hover svg {
  transform: translateX(-2px);
}


/* Hero gallery: big cover left, thumb-stack right
   Fixed height (clamped) keeps the box at full container width while ensuring
   both columns share the same height — price block ends flush with cover. */
.detail-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
  margin-bottom: 32px;
  width: 100%;
  height: clamp(440px, 56vw, 680px);
}
.detail-hero__main,
.detail-hero__side {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a4a42 0%, #0B2520 100%);
  height: 100%;
}
.detail-hero__side {
  display: grid;
  /* Right column rows: thumb 40 / mini-spacer 2 / thumb 40 / spacer 3 / price 17 (~102fr total, distributed proportionally) */
  grid-template-rows: 40fr 2fr 40fr 3fr 17fr;
  row-gap: 0;
  background: transparent;
}
.detail-hero__spacer {
  background: var(--ivory-stone);
}
.detail-hero__spacer--mini {
  background: var(--ivory-stone);
}
.detail-hero__thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #355652 0%, #0B2520 100%);
  cursor: pointer;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.detail-hero__thumb:hover img,
.detail-hero__main:hover img { transform: scale(1.04); }

/* Discreet AH watermark on each photo */
.detail-hero__main::after,
.detail-hero__thumb::after {
  content: "";
  position: absolute;
  bottom: 12px; right: 12px;
  width: 36px; height: 36px;
  background-image: url("../img/monogram-light.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.55;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  pointer-events: none;
}
.detail-hero__thumb::after { width: 26px; height: 26px; }

@media (max-width: 700px) {
  .detail-hero { grid-template-columns: 1fr; max-height: none; }
  .detail-hero__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
    column-gap: 8px;
  }
  .detail-hero__thumb { aspect-ratio: 16/10; }
  .detail-hero__spacer,
  .detail-hero__spacer--mini { display: none; }
  .detail-hero__price { grid-column: 1 / -1; }
}

/* Buttons overlay on hero (photos count + map jump) */
.detail-hero__actions {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.detail-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(243, 238, 230, 0.95);
  color: var(--access-green);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.detail-hero__btn:hover { background: var(--ivory-stone); }
.detail-hero__btn svg { width: 14px; height: 14px; }

/* Price block in right column of hero, below the side thumb */
.detail-hero__price {
  background: var(--access-green);
  color: var(--ivory-stone);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.detail-hero__price::after { display: none; }  /* no watermark on price */
.detail-hero__price-main {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.05;
  color: var(--champagne-sand);
}
.detail-hero__price-sub {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(243, 238, 230, 0.78);
}

/* Description lead-paragraph and section spacing */
.detail-desc__lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--access-green);
  margin: 0 0 24px;
  font-weight: 500;
}
.detail-desc h4 + p,
.detail-desc h5 + p { margin-top: 0; }
.detail-desc h4 { margin-top: 32px; }
.detail-desc h5 { margin-top: 24px; }
.detail-desc p { margin-bottom: 14px; }

/* Lightbox thumbnails strip */
.lightbox__thumbs {
  position: absolute;
  bottom: 50px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  max-width: 80vw;
  overflow-x: auto;
  padding: 8px 12px;
  background: rgba(8, 26, 23, 0.6);
  border-radius: 4px;
  scrollbar-width: thin;
}
.lightbox__thumb {
  width: 60px; height: 44px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--champagne-sand); }

/* Quick-specs bar with icons */
.detail-quickspecs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-on-light);
  background: var(--ivory-100);
  margin-bottom: 32px;
}
.detail-qs {
  padding: 20px 24px;
  border-right: 1px solid var(--line-on-light);
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-qs:last-child { border-right: 0; }
.detail-qs__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--access-green);
}
.detail-qs__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mink-taupe);
  margin-bottom: 2px;
}
.detail-qs__value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--access-green);
  line-height: 1;
}
.detail-qs__sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--mink-taupe);
  margin-top: 2px;
}
@media (max-width: 800px) {
  .detail-quickspecs { grid-template-columns: 1fr 1fr; }
  .detail-qs:nth-child(even) { border-right: 0; }
  .detail-qs:nth-child(-n+2) { border-bottom: 1px solid var(--line-on-light); }
}

/* Title row */
.detail-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.detail-headline h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.detail-headline .prop__tag {
  font-size: 0.75rem;
}

/* Tabs nav */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-on-light);
  margin: 32px 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tab {
  flex-shrink: 0;
  padding: 14px 22px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--graphite-ink);
  opacity: 0.55;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.detail-tab:hover { opacity: 1; }
.detail-tab.is-active {
  opacity: 1;
  color: var(--access-green);
  border-bottom-color: var(--access-green);
}
.detail-panel { display: none; }
.detail-panel.is-active { display: block; }

/* Description with "Weiterlesen" toggle */
.detail-desc {
  position: relative;
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--graphite-ink);
}
.detail-desc h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--access-green);
  margin: 24px 0 8px;
}
.detail-desc h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mink-taupe);
  margin: 20px 0 6px;
  font-weight: 500;
}
.detail-desc p { margin: 0 0 14px; }
.detail-desc--collapsed { max-height: 280px; overflow: hidden; }
.detail-desc--collapsed::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, var(--ivory-100) 100%);
  pointer-events: none;
}
.detail-desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--access-green);
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--champagne-sand);
}
.detail-desc-lang-note {
  font-size: 0.78rem;
  color: var(--mink-taupe);
  font-style: italic;
  margin-bottom: 16px;
}

/* Sidebar polish */
.detail-aside .detail-cta {
  position: sticky; top: 100px;
  background: var(--ivory-100);
  padding: 24px;
  border: 1px solid var(--line-on-light);
}
.detail-cta__price {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--access-green);
  line-height: 1.1;
  margin-bottom: 4px;
}
.detail-cta__price-eur {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--mink-taupe);
  margin-bottom: 18px;
}
.detail-cta__meta {
  font-size: 0.78rem;
  color: var(--mink-taupe);
  border-top: 1px solid var(--line-on-light);
  padding-top: 12px;
  margin-top: 18px;
  display: grid;
  gap: 4px;
}
.detail-cta__meta strong { color: var(--graphite-ink); font-weight: 500; }

/* Amenities & buildings list (in Ausstattung tab) */
.amenity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.amenity-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-on-light);
  font-size: 0.95rem;
  color: var(--graphite-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.amenity-list li::before {
  content: "—";
  color: var(--champagne-sand);
}
@media (max-width: 600px) { .amenity-list { grid-template-columns: 1fr; } }

/* Mobile sticky CTA bar */
.detail-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  background: var(--ivory-stone);
  border-top: 1px solid var(--line-on-light);
  padding: 10px 16px;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(8, 26, 23, 0.15);
}
.detail-mobile-cta .btn { flex: 1; padding: 12px; font-size: 0.85rem; }
@media (max-width: 900px) {
  .detail-mobile-cta { display: flex; }
  body[data-page-detail] { padding-bottom: 70px; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(8, 26, 23, 0.96);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: transparent;
  border: 0;
  color: var(--ivory-stone);
  font-size: 28px;
  cursor: pointer;
  font-family: var(--font-serif);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--ivory-stone);
  border: 0;
  font-size: 36px;
  cursor: pointer;
  padding: 16px;
  font-family: var(--font-serif);
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: var(--champagne-sand);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

/* Detail content fallback when most fields are empty */
.detail-empty-note {
  background: var(--ivory-200);
  border: 1px solid var(--line-on-light);
  padding: 24px 28px;
  margin-top: 24px;
  font-style: italic;
  color: var(--graphite-ink);
  opacity: 0.85;
}

/* Old detail-media fallback for compatibility */
.detail-media {
  max-height: 60vh;
  overflow: hidden;
  background: linear-gradient(135deg, #2a4a42 0%, #0B2520 100%);
}
.detail-media img {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}

/* Muted text */
.muted { color: var(--mink-taupe); font-weight: 400; }

/* ------- Radio & checkbox (valuation form) ------- */
.radio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .radio-grid { grid-template-columns: repeat(2, 1fr); } }
.radio-tile {
  border: 1px solid var(--line-on-light);
  padding: 18px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--graphite-ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--ivory-100);
}
.radio-tile:hover, .radio-tile.is-active {
  border-color: var(--access-green);
  color: var(--access-green);
  background: var(--ivory-200);
}
.radio-tile__icon { display: block; margin: 0 auto 8px; color: var(--access-green); }
