/*
Theme Name: Bnb Stays
Theme URI: https://bnb.mapage-wp.online
Author: MaPage
Description: Maquette de plateforme de location de logements, style minimaliste et épuré.
Version: 1.0.0
Text Domain: bnb-stays
*/

:root {
  --paper: #ffffff;
  --sand: #f7f5f1;
  --ink: #17181a;
  --muted: #74726c;
  --line: #e8e4dd;
  --accent: #a84a2a;
  --accent-ink: #ffffff;
  --radius: 18px;
  --radius-sm: 14px;
  --shell: 1180px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Demo bar */
.demo-bar {
  background: var(--ink);
  color: #f3f1ec;
  text-align: center;
  font-size: 13px;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
}
.main-nav ul { display: flex; gap: 26px; }
.main-nav a { font-size: 14.5px; color: var(--muted); }
.main-nav a:hover { color: var(--ink); }
.header-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--ink); color: #fff; }
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 34px; height: 34px;
  position: relative;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 1px; background: var(--ink);
}
.menu-toggle::before { top: 12px; }
.menu-toggle span { top: 17px; }
.menu-toggle::after { top: 22px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--paper);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    padding: 20px 28px; border-top: 1px solid var(--line);
  }
  .main-nav ul { flex-direction: column; gap: 18px; }
  body.menu-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .header-cta { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 92px 0 120px;
  background: var(--sand);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 560px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 440px; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.search-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr 0.85fr 1fr auto;
  gap: 0;
  overflow: hidden;
}
.search-field {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px;
}
.search-field select, .search-field input {
  border: none; font-family: var(--sans); font-size: 14.5px; width: 100%; background: transparent; color: var(--ink);
}
.search-submit {
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 999px; padding: 0 26px;
  font-size: 14.5px; cursor: pointer;
}
.search-submit:hover { opacity: 0.92; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .search-card { grid-template-columns: 1fr; }
  .search-field { border-right: none; border-bottom: 1px solid var(--line); }
}

/* Sections */
.section { padding: 84px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head .view-all { font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.section.alt { background: var(--sand); }

/* Destinations strip */
.destinations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.destination-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.destination-card:hover img { transform: scale(1.05); }
.destination-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.destination-card span {
  position: absolute; left: 18px; bottom: 16px; color: #fff; font-family: var(--serif); font-size: 19px; z-index: 2;
}
@media (max-width: 860px) { .destinations { grid-template-columns: repeat(2, 1fr); } }

/* Listing grid + cards */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px 28px;
}
.listing-card { display: block; }
.listing-media {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5/4;
  margin-bottom: 12px;
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.listing-card:hover .listing-media img { transform: scale(1.04); }
.listing-badge {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--ink);
  font-size: 11.5px; padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.listing-rating {
  position: absolute; top: 12px; right: 12px;
  background: rgba(23,24,26,0.78); color: #fff;
  font-size: 12.5px; padding: 4px 9px; border-radius: 999px;
}
.listing-location { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.listing-title { font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.listing-specs { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.listing-price { font-size: 15px; }
.listing-price strong { font-size: 16px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: var(--ink); color: #f3f1ec;
  border-radius: var(--radius);
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #c9c6be; margin: 0; max-width: 420px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 13px 28px; font-size: 14.5px; white-space: nowrap;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ece9e2; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: 0.9; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: 0.92; }
@media (max-width: 760px) { .cta-band { flex-direction: column; text-align: center; padding: 48px 28px; } }

/* Archive */
.archive-head { padding: 56px 0 8px; }
.archive-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 6px; }
.archive-count { color: var(--muted); font-size: 14.5px; }
.archive-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 36px 0 90px; }
.filters-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; }
.filters-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; color: var(--muted); }
.filters-box .filter-group { margin-bottom: 22px; }
.filters-box label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 9px; color: var(--ink); }
.filters-box a.dest-link { display: block; font-size: 14px; padding: 6px 0; color: var(--muted); }
.filters-box a.dest-link.active, .filters-box a.dest-link:hover { color: var(--ink); }
@media (max-width: 900px) { .archive-layout { grid-template-columns: 1fr; } }

/* Single listing */
.single-head { padding: 40px 0 22px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--ink); }
.single-head h1 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 10px; }
.single-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.single-meta strong { color: var(--ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}
.gallery-grid .main-shot { aspect-ratio: 4/3.1; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}

.single-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; padding-bottom: 90px; align-items: start; }
.host-row { display: flex; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.host-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; }
.host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.host-row h3 { font-size: 17px; margin: 0 0 2px; }
.host-row p { margin: 0; color: var(--muted); font-size: 13.5px; }

.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 24px 0 40px; }
.amenity { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.amenity .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.reviews-head { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 22px; font-family: var(--serif); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.review { border-top: 1px solid var(--line); padding-top: 16px; }
.review .reviewer { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.review .review-date { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.review p { font-size: 14.5px; color: var(--ink); margin: 0; }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }

.booking-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  position: sticky; top: 100px;
}
.booking-price { font-size: 22px; margin-bottom: 18px; }
.booking-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.booking-fields { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 16px; overflow: hidden; }
.booking-fields .row { display: grid; grid-template-columns: 1fr 1fr; }
.booking-fields .field { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-fields .field:nth-child(2n) { border-right: none; }
.booking-fields .field.full { grid-column: 1 / -1; border-bottom: none; }
.booking-fields .field:nth-last-child(-n+2) { border-bottom: none; }
.booking-fields label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 3px; }
.booking-fields input, .booking-fields select { border: none; font-size: 13.5px; width: 100%; font-family: var(--sans); color: var(--ink); background: transparent; }
.booking-fields .date-display {
  border: none; background: none; padding: 0; margin: 0; width: 100%; text-align: left;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.booking-card .btn { width: 100%; padding: 14px; font-size: 15px; margin-bottom: 14px; }

/* Availability calendar */
.bnb-calendar {
  position: relative;
  margin: -4px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 24, 26, 0.14);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.cal-nav {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; font-size: 17px; line-height: 1; color: var(--ink); flex: none;
}
.cal-nav:hover { background: var(--sand); }
.cal-legend { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend-sample {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px;
  color: #b4675a; text-decoration: line-through; background: var(--sand);
}
.cal-months { display: flex; gap: 28px; flex-wrap: wrap; }
.cal-month { flex: 1 1 220px; min-width: 210px; }
.cal-month-title { font-family: var(--serif); font-size: 15px; margin-bottom: 10px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-weekdays span { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; border: none; background: none; font-size: 13px; color: var(--ink); cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--sans);
}
.cal-day:hover:not(:disabled) { background: var(--sand); }
.cal-day.is-past { color: #d8d5cd; cursor: default; }
.cal-day.is-blocked { color: #b4675a; text-decoration: line-through; cursor: not-allowed; background: #faf1ef; border-radius: 50%; }
.cal-day.is-selected { background: var(--accent); color: #fff; }
.cal-day.is-range { background: var(--sand); border-radius: 0; }
.cal-foot { text-align: right; margin-top: 12px; }
.cal-foot .btn { width: auto; padding: 9px 20px; font-size: 13px; margin: 0; }
@media (max-width: 480px) { .cal-months { flex-direction: column; gap: 18px; } }
.booking-breakdown { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; }
.booking-breakdown.total { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.booking-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
@media (max-width: 960px) { .single-layout { grid-template-columns: 1fr; } .booking-card { position: static; } }

/* Simple pages */
.page-content { padding: 64px 0 90px; }
.page-content .site-shell { max-width: 760px; }
.page-content h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 28px; }
.page-content h2 { font-size: 22px; margin-top: 36px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-content table th, .page-content table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 14.5px; }
.page-content details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.page-content summary { cursor: pointer; font-size: 16px; font-weight: 600; }
.page-content details p { margin-top: 10px; color: var(--muted); }
.steps-simple { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin: 32px 0; }
@media (max-width: 760px) { .steps-simple { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 16px; margin-top: 28px; }
.contact-form label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--sans); font-size: 14.5px;
}
.contact-form textarea { min-height: 140px; }
.form-notice { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.form-notice.sent { background: #eef4ee; color: #2f5c33; }
.form-notice.error { background: #f6e9e6; color: #8a3b24; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--sand); margin-top: 0; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding: 64px 0 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-column h2 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer-column ul li { margin-bottom: 9px; }
.footer-column a { font-size: 14px; color: var(--ink); }
.footer-column a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 30px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr 1fr; } }
