/* ============================================================
   Competitor-informed additions
   ============================================================ */
/* Unit-type checkbox pills (in lead-card) */
.unit-pick {
  border: 0;
  padding: 0;
  margin: 0 0 .3rem;
  display: block;
}

.unit-pick legend {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 0;
  margin-bottom: .5rem;
}

.unit-pick legend span {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.unit-pick>label {
  display: inline-flex;
  align-items: center;
  margin: 0 .4rem .4rem 0;
  cursor: pointer;
}

.unit-pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.unit-pick label span {
  display: inline-block;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}

.unit-pick input:checked+span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.unit-pick input:focus-visible+span {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* PDPA consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .2rem 0 .9rem;
  cursor: pointer;
}

.consent input {
  margin-top: .15rem;
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.consent span {
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.45;
}

.consent.invalid span {
  color: #c0563f;
}

.consent a {
  color: var(--green);
  text-decoration: underline;
}

/* "In the news" press strip */
.press-strip {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.press-strip__label {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .85rem;
}

.press-strip__logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.2rem;
  padding: 0;
  margin: 0;
}

.press-strip__logos li {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  opacity: .68;
}

/* register-cta extra CTAs (dark band) */
.register-cta__actions {
  display: flex;
  flex-wrap: wrap;
  /* band text is left-aligned (03-refresh footer block) — keep the
     button pair on the same left edge so it doesn't look off-centre */
  justify-content: flex-start;
  gap: .8rem;
}

/* Equal-width CTA pair (Get E-Brochure / Request Price List) */
.register-cta__actions .btn {
  min-width: 215px;
}

.register-cta .btn--outline {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.register-cta .btn--outline:hover {
  background: #fff;
  color: var(--green-deep);
  border-color: #fff;
}

/* Legal / policy pages */
.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: 8.5rem 0 3.5rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.legal-updated {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9rem;
}

.fact-updated {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .8rem;
}

.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin: 2rem 0 .7rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--green);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

.legal-side {
  position: sticky;
  top: 96px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-side__label {
  margin: 0 0 .55rem;
  font-weight: 800;
  color: var(--green);
}

.legal-side p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* High-intent CTA highlight: subtle premium shine + breathing glow */
.cta-shine,
.form-actions .btn--pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 14px 30px -14px rgba(192, 103, 63, 0.85),
    0 0 0 0 rgba(192, 103, 63, 0.28);
  animation: ctaGlow 4.8s ease-in-out infinite;
}

.cta-shine::before,
.form-actions .btn--pill::before {
  content: "";
  position: absolute;
  inset: -40% -55%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.24) 48%,
    rgba(255, 255, 255, 0.72) 52%,
    rgba(255, 255, 255, 0.24) 56%,
    transparent 70%
  );
  transform: translateX(-70%) rotate(10deg);
  animation: ctaSweep 5.8s ease-in-out infinite;
}

.cta-shine:hover,
.cta-shine:focus-visible,
.form-actions .btn--pill:hover,
.form-actions .btn--pill:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 22px 42px -18px rgba(192, 103, 63, 0.9),
    0 0 0 6px rgba(192, 103, 63, 0.12);
}

.units__cta.cta-shine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 42px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: var(--green, #2f5d4a);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}

.units__cta.cta-shine:hover,
.units__cta.cta-shine:focus-visible {
  background: var(--clay, #c0673f);
  color: #fff;
}

.form-actions .btn--pill {
  box-shadow:
    0 16px 34px -14px rgba(17, 120, 210, 0.82),
    0 0 0 0 rgba(17, 120, 210, 0.24);
}

.floating__register.cta-shine {
  box-shadow:
    0 18px 38px -14px rgba(47, 93, 74, 0.95),
    0 0 0 0 rgba(47, 93, 74, 0.36);
}

.floating__register.cta-shine::before {
  inset: -30% -62%;
}

@keyframes ctaSweep {
  0%, 50% {
    transform: translateX(-70%) rotate(10deg);
  }

  72%, 100% {
    transform: translateX(72%) rotate(10deg);
  }
}

@keyframes ctaGlow {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-shine,
  .cta-shine::before,
  .form-actions .btn--pill,
  .form-actions .btn--pill::before {
    animation: none;
  }
}

/* Footer agent (CEA) disclosure */
.agent-disclosure {
  font-size: .76rem;
  color: var(--sage);
  line-height: 1.5;
  margin-bottom: .5rem;
}

@media (max-width:600px) {
  .press-strip__logos {
    gap: .7rem 1.3rem;
  }

  .press-strip__logos li {
    font-size: .92rem;
  }

  .register-cta__actions .btn {
    width: 100%;
  }

  .dev-strip__register {
    width: min(100%, 280px);
    min-height: 48px;
    margin-top: .1rem;
    justify-content: center;
  }
}

@media (max-width:760px) {
  .units--simple .units__row { grid-template-columns: 1fr auto; }
  .units--simple .units__size { grid-column: 1 / -1; }

  .legal-hero {
    padding: 6.5rem 0 2.5rem;
  }

  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .legal-side {
    position: static;
  }
}

/* ============================================================
   NEW LEAD FORM (Secure Your Spot)
   ============================================================ */
.lead-card--new {
  background: #fff;
  border: none;
  border-radius: 8px;
  color: #000;
  padding: 1.5rem 1.7rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lead-card--new h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #000;
}

.lead-card--new .lead-card__sub {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: #333;
  margin-bottom: 0.8rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.form-options {
  margin-bottom: 0.9rem;
}

.form-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.87rem;
  color: #222;
  cursor: pointer;
}

.form-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a9e33;
}

.form-options-split {
  display: flex;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  /* 6 tracks: Name/Email/Phone span 2 each (one row); Date/Time span 3
     each on a second row that only appears for showflat appointments */
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.form-grid .field {
  margin-bottom: 0;
  grid-column: span 2;
}

/* Date & time are appointment-only — hidden until "Showflat Appointment"
   is ticked (the .show-appt class is toggled by script.js) */
.lead-form .field:has(.date-input),
.lead-form .field:has(.time-input) {
  display: none;
  grid-column: span 3;
}

.lead-form .form-note {
  display: none;
}

.lead-form.show-appt .field:has(.date-input),
.lead-form.show-appt .field:has(.time-input) {
  display: block;
}

.lead-form.show-appt .form-note {
  display: block;
}

.form-grid .field input,
.form-grid .field select {
  width: 100%;
  border: 1px solid #222;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  background: transparent;
  color: #000;
}

.form-grid .field--phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid #222;
  border-radius: 999px;
  padding: 0 1rem;
  background: transparent;
  transition: border-color .25s, box-shadow .25s;
}

.form-grid .field--phone:focus-within {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(192, 103, 63, .14);
}

.form-grid .field--phone .prefix {
  font-size: 0.9rem;
  color: #222;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

.form-grid .field--phone input {
  border: none !important;
  padding: 0.55rem 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}

.form-grid .field--phone input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-grid .field select.sel-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.form-note {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #000;
}

.form-group-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

/* Unit types as compact pill chips (tap to toggle) */
.unit-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.check-label {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check-label span {
  display: inline-block;
  border: 1px solid #c2bdb1 !important;
  border-radius: 999px;
  padding: 0.3rem 0.85rem !important;
  font-size: 0.82rem !important;
  line-height: 1.2;
  color: #444 !important;
  background: #fff;
  transition: background .2s, border-color .2s, color .2s;
  user-select: none;
}

.check-label input[type="checkbox"]:checked+span {
  background: #e9f6ec;
  border-color: #1a9e33 !important;
  color: #0d6b1f !important;
  font-weight: 600;
}

.check-label input[type="checkbox"]:focus-visible+span {
  outline: 2px solid #1a9e33;
  outline-offset: 2px;
}

.consent--new {
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

.consent--new span {
  font-size: 0.73rem;
  color: #000;
  line-height: 1.3;
}

.consent--new input {
  margin-top: 0.2rem;
  accent-color: #1a9e33;
}

.consent--new a {
  color: #000;
  text-decoration: underline;
}

.form-actions {
  text-align: center;
}

.form-actions .btn--pill {
  width: auto;
  min-width: 240px;
  border-radius: 999px;
  background: #1178d2;
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.privacy-link {
  display: block;
  font-size: 0.8rem;
  color: #000;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}

.form-actions .fine {
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
}

@media (max-width: 480px) {

  .form-grid,
  .form-options-split {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 0.8rem;
  }

  .form-grid .field,
  .lead-form .field:has(.date-input),
  .lead-form .field:has(.time-input) {
    grid-column: auto;
  }
}

/* ============================================================
   MODAL STYLES
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ccc;
  font-size: 1.8rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: #f5f5f5;
}

/* ============================================================
   SUCCESS POPUP — confirmation overlay after a lead is submitted.
   Sits above the lead modal (z 9999) so it's always seen, even on
   a long mobile form where the inline banner is off-screen.
   ============================================================ */
.success-pop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 28, 20, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.success-pop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.success-pop__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.28s ease;
}

.success-pop.is-open .success-pop__card {
  transform: translateY(0) scale(1);
}

.success-pop__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #1c7a47;
  color: #fff;
  font-size: 38px;
  line-height: 72px;
  box-shadow: 0 8px 22px rgba(28, 122, 71, 0.35);
  animation: successPopIcon 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPopIcon {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-pop__title {
  margin: 0 0 6px;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.55rem;
  color: #16331f;
}

.success-pop__text {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a564f;
}

.success-pop__wa,
.success-pop__done {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}

.success-pop__wa {
  background: #25d366;
  color: #073f1e;
  text-decoration: none;
  margin-bottom: 10px;
}

.success-pop__wa:hover {
  filter: brightness(0.96);
}

.success-pop__done {
  background: #f1f3f1;
  color: #2c3a31;
}

.success-pop__done:hover {
  background: #e6e9e6;
}

.success-pop__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  color: #9aa39d;
  cursor: pointer;
}

.success-pop__close:hover {
  color: #4a564f;
}

/* Ensure the card scrolls internally if too tall */
.modal-container .lead-card--new {
  margin: 0;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);   /* dvh: trừ thanh địa chỉ/điều hướng trên mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile: thu gọn popup + nút đóng luôn nổi & bấm được (không tràn header/footer) */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0.6rem;
    align-items: flex-start;
  }

  .modal-container .lead-card--new {
    max-height: calc(100dvh - 1.2rem);
    padding: 1.4rem 1.05rem;
  }

  .lead-card--new h2 {
    font-size: 1.7rem;
  }

  .lead-card--new .lead-card__sub {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .form-options {
    margin-bottom: 0.9rem;
  }

  /* Tách khỏi thẻ, ghim cố định ở góc trên phải màn hình → luôn chạm tới được */
  .modal-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
    z-index: 10001;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  }
}

/* ============================================================
   FLATPICKR FIX — the global `.form-grid .field input/select`
   pill styling was leaking into the picker's internal controls
   (oversized time number boxes + a pill-bordered month dropdown).
   Reset flatpickr's own controls only; the visible .date-input /
   .time-input fields keep their pill style.
   ============================================================ */
.flatpickr-calendar {
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line, #e7e2d7);
  font-family: var(--sans, system-ui, sans-serif);
  background: #fff;
}

/* Nút "Done" thêm vào picker (date + time) để khách biết đã chọn xong */
.flatpickr-calendar .fp-confirm {
  display: block;
  width: calc(100% - 12px);
  margin: 4px 6px 8px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--green, #1f3d2b);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.flatpickr-calendar .fp-confirm:hover {
  background: #162c1f;
}

.flatpickr-calendar .numInput,
.flatpickr-calendar .flatpickr-monthDropdown-months {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 2px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2d3047 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Time picker: compact, centred number boxes (no pill) */
.flatpickr-calendar.hasTime .flatpickr-time {
  height: 44px;
  max-height: 44px;
  border-top: 1px solid var(--line, #e7e2d7);
}

.flatpickr-calendar .flatpickr-time .numInput {
  width: 100% !important;
  text-align: center;
  height: 44px !important;
  line-height: 44px !important;
}

.flatpickr-calendar .flatpickr-time .flatpickr-am-pm {
  font-weight: 600;
}

/* ============================================================
   "BE THE FIRST TO KNOW" — 2-col band: intro (left) + register
   form (right). Form was moved out of the old modal to here.
   ============================================================ */
.register-cta .container.register-cta__grid {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 470px);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: 1240px;
  padding-left: clamp(20px, 6vw, 90px);
  padding-right: clamp(20px, 6vw, 90px);
}

.register-cta__intro {
  min-width: 0;
}

.register-cta__grid .lead-card--new {
  width: 100%;
  margin: 0;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.65);
}

/* The band sets a light `p` colour + gold `.btn`; keep the white form
   card's own dark text and its blue submit button. */
.register-cta__grid .lead-card--new p {
  color: #1a1a1a;
}

.register-cta__grid .lead-card--new .lead-card__sub {
  color: #6b6b6b;
}

.register-cta__grid .lead-card--new .btn--primary {
  background: #2f6df6;
  border-color: #2f6df6;
  color: #fff;
}

/* ============================================================
   LOCATION EXPLORER — compact map + categorised accordion panel
   (replaces the old photo collage + wide 4-col connect grid)
   ============================================================ */
.loc-explorer {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
  margin-top: 2.4rem;
}

.loc-explorer__map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line, #e7e2d7);
  box-shadow: 0 18px 44px -28px rgba(20, 39, 30, 0.45);
  min-height: 540px;
}

.loc-explorer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.loc-explorer__panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.loc-cat {
  background: #fff;
  border: 1px solid var(--line, #e7e2d7);
  border-radius: 14px;
  box-shadow: 0 10px 26px -20px rgba(20, 39, 30, 0.35);
}

.loc-cat summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.loc-cat summary::-webkit-details-marker {
  display: none;
}

.loc-cat__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  flex-shrink: 0;
}

.loc-cat__chip--train { background: #1a9e33; }
.loc-cat__chip--road { background: #c0673f; }
.loc-cat__chip--shop { background: #8b5cf6; }
.loc-cat__chip--school { background: #e8a912; }
.loc-cat__chip--nature { background: #0f9d8f; }

.loc-cat__title {
  flex: 1;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink, #1d2a23);
}

.loc-cat__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green, #14271e);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.loc-cat[open] .loc-cat__chev {
  transform: rotate(180deg);
}

.loc-cat__rows {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0.45rem;
}

.loc-cat__rows li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line-soft, #efeae0);
}

.loc-row__name {
  flex: 1;
  font-size: 0.93rem;
  color: var(--ink-soft, #3a463f);
  min-width: 0;
}

.loc-row__val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted, #7a8079);
  white-space: nowrap;
}

/* MRT line chips — official SG line colours */
.line-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  flex-shrink: 0;
}

.line-chip--tel { background: #9d5b25; }
.line-chip--ccl { background: #fa9e0d; }
.line-chip--nsl { background: #d42e12; }

@media (max-width: 920px) {
  .loc-explorer {
    grid-template-columns: 1fr;
  }

  .loc-explorer__map {
    min-height: 300px;
  }

  .loc-explorer__panel {
    max-height: none;
    overflow: visible;
  }
}

/* Leaflet map inside the explorer */
.loc-explorer__map {
  position: relative;
  z-index: 0; /* contain Leaflet's internal z-indexes below the sticky header */
}

#locMap {
  width: 100%;
  height: 100%;
  min-height: 540px;
  background: #eef0ec;
}

@media (max-width: 920px) {
  #locMap {
    min-height: 300px;
  }
}

/* Project-site pin: brand-clay teardrop */
.map-pin-site {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--clay, #c0673f);
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Category dots — colours match the panel chips */
.map-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.map-dot--train { background: #1a9e33; }
.map-dot--shop { background: #8b5cf6; }
.map-dot--school { background: #e8a912; }
.map-dot--nature { background: #0f9d8f; }

.map-home-control.leaflet-bar {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.map-home-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(28, 45, 35, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--clay, #c0673f);
  box-shadow: 0 6px 18px rgba(28, 45, 35, 0.18);
  cursor: pointer;
}

.map-home-button:hover,
.map-home-button:focus-visible {
  background: var(--clay, #c0673f);
  color: #fff;
}

.map-home-button:focus-visible {
  outline: 2px solid rgba(192, 103, 63, 0.28);
  outline-offset: 2px;
}

/* Rows that carry a pin are clickable */
.loc-cat__rows li.has-pin {
  cursor: pointer;
}

.loc-cat__rows li.has-pin:hover .loc-row__name {
  color: var(--clay, #c0673f);
}

.leaflet-container .leaflet-popup-content {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* sticky-header offset when a "Register" link jumps to the form */
#register {
  scroll-margin-top: 96px;
}

@media (max-width: 920px) {
  .register-cta .container.register-cta__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .register-cta__grid .lead-card--new {
    max-width: 560px;
  }
}

/* ---- Entry corner widget (first-visit preview launch, bottom-right) ---- */
.ep {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(.22, .68, 0, 1.18);
  transform: translateY(16px);
}
.ep.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ep__overlay { display: none; }
.ep__card {
  position: relative;
  background: var(--paper, #f6f2ea);
  border-radius: 20px;
  padding: 2rem 1.8rem 1.6rem;
  width: 280px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(20, 39, 30, 0.22), 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
@media (max-width: 480px) {
  .ep {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  .ep__card { width: 100%; }
}
.ep__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clay, #c0673f) 0%, #d4845e 100%);
  border-radius: 20px 20px 0 0;
}
.ep__close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line, #e3dac9);
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted, #727c73);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 1;
}
.ep__close:hover {
  background: var(--sand, #eaddca);
  color: var(--ink, #19271f);
  border-color: var(--sand, #eaddca);
}
.ep__leaf {
  position: absolute;
  bottom: -18px; right: -20px;
  color: var(--green, #2f5d4a);
  opacity: 0.07;
  pointer-events: none;
  line-height: 0;
}
.ep__badge {
  display: inline-block;
  background: var(--clay, #c0673f);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.ep__sup {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #727c73);
  margin: 0 0 0.3rem;
}
.ep__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin-bottom: 1.2rem;
  gap: 0;
}
.ep__month {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 2.8rem;
  font-style: italic;
  font-weight: 400;
  color: var(--green, #2f5d4a);
  line-height: 1.05;
}
.ep__year {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 5.2rem;
  font-weight: 700;
  color: var(--green-deep, #14271e);
  line-height: 0.88;
  letter-spacing: -0.02em;
}
.ep__body {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft, #45524a);
  line-height: 1.55;
  margin: 0 0 1.6rem;
}
.ep__cta {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 999px;
  font-size: 0.95rem;
}
