/* Design System - The Thinking Traveller Style */
:root {
  --color-terracotta: #C86D51;
  --color-olive-dark: #3B4836;
  --color-sand: #EFECE6;
  --color-offwhite: #FAFAF8;
  --color-anthracite: #1C1C1C;
  --color-border: #E5E0D8;
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.03);
  --shadow-hover: 0 15px 50px rgba(0,0,0,0.08);
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-anthracite);
  background-color: var(--color-offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

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

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

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section {
  padding: 8rem 0;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 2rem 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--transition);
}

.navbar.scrolled {
  position: fixed;
  background-color: rgba(250, 250, 248, 0.98);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.navbar.scrolled .logo {
  color: var(--color-anthracite);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0.9;
}

.navbar.scrolled .nav-links a {
  color: var(--color-anthracite);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switch {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.navbar.scrolled .lang-switch {
  color: rgba(28, 28, 28, 0.4);
}
.lang-switch .active {
  color: #fff;
}
.navbar.scrolled .lang-switch .active {
  color: var(--color-anthracite);
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-whatsapp {
  background-color: var(--color-terracotta);
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: #b05e44;
}

.btn-booking {
  background-color: transparent;
  border-color: var(--color-olive-dark);
  color: var(--color-olive-dark);
}
.btn-booking:hover {
  background-color: var(--color-olive-dark);
  color: #fff;
}

.hero-header {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 140px; /* Offset for absolute header to center content visually */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
}
.hero-content h1, .hero-content p {
  text-align: center;
}
.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  font-style: italic;
  text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-outline-white {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--color-anthracite);
}

/* Split-Screen Layout (Catalogue) */
.split-screen {
  display: flex;
  height: 100vh; /* Sticky full height viewport */
}

.split-left {
  width: 55%;
  height: 100%;
  overflow-y: auto;
  padding: 6rem 4rem;
  background-color: var(--color-offwhite);
  /* Hide scrollbar */
  scrollbar-width: none;
}
.split-left::-webkit-scrollbar { display: none; }

.split-right {
  width: 45%;
  height: 100%;
  position: sticky;
  top: 0;
}

#leaflet-map {
  width: 100%;
  height: 100%;
}

/* Filter Bar inside split-left */
.filters {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.5rem;
}

.filter-group select {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-anthracite);
  outline: none;
  cursor: pointer;
}

/* Property Cards */
.property-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.property-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.property-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
}

.badge-exclusif {
  background-color: var(--color-terracotta);
  color: #fff;
}

.badge-cure {
  background-color: var(--color-sand);
  color: var(--color-anthracite);
}

.property-info {
  display: flex;
  flex-direction: column;
}

.property-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.property-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

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

.property-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

/* Collections Grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.collection-card {
  text-align: center;
  cursor: pointer;
}

.collection-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.collection-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.collection-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.collection-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Trust Box */
.trust-section {
  background-color: var(--color-sand);
  padding: 8rem 0;
}

.trust-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.trust-text h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.trust-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.carousel {
  background: #fff;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.carousel blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.carousel cite {
  font-style: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

/* Footer */
.footer {
  background-color: var(--color-olive-dark);
  color: var(--color-sand);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(140px, 1fr));
  align-items: start;
  column-gap: 3rem;
  row-gap: 2rem;
  margin-bottom: 6rem;
}

.footer-col {
  min-width: 0;
}

.footer-col a,
.footer-col p,
.footer-col h4 {
  overflow-wrap: break-word;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  display: block;
  margin-bottom: 1.5rem;
}

.footer-grid h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: rgba(239, 236, 230, 0.6);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 1rem;
}

.footer-grid ul a {
  font-size: 0.9rem;
}

.footer-grid ul a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  border-top: 1px solid rgba(239, 236, 230, 0.1);
  padding-top: 2rem;
}

/* Leaflet Overrides */
.custom-marker {
  background-color: var(--color-terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, background-color 0.3s;
}

.custom-marker.type-b {
  background-color: var(--color-olive-dark);
}

.custom-marker.active {
  transform: scale(1.1);
  background-color: var(--color-anthracite);
  z-index: 1000 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .split-screen {
    flex-direction: column;
    height: auto;
  }
  .split-left {
    width: 100%;
    padding: 4rem 2rem;
  }
  .split-right {
    display: none; /* Hide map on mobile by default */
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 999;
  }
  .split-right.active {
    display: block;
  }
  .container {
    padding: 0 2rem;
  }
  .trust-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

}

/* Luxury Header (The Thinking Traveller Style) */
.luxury-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  border: none !important;
}

.luxury-header a {
  text-decoration: none;
  color: #ffffff;
}

/* Level 1: Header Top (Utility Bar) */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  border: none !important;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  flex: 1;
}

/* Light Theme Override */
.luxury-header.light-theme a {
  color: var(--color-anthracite, #1C1C1C);
}

.luxury-header.light-theme .logo-title {
  color: var(--color-anthracite, #1C1C1C);
}

.luxury-header.light-theme .logo-subtitle {
  color: rgba(28, 28, 28, 0.7);
}

.luxury-header.light-theme .header-top {
  border-bottom: none;
}

.luxury-header.light-theme .header-request:hover {
  opacity: 0.9 !important;
}

.luxury-header.light-theme .account-dropdown-btn {
  color: var(--color-anthracite, #1C1C1C);
}

.luxury-header.light-theme .header-lang {
  color: rgba(28, 28, 28, 0.4);
}

.luxury-header.light-theme .header-lang a {
  color: inherit;
}

.luxury-header.light-theme .header-lang .active {
  color: var(--color-anthracite, #1C1C1C);
}

.luxury-header.light-theme .status-text {
  color: var(--color-anthracite, #1C1C1C);
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
  gap: 24px;
}

.header-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-lang .lang-separator {
  opacity: 0.5;
  font-size: 0.7rem;
}

.header-left a, .header-right a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.header-left a:hover, .header-right a:hover {
  opacity: 0.7;
}

/* Contact Widget */
.header-contact-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.header-contact-widget a {
  transition: opacity 0.3s ease;
}
.header-contact-widget:hover a {
  opacity: 0.6;
}
.header-contact-widget .header-status {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 300;
}

/* Status Dot */
.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #999;
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
.status-dot.open {
  background-color: #28a745;
}
.status-dot.closed {
  background-color: #dc3545;
}

/* Request Button */
.header-request {
  background: var(--color-olive-dark);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
}
.header-request:hover {
  background: var(--color-anthracite);
  opacity: 1 !important;
}

/* Logo Center */
.header-center {
  text-align: center;
}
.luxury-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.logo-subtitle {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Lang Selector */
.lang-selector {
  color: rgba(255, 255, 255, 0.6);
}
.lang-active {
  color: #ffffff;
  font-weight: 500;
}

/* Level 2: Header Bottom (Main Nav) */
.header-bottom {
  padding: 1.2rem 0;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
  opacity: 0.8;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--color-terracotta);
  transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  opacity: 1;
  transform: translateY(-2px);
  text-shadow: 0 0 1px currentColor;
}

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

@media (max-width: 1024px) {
  .header-top {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
  }
}

/* Journal (Carnet de Voyage) Styles */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.journal-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
}

.journal-img-wrapper {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/5;
  background-color: #eee;
}

.journal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.journal-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-olive-dark);
}

.journal-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--color-anthracite);
}

.journal-desc {
  color: #555;
  line-height: 1.6;
}

/* Vision Styles */
.vision-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 12rem 1rem 6rem 1rem;
}
.vision-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}
.vision-hero p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.8;
}
.vision-image-full {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  margin: 4rem 0;
}
.vision-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Editorial Hero (Experiences, Horizons, Journal) */
.editorial-hero {
  height: 80vh;
  background-image: url('../images/hero.jpg');
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
.editorial-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}
.editorial-hero h1, .editorial-hero p {
  position: relative;
  z-index: 1;
  color: #fff;
}
.editorial-hero h1 {
  font-size: 5rem;
  max-width: 1000px;
  font-style: italic;
  font-family: var(--font-title);
}

/* Experience Block */
.experience-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 10rem;
}
.experience-block:nth-child(even) {
  direction: rtl;
}
.experience-block:nth-child(even) .experience-content {
  direction: ltr;
}
.experience-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.experience-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}
.experience-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .experience-block, .experience-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 3rem;
    margin-bottom: 6rem;
  }
}

/* =========================================
   SEARCH MODAL OVERLAY
   ========================================= */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2rem;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  margin: 0 1rem;
}

.search-modal-overlay.active .search-modal {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.search-icon-modal {
  color: #757575;
  margin-right: 1rem;
}

.search-input-modal {
  flex-grow: 1;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-anthracite);
  outline: none;
  background: transparent;
}

.search-input-modal::placeholder {
  color: #9e9e9e;
}

.search-close-btn {
  background: none;
  border: none;
  color: #757575;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.search-close-btn:hover {
  color: var(--color-anthracite);
}

.search-collections-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #757575;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.search-collections-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-collections-list li {
  margin-bottom: 1rem;
}

.search-collections-list a {
  font-family: var(--font-body);
  color: var(--color-anthracite);
  text-decoration: none;
  font-size: 1rem;
  display: block;
  transition: all 0.2s ease;
}

.search-collections-list a:hover {
  color: var(--color-terracotta);
  transform: translateX(5px);
}

/* =========================================
   FAVORITES MODAL OVERLAY (SHORTLIST)
   ========================================= */
.favorites-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.favorites-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.favorites-modal {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  margin: 0 1rem;
  display: flex;
  flex-direction: column;
}

.favorites-modal-overlay.active .favorites-modal {
  transform: translateY(0);
}

.favorites-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.favorites-modal-header h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-anthracite);
  margin: 0;
  letter-spacing: 1px;
}

.favorites-close-btn {
  background: none;
  border: none;
  color: #757575;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.favorites-close-btn:hover {
  color: var(--color-anthracite);
}

/* Empty State */
.favorites-empty-state {
  text-align: center;
  padding: 1rem 0;
}

.favorites-empty-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-anthracite);
  margin-bottom: 1rem;
}

.favorites-empty-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #757575;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.btn-favorites-action {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-anthracite);
  background: transparent;
  border: 1px solid var(--color-anthracite);
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 2px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-favorites-action:hover {
  background: var(--color-anthracite);
  color: #ffffff;
}

/* Populated State */
.favorites-list {
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
}

/* Scrollbar styling for favorites list */
.favorites-list::-webkit-scrollbar {
  width: 6px;
}
.favorites-list::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
.favorites-list::-webkit-scrollbar-thumb {
  background: #ccc; 
  border-radius: 3px;
}
.favorites-list::-webkit-scrollbar-thumb:hover {
  background: #999; 
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #E0E0E0;
}

.favorite-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.favorite-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
}

.favorite-item-details {
  flex-grow: 1;
}

.favorite-item-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-anthracite);
  margin: 0 0 0.25rem 0;
}

.favorite-item-price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #757575;
  margin: 0 0 0.5rem 0;
}

.favorite-item-remove {
  background: none;
  border: none;
  color: #757575;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}

.favorite-item-remove:hover {
  color: #EF4444;
}

/* =========================================
   QUICK SEARCH BAR (HERO)
   ========================================= */
.quick-search-wrapper {
  background-color: transparent;
  position: relative;
  z-index: 10;
  margin-top: -35px;
  padding-bottom: 3rem;
}

/* Conteneur Quick Search Bar */
.quick-search-bar {
    display: grid;
    /* 4 colonnes flexibles + 1 colonne dédiée au bouton (min 220px pour respirer) */
    grid-template-columns: 1.15fr 1.35fr 1.15fr 1fr minmax(210px, auto);
    align-items: stretch; /* Force tous les enfants et le bouton à avoir exactement la même hauteur */
    background: #FFFFFF;
    border: 1px solid #E6E1DA;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: visible; /* Rendu visible pour le dropdown Voyageurs */
}

/* Champs de saisie */
.qs-field {
    padding: 0.9rem 1.25rem;
    border-right: 1px solid #E6E1DA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: #FFFFFF;
}

.qs-field:last-of-type {
    border-right: 1px solid #E6E1DA;
}

.qs-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #757575;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.qs-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-anthracite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.qs-value select,
.qs-value input[type="text"] {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-anthracite);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Custom Select Arrow */
.qs-select-wrapper {
  position: relative;
  width: 100%;
}

.qs-select-wrapper::after {
  content: '∨';
  font-family: monospace;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-anthracite);
  pointer-events: none;
}

/* Counter / Increment Wrapper */
.qs-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qs-counter button {
  width: 32px;
  height: 32px;
  border: 1px solid #E6E1DA;
  background: #FAF8F5;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qs-counter span {
  min-width: 20px;
  text-align: center;
}

/* Bouton de Soumission / CTA */
.qs-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1C1C1C;
    color: #FFFFFF;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem; /* Taille calibrée */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px; /* Espacement équilibré */
    padding: 0 1.75rem; /* Padding horizontal généreux pour faire respirer le texte */
    white-space: nowrap; /* Empêche le retour à la ligne cassé */
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    height: 100%; /* Épouse toute la hauteur du bloc */
    margin: 0;
    border-radius: 0 4px 4px 0;
}

.qs-btn-submit:hover {
    background-color: #C06C46; /* Bascule Terracotta au hover */
    color: #FFFFFF;
}

/* Champ interactif */
.qs-field.custom-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.qs-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.925rem;
    font-weight: 500;
    color: #1C1C1C;
    margin-top: 0.25rem;
}

.qs-arrow {
    font-size: 0.75rem;
    color: #8C7B6D;
    transition: transform 0.25s ease;
}

.qs-field.custom-dropdown.open .qs-arrow {
    transform: rotate(180deg);
}

/* Style commun des Dropdown Menus */
.qs-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 260px;
    background: #FFFFFF !important;
    border: 1px solid #E6E1DA !important;
    border-radius: 4px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12) !important;
    padding: 0.5rem 0 !important;
    z-index: 9999 !important;
}

.qs-dropdown-menu.active {
    display: block !important;
    animation: qsFadeIn 0.2s ease-out;
}

/* Options de sélection (Destinations & Chambres) */
.qs-option {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    color: #444;
    transition: all 0.2s ease;
    cursor: pointer;
}

.qs-option:hover {
    background: #FAF8F5;
    color: #C06C46;
    padding-left: 1.5rem;
}

.qs-option.active {
    font-weight: 600;
    color: #C06C46;
    background: rgba(192, 108, 70, 0.08);
}

/* Menu spécifique pour les compteurs Voyageurs */
.qs-dropdown-menu.qs-dropdown-counter {
    padding: 1.25rem !important;
}

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

/* Lignes et Compteurs */
.qs-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #1C1C1C;
    font-weight: 500;
}

.qs-guest-row:last-child {
    margin-bottom: 0;
}

.qs-counter {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.qs-counter button {
    width: 32px;
    height: 32px;
    border: 1px solid #D5CECA;
    background: #FAF8F5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #1C1C1C;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qs-counter button:hover {
    background: #C06C46;
    border-color: #C06C46;
    color: #FFFFFF;
}

.qs-counter span {
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 1024px) {
  .quick-search-bar {
    flex-direction: column;
    width: 92%;
    height: auto;
    margin-top: -20px;
  }
  .qs-field {
    border-right: none;
    border-bottom: 1px solid #EFECE6;
    padding: 1rem 1.5rem;
  }
  .qs-field:last-child {
    border-bottom: none;
  }
  .qs-btn-submit {
    padding: 1.25rem 0;
    border-radius: 0 0 4px 4px;
  }
}

/* Dropdown Account Menu */
.account-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.account-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-anthracite);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.account-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1rem;
  background-color: #fff;
  border: 1px solid rgba(28, 28, 28, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.account-dropdown-wrapper:hover .account-dropdown-menu,
.account-dropdown-wrapper.active .account-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--color-anthracite);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
}
.dropdown-link:hover {
  color: var(--color-terracotta);
}
.dropdown-link svg {
  opacity: 0.5;
}
.btn-logout {
  display: block;
  width: 100%;
  background-color: var(--color-terracotta);
  color: var(--color-light);
  padding: 12px 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
  border-radius: 2px;
  border: none;
}
.btn-logout:hover {
  background-color: #B55B40;
}

/* --- MOBILE OPTIMIZATIONS (ÉTAPE 3) --- */
.mobile-menu-btn { color: inherit; display: none; }
.mobile-qs-trigger { display: none; }
.sticky-bottom-cta { display: none; }

@media (max-width: 1024px) {
  /* 1. Mobile Menu Burger */
  .mobile-menu-btn { color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1rem;
  }
  .mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--color-anthracite);
    transition: all 0.3s;
  }
  .mobile-menu-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  
  .header-bottom {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #FAF8F5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  }
  
  .header-bottom.active {
    right: 0;
  }
  
  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .main-nav li a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-anthracite);
    text-transform: none;
    letter-spacing: 0;
  }
  
  .header-top {
    padding: 1rem;
  }
  
  .header-left .header-request, .header-left .header-status {
    display: none;
  }
  
  .header-right .header-action span, .header-right .header-lang {
    display: none;
  }

  /* 2. Quick Search Drawer */
  .quick-search-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    height: 85vh;
    overflow-y: auto;
    padding-bottom: 5rem;
    border-radius: 20px 20px 0 0;
  }
  .quick-search-wrapper.active {
    transform: translateY(0);
  }
  
  .quick-search-wrapper .container {
    padding: 0 !important; 
  }
  
  .quick-search-bar {
    grid-template-columns: 1fr;
    width: 92%;
    height: auto;
    margin-top: -20px;
  }
  
  .qs-field {
    border-right: none;
    border-bottom: 1px solid #E6E1DA;
    padding: 0.85rem 1rem;
  }
  
  .qs-btn-submit {
    height: 52px;
    width: 100%;
    padding: 1rem;
  }
  
  .qs-counter button {
    min-height: 44px;
    min-width: 44px;
    font-size: 1.2rem;
  }
  
  .mobile-qs-trigger {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-anthracite);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 998;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    align-items: center;
    gap: 10px;
  }
  
  /* 3. Grid & Cards */
  .atmospheres-grid, .home-property-grid, .horizons-grid, .gallery-grid, .content-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .container {
    padding: 0 1rem !important;
  }
  
  .property-img img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  
  /* 4. Sticky CTA */
  .sticky-bottom-cta {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 1rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
  }
  
  .sticky-bottom-cta .price-block {
    display: flex;
    flex-direction: column;
  }
  
  .sticky-bottom-cta .price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-anthracite);
    line-height: 1;
  }
  .sticky-bottom-cta .price span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #666;
    margin-left: 2px;
  }
  
  .sticky-bottom-cta .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  /* Hide standard CTA block on mobile if we have the sticky one */
  .content-sidebar {
    display: none;
  }
}

/* ==============================================================
   Pyrite Real Estate - Correctifs Mobiles (< 768px)
   ============================================================== */
@media (max-width: 767px) {
    
    /* 1. HEADER MOBILE (Superposé au hero = Zone Rouge) */
    header.luxury-header {
        position: absolute !important; /* Re-superpose sur le hero comme sur desktop */
        top: 0;
        left: 0;
        width: 100%;
        background: transparent !important; /* Pas de fond solide */
        padding-top: 1rem;
        z-index: 100;
        display: block; /* Annule tout flex column imposé sur le container parent */
    }

    /* Structure interne du header mobile */
    .luxury-header .header-top {
        display: flex;
        flex-direction: column; /* Superpose Logo puis Icônes */
        align-items: center;
        width: 100%;
        gap: 1.25rem;
        padding: 0 1rem;
    }

    /* Masquer la partie gauche (WhatsApp, Statut, Demande) sur mobile */
    .luxury-header .header-left {
        display: none !important;
    }

    /* Centrer le logo */
    .luxury-header .header-center {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    /* Masquer le texte de langue sur mobile (déjà géré ou inutile) */
    .luxury-header .header-lang {
        display: none !important;
    }
    
    /* Masquer les textes "Compte" et "Rechercher" à côté des icônes pour gagner de la place */
    .luxury-header .header-action span {
        display: none !important;
    }

    /* Rangée des icônes (Favoris, Compte, Recherche, Menu) */
    .luxury-header .header-right {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1.25rem;
    }
    
    /* Assurer une zone tactile de 44x44 pour l'accessibilité */
    .luxury-header .header-action,
    .mobile-menu-btn { color: inherit;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    /* Le bouton hamburger a besoin d'hériter la couleur du texte/svg pour rester visible */
    .mobile-menu-btn span {
        background-color: currentColor !important;
    }

    
    /* Fix Account Menu Out of Bounds */
    .account-dropdown-wrapper {
        position: static !important;
    }
    .account-dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px) !important;
        width: min(280px, calc(100vw - 24px)) !important;
        top: calc(100% + 0.5rem) !important;
    }
    .account-dropdown-wrapper.active .account-dropdown-menu {
        transform: translateX(-50%) translateY(0) !important;
    }

    /* 2. ESPACEMENT DU HERO POUR NE PAS MASQUER LE TITRE */
    main .container,
    .page-hero,
    .hero-container,
    .horizons-hero,
    .account-hero,
    .contact-hero,
    .enquiries-main {
        padding-top: 150px !important; 
        min-height: auto;
    }
    
    .hero-header {
        padding-top: 150px !important;
        min-height: 80vh; /* Permet au contenu d'être scrollé sans cacher le bouton Découvrir */
    }

    
    /* Fix Search Modal Vertical Centering */
    .search-modal-overlay {
        align-items: center !important;
        padding-top: 0 !important;
    }

    /* 4. TITRES (Réduction fluide) */
    h1, .hero-title, .page-title, .property-title {
        font-size: clamp(2rem, 10vw, 3.25rem) !important;
        line-height: 1.1 !important;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal !important;
        width: 100%;
        max-width: 100%;
    }

    /* 5. FICHES DE BIENS (property.html) */
    .property-header {
        position: relative;
        padding-top: 1rem;
    }

    .property-breadcrumbs {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        white-space: normal;
        display: block;
    }

    .property-gallery {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }

    .property-gallery__main {
        width: 100%;
        height: 250px;
    }

    .property-gallery__thumbs {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .property-gallery__thumb {
        flex-shrink: 0;
        width: 100px;
        height: 80px;
    }
    
    .property-gallery__thumb img {
        width: 100px;
        height: 80px;
        object-fit: cover;
        object-position: center;
    }

    .property-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 6. CARACTÉRISTIQUES (property-facts) */
    .property-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1rem;
    }

    .property-booking-sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    /* 7. ESPACE CLIENT (account.html) */
    .account-tabs {
        display: flex !important;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 1.5rem !important;
    }
    
    .account-tabs .tab-link {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* 8. FORMULAIRES */
    form, 
    .enquiries-form-container,
    .contact-form,
    .quick-form,
    .enquiry-form {
        width: 100%;
        padding: 0 1rem;
    }
    
    input[type="text"], 
    input[type="email"], 
    input[type="password"], 
    input[type="tel"], 
    input[type="date"], 
    textarea, 
    select {
        width: 100%;
        max-width: 100%;
    }
    
    button[type="submit"], 
    .btn-full {
        width: 100%;
        max-width: 100%;
    }

    /* 9. FILTRES EXPERIENCES (experiences.html) */
    .filter-pills {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-pills button {
        flex-shrink: 0;
    }

    /* 10. FOOTER MOBILE */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 11. Masquer la pastille de langue flottante sur mobile */
    .floating-lang {
        display: none !important;
    }
}

/* Très petits écrans (< 360px) */
@media (max-width: 360px) {
    .property-facts {
        grid-template-columns: 1fr;
    }
}

