/* ==========================================
   Property Sale Website - Caversham, Reading
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-primary-dark: #0f2440;
  --color-accent: #d69e2e;
  --color-accent-hover: #b7791f;
  --color-accent-light: #f6e05e;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-text-inverse: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #25d366;
  --color-success-hover: #1da851;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --transition: 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn-secondary:hover {
  background: var(--color-text-inverse);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(26, 54, 93, 0.97);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-inverse);
  letter-spacing: 1px;
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--color-text-inverse);
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-primary-dark) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  color: var(--color-text-inverse) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-inverse);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-inverse);
  /* TODO: Replace with actual hero image */
  background: var(--color-primary) url('../images/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(15, 36, 64, 0.4) 0%,
      rgba(15, 36, 64, 0.6) 50%,
      rgba(15, 36, 64, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.hero-specs {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.spec-divider {
  opacity: 0.5;
}

.hero-price {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--color-accent-light);
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}




.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-decoration: none;
  outline: none;
  transition: all 0.3s ease;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.scroll-indicator svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Highlights --- */
.highlights {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 3rem 1.5rem;
}

.highlights-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.highlight-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.highlight-label {
  font-size: 0.85rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.gallery-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.gallery-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: all var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* --- Room Breakdown --- */
.room-breakdown {
  margin-bottom: 3rem;
}

.room-breakdown h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.room-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.room-row:nth-of-type(even) {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.room-name {
  font-weight: 600;
  color: var(--color-text);
  min-width: 160px;
  flex-shrink: 0;
}

.room-dimensions {
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
}

.room-description {
  color: var(--color-text-light);
  flex: 1;
}

@media (max-width: 600px) {
  .room-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .room-name {
    min-width: unset;
  }

  .room-dimensions {
    min-width: unset;
  }
}

/* --- Property Details --- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.details-description p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.details-specs h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.specs-list li strong {
  color: var(--color-text);
}

.specs-list li span {
  color: var(--color-text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* --- Location --- */
.map-container {
  margin-bottom: 3rem;
  text-align: center;
}

.map-container iframe {
  width: 100%;
  box-shadow: var(--shadow);
}

.map-link {
  margin-top: 1rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.location-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.location-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.location-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.location-card ul {
  list-style: none;
}

.location-card li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding-left: 1rem;
}

.location-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* --- Park List (compact) --- */
.park-list {
  column-gap: 0.75rem;
}

.park-list li {
  font-size: 0.8rem !important;
  padding: 0.2rem 0 0.2rem 0.85rem !important;
  break-inside: avoid;
}

.park-list li::before {
  width: 4px !important;
  height: 4px !important;
}

.park-list a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.park-list a:hover {
  text-decoration: underline;
}

.park-list li {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.park-rating {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

.park-rating small {
  font-weight: 400;
  opacity: 0.6;
}

/* --- Park Carousel (inside location card) --- */
.park-carousel {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 10;
}

.park-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.park-carousel-slide {
  min-width: 100%;
  position: relative;
}

.park-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.park-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.park-carousel-dots {
  position: absolute;
  bottom: 0.5rem;
  right: 0.6rem;
  display: flex;
  gap: 5px;
}

.park-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.park-carousel-dot.active {
  background: #fff;
}

.park-carousel-slide {
  cursor: pointer;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbFadeIn 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
}

.price-context {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.05rem;
}

.price-context strong {
  color: var(--color-accent-light);
}

/* --- Mortgage Calculator --- */
.calculator-card {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .calculator-card {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-inputs {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calc-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.calc-field-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.calc-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}

.calc-field input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}

.calc-results {
  padding: 2rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.calc-monthly {
  text-align: center;
}

.calc-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.calc-amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent-light);
  transition: color 0.2s;
}

.calc-daily {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.calc-repay-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}

.calc-repay-principal {
  background: var(--color-accent-light);
  border-radius: 3px 0 0 3px;
  transition: width 0.3s ease;
}

.calc-repay-interest {
  background: rgba(255,255,255,0.25);
  border-radius: 0 3px 3px 0;
  transition: width 0.3s ease;
  flex: 1;
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.calc-breakdown-row span {
  opacity: 0.7;
}

.calc-breakdown-row strong {
  font-weight: 700;
}

.calc-disclaimer {
  font-size: 0.7rem;
  opacity: 0.4;
  font-style: italic;
  margin-top: auto;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--color-bg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-item summary:hover {
  background: var(--color-bg-alt);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

/* --- Contact --- */
.viewing-scheduler {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .viewing-scheduler {
    grid-template-columns: 1fr 1fr;
  }
}

.viewing-picker h3,
.viewing-actions h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.picker-row {
  display: flex;
  gap: 1rem;
}

.picker-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.picker-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.picker-field select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.picker-field select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  color: var(--color-text-inverse);
  transition: all var(--transition);
  text-decoration: none;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-inverse);
}

.contact-btn span {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-btn small {
  display: block;
  opacity: 0.8;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.contact-btn svg {
  flex-shrink: 0;
}

.phone-btn {
  background: var(--color-primary);
}

.phone-btn:hover {
  background: var(--color-primary-light);
}

.whatsapp-btn {
  background: var(--color-success);
}

.whatsapp-btn:hover {
  background: var(--color-success-hover);
}

.email-btn {
  background: var(--color-text);
}

.email-btn:hover {
  background: var(--color-primary-light);
}

/* --- Share Bar --- */
.share-bar {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.share-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}

.share-toggle:hover {
  background: var(--color-primary-light);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.share-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.share-links.active {
  max-height: 300px;
  opacity: 1;
}

.share-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
}

.share-link:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary);
}

/* Mobile share bar: bottom of screen */
@media (max-width: 767px) {
  .share-bar {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    background: var(--color-bg);
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    gap: 0.75rem;
  }

  .share-toggle {
    display: none;
  }

  .share-links {
    flex-direction: row;
    max-height: none;
    opacity: 1;
    gap: 0.75rem;
  }

  body {
    padding-bottom: 70px;
  }
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-address {
  color: var(--color-text-inverse);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.footer-legal {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-bottom a {
  color: var(--color-accent-light);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Navigation --- */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.25rem;
    padding: 1rem 2rem;
  }
}

/* --- Copy link tooltip --- */
.copy-tooltip {
  position: absolute;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {

  0%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}


/* --- Floor Plans --- */
.floor-plans {
  margin-bottom: 3rem;
}

.floor-plans h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .floorplan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.floorplan-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
}

.floorplan-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  padding: 0.75rem;
  background: white;
}

.floorplan-placeholder-item {
  aspect-ratio: 4/3;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg));
  border: 2px dashed var(--color-border);
  cursor: default;
}

.floorplan-placeholder-icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  opacity: 0.25;
}

.floorplan-label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.floorplan-placeholder-item .floorplan-label {
  padding: 0;
  border-top: none;
}

.floorplan-hint {
  font-size: 0.7rem;
  color: var(--color-text-light);
  opacity: 0.6;
}

/* --- Open House Slots --- */
.open-house-heading {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.open-house-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.open-house-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.open-house-slot:hover {
  background: var(--color-primary-light);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.open-house-slot svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.slot-date {
  font-weight: 600;
  flex: 1;
}

.slot-time {
  opacity: 0.8;
  white-space: nowrap;
  font-size: 0.875rem;
}

.open-house-or {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Floating WhatsApp Button --- */
.float-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--color-success);
  color: var(--color-text-inverse);
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.float-whatsapp.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-whatsapp:hover {
  color: var(--color-text-inverse);
  background: var(--color-success-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 767px) {
  .float-whatsapp {
    bottom: 80px;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .float-whatsapp.visible {
    transform: translateY(0);
  }

  .float-whatsapp:hover {
    transform: translateY(-2px);
  }
}

/* --- Config Missing Highlight ---
   Elements with .config-missing get an orange dashed border
   and a label showing what needs to be filled in.
   This is only visible during development / before launch. */
.config-missing {
  position: relative;
  border: 2px dashed #e67e22 !important;
  border-radius: var(--radius-sm);
  padding: 1rem !important;
  background: rgba(230, 126, 34, 0.05) !important;
  min-height: 60px;
}

.config-missing::before {
  content: attr(data-config-label);
  position: absolute;
  top: -10px;
  left: 12px;
  background: #e67e22;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
  white-space: nowrap;
}