/* ==========================================================================
   Patrick Ogunjobi & Co. (Estate Surveyors & Valuers)
   Master Stylesheet - Full-Bleed Corporate & Mobile App Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* --- 1. CSS VARIABLES & DESIGN TOKENS --- */
:root {
  --primary: #1b5e20;
  --primary-dark: #0b290e;
  --primary-light: #2e7d32;
  --primary-subtle: #e8f5e9;
  
  --gold: #c5a059;
  --gold-dark: #a9833e;
  --gold-light: #f4ecdf;
  
  --text-main: #1f2937;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-mobile: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-app: 18px;
  --radius-pill: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 10px 30px rgba(15, 61, 20, 0.2);
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.28s ease-in-out;
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 2. FULL-BLEED ARCHITECTURE & RESETS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body, button, input, select, textarea {
  font-family: 'Montserrat', sans-serif;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-align: justify;
  text-justify: inter-word;
}

/* Global Text Justification Across All Pages */
p,
li,
blockquote,
dd,
dt,
article,
section p,
main p,
div p,
.section-desc,
.hero-slide-subtitle,
.service-text,
.blog-excerpt,
.footer-about-text,
.modal-description-text,
.testimonial-quote,
.property-details,
.property-description {
  text-align: justify;
  text-justify: inter-word;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: transparent;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

/* --- 3. INNER 900PX ALIGNMENT CONTAINER --- */
.container {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Full-bleed Section Base */
.section {
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.section-white {
  background-color: #ffffff;
}

.section-tight {
  width: 100%;
  padding-top: 36px;
  padding-bottom: 36px;
}

.section-header {
  margin-bottom: 36px;
  text-align: center;
}

.section-header.text-left {
  text-align: left;
}

.section-tagline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-tagline.gold {
  color: var(--gold-dark);
}

.section-title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

.section-header.text-left .section-desc {
  margin-left: 0;
  margin-right: 0;
}

/* Responsive Grids (inside 900px container) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- 4. BUTTONS & UI INTERACTION --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(27, 94, 32, 0.35);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.84rem;
  border-radius: var(--radius-xs);
}

.btn-block {
  width: 100%;
}

/* --- 5. BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
}

.badge-for-sale {
  background-color: #dc2626;
  color: #ffffff;
}

.badge-verified {
  background-color: var(--primary);
  color: #ffffff;
}

.badge-featured {
  background-color: var(--gold);
  color: #ffffff;
}

.badge-sold-out {
  background-color: #374151;
  color: #f3f4f6;
  letter-spacing: 0.8px;
}

.property-card.sold-out .card-media-wrap img {
  filter: grayscale(40%);
}

.property-card.sold-out .card-price {
  color: #6b7280;
}

.btn-disabled {
  background-color: #e5e7eb !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* --- 6. PROPERTY CARDS & HOVER EFFECTS --- */
.property-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-app);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #111827;
}

/* Card Image Carousel Slider */
.card-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out;
}

.card-slide.active {
  opacity: 1;
  visibility: visible;
}

.card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease-out;
}

.property-card:hover .card-slide.active img {
  transform: scale(1.05);
}

/* Card Slider Next/Prev Arrows */
.card-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  color: var(--primary-dark);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0.75;
}

.card-media-wrap:hover .card-slider-nav-btn {
  opacity: 1;
}

.card-slider-nav-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-slider-prev {
  left: 8px;
}

.card-slider-next {
  right: 8px;
}

/* Card Slider Indicator Dots */
.card-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.card-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.card-slider-dot.active {
  background: var(--gold);
  width: 16px;
  border-radius: 8px;
}

.card-badge-cluster {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 12;
  pointer-events: none;
}

.card-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  z-index: 12;
}

.card-favorite-btn:hover,
.card-favorite-btn.favorited {
  color: #e11d48;
  background: #ffffff;
  transform: scale(1.1);
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-location svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--gold-dark);
}

.card-specs-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-spec-item svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* --- 7. CORPORATE SERVICE & FEATURE CARDS --- */
.service-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-app);
  padding: 26px 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 94, 32, 0.2);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--transition-bounce);
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.1) rotate(4deg);
  background-color: var(--primary);
  color: #ffffff;
}

.service-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.service-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
  text-align: justify;
  text-justify: inter-word;
}

.service-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--gold-dark);
  gap: 10px;
}

/* --- 8. TEAM MEMBER CARDS & RESPONSIVE GRID --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991px) and (min-width: 641px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.team-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: #f1f5f9;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.05);
}

.team-details {
  padding: 18px 16px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.team-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.team-credentials {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- 9. BLOG POST CARDS --- */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.blog-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.05);
}

.blog-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin-bottom: 8px;
}

.blog-category-badge {
  white-space: nowrap;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-block;
  line-height: 1.2;
}

.blog-meta .blog-date {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.blog-title {
  font-size: 18px;
  font-weight: 700;
  min-height: 52px;
  margin: 12px 0 8px;
  line-height: 1.3;
  color: var(--primary-dark);
}

.blog-excerpt {
  font-size: 13px;
  color: #4b5563;
  flex-grow: 1;
  margin-bottom: 16px;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.blog-card-action {
  margin-top: auto;
  width: 100%;
}

.blog-card-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* --- 10. SEARCH BAR WIDGET --- */
.search-box-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.search-form-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 14px;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

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

/* --- 11. DYNAMIC FULL-WIDTH HERO SLIDER --- */
.hero-slider-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
  color: #ffffff;
}

.hero-slider-container {
  width: 100%;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 41, 14, 0.94) 0%, rgba(27, 94, 32, 0.82) 100%);
  z-index: 1;
}

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

.hero-slide-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-slide-title .gold-text {
  color: var(--gold);
}

.hero-slide-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-word;
}

.hero-slide-price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-slide-price-tag .price-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.hero-slide-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Slider Controls & Dots */
.hero-slider-nav {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 32px;
  border-radius: 99px;
  background-color: var(--gold);
}

.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-arrow-btn:hover {
  background: rgba(27, 94, 32, 0.8);
  border-color: var(--gold);
}

.slider-arrow-btn.prev {
  left: 20px;
}

.slider-arrow-btn.next {
  right: 20px;
}

/* Page Inner Header (about, services, contact) */
.page-inner-header {
  width: 100%;
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 48px 0;
  position: relative;
  background-image: linear-gradient(rgba(11, 41, 14, 0.92), rgba(11, 41, 14, 0.92)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-inner-title {
  font-size: 2.1rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-nav a:hover {
  color: var(--gold);
}

/* --- 12. DESKTOP HEADER (FULL-BLEED OUTER, 900PX INNER) --- */
.desktop-header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.desktop-header-topbar {
  width: 100%;
  background-color: var(--primary-dark);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.topbar-item svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.topbar-credentials {
  color: var(--gold-light);
  font-weight: 500;
}

.desktop-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.desktop-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(27, 94, 32, 0.3);
}

.desktop-brand-titles {
  display: flex;
  flex-direction: column;
}

.desktop-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.2px;
  line-height: 1.15;
  white-space: nowrap;
}

.desktop-brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation Menu - Strict Single Horizontal Line */
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.desktop-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 99px;
  transition: width var(--transition-normal);
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
  color: var(--primary);
}

.desktop-nav-link:hover::after,
.desktop-nav-link.active::after {
  width: 100%;
}

.desktop-header-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* --- 13. CLEAN 3-COLUMN CORPORATE FOOTER (>= 768px) --- */
.desktop-footer {
  width: 100%;
  background-color: #0b290e;
  color: #e2e8f0;
  padding-top: 48px;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-title {
  font-weight: 800;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.footer-brand-tagline {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.footer-about-text {
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--gold);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.45;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gold);
  margin-top: 2px;
}

.footer-bottom-bar {
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-copyright {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   MOBILE ARCHITECTURE: @media (max-width: 767.98px)
   ========================================================================== */
@media (max-width: 767.98px) {
  body {
    background-color: var(--bg-mobile);
    padding-bottom: 90px !important; /* Clearance for floating bottom dock */
  }

  main {
    padding-bottom: 24px;
  }

  /* Hide Desktop Header and Desktop Footer */
  .desktop-header,
  .desktop-nav,
  .desktop-footer {
    display: none !important;
  }

  /* Mobile App-like Top Bar */
  .mobile-top-bar {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .mobile-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(27, 94, 32, 0.3);
  }

  .mobile-brand-titles {
    display: flex;
    flex-direction: column;
  }

  .mobile-brand-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
  }

  .mobile-brand-sub {
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--gold-dark);
  }

  .mobile-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-action-btn:active {
    background-color: #e2e8f0;
  }

  .mobile-search-pill-container {
    padding: 12px 16px 4px;
    width: 100%;
  }

  .mobile-search-pill {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
  }

  .mobile-search-pill svg {
    color: var(--primary);
    width: 18px;
    height: 18px;
  }

  /* Floating Bottom Navigation Bar */
  .floating-bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 8px;
    box-sizing: border-box;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 8px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
    flex: 1;
    text-align: center;
  }

  .bottom-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    transition: all var(--transition-fast);
  }

  .bottom-nav-item.active {
    color: #1b5e20;
    background-color: #e8f5e9;
    font-weight: 700;
  }

  .bottom-nav-item.active svg {
    transform: scale(1.1);
    stroke: #1b5e20;
  }

  /* Mobile Grids & Slider Adjustments */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  /* Hero Section Mobile Typography & Overflow Fix */
  .hero-slide-content,
  .hero-content {
    padding: 80px 16px 40px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-title,
  .hero-slide-title {
    font-size: 1.8rem;
    line-height: 1.1;
    word-break: break-word;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .hero-slide-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: justify;
    text-justify: inter-word;
  }

  .hero-slide-price-tag {
    font-size: 1.35rem;
    margin-bottom: 18px;
  }

  .hero-slide-actions {
    gap: 10px;
  }

  .hero-slide-actions .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .hero-slider-container {
    min-height: 480px;
  }

  .slider-arrow-btn {
    display: none; /* Hide arrow buttons on touch mobile, use dots */
  }

  .hero-slider-nav {
    bottom: 12px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 2px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

 

/* ==========================================================================
   DESKTOP ARCHITECTURE: @media (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .floating-bottom-nav,
  .mobile-top-bar,
  .mobile-search-pill-container {
    display: none !important;
  }
}

/* --- 14. MODAL SHEET DRAWER --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 36px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1060;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.bottom-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background-color: #cbd5e1;
  border-radius: 99px;
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sheet-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.sheet-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-gold { color: var(--gold-dark); }
.text-primary { color: var(--primary); }
.bg-white { background-color: #ffffff; }
.bg-light { background-color: var(--bg-light); }

/* --- 14. TESTIMONIALS CAROUSEL --- */
.testimonial-carousel-wrap {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

.testimonial-slider {
  position: relative;
  min-height: 220px;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-app);
  padding: 34px 30px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote-icon {
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.testimonial-quote {
  font-size: 1.12rem;
  font-weight: 500;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.7;
  margin: 0 0 22px;
  text-align: justify;
  text-justify: inter-word;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.25);
}

.testimonial-author-meta {
  text-align: left;
}

.testimonial-author-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.testimonial-author-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.testimonial-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.testimonial-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  width: 24px;
  border-radius: 99px;
  background-color: var(--gold);
}

/* ==========================================================================
   14. PROPERTY DETAILS MODAL POPUP (Lightbox & Carousel)
   ========================================================================== */
.property-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.property-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.property-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.property-modal-backdrop.active .property-modal-card {
  transform: translateY(0) scale(1);
}

.property-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all var(--transition-fast);
}

.property-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.08);
}

/* Modal Body Content (Text-Only) */
.modal-body {
  padding: 32px 28px 28px;
}

.modal-header-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-top: 4px;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-location-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.modal-location-text svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* Modal Specifications Grid */
.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.modal-spec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}

.modal-spec-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.modal-spec-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Modal Description */
.modal-description-wrap {
  margin-bottom: 24px;
}

.modal-section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-description-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

/* Modal Action CTA Buttons */
.modal-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #22c55e;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.modal-btn-whatsapp:hover {
  background: #1eb857;
  color: #ffffff;
  transform: translateY(-1px);
}

.modal-btn-call {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.modal-btn-call:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .modal-body {
    padding: 24px 18px 20px;
  }
  .modal-actions-grid {
    grid-template-columns: 1fr;
  }
  .modal-price {
    font-size: 1.35rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
}

