﻿*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sand: #f5f0e8;
  --cream: #faf7f2;
  --sage: #8b9a7d;
  --sage-dark: #5c6b52;
  --earth: #3d3a35;
  --gold: #c4a574;
  --gold-light: #e8d5b5;
  --ocean: #2c5f7a;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(61, 58, 53, 0.08);
  --radius: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --touch-min: 44px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(5.5rem + var(--safe-top));
}

[id] {
  scroll-margin-top: calc(5.5rem + var(--safe-top));
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--earth);
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 165, 116, 0.2);
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language switcher — modern flag pills */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem 0.3rem 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(196, 165, 116, 0.35);
  box-shadow: 0 4px 24px rgba(61, 58, 53, 0.07);
}

.lang-switcher-globe {
  display: flex;
  align-items: center;
  color: var(--gold);
  opacity: 0.9;
  flex-shrink: 0;
}

.lang-switcher-track {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  min-height: 36px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--earth);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lang-pill:hover {
  opacity: 1;
  background: rgba(196, 165, 116, 0.15);
  transform: translateY(-1px);
}

.lang-pill.is-active {
  opacity: 1;
  background: linear-gradient(145deg, var(--gold) 0%, #b8956a 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 165, 116, 0.45);
}

.lang-pill-flag {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.08);
  background-size: cover;
  background-position: center;
}

.lang-pill.is-active .lang-pill-flag {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.lang-pill-code {
  line-height: 1;
}

.nav-lang-mobile {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 165, 116, 0.2);
}

.lang-switcher--mobile {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  padding: 0.85rem;
  gap: 0.65rem;
}

.lang-switcher--mobile .lang-switcher-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.lang-switcher--mobile .lang-pill {
  justify-content: center;
  min-height: 48px;
  font-size: 0.75rem;
  border-radius: 12px;
}

.lang-switcher--mobile .lang-pill-flag {
  width: 1.5rem;
  height: 1.5rem;
}

.site-rtl {
  font-family: 'Noto Sans Arabic', 'Outfit', system-ui, sans-serif;
}

.site-rtl .logo-main {
  font-family: 'Noto Sans Arabic', 'Cormorant Garamond', Georgia, serif;
}

.site-rtl .nav {
  flex-direction: row-reverse;
}

.site-rtl .back-link {
  direction: rtl;
}

.logo {
  text-decoration: none;
  color: var(--earth);
}

.logo-main {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--earth);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav a:hover { color: var(--sage-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--earth);
}

a,
button,
.btn,
.nav-toggle,
.social-link,
.whatsapp-float,
.ai-chat-toggle,
.ai-chat-close,
.ai-chat-send {
  -webkit-tap-highlight-color: rgba(196, 165, 116, 0.2);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(44, 95, 122, 0.35) 0%, rgba(61, 58, 53, 0.5) 100%),
    url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1600&q=80') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-text {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--earth);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-full { width: 100%; text-align: center; }

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  color: #fff;
}

.apartment-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.whatsapp-float {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-bottom));
  right: calc(1.5rem + var(--safe-right));
  z-index: 200;
  width: 58px;
  height: 58px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* Apartment detail */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--sage-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { color: var(--earth); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.gallery-slider {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-slider-viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sand);
}

.gallery-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.92);
  color: var(--earth);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}

.gallery-slider-btn:hover {
  background: var(--white);
  color: var(--ocean);
}

.gallery-slider-prev { left: 0.75rem; }
.gallery-slider-next { right: 0.75rem; }

.gallery-slider-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(61, 58, 53, 0.72);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.gallery-slider-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-slider-thumb {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 4rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  scroll-snap-align: start;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-slider-thumb.is-active {
  border-color: var(--gold);
  opacity: 1;
}

.gallery-slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

.inline-badge {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
}

.detail-desc {
  color: #5a5752;
  margin-bottom: 1.25rem;
}

.detail-prices { margin: 1.25rem 0; }

.detail-actions { margin-top: 1.5rem; }

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* Reservation */
.reserve-container {
  max-width: 720px;
}

.reserve-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reserve-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  margin: 0.5rem 0;
}

.reserve-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-reserve {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.reserve-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(196, 165, 116, 0.4);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}

.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.price-estimate {
  background: var(--sand);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--sage-dark);
  text-align: center;
}

.price-estimate small {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: #888;
}

.reserve-note {
  font-size: 0.82rem;
  color: #888;
  text-align: center;
}

.reserve-success {
  text-align: center;
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #27ae60;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.reserve-success h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin-bottom: 1rem;
}

.ref-box {
  background: var(--sand);
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2,
.about-text h2,
.contact-text h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header p { color: var(--sage-dark); }

/* About */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  color: #5a5752;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(196, 165, 116, 0.25);
}

.info-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  margin: 0.5rem 0;
}

.info-icon { font-size: 1.75rem; }

/* Apartments */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.apartment-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(61, 58, 53, 0.12);
}

.apartment-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.apartment-card:hover .apartment-image img {
  transform: scale(1.05);
}

.rental-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(250, 247, 242, 0.95);
  color: var(--sage-dark);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
}

.apartment-body { padding: 1.5rem; }

.apartment-location {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.apartment-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.apartment-desc {
  font-size: 0.9rem;
  color: #6a6762;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apartment-meta {
  display: flex;
  gap: 1rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1rem;
}

.amenities li {
  font-size: 0.75rem;
  background: var(--sand);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  color: var(--sage-dark);
}

.apartment-prices {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--sand);
}

.price {
  font-size: 0.85rem;
  color: #6a6762;
}

.price strong {
  color: var(--earth);
  font-size: 1.1rem;
}

/* Photo guide */
.photo-guide {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--gold);
}

.photo-guide h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin-bottom: 1rem;
}

.photo-guide ol {
  margin-left: 1.25rem;
  color: #5a5752;
}

.photo-guide li { margin-bottom: 0.5rem; }

.photo-guide code,
.section-header code {
  background: var(--sand);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.alert-warning {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #7a6520;
}

.alert-info {
  background: #eef6f9;
  border: 1px solid #a8d4e6;
  color: var(--ocean);
}

.alert a { color: inherit; font-weight: 600; }

/* Reviews */
.reviews {
  background: var(--sand);
}

.booking-score-banner {
  display: flex;
  justify-content: center;
  margin: 0 0 2rem;
}

.booking-score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #003580 0%, #004a9f 100%);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 53, 128, 0.22);
  text-align: center;
}

.booking-score-badge strong,
.booking-score-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.booking-score-label,
.booking-score-badge > span:last-child {
  font-size: 0.82rem;
  opacity: 0.92;
  font-weight: 500;
}

.booking-score-badge--compact {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 1rem;
}

.booking-score-badge--compact strong {
  font-size: 1rem;
}

.apt-reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.apt-reviews-header h2 {
  margin: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.reviews-empty {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 1rem;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed rgba(196, 165, 116, 0.45);
  color: #5a5752;
}

.reviews-empty p {
  margin-bottom: 0.75rem;
}

.reviews-empty-hint {
  font-size: 0.9rem;
  color: var(--sage-dark);
}

.contact-notice {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--sage-dark);
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(196, 165, 116, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(61, 58, 53, 0.1);
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

.review-badge-booking {
  background: #003580;
  color: #fff;
}

.review-badge-airbnb {
  background: #ff5a5f;
  color: #fff;
}

.review-badge-direct {
  background: var(--sage);
  color: #fff;
}

.review-badge-google {
  background: #4285f4;
  color: #fff;
}

.review-badge-google-banner {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #fff;
}

.reviews-score-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.review-source-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sage-dark);
  text-decoration: none;
}

.review-source-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.reviews-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-google {
  background: #4285f4;
  color: #fff;
  border-color: #4285f4;
}

.btn-google:hover {
  background: #3367d6;
  border-color: #3367d6;
  color: #fff;
}

.review-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-stars {
  display: flex;
  gap: 0.1rem;
  font-size: 0.95rem;
  line-height: 1;
}

.review-stars .star {
  color: #ddd5c8;
}

.review-stars .star.filled {
  color: var(--gold);
}

.review-rating-num {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--earth);
}

.review-rating-num small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--sage-dark);
}

.review-quote {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5a5752;
  font-style: italic;
}

.review-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sand);
  font-size: 0.82rem;
}

.review-author {
  font-style: normal;
  font-weight: 600;
  color: var(--earth);
}

.review-date {
  color: var(--sage-dark);
}

.review-apt {
  color: var(--gold);
  font-size: 0.78rem;
}

.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.reviews-cta .btn-primary {
  background: #003580;
  border-color: #003580;
  color: #fff;
}

.reviews-cta .btn-primary:hover {
  background: #002a66;
  border-color: #002a66;
}

/* Contact */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 1.5rem;
}

.contact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sand);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(196, 165, 116, 0.4);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Footer — centered editorial */
.site-footer {
  background: var(--cream);
  color: var(--earth);
  padding: 3.25rem 0 calc(2.25rem + var(--safe-bottom));
  border-top: 1px solid rgba(196, 165, 116, 0.28);
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.footer-wordmark {
  margin: 0 0 0.35rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--earth);
}

.footer-lead {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--sage-dark);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin-bottom: 1.15rem;
}

.footer-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--earth);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: var(--ocean);
}

.footer-social {
  margin-bottom: 1.5rem;
}

.footer-social .social-links {
  margin-top: 0;
  justify-content: center;
}

.footer-rule {
  width: min(4.5rem, 18vw);
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.15rem;
  opacity: 0.65;
}

.footer-rights,
.footer-credit-line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(61, 58, 53, 0.5);
}

.footer-credit-line {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.75rem;
}

.footer-credit-name {
  white-space: nowrap;
  font-weight: 500;
  color: rgba(61, 58, 53, 0.72);
}

.footer-credit-contact {
  white-space: nowrap;
  color: var(--sage-dark);
  text-decoration: none;
}

.footer-credit-contact:hover {
  color: var(--ocean);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.site-footer .social-links {
  margin-top: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(61, 58, 53, 0.06);
  color: var(--sage-dark);
  transition: background 0.2s, color 0.2s;
}

.site-footer .social-link {
  background: var(--cream);
  border: 1px solid rgba(61, 58, 53, 0.1);
  color: var(--earth);
}

.social-link:hover {
  background: rgba(61, 58, 53, 0.12);
}

.site-footer .social-link:hover {
  background: var(--white);
  border-color: rgba(196, 165, 116, 0.45);
  color: var(--ocean);
}

.contact-social {
  margin-top: 1.25rem;
}

.contact-social .social-link {
  background: rgba(196, 165, 116, 0.15);
  color: var(--earth);
}

.contact-social .social-link:hover {
  background: rgba(196, 165, 116, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  /* Fond plein écran au-dessus du contenu (images, cartes…) */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(250, 247, 242, 0.99);
    pointer-events: none;
  }

  body.nav-open .site-header {
    z-index: 10000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  body.nav-open .whatsapp-float,
  body.nav-open .sticky-cta-mobile,
  body.nav-open .ai-chat-root {
    visibility: hidden;
    pointer-events: none;
  }

  .container {
    width: min(1140px, 94%);
  }

  .header-inner {
    position: relative;
    z-index: 10002;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: rgba(250, 247, 242, 0.99);
    padding: calc(var(--safe-top) + 4.5rem) 1.5rem calc(1.5rem + var(--safe-bottom));
    padding-left: calc(1.5rem + var(--safe-left));
    padding-right: calc(1.5rem + var(--safe-right));
    gap: 0;
    border-bottom: none;
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
  }

  .nav.open { display: flex; }

  .nav a {
    display: flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(196, 165, 116, 0.15);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 10px;
    position: relative;
    z-index: 10003;
  }

  .header-tools .lang-switcher--header {
    display: none;
  }

  .nav-lang-mobile {
    display: block;
  }

  .lang-switcher--header .lang-pill-code {
    display: none;
  }

  .hero {
    padding: calc(5rem + var(--safe-top)) 0 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 3rem 0;
  }

  .apartments-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reserve-form,
  .contact-form {
    padding: 1.25rem;
  }

  .form-row-reserve {
    grid-template-columns: 1fr;
  }

  .apartment-actions {
    flex-direction: column;
  }

  .apartment-actions .btn {
    width: 100%;
    text-align: center;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-slider-btn {
    width: var(--touch-min);
    height: var(--touch-min);
  }

  .gallery-slider-thumb {
    flex-basis: 4.5rem;
    width: 4.5rem;
    height: 3.25rem;
  }

  .footer-menu {
    gap: 0.5rem 0.85rem;
  }

  .footer-credit-line {
    flex-direction: column;
    gap: 0.2rem;
  }

  .reserve-form input,
  .reserve-form select,
  .reserve-form textarea,
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

}

/* AI Chat widget */
.ai-chat-root {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-bottom));
  right: calc(1.5rem + var(--safe-right));
  z-index: 201;
  font-family: 'Outfit', sans-serif;
}

.ai-chat-root:not(.ai-chat-open) .ai-chat-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ai-chat-root.ai-chat-with-wa {
  right: calc(5.75rem + var(--safe-right));
}

.ai-chat-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: 50%;
  background: #fff;
  color: var(--sage-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(61, 58, 53, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s, color 0.2s;
}

/* Section assistant page d'accueil */
.ai-assistant-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}

.ai-assistant-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 165, 116, 0.25);
}

.ai-assistant-text h2 {
  margin: 0.35rem 0 0.75rem;
  color: var(--earth);
}

.ai-assistant-text p {
  color: #5a5650;
  margin-bottom: 1rem;
}

.ai-assistant-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--sage-dark);
}

.ai-assistant-topics li::before {
  content: 'âœ“ ';
  color: var(--ocean);
}

.ai-assistant-preview {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ai-preview-bubble {
  max-width: 92%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ai-preview-bot {
  align-self: flex-start;
  background: var(--sand);
  color: var(--earth);
}

.ai-preview-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--sage-dark), var(--ocean));
  color: var(--white);
}

@media (max-width: 768px) {
  .ai-assistant-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .ai-assistant-topics {
    grid-template-columns: 1fr;
  }

  .ai-assistant-preview {
    display: none;
  }
}
