/* ============================================================
   DAMIAN CLARKE — REAL ESTATE WEBSITE
   styles.css — Shared stylesheet for all pages
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:        #1B3A6B;
  --navy-dark:   #122850;
  --blue:        #2E6DB4;
  --blue-light:  #4A8FD4;
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;
  --text:        #1C1C1C;
  --subtext:     #6B7280;
  --border:      #E4E8EF;
  --shadow:      0 4px 24px rgba(27, 58, 107, 0.09);
  --shadow-lg:   0 10px 48px rgba(27, 58, 107, 0.16);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  all 0.25s ease;
  --max-width:   1160px;
  --font-heading:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', 'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--subtext);
  max-width: 600px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(27,58,107,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--subtext);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 8px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1580060839134-75a5edca2e99?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 40, 80, 0.88) 0%,
    rgba(27, 58, 107, 0.75) 50%,
    rgba(27, 58, 107, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg { opacity: 0.6; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-image-badge strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

.about-image-badge span {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 4px;
  display: block;
}

.about-content .section-subtitle {
  margin-bottom: 28px;
}

.about-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.area-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

.about-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 100px 0;
  background: var(--off-white);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card p {
  color: var(--subtext);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* ============================================================
   LISTINGS SECTION (homepage)
   ============================================================ */
.listings-section {
  padding: 100px 0;
  background: var(--white);
}

.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.listing-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--off-white);
}

.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.listing-card:hover .listing-card-image img {
  transform: scale(1.05);
}

.listing-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EBF0F8 0%, #DAE3F0 100%);
  color: var(--subtext);
  font-size: 2.5rem;
}

.listing-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-for-sale    { background: #DCFCE7; color: #166534; }
.status-under-offer { background: #FEF9C3; color: #854D0E; }
.status-sold        { background: #F1F5F9; color: #475569; }

.listing-card-body {
  padding: 22px 24px 26px;
}

.listing-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.listing-address {
  font-size: 0.9rem;
  color: var(--subtext);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.listing-features {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.listing-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--subtext);
  font-weight: 500;
}

.listing-feature svg { color: var(--blue); flex-shrink: 0; }

.listings-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--subtext);
}

.listings-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--subtext);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 40px;
  font-size: 300px;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

.testimonials .section-label { color: rgba(255,255,255,0.6); }
.testimonials .section-title { color: var(--white); }

.testimonials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 24px;
  flex-wrap: wrap;
}

.testimonial-controls {
  display: flex;
  gap: 10px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.testimonial-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.testimonials-track-wrap {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.09);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
  color: #FBBF24;
}

.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.testimonials-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   NEWSLETTER (MailerLite)
   ============================================================ */
.newsletter {
  padding: 100px 0;
  background: var(--off-white);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.newsletter-content .section-subtitle {
  margin-bottom: 0;
}

.newsletter-bullets {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--subtext);
}

.newsletter-bullet-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.newsletter-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Override MailerLite styles to match site design */
.newsletter-form-wrap #mlb2-26238439.ml-form-embedContainer .ml-form-embedWrapper {
  background-color: transparent !important;
  width: 100% !important;
}

.newsletter-form-wrap #mlb2-26238439.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
  max-width: 100% !important;
}

.newsletter-form-wrap #mlb2-26238439.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody {
  padding: 0 !important;
}

.newsletter-form-wrap #mlb2-26238439.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent h4 {
  display: none;
}

.newsletter-form-wrap #mlb2-26238439.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
  background-color: var(--navy) !important;
  border-radius: var(--radius) !important;
}

.newsletter-form-wrap #mlb2-26238439.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
  background-color: var(--blue) !important;
}

.newsletter-form-wrap #mlb2-26238439.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
  border-radius: var(--radius) !important;
  border-color: var(--border) !important;
  font-family: var(--font-body) !important;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtext);
  margin-bottom: 4px;
}

.contact-item-value {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.contact-item-value a {
  color: var(--navy);
  transition: var(--transition);
}
.contact-item-value a:hover { color: var(--blue); }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #B0B8C6; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: #166534;
  background: #DCFCE7;
  border-radius: var(--radius);
  font-weight: 500;
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: 0.4; }

/* ============================================================
   LISTINGS PAGE
   ============================================================ */
.listings-page {
  padding: 60px 0 100px;
}

.listings-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--subtext);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.listings-count {
  font-size: 0.9rem;
  color: var(--subtext);
  margin-bottom: 28px;
}

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */
.listing-detail {
  padding: 60px 0 100px;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  height: 440px;
  background: var(--off-white);
  cursor: pointer;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-main:hover img { transform: scale(1.02); }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--off-white); }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.gallery-thumb {
  flex: 0 0 90px;
  height: 68px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--blue);
}

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

.gallery-no-photos-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EBF0F8, #DAE3F0);
  font-size: 3rem;
  color: var(--subtext);
}

/* Detail info */
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.detail-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtext);
  font-size: 1rem;
  margin-bottom: 28px;
}

.detail-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.detail-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
}

.detail-feature-info strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.detail-feature-info span {
  font-size: 0.78rem;
  color: var(--subtext);
}

.detail-description h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.detail-description p {
  color: var(--subtext);
  line-height: 1.8;
  white-space: pre-line;
}

/* Enquiry sidebar */
.enquiry-sidebar {
  position: sticky;
  top: 90px;
}

.enquiry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.enquiry-card-header {
  background: var(--navy);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.enquiry-agent-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}

.enquiry-agent-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.enquiry-agent-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.enquiry-card-body {
  padding: 24px;
}

.enquiry-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.enquiry-card-body .btn { width: 100%; justify-content: center; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body {
  background: #F0F2F7;
  min-height: 100vh;
}

/* Login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.admin-login-card img {
  height: 40px;
  margin: 0 auto 28px;
}

.admin-login-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 6px;
}

.admin-login-card p {
  text-align: center;
  color: var(--subtext);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.admin-login-card .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
}

.admin-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}

/* Admin Dashboard */
.admin-dashboard { display: none; }

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-topbar-left img {
  height: 32px;
}

.admin-topbar-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-user-label {
  font-size: 0.85rem;
  color: var(--subtext);
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--subtext);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-logout:hover {
  border-color: #EF4444;
  color: #EF4444;
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-page-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--navy);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
}

.admin-stat-value {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Listings table */
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtext);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: #FAFBFD; }

.admin-table-thumb {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--off-white);
}

.admin-table-thumb-placeholder {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  font-size: 1.2rem;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-admin-action {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.btn-edit {
  background: #EBF4FF;
  color: var(--blue);
  border-color: #BFD9F5;
}
.btn-edit:hover { background: var(--blue); color: white; }

.btn-delete {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}
.btn-delete:hover { background: #DC2626; color: white; }

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--subtext);
}

.admin-empty p { margin-top: 8px; font-size: 0.9rem; }

/* Admin Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--off-white);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--subtext);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--border); }

.modal-body {
  padding: 28px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-form .form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Photo upload */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
}

.photo-upload-area:hover,
.photo-upload-area.dragover {
  border-color: var(--blue);
  background: #EBF4FF;
}

.photo-upload-area p {
  color: var(--subtext);
  font-size: 0.88rem;
  margin-top: 8px;
}

.photo-upload-area strong {
  color: var(--blue);
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
}

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

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.photo-preview-remove:hover { background: #DC2626; }

.upload-progress {
  margin-top: 14px;
}

.upload-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.upload-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0;
}

.upload-status {
  font-size: 0.82rem;
  color: var(--subtext);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { gap: 48px; }
  .newsletter-inner { gap: 48px; }
  .contact-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .listing-detail-grid { grid-template-columns: 1fr 340px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.mobile-open + .nav-cta.mobile-open {
    display: block;
    margin: 0 24px 20px;
  }

  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap img { max-width: 100%; }
  .about-image-badge { right: 0; }

  .services-grid { grid-template-columns: 1fr; }

  .listings-grid { grid-template-columns: 1fr; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .testimonial-card { flex: 0 0 calc(100% - 0px); }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .listing-detail-grid { grid-template-columns: 1fr; }
  .enquiry-sidebar { position: static; }

  .form-row { grid-template-columns: 1fr; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar { padding: 0 16px; }
  .admin-main { padding: 24px 16px; }
  .admin-form .form-row { grid-template-columns: 1fr; }
  .admin-form .form-row-3 { grid-template-columns: 1fr; }
  .photo-previews { grid-template-columns: repeat(3, 1fr); }

  .modal { margin: 0; border-radius: 0; min-height: 100vh; }
  .modal-overlay { padding: 0; }
}

@media (max-width: 480px) {
  .hero { background-attachment: scroll; }
  .listings-header { flex-direction: column; align-items: flex-start; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .photo-previews { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
  color: #fff;
}
.wa-float i { font-size: 1.25rem; }

@media (max-width: 600px) {
  .wa-float {
    bottom: 18px;
    right: 18px;
    padding: 13px 14px;
    border-radius: 50%;
    font-size: 0;   /* hide label on mobile — icon only */
    gap: 0;
  }
  .wa-float i { font-size: 1.5rem; }
}
