﻿/* ============================
   GLOBAL + VARIABLES
============================ */
:root {
  --primary: #0a1a2f;
  --primary-light: #11243d;
  --gold: #d4af37;
  --accent-yellow: #f4c542;
  --light: #f5f5f5;
  --text: #222;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.4px;
}

a { text-decoration: none; }

/* ============================
   HEADER + NAV
============================ */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5000;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.logo span { color: var(--gold); }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

/* ============================
   SLIDER
============================ */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.slider {
  display: flex;
  height: 60vh;
  position: relative;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

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

.slide.active { opacity: 1; }

.hero-overlay-small {
  position: absolute;
  left: 5%;
  bottom: 8%;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 26, 47, 0.6);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  transition: background 0.3s ease;
}

.slider-arrow:hover { background: rgba(10, 26, 47, 0.9); }
.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }

/* ============================
   THUMBNAILS
============================ */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}

.thumbnail {
  width: 80px;
  height: 55px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

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

.thumbnail.active {
  opacity: 1;
  border-color: var(--gold);
}

/* ============================
   SECTIONS
============================ */
.section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  opacity: 0;
  transition: all 0.8s ease;
}

.section.visible {
  opacity: 1;
}

.section-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 2rem 2.2rem;
}

.section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0.5rem auto 2rem;
  border-radius: 2px;
}

/* ============================
   OVERVIEW
============================ */
.overview-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.2rem;
}

.overview-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.overview-stats.visible {
  opacity: 1;
  transform: translateY(0);
}

.overview-pill {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.overview-text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.overview-bullets {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.overview-bullets li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: #333;
}

/* ============================
   FEATURES
============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 1.4rem 1.5rem;
  border-top: 3px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.feature-text {
  font-size: 0.95rem;
  color: #555;
}

/* ============================
   GALLERY
============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-item {
  background: #fff;
  border-radius: 10px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* ============================
   LIGHTBOX
============================ */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  color: var(--gold);
}

/* ============================
   MAP
============================ */
.map-section { padding: 60px 0; }

.map-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #0a1124;
  margin-bottom: 8px;
}

#propertyMap {
  width: 100%;
  height: 620px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.4);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  margin-top: 20px;
}

.map-toggle {
  text-align: center;
  margin-bottom: 12px;
}

.map-btn {
  background: #0a1124;
  color: #ffffff;
  border: 1px solid rgba(212,175,55,0.7);
  padding: 8px 18px;
  margin: 0 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.map-btn:hover { background: #0d152e; }

/* ============================
   CONTACT SECTION
============================ */
.contact-section {
  padding: 80px 0;
  text-align: center;
}

.contact-title {
  font-size: 42px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.gold-divider {
  width: 120px;
  height: 3px;
  background: #c9a44c;
  margin: 0 auto 50px auto;
}

.contact-container {
  width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}

.contact-left {
  width: 45%;
  text-align: left;
}

.contact-photo {
  width: 100%;
  max-width: 420px;
  height: 380px;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 25px;
  border: 3px solid #c9a44c;
}

.agent-info {
  font-size: 18px;
  line-height: 1.6;
}

.agent-name {
  font-size: 28px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 5px;
}

.agent-title {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.agent-detail {
  margin: 5px 0;
}

.mini-divider {
  width: 80px;
  height: 2px;
  background: #c9a44c;
  margin: 20px 0;
}

.agent-message {
  font-size: 17px;
  color: #444;
}

.contact-right {
  width: 45%;
  text-align: left;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form textarea {
  height: 140px;
}

.contact-btn {
  background: #c9a44c;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-btn:hover {
  background: #b08e3f;
}

/* ============================
   THANK YOU POPUP
============================ */
.thankyou-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.thankyou-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 350px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.thankyou-content h2 {
  margin-bottom: 10px;
  color: #0a1124;
}

.thankyou-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #c9a44c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ============================
   FOOTER
============================ */
.footer {
  background-color: #0a1124;
  text-align: center;
  padding: 40px 0;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.social-icons a {
  color: #d4af37;
  font-size: 28px;
  margin: 0 18px;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  color: #e0c36c;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: #d4af37;
  width: 80%;
  margin: 24px auto;
}

.footer-text {
  font-size: 14px;
  color: #cccccc;
  margin: 10px 0 4px;
}

.footer-subtext {
  font-size: 13px;
  color: #cccccc;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* ============================
   FLOATING BUTTON + MODAL
============================ */
.floating-schedule-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0a1124;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 18px 40px