/* ═══════════════════════════════════════════════════════
   APARTMENT LISTING PAGES — appart.css
   Loaded on /appartement-14 and /la-loge only.
   Layers on top of style.css — no resets, no nav/footer.
   Uses design system vars from style.css (:root).
   ═══════════════════════════════════════════════════════ */

/* ── NAV OVERRIDE (scrolled state on load) ────────── */
.page-listing nav {
  background: rgba(245,240,230,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194,160,110,0.2);
  padding: 14px 48px;
}
.page-listing .nav-logo { color: var(--slate); }
.page-listing .nav-links a { color: var(--text-mid); }
.page-listing .nav-links a:hover,
.page-listing .nav-links a.active { color: var(--sand); }
.page-listing .nav-cta {
  border-color: var(--sand);
  color: var(--sand) !important;
}
.page-listing .nav-burger span { background: var(--slate); }

/* ── GALLERY ─────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 480px 240px;
  gap: 4px;
  max-height: 728px;
}

.gallery-main {
  grid-row: 1 / 3;
  background: var(--ivory-mid);
  overflow: hidden;
  position: relative;
}

.gallery-thumb {
  background: var(--ivory-mid);
  overflow: hidden;
  position: relative;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.gallery-main:hover img,
.gallery-thumb:hover img { transform: scale(1.03); }

.gallery-count {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(40,51,63,0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-count:hover { background: rgba(40,51,63,0.9); }

.rating-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.rating-badge .score {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sage);
  line-height: 1;
}

.rating-badge .label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  text-transform: uppercase;
}

/* ── LAYOUT ──────────────────────────────────────── */
.listing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  padding: 4rem 0 6rem;
  align-items: start;
}

/* ── LISTING HEADER ──────────────────────────────── */
.apt-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ivory-mid);
}

.apt-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

.page-listing h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.page-listing h1 em {
  font-style: italic;
  color: var(--sage);
}

.apt-address {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.apt-address::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand);
}

.apt-detail-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ── LISTING SECTIONS ────────────────────────────── */
.listing-section { margin-bottom: 3rem; }

.listing-section-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ivory-mid);
}

.listing-section.description {
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  padding: 2.5rem 2.5rem 1.5rem;
}

.listing-section.description .listing-section-title {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.listing-section.description .description-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ivory-mid);
}

.listing-section.description p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  max-width: 600px;
}

.listing-section.description p:last-of-type {
  margin-bottom: 0;
}

/* ── AMENITIES ───────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ivory-mid);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text);
}

.amenity-icon {
  width: 28px;
  height: 28px;
  background: rgba(110,140,111,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ── RULES ───────────────────────────────────────── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.rule-item {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
}

.rule-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.4rem;
}

.rule-value {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
}

/* ── REVIEWS ─────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.listing-review-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  position: relative;
}

.review-stars {
  color: var(--sand);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.review-author {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.review-meta {
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--text-mid);
  margin-top: 0.2rem;
}

/* ── FAQ ─────────────────────────────────────────── */
.listing-faq details {
  border-bottom: 1px solid var(--ivory-mid);
}
.listing-faq summary {
  padding: 1rem 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--slate);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.listing-faq summary::-webkit-details-marker { display: none; }
.listing-faq summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--sand);
  transition: transform 0.3s;
}
.listing-faq details[open] summary::after { content: '\2212'; }
.listing-faq details p {
  padding: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}

/* ── SEE ALSO ────────────────────────────────────── */
.listing-seealso ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.listing-seealso a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  text-decoration: none;
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 300;
  transition: border-color 0.2s, background 0.2s;
}
.listing-seealso a:hover {
  border-color: var(--sand);
  background: rgba(194,160,110,0.04);
}
.listing-seealso a::after {
  content: '\2192';
  color: var(--sand);
  font-size: 1rem;
}

/* ── BOOKING SIDEBAR ─────────────────────────────── */
.booking-column {
  position: sticky;
  top: 80px;
}

.booking-card {
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(40,51,63,0.06);
}

.booking-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ivory-mid);
}

.booking-price {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.booking-price strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--slate);
  display: block;
  margin-bottom: 0.1rem;
}

.booking-season {
  font-size: 0.7rem;
  color: var(--text-mid);
  font-weight: 300;
}

/* Smoobu booking widget container */
.smoobu-container {
  min-height: 320px;
  margin-bottom: 1.5rem;
}

.smoobu-container iframe {
  width: 100%;
  min-height: 320px;
  border: none;
}

.booking-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.booking-divider::before,
.booking-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ivory-mid);
}

.booking-divider span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.btn-whatsapp-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--ivory-mid);
  background: transparent;
  color: var(--slate);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-whatsapp-full:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.booking-trust {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ivory-mid);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-mid);
}

.trust-item::before {
  content: '\2713';
  color: var(--sand);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── OTHER APARTMENT CTA ─────────────────────────── */
.other-apt {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(110,140,111,0.04);
  border: 1px solid var(--ivory-mid);
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.other-apt:hover { background: rgba(110,140,111,0.08); }

.other-apt-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.3rem;
}

.other-apt-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 0.2rem;
}

.other-apt-detail {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .page-listing nav { padding: 12px 24px; }
  .listing-container { padding: 0 24px; }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 0 4rem;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 160px;
  }
  .booking-column { position: static; }
  .reviews-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .listing-section.description { padding: 2rem 1.5rem 1.25rem; }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
  }
  .gallery-thumb { display: none; }
  .gallery-main { grid-row: 1; }
  .apt-detail-stats { gap: 1.5rem; }
  .amenities-grid { grid-template-columns: 1fr; }
}
