/**
 * @file         style.css
 * @description  Main stylesheet for minimalist property listing website
 * @details      This stylesheet provides complete styling for the property website:
 *               - Time-based theme switching (dark/light modes)
 *               - Responsive design for mobile, tablet, and desktop
 *               - Component styles (gallery, forms, cards, etc.)
 *               - CSS custom properties for easy theming
 *               - Animation and transition effects
 *               - Loading spinner
 *               - Print styles for property sheets
 *               - Accessibility features (focus states, reduced motion)
 * @version      1.0.0
 * @author       Marbella Sales
 * @lastModified 2026-02-26
 * @dependencies None (standalone stylesheet)
 * @notes        Uses CSS custom properties extensively for theme switching
 */

/* ==========================================================================
   
   MINIMALIST B&W PROPERTY SITE - Conversion Focused
   
   Time-based theme: Dark mode 18:00-06:00, Light mode 06:00-18:00
   
   ========================================================================== */



:root {

  /* Light Mode (default) */

  --bg: #ffffff;

  --bg-subtle: #f8f8f8;

  --card: #ffffff;

  --text: #0a0a0a;

  --text-secondary: #4a4a4a;

  --text-muted: #717171;

  --border: #e0e0e0;

  --border-light: #f0f0f0;



  /* Accent - Strong Orange for CTA */

  --cta: #ff6600;

  --cta-text: #ffffff;

  --cta-hover: #e65c00;



  /* WhatsApp - the only green allowed */

  --wa: #25d366;

  --wa-text: #ffffff;



  /* Spacing & Sizing */

  --radius: 8px;

  --radius-lg: 12px;

  --container: 960px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}



/* Dark Mode */

[data-theme="dark"] {

  --bg: #0a0a0a;

  --bg-subtle: #141414;

  --card: #1a1a1a;

  --text: #f5f5f5;

  --text-secondary: #a0a0a0;

  --text-muted: #707070;

  --border: #2a2a2a;

  --border-light: #1f1f1f;



  /* CTA stays orange in dark mode */

  --cta: #ff6600;

  --cta-text: #ffffff;

  --cta-hover: #ff7f2a;

}



/* ==========================================================================

   BASE

   ========================================================================== */



*,

*::before,

*::after {

  box-sizing: border-box;

}



html {

  scroll-behavior: smooth;

  scroll-padding-top: 80px;

  overflow-x: hidden;

}



body {

  margin: 0;

  font-family: var(--font);

  font-size: 16px;

  line-height: 1.6;

  background: var(--bg);

  color: var(--text);

  -webkit-font-smoothing: antialiased;

  overflow-x: hidden;

  width: 100%;

}



a {

  color: var(--text);

  text-decoration: underline;

  text-underline-offset: 3px;

}



a:hover {

  text-decoration: none;

}



img {

  max-width: 100%;

  height: auto;

  display: block;

}



h1,

h2,

h3,

h4 {

  margin: 0 0 0.5em;

  font-weight: 600;

  line-height: 1.2;

  letter-spacing: -0.02em;

}



p {

  margin: 0 0 1em;

}



/* ==========================================================================

   LAYOUT

   ========================================================================== */



.container {

  max-width: var(--container);

  margin: 0 auto;

  padding: 0 20px;

}



.skip-link {

  position: absolute;

  left: -9999px;

  top: 16px;

  background: var(--cta);

  color: var(--cta-text);

  padding: 12px 16px;

  border-radius: var(--radius);

  z-index: 9999;

}



.skip-link:focus {

  left: 16px;

}



/* ==========================================================================

   HEADER - Minimal with strong CTA

   ========================================================================== */



.site-header {

  position: sticky;

  top: 0;

  z-index: 300;

  background: var(--bg);

  border-bottom: 1px solid var(--border);

}



.header-inner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  height: 64px;

  gap: 16px;

}



.brand {

  display: flex;

  align-items: center;

  gap: 12px;

}



.brand-mark {

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  background: var(--cta);

  color: var(--cta-text);

  border-radius: var(--radius);

  font-weight: 700;

  font-size: 18px;

}



.brand-text {

  display: flex;

  flex-direction: column;

}



.brand-title {

  font-weight: 600;

  font-size: 15px;

  line-height: 1.2;

}



.brand-subtitle {

  font-size: 12px;

  color: var(--text-muted);

  max-width: 200px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.header-actions {

  display: flex;

  align-items: center;

  gap: 8px;

}



/* ==========================================================================

   BUTTONS - Minimal, high contrast

   ========================================================================== */



.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 10px 16px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: transparent;

  color: var(--text);

  font-size: 14px;

  font-weight: 500;

  text-decoration: none;

  cursor: pointer;

  transition: all 0.15s ease;

}



.btn:hover {

  text-decoration: none;

  background: var(--bg-subtle);

}



/* Primary CTA - High contrast, conversion focused */

.btn-primary {

  background: var(--cta);

  color: var(--cta-text);

  border-color: var(--cta);

  font-weight: 600;

}



.btn-primary:hover {

  background: var(--cta-hover);

  border-color: var(--cta-hover);

}



.btn-secondary {

  background: transparent;

}



.btn-tertiary {

  background: transparent;

  border-color: transparent;

  padding: 8px 12px;

}



.btn-lg {

  padding: 14px 24px;

  font-size: 16px;

}



/* Language selector */

#langSelector {

  padding: 8px 12px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--bg);

  color: var(--text);

  font-size: 13px;

  cursor: pointer;

}



/* ==========================================================================

   HERO - Clean, photo-focused

   ========================================================================== */



.hero {

  position: relative;

  padding: 0;

}



.hero-media {

  position: relative;

  height: 70vh;

  min-height: 400px;

  max-height: 600px;

  overflow: hidden;

}



.hero-media img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.hero-gradient {

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, var(--bg) 0%, transparent 40%);

}



.hero-content {

  position: relative;

  margin-top: -120px;

  padding-bottom: 40px;

}



.hero-card {

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 32px;

  max-width: 600px;

}



.hero-badges {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 16px;

}



.badge {

  display: inline-block;

  padding: 4px 10px;

  border: 1px solid var(--border);

  border-radius: 100px;

  font-size: 12px;

  font-weight: 500;

  color: var(--text-secondary);

}



.hero-title {

  font-size: clamp(28px, 5vw, 40px);

  font-weight: 700;

  margin-bottom: 8px;

  letter-spacing: -0.03em;

}



.hero-subtitle {

  font-size: 16px;

  color: var(--text-secondary);

  margin: 0 0 24px;

}



.hero-stats {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 16px;

  margin-bottom: 24px;

  padding: 20px 0;

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

}



.stat {

  text-align: center;

}



.stat-label {

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  color: var(--text-muted);

  margin-bottom: 4px;

}



.stat-value {

  font-size: 20px;

  font-weight: 700;

}



.hero-card .btn {

  margin-right: 8px;

  margin-bottom: 8px;

}



.hero-fineprint {

  margin-top: 20px;

  font-size: 12px;

  color: var(--text-muted);

}



/* ==========================================================================

   SECTIONS

   ========================================================================== */



.section {

  padding: 60px 0;

  border-top: 1px solid var(--border-light);

}



.section-head {

  margin-bottom: 24px;

}



.section-head h2 {

  font-size: 24px;

  margin-bottom: 4px;

}



.muted {

  color: var(--text-muted);

  margin: 0;

}



.small {

  font-size: 13px;

}



/* ==========================================================================

   CARDS & GRID

   ========================================================================== */



.grid-2 {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 24px;

}



.card {

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 24px;

}



.card h2 {

  font-size: 18px;

  margin-bottom: 16px;

}



.card-wide {

  max-width: 100%;

}



.card-wide-head {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 16px;

  margin-bottom: 16px;

}



.divider {

  height: 1px;

  background: var(--border-light);

  margin: 20px 0;

}



.paragraph {

  color: var(--text-secondary);

  margin: 0;

}



.list {

  margin: 0;

  padding-left: 20px;

  color: var(--text-secondary);

}



.list li {

  margin-bottom: 8px;

}



/* ==========================================================================

   SPECS TABLE

   ========================================================================== */



.specs {

  width: 100%;

  border-collapse: collapse;

}



.specs tr {

  border-bottom: 1px solid var(--border-light);

}



.specs tr:last-child {

  border-bottom: none;

}



.specs th,

.specs td {

  padding: 12px 0;

  text-align: left;

  font-size: 14px;

}



.specs th {

  font-weight: 500;

  color: var(--text-muted);

  width: 45%;

}



.specs td {

  font-weight: 500;

}



/* ==========================================================================

   CHIPS & TAGS

   ========================================================================== */



.chips {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 12px;

}



.chip {

  padding: 6px 12px;

  border: 1px solid var(--border);

  border-radius: 100px;

  font-size: 13px;

  color: var(--text-secondary);

}



/* ==========================================================================

   GALLERY - Clean grid

   ========================================================================== */



.gallery-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;

}



.gallery-item {

  position: relative;

  aspect-ratio: 4/3;

  border-radius: var(--radius-lg);

  overflow: hidden;

  cursor: pointer;

  background: var(--bg-subtle);

  border: none;

  outline: none;

  padding: 0;

  margin: 0;

  -webkit-appearance: none;

  appearance: none;

  font: inherit;

  color: inherit;

}



.gallery-item:focus-visible {

  outline: 2px solid var(--text);

  outline-offset: 2px;

}



.gallery-item img {

  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;

}



.gallery-item:hover img {

  transform: scale(1.04);

}



.gallery-caption {

  position: absolute;

  bottom: 0;

  left: 0;

  right: 0;

  padding: 40px 12px 12px;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);

  color: #fff;

  font-size: 12px;

  opacity: 0;

  transition: opacity 0.2s ease;

}



.gallery-item:hover .gallery-caption {

  opacity: 1;

}

/* Touch devices: subtle caption strip — don't obscure the photo */
@media (hover: none),
(max-width: 768px) {
  .gallery-caption {
    opacity: 1;
    padding: 4px 8px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.55);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}



.gallery-skeleton {

  aspect-ratio: 4/3;

  background: var(--bg-subtle);

  border-radius: var(--radius);

  animation: pulse 1.5s ease-in-out infinite;

}



@keyframes pulse {



  0%,

  100% {

    opacity: 1;

  }



  50% {

    opacity: 0.5;

  }

}



/* ==========================================================================

   COSTS

   ========================================================================== */



.costs {

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.cost-row {

  display: flex;

  justify-content: space-between;

  padding: 12px 0;

  border-bottom: 1px solid var(--border-light);

}



.cost-row:last-child {

  border-bottom: none;

}



.cost-label {

  color: var(--text-secondary);

}



.cost-value {

  font-weight: 600;

}


/* ==========================================================================

   FORM - Clean, conversion optimized

   ========================================================================== */

.form {
  margin-top: 16px;
}

label {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  margin-bottom: 16px;
  width: 100%;
}

label > span {
  display: inline;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Phone Input Group */
.phone-input-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.phone-input-group:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.phone-input-group input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding-left: 10px;
  width: auto;
  min-width: 0;
}

.phone-input-group input:focus {
  box-shadow: none;
}

.country-picker-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--bg-subtle);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.country-picker-btn:hover {
  background: var(--border-light);
}

.country-flag {
  font-size: 18px;
}

/* Country Dropdown */
.country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  padding: 8px;
}

.country-search {
  margin-bottom: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.country-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-size: 14px;
}

.country-item:hover {
  background: var(--bg-subtle);
}

.country-item .dial-code {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}

/* Validation States - Consolidated Error Display */
.form-errors {
  display: none;
  padding: 12px 16px;
  background: #fee;
  border: 1px solid #e53e3e;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 14px;
  color: #c53030;
  line-height: 1.5;
}

.form-errors.active {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.form-errors li {
  margin-bottom: 4px;
}

.form-errors li:last-child {
  margin-bottom: 0;
}

.field-error-active input,
.field-error-active textarea,
.field-error-active .phone-input-group {
  border-color: #e53e3e !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Status message below submit buttons */
.lead-status {
  margin-top: 16px;
  text-align: center;
  min-height: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lead-status.success {
  color: #38a169;
  font-weight: 500;
}

.lead-status.error {
  color: #e53e3e;
  font-weight: 500;
}

/* Mobile optimizations */
@media (max-width: 600px) {
  label {
    margin-bottom: 14px;
  }

  .form-errors {
    font-size: 13px;
    padding: 10px 14px;
  }
}

.consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
  white-space: normal;
  flex-wrap: nowrap;
  text-align: left;
}

.consent input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.form-actions .btn {
  flex: 1 1 auto;
  min-width: 200px;
  justify-content: center;
}

.btn-wa-icon {
  flex: 0 0 auto !important;
  min-width: auto !important;
  width: 52px;
  padding: 12px;
  background: var(--wa);
  color: var(--wa-text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-wa-icon:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

/* ==========================================================================

   FOOTER

   ========================================================================== */


.site-footer {

  border-top: 1px solid var(--border);

  padding: 24px 0 80px;

}


.footer-inner {

  display: flex;

  justify-content: space-between;

  align-items: center;

}


.footer-title {

  font-weight: 600;

}


.footer-muted {

  font-size: 13px;

  color: var(--text-muted);

  margin-top: 4px;

}


.footer-right a {

  color: var(--text-muted);

  font-size: 14px;

}


/* ==========================================================================

   WHATSAPP FAB - Only pop of color

   ========================================================================== */


.wa-fab {

  position: fixed;

  right: 20px;

  bottom: 20px;

  z-index: 100;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 14px 20px;

  background: var(--wa);

  color: var(--wa-text);

  border-radius: 100px;

  font-weight: 600;

  font-size: 15px;

  text-decoration: none;

  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}


.wa-fab:hover {

  text-decoration: none;

  transform: translateY(-2px);

  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);

}


.wa-icon {

  display: flex;

  align-items: center;

}


.wa-text {

  color: var(--wa-text);

}


/* ==========================================================================

   LIGHTBOX

   ========================================================================== */


.lightbox {

  position: fixed;

  top: 64px;

  left: 0;

  right: 0;

  bottom: 0;

  z-index: 200;

  display: none;

  background: rgba(0, 0, 0, 0.92);

}


.lightbox[aria-hidden="false"] {

  display: flex;

  align-items: center;

  justify-content: center;

}


.lightbox-backdrop {

  position: absolute;

  inset: 0;

}


.lightbox-dialog {

  position: relative;

  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px 20px;

}


#lightboxImg {

  max-width: 100%;

  max-height: 100%;

  object-fit: contain;

  border-radius: var(--radius);

  user-select: none;

  -webkit-user-select: none;

}


.lightbox-caption {

  position: absolute;

  bottom: 20px;

  left: 50%;

  transform: translateX(-50%);

  padding: 10px 20px;

  background: rgba(0, 0, 0, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: var(--radius);

  font-size: 14px;

  color: #f5f5f5;

  white-space: normal;

  max-width: 90%;

  text-align: center;

  line-height: 1.4;

  word-wrap: break-word;

}


.lightbox-close {

  position: absolute;

  top: 16px;

  right: 16px;

  width: 44px;

  height: 44px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.5);

  color: #ffffff;

  font-size: 24px;

  cursor: pointer;

  display: grid;

  place-items: center;

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  transition: background 0.15s ease;

}


.lightbox-close:hover {

  background: rgba(0, 0, 0, 0.7);

}


.lightbox-nav {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 48px;

  height: 48px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.5);

  color: #ffffff;

  font-size: 24px;

  cursor: pointer;

  display: grid;

  place-items: center;

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  transition: background 0.15s ease;

}


.lightbox-nav:hover {

  background: rgba(0, 0, 0, 0.7);

}


.lightbox-nav.prev {

  left: 20px;

}


.lightbox-nav.next {

  right: 20px;

}


/* ==========================================================================

   RESPONSIVE

   ========================================================================== */


@media (max-width: 768px) {

  .header-actions {

    display: none;

  }


  .hero-media {

    height: 50vh;

  }


  .hero-content {

    margin-top: -80px;

  }


  .hero-card {

    padding: 24px;

  }


  .hero-stats {

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

  }


  .grid-2 {

    grid-template-columns: 1fr;

  }


  .gallery-grid {

    grid-template-columns: repeat(2, 1fr);

  }


  .form-row {

    grid-template-columns: 1fr;

  }


  .wa-fab {

    right: 16px;

    bottom: 16px;

    padding: 12px 16px;

    display: none;

  }


  .wa-text {

    display: none;

  }

  .form-actions .btn {
    min-width: 0;
  }

  .hero-card .btn {
    display: flex;
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
    justify-content: center;
  }

}


@media (prefers-reduced-motion: reduce) {


  *,

  *::before,

  *::after {

    animation-duration: 0.01ms !important;

    transition-duration: 0.01ms !important;

  }

}


/* ==========================================================================

   TRUST STRIP — Social proof after hero

   ========================================================================== */


.trust-strip {

  padding: 20px 0;

  background: var(--bg-subtle);

  border-bottom: 1px solid var(--border-light);

}


.trust-items {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 32px;

  flex-wrap: wrap;

}


.trust-item {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 13px;

  font-weight: 500;

  color: var(--text-secondary);

  white-space: nowrap;

}


.trust-item i {

  color: var(--text-muted);

  font-size: 14px;

  width: 16px;

  text-align: center;

}


/* ==========================================================================

   AMENITIES — Visual feature grid

   ========================================================================== */


.amenities-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;

}


.amenity-item {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 16px;

  background: var(--bg-subtle);

  border-radius: var(--radius);

  border: 1px solid var(--border-light);

}


.amenity-item:hover {

  border-color: var(--border);

}


.amenity-icon {

  width: 40px;

  height: 40px;

  display: grid;

  place-items: center;

  background: var(--card);

  border: 1px solid var(--border-light);

  border-radius: var(--radius);

  color: var(--text-muted);

  font-size: 15px;

  flex-shrink: 0;

}


.amenity-label {

  font-size: 14px;

  font-weight: 500;

  text-transform: capitalize;

}


/* ==========================================================================

   FAQ — Objection handling accordion

   ========================================================================== */


.faq-list {

  display: flex;

  flex-direction: column;

  gap: 8px;

}


.faq-item {

  border: 1px solid var(--border-light);

  border-radius: var(--radius);

  overflow: hidden;

  background: var(--bg-subtle);

}


.faq-question {

  display: flex;

  align-items: center;

  gap: 14px;

  width: 100%;

  padding: 18px 20px;

  background: transparent;

  border: none;

  color: var(--text);

  font-size: 15px;

  font-weight: 500;

  text-align: left;

  cursor: pointer;

  font-family: var(--font);

  transition: background 0.15s ease;

}


.faq-icon {

  width: 20px;

  text-align: center;

  color: var(--text-muted);

  font-size: 14px;

  flex-shrink: 0;

}


.faq-text {

  flex: 1;

}


.faq-question:hover {

  background: var(--card);

}


.faq-chevron {

  font-size: 12px;

  transition: transform 0.2s ease;

  color: var(--text-muted);

  flex-shrink: 0;

  margin-left: 16px;

}


.faq-item.open .faq-chevron {

  transform: rotate(180deg);

}


.faq-answer {

  max-height: 0;

  overflow: hidden;

  transition: max-height 0.3s ease, padding 0.3s ease;

  padding: 0 20px;

  color: var(--text-secondary);

  font-size: 14px;

  line-height: 1.7;

}


.faq-item.open {

  border-color: var(--border);

}


.faq-item.open .faq-answer {

  max-height: 300px;

  padding: 0 20px 18px;

}


/* ==========================================================================

   GALLERY — Show-more pattern

   ========================================================================== */


.gallery-grid.collapsed .gallery-item:nth-child(n+7) {

  display: none;

}


.gallery-actions {

  text-align: center;

  margin-top: 20px;

}


/* ==========================================================================

   FORM — Benefits sidebar layout

   ========================================================================== */


.form-layout {

  display: grid;

  grid-template-columns: 1fr 280px;

  gap: 24px;

  align-items: start;

}


.form-benefits {

  display: flex;

  flex-direction: column;

  gap: 20px;

  padding: 24px;

  background: var(--bg-subtle);

  border-radius: var(--radius-lg);

  border: 1px solid var(--border-light);

}


.form-benefits-title {

  font-size: 15px;

  font-weight: 600;

  margin: 0;

}


.form-benefit {

  display: flex;

  align-items: flex-start;

  gap: 12px;

}


.form-benefit-icon {

  width: 32px;

  height: 32px;

  display: grid;

  place-items: center;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  color: var(--wa);

  font-size: 14px;

  flex-shrink: 0;

}


.form-benefit-text {

  font-size: 13px;

  color: var(--text-secondary);

  line-height: 1.5;

}


.form-benefit-text strong {

  display: block;

  color: var(--text);

  font-size: 14px;

  margin-bottom: 2px;

}


/* ==========================================================================

   URGENCY BADGE

   ========================================================================== */


.urgency-badge {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 6px 12px;

  background: rgba(255, 102, 0, 0.08);

  border: 1px solid rgba(255, 102, 0, 0.15);

  border-radius: 100px;

  font-size: 12px;

  font-weight: 500;

  color: var(--cta);

}


[data-theme="dark"] .urgency-badge {

  background: rgba(255, 102, 0, 0.12);

  border-color: rgba(255, 102, 0, 0.25);

}


.pulse-dot {

  width: 6px;

  height: 6px;

  background: var(--cta);

  border-radius: 50%;

  animation: pulse-dot 2s ease-in-out infinite;

}


@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }

}


/* ==========================================================================

   MOBILE STICKY BAR

   ========================================================================== */


.mobile-bar {

  display: none;

  position: fixed;

  bottom: 0;

  left: 0;

  right: 0;

  z-index: 200;

  padding: 12px 16px;

  background: var(--bg);

  border-top: 1px solid var(--border);

  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);

  -webkit-transform: translateZ(0);

  transform: translateZ(0);

  transition: transform 0.3s ease;

}


.mobile-bar-inner {

  display: flex;

  gap: 8px;

  max-width: var(--container);

  margin: 0 auto;

  align-items: center;

}


.mobile-bar .btn {

  flex: 1;

  justify-content: center;

  padding: 12px 16px;

  font-size: 14px;

  font-weight: 600;

  white-space: nowrap;

  min-width: 0;

}


.mobile-bar .btn-wa {
  background: var(--wa);
  color: var(--wa-text);
  border-color: var(--wa);
  flex: 0 0 auto;
  padding: 12px;
  min-width: 48px;
  font-size: 20px;
}

.mobile-bar .btn-wa:hover {
  background: #20bd5a;
  border-color: #20bd5a;
}


/* ==========================================================================

   SCROLL REVEAL

   ========================================================================== */


.reveal {

  opacity: 0;

  transform: translateY(24px);

  transition: opacity 0.6s ease, transform 0.6s ease;

}


.reveal.visible {

  opacity: 1;

  transform: translateY(0);

}


/* ==========================================================================

   RESPONSIVE — New components

   ========================================================================== */


@media (max-width: 768px) {

  .mobile-bar {

    display: block;

  }


  .mobile-bar-inner {

    display: flex;

  }


  .wa-fab {

    display: none;

  }


  .trust-items {

    gap: 8px;

    justify-content: flex-start;

  }


  .trust-item {

    font-size: 12px;

    background: var(--bg-subtle);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 6px 14px;

  }


  .amenities-grid {

    grid-template-columns: repeat(2, 1fr);

  }


  .form-layout {

    grid-template-columns: 1fr;

  }


  .form-benefits {

    order: -1;

  }


  .card-wide-head {

    flex-direction: column;

  }

}


@media (max-width: 480px) {

  .amenities-grid {

    grid-template-columns: 1fr;

  }


  .trust-items {

    justify-content: center;

    gap: 6px;

  }

  .trust-item {

    font-size: 11px;

    padding: 5px 10px;

  }

}


/* ==========================================================================

   LIGHTBOX — Mobile optimizations

   ========================================================================== */


@media (max-width: 768px) {

  .lightbox {

    top: 56px;

  }


  .lightbox-dialog {

    padding: 16px 8px;

  }


  .lightbox-nav {

    width: 40px;

    height: 40px;

    font-size: 20px;

  }


  .lightbox-nav.prev {

    left: 8px;

  }


  .lightbox-nav.next {

    right: 8px;

  }


  .lightbox-close {

    top: 8px;

    right: 8px;

    width: 38px;

    height: 38px;

    font-size: 20px;

  }


  .lightbox-caption {

    bottom: 12px;

    font-size: 13px;

    padding: 10px 16px;

    max-width: 95%;

  }

}


/* ==========================================================================

   LIGHTBOX — Photo counter

   ========================================================================== */


.lightbox-counter {

  position: absolute;

  top: 16px;

  left: 16px;

  padding: 6px 12px;

  background: rgba(0, 0, 0, 0.6);

  border-radius: 100px;

  font-size: 13px;

  font-weight: 500;

  color: #f5f5f5;

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

}


@media (max-width: 768px) {

  .lightbox-counter {

    top: 8px;

    left: 8px;

    font-size: 12px;

    padding: 5px 10px;

  }

}


/* ==========================================================================

   ENERGY CERTIFICATE — Badge in specs

   ========================================================================== */


.energy-badge {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 4px 10px;

  border-radius: 4px;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 0.02em;

}


.energy-badge--A {
  background: #00a651;
  color: #fff;
}

.energy-badge--B {
  background: #50b848;
  color: #fff;
}

.energy-badge--C {
  background: #bdd62e;
  color: #1a1a1a;
}

.energy-badge--D {
  background: #fff200;
  color: #1a1a1a;
}

.energy-badge--E {
  background: #f7941d;
  color: #fff;
}

.energy-badge--F {
  background: #f15a29;
  color: #fff;
}

.energy-badge--G {
  background: #ed1c24;
  color: #fff;
}


.energy-details {

  display: flex;

  flex-direction: column;

  gap: 4px;

  margin-top: 4px;

}


.energy-detail {

  font-size: 12px;

  color: var(--text-muted);

}


/* ==========================================================================

   FEATURES GRID - Selling points display

   ========================================================================== */


.features-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

}


.features-card {

  border-left: 3px solid #FFA07A;

}


.feature-item {

  display: flex;

  align-items: flex-start;

  gap: 12px;

  padding: 16px;

  background: var(--bg-subtle);

  border-radius: var(--radius);

  border: 1px solid var(--border-light);

}


.feature-icon {

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  color: var(--cta);

  font-size: 14px;

  flex-shrink: 0;

}


.feature-content {

  display: flex;

  flex-direction: column;

  gap: 4px;

}


.feature-title {

  font-size: 14px;

  font-weight: 600;

  color: var(--text);

}


.feature-description {

  font-size: 13px;

  color: var(--text-secondary);

  line-height: 1.4;

}


@media (max-width: 768px) {

  .features-grid {

    grid-template-columns: 1fr;

  }

}


/* ==========================================================================

   INVESTMENT HIGHLIGHTS

   ========================================================================== */


.investment-card {

  border-left: 3px solid var(--cta);

}


.investment-stats {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;

  margin-bottom: 24px;

  padding-bottom: 20px;

  border-bottom: 1px solid var(--border);

}


.investment-stat {

  text-align: center;

  padding: 16px;

  background: var(--bg-subtle);

  border-radius: var(--radius);

}


.investment-stat-value {

  font-size: 22px;

  font-weight: 700;

  color: var(--text);

  margin-bottom: 4px;

}


.investment-stat-value.positive {

  color: #00a651;

}


.investment-stat-label {

  font-size: 12px;

  color: var(--text-secondary);

  text-transform: uppercase;

  letter-spacing: 0.03em;

}


.investment-highlights {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;

}


.investment-highlight {

  display: flex;

  align-items: flex-start;

  gap: 12px;

  padding: 12px;

}


.investment-highlight-icon {

  width: 32px;

  height: 32px;

  display: grid;

  place-items: center;

  background: var(--cta);

  color: #fff;

  border-radius: var(--radius);

  font-size: 14px;

  flex-shrink: 0;

}


.investment-highlight-content {

  display: flex;

  flex-direction: column;

  gap: 2px;

}


.investment-highlight-title {

  font-size: 13px;

  font-weight: 600;

  color: var(--text);

}


.investment-highlight-description {

  font-size: 12px;

  color: var(--text-secondary);

  line-height: 1.4;

}


@media (max-width: 768px) {

  .investment-stats {

    grid-template-columns: 1fr;

    gap: 12px;

  }


  .investment-highlights {

    grid-template-columns: 1fr;

    gap: 8px;

  }


  .investment-highlight {

    padding: 10px;

  }

}


/* ==========================================================================

   SHARE MENU

   ========================================================================== */


.share-menu {

  display: none;

  position: fixed;

  inset: 0;

  z-index: 101;

  align-items: center;

  justify-content: center;

}


.share-menu[aria-hidden="false"] {

  display: flex;

}


.share-backdrop {

  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.6);

  backdrop-filter: blur(4px);

  -webkit-backdrop-filter: blur(4px);

}


.share-dialog {

  position: relative;

  width: min(420px, 90vw);

  background: var(--card);

  border-radius: var(--radius);

  box-shadow: var(--shadow-xl);

  padding: 28px 24px 24px;

  animation: dialogIn 0.2s ease;

}


.share-close {

  position: absolute;

  top: 12px;

  right: 12px;

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  border: none;

  background: transparent;

  color: var(--text-secondary);

  font-size: 24px;

  cursor: pointer;

  transition: background 0.2s, color 0.2s;

}


.share-close:hover {

  background: var(--bg-subtle);

  color: var(--text);

}


.share-title {

  font-size: 20px;

  font-weight: 600;

  color: var(--text);

  margin: 0 0 20px;

  text-align: center;

}


.share-buttons {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;

  margin-bottom: 20px;

}


.share-btn {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  padding: 16px 12px;

  border-radius: var(--radius);

  background: var(--bg-subtle);

  border: 1px solid var(--border-light);

  text-decoration: none;

  color: var(--text);

  transition: transform 0.15s, background 0.15s, border-color 0.15s;

  cursor: pointer;

}


.share-btn:hover {

  transform: translateY(-2px);

  background: var(--card);

  border-color: var(--border);

}


.share-btn i {

  font-size: 22px;

  width: 44px;

  height: 44px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  color: #fff;

}


.share-btn.facebook i {
  background: #1877f2;
}

.share-btn.twitter i {
  background: #000;
}

.share-btn.linkedin i {
  background: #0a66c2;
}

.share-btn.whatsapp i {
  background: #25d366;
}

.share-btn.email i {
  background: var(--text-secondary);
}

.share-btn.copy i {
  background: var(--cta);
}


.share-btn span {

  font-size: 12px;

  font-weight: 500;

  color: var(--text-secondary);

}


.share-url {

  position: relative;

  display: flex;

  align-items: center;

}


.share-url input {

  width: 100%;

  padding: 12px 14px;

  font-size: 14px;

  font-family: monospace;

  background: var(--bg-subtle);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  color: var(--text);

}


.copy-feedback {

  position: absolute;

  right: 12px;

  font-size: 12px;

  font-weight: 500;

  color: var(--success, #00a651);

  opacity: 0;

  transform: translateY(4px);

  transition: opacity 0.2s, transform 0.2s;

}


.copy-feedback.show {

  opacity: 1;

  transform: translateY(0);

}


@keyframes dialogIn {

  from {

    opacity: 0;

    transform: scale(0.95) translateY(10px);

  }

  to {

    opacity: 1;

    transform: scale(1) translateY(0);

  }

}


@media (max-width: 480px) {

  .share-dialog {

    padding: 24px 16px 20px;

  }


  .share-buttons {

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

  }


  .share-btn {

    padding: 14px 10px;

  }


  .share-btn i {

    width: 40px;

    height: 40px;

    font-size: 20px;

  }

}

/* Share FAB - left side, blue accent (not green like WhatsApp) */
.share-fab {
  left: 20px;
  right: auto;
  background: var(--cta);
  box-shadow: 0 4px 20px rgba(10, 123, 188, 0.4);
}

.share-fab:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 30px rgba(10, 123, 188, 0.5);
}

/* Share dialog */
.share-dialog {
  max-width: 360px;
  width: 90%;
  padding: 24px;
}

.share-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* Copy feedback animation */
#copyFeedback.show {
  opacity: 1 !important;
}

/* Social proof: viewer count */
.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-top: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
}

.social-proof i {
  color: var(--cta);
  font-size: 14px;
}

/* Social proof: FOMO toast notification */
.social-toast {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: var(--text);
  max-width: 340px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.social-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.social-toast i {
  color: var(--cta);
  font-size: 16px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .social-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 80px;
  }
}

/* Price anchor: €/m² below price stat */
.stat-anchor {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* Form scarcity signal */
.form-scarcity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  background: rgba(255, 102, 0, 0.06);
  border: 1px solid rgba(255, 102, 0, 0.15);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--cta);
}

.form-scarcity i {
  font-size: 14px;
}

[data-theme="dark"] .form-scarcity {
  background: rgba(255, 102, 0, 0.1);
  border-color: rgba(255, 102, 0, 0.2);
}

/* Sticky CTA bar: appears after scrolling past hero (desktop) */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.sticky-cta-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-cta-info strong {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.sticky-cta-info span {
  font-size: 14px;
  font-weight: 600;
  color: var(--cta);
}

@media (max-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn .spinner {
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PRINT STYLES — Clean PDF brochure export (Ctrl+P / Cmd+P)
   ========================================================================== */
@media print {

  /* --- Reset: force light theme, remove shadows/animations --- */
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* --- Page setup --- */
  @page {
    size: A4;
    margin: 15mm 12mm 15mm 12mm;
  }

  /* --- Hide interactive / non-print elements --- */
  .site-header,
  .wa-fab,
  .mobile-bar,
  .lightbox,
  #shareMenu,
  .social-proof,
  .social-toast,
  .sticky-cta,
  .hero-fineprint,
  .hero-badges,
  .skip-link,
  #themeToggle,
  #langSelector,
  #btnShare,
  #btnHeaderShare,
  #btnFooterShare,
  .btn-wa-icon,
  .gallery-show-more,
  #galleryHint,
  #galleryActions,
  .form-scarcity,
  .form-guarantee,
  .price-anchor,
  noscript,
  script {
    display: none !important;
  }

  /* --- Hide form section (not useful on paper) --- */
  #lead {
    display: none !important;
  }

  /* --- Container: full width for print --- */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .section {
    padding: 12pt 0 !important;
  }

  /* --- Hero: compact property header --- */
  .hero {
    height: auto !important;
    min-height: auto !important;
    position: relative;
    page-break-after: avoid;
  }

  .hero-media {
    height: 260pt !important;
    max-height: 260pt !important;
    overflow: hidden;
  }

  .hero-media img {
    width: 100% !important;
    height: 260pt !important;
    object-fit: cover;
  }

  .hero-gradient {
    display: none !important;
  }

  .hero-content {
    position: relative !important;
    padding: 12pt 0 0 !important;
  }

  .hero-card {
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border: none !important;
  }

  .hero-title {
    font-size: 20pt !important;
    color: #000 !important;
    margin-bottom: 4pt !important;
  }

  .hero-subtitle {
    font-size: 11pt !important;
    color: #444 !important;
    margin-bottom: 8pt !important;
  }

  .hero-stats {
    display: flex !important;
    gap: 24pt !important;
    border-top: 1pt solid #ccc;
    border-bottom: 1pt solid #ccc;
    padding: 8pt 0 !important;
    margin: 8pt 0 !important;
  }

  .hero-stats .stat-label {
    font-size: 10pt !important;
    text-transform: uppercase;
    letter-spacing: 0.5pt;
    color: #666 !important;
  }

  .hero-stats .stat-value {
    font-size: 18pt !important;
    font-weight: 700 !important;
    color: #000 !important;
  }

  /* Hide hero CTA buttons */
  .hero-card .btn {
    display: none !important;
  }

  /* --- Trust strip --- */
  .trust-strip {
    padding: 8pt 0 !important;
    border-bottom: 1pt solid #eee;
  }

  .trust-items {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8pt 20pt !important;
  }

  .trust-item {
    font-size: 9pt !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    color: #333 !important;
  }

  .trust-item i {
    display: none !important;
  }

  /* --- Gallery: 4 large photos per page (2×2), no captions --- */
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6pt !important;
  }

  .gallery-grid.collapsed .gallery-item:nth-child(n+7) {
    display: block !important;
  }

  .gallery-item {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .gallery-item img {
    width: 100% !important;
    height: 250pt !important;
    object-fit: cover;
    border-radius: 2pt !important;
  }

  .gallery-item .gallery-caption {
    display: none !important;
  }

  /* --- Cards --- */
  .card,
  .card-wide {
    border: 1pt solid #ddd !important;
    background: #fff !important;
    padding: 10pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* --- Tables --- */
  table,
  .specs-table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 10pt !important;
  }

  th,
  td {
    border-bottom: 0.5pt solid #ddd !important;
    padding: 4pt 8pt !important;
    text-align: left;
    color: #000 !important;
  }

  /* --- Features grid --- */
  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8pt !important;
  }

  .feature-card {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 0.5pt solid #ddd !important;
    padding: 8pt !important;
    border-radius: 2pt !important;
    background: #fff !important;
  }

  /* --- Amenities grid: keep icons visible --- */
  .amenities-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6pt !important;
  }

  .amenity-item {
    font-size: 9pt !important;
    padding: 4pt !important;
    color: #333 !important;
  }

  .feature-card i {
    display: none !important;
  }

  /* --- FAQ: hide entirely in print --- */
  [aria-label="Frequently asked questions"] {
    display: none !important;
  }

  /* --- Headings --- */
  h2 {
    font-size: 18pt !important;
    color: #000 !important;
    margin-bottom: 6pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  h3 {
    font-size: 12pt !important;
    color: #000 !important;
    page-break-after: avoid;
  }

  /* --- Footer: compact contact bar --- */
  .site-footer {
    border-top: 1pt solid #ccc !important;
    padding: 10pt 0 !important;
    margin-top: 12pt !important;
    background: #fff !important;
  }

  .footer-right .btn,
  .footer-right a[href="privacy.html"] {
    display: none !important;
  }

  .footer-title {
    font-size: 12pt !important;
    font-weight: 700 !important;
    color: #000 !important;
  }

  .footer-muted {
    font-size: 10pt !important;
    color: #444 !important;
  }

  /* --- Links: show URL for external links --- */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666 !important;
    word-break: break-all;
  }

  /* Don't show URLs for internal / UI links */
  .btn::after,
  .hero-card a::after,
  nav a::after,
  .footer-right a::after,
  .consent a::after {
    content: "" !important;
  }

  /* --- Page breaks --- */
  .section {
    page-break-inside: avoid;
  }

  #gallery {
    page-break-before: always;
  }

  /* --- Utility overrides --- */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .muted {
    color: #555 !important;
  }

  img {
    max-width: 100% !important;
  }

  /* --- Print-only brochure header --- */
  body::before {
    content: "Property Listing — Marbella Sales · marbella-sales.com";
    display: block;
    text-align: center;
    font-size: 8pt;
    color: #999 !important;
    padding-bottom: 8pt;
    border-bottom: 0.5pt solid #ddd;
    margin-bottom: 10pt;
  }
}

/* ==========================================================================
   PLAN VIEWER
   ========================================================================== */

.plans-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.plan-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--bg-subtle);
  padding: 16px;
}

.plan-info {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.plan-caption {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Fullscreen Viewer Overlay */
.plan-viewer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.plan-viewer[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.pv-toolbar {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  z-index: 10;
}

.pv-controls {
  display: flex;
  gap: 8px;
}

.pv-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 16px;
}

.pv-canvas {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--bg-subtle);
  cursor: grab;
  touch-action: none;
  /* Prevent default touch scrolling */
}

.pv-canvas:active {
  cursor: grabbing;
}

.pv-canvas img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  max-width: none;
  /* Allow scaling beyond 100% */
  user-select: none;
  pointer-events: none;
  /* Let events pass to canvas container */
  will-change: transform;
}

/* ==========================================================================
   FLOOR PLAN VIEWER
   ========================================================================== */

.floorplan-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.floorplan-zoom-controls {
  display: flex;
  gap: 4px;
}

.floorplan-zoom-controls .btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.floorplan-viewer {
  position: relative;
  width: 100%;
  min-height: 300px;
  max-height: 75vh;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floorplan-viewer:active {
  cursor: grabbing;
}

#floorplanImg {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  transform-origin: center center;
  will-change: transform;
  transition: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

[data-theme="dark"] .floorplan-viewer {
  background: #1a1a1a;
}

[data-theme="dark"] #floorplanImg {
  filter: invert(0.88) hue-rotate(180deg);
}

/* Fullscreen mode */
#floorPlan:fullscreen,
#floorPlan:-webkit-full-screen {
  background: var(--bg, #fff);
  display: flex;
  flex-direction: column;
  padding: 16px;
}

#floorPlan:fullscreen .container,
#floorPlan:-webkit-full-screen .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

#floorPlan:fullscreen .floorplan-viewer,
#floorPlan:-webkit-full-screen .floorplan-viewer {
  flex: 1;
  max-height: none;
  min-height: 0;
}

#floorPlan:fullscreen #floorplanImg,
#floorPlan:-webkit-full-screen #floorplanImg {
  max-height: calc(100vh - 120px);
}

[data-theme="dark"] #floorPlan:fullscreen,
[data-theme="dark"] #floorPlan:-webkit-full-screen {
  background: #111;
}

@media (max-width: 600px) {
  .floorplan-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .floorplan-zoom-controls {
    justify-content: center;
  }

  .floorplan-viewer {
    min-height: 250px;
    max-height: 60vh;
  }
}