/* Villa Maspi: an editorial, photo-led invitation. Home page only.
   Palette: lagoon green #173b39, teal #17686b, sage #e7eeea, mist #f3f6f2, sun gold #d3b86f. */
.home-page {
  --primary: #17686b;
  --secondary: #17686b;
  --dark: #183b3b;
  --gray: #526766;
  --light-gray: #eef3ef;
  --border: #dbe5df;
  --max-width: 1280px;
  --maspi-green: #173b39;
  --maspi-gold: #d3b86f;
  --maspi-cream: #f4f5e9;
  --hero-photo-ratio: 1.5;
  font-family: 'DM Sans', sans-serif;
  background: #f3f6f2;
}

/* Navigation */
.home-page .navbar { background: #f3f6f2f2; border-color: #dce6df; }
.home-page .navbar .container { max-width: 1400px; height: 76px; }
.home-page .logo { font-family: 'Fraunces', Georgia, serif; letter-spacing: -.04em; font-weight: 600; color: #173b39; font-size: 27px; }
.home-page .logo-icon { font-size: 23px; }
.home-page .nav-links { gap: clamp(10px, 1.4vw, 21px); }
.home-page .nav-links a { font-size: 13px; color: #354c49; }
.home-page .nav-links a:hover { color: #17686b; }
.home-page .nav-links .btn-primary { color: white; padding: 11px 20px; border-radius: 5px; margin-left: clamp(4px, .8vw, 12px); }
.home-page .btn-primary { background: #17686b; border-radius: 5px; box-shadow: none; }
.home-page .btn-primary:hover { background: #125356; box-shadow: none; transform: none; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid #d1ad51; outline-offset: 4px; }

/* Hero: one framed photograph of the place, carved by a booking dock.
   The photo fills the viewport inside a thin sea-glass margin; title sits on the photo,
   the dock is cut out of its lower-left corner so the call to action reads as part of the picture. */
.home-page .hero {
  --stage-ground: #f3f6f2;
  --stage-ink: #123634;
  --stage-radius: 28px;
  --stage-gap: 14px;
  --stage-pad: clamp(26px, 4vw, 64px);
  position: relative; margin-top: 76px; height: auto; min-height: 0;
  padding: 0 var(--stage-gap) var(--stage-gap); background: var(--stage-ground); overflow: visible;
}
.home-page .hero::after { display: none; }
.home-page .hero-frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  height: clamp(600px, calc(100svh - 76px - var(--stage-gap)), 960px);
  border-radius: var(--stage-radius) var(--stage-radius) var(--stage-radius) 0; background: #2c5753;
}
.home-page .hero-slider { position: relative; grid-area: 1 / 1 / 3 / 2; width: 100%; height: 100%; background: #2c5753; z-index: 0; }
.home-page .slide, .home-page .slide img { background: #2c5753; }
.home-page .slide { transition: opacity 1.1s ease; overflow: hidden; }
.home-page .slide img { object-position: center 60%; transform-origin: 62% 58%; }
.home-page .slide.active img { animation: maspi-hero-drift 12s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes maspi-hero-drift { from { transform: scale(1.075); } to { transform: scale(1); } }
.home-page .hero-shade {
  grid-area: 1 / 1 / 3 / 2; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(8 33 31 / .70) 0%, rgb(8 33 31 / .38) 36%, rgb(8 33 31 / 0) 64%),
    linear-gradient(0deg, rgb(8 33 31 / .50) 0%, rgb(8 33 31 / 0) 52%),
    linear-gradient(180deg, rgb(8 33 31 / .22) 0%, rgb(8 33 31 / 0) 18%);
}

.home-page .hero-controls { grid-area: 1 / 1; z-index: 4; align-self: start; justify-self: end; display: flex; gap: 8px; margin: 22px 22px 0 0; }
.home-page .slider-btn {
  position: static; transform: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; color: var(--stage-ink);
  background: rgb(243 246 242 / .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgb(8 33 31 / .18);
}
.home-page .slider-btn:hover { background: #fff; }

.home-page .hero-content {
  position: relative; grid-area: 1 / 1; z-index: 3; align-self: end;
  left: auto; right: auto; bottom: auto; transform: none;
  max-width: 900px; padding: 0 var(--stage-pad) clamp(26px, 4vh, 44px);
  text-align: left; color: #fff; text-shadow: 0 1px 26px rgb(8 33 31 / .35);
}
.home-page .hero-place { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(14px, 2.2vh, 22px); font-size: 15px; font-weight: 500; letter-spacing: .02em; color: #f1ecd6; }
.home-page .hero-place::before { content: ""; width: 34px; height: 1px; background: var(--maspi-gold); }
.home-page .hero-content h1 {
  font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(50px, min(6.6vw, 10.2vh), 112px); line-height: .96; letter-spacing: -.05em;
  max-width: 8.6em; margin: 0 0 clamp(14px, 2.4vh, 24px); color: #fff; text-wrap: balance; overflow-wrap: normal; hyphens: manual;
}
.home-page .hero-subtitle { max-width: 27em; margin: 0; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; color: #eef2e8; opacity: 1; }
.home-page .hero-rating {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; max-width: max-content;
  margin: clamp(14px, 2.2vh, 22px) 0 0; padding: 0; background: none; border: 0; border-radius: 0;
  font-size: 14px; color: #eef2e8; overflow: visible;
}
.home-page .hero-rating .stars { color: #f0cd72; letter-spacing: 2px; }
.home-page .hero-rating span, .home-page .hero-review-count { color: inherit; }

.home-page .hero-dock {
  position: relative; grid-area: 2 / 1; z-index: 3; justify-self: start;
  width: min(600px, 100%); box-sizing: border-box;
  padding: 24px clamp(22px, 2.4vw, 32px) 24px var(--stage-pad);
  background: var(--stage-ground); color: var(--stage-ink);
  border-top-right-radius: var(--stage-radius);
}
/* concave corners: the photograph curves into the dock instead of meeting it at a right angle */
.home-page .hero-dock::before, .home-page .hero-dock::after {
  content: ""; position: absolute; width: var(--stage-radius); height: var(--stage-radius); pointer-events: none;
  background: radial-gradient(circle at 100% 0, transparent calc(var(--stage-radius) - .5px), var(--stage-ground) var(--stage-radius));
}
.home-page .hero-dock::before { left: 0; bottom: 100%; }
.home-page .hero-dock::after { left: 100%; bottom: 0; }

.home-page .hero-cta.btn-primary {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; box-sizing: border-box;
  padding: 0 28px; border-radius: 8px; background: #e4bd55; color: var(--stage-ink);
  font-size: 18px; font-weight: 700; letter-spacing: -.005em; box-shadow: inset 0 0 0 1px #c9a03c, 0 10px 24px rgb(180 138 38 / .22);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.home-page .hero-cta.btn-primary:hover { background: #edca6c; box-shadow: inset 0 0 0 1px #c9a03c, 0 12px 28px rgb(180 138 38 / .3); }
.home-page .hero-dock-label { margin: 18px 0 10px; font-size: 14px; font-weight: 500; color: #526766; }
.home-page .hero-stays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-page .hero-stay {
  display: flex; align-items: center; gap: 14px; height: 100%; box-sizing: border-box; padding: 8px 14px 8px 8px;
  border: 1px solid #d6e2db; border-radius: 14px; background: #fff; color: var(--stage-ink); text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.home-page .hero-stay:hover { border-color: #7fa79b; background: #fbfcfa; }
.home-page .hero-stay img { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; object-position: center 62%; background: #dfe9e3; }
.home-page .hero-stay-text { display: grid; gap: 3px; min-width: 0; }
.home-page .hero-stay strong { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 20px; line-height: 1.1; letter-spacing: -.025em; }
.home-page .hero-stay-text > span { font-size: 13px; color: #526766; }
.home-page .hero-dock a:focus-visible { outline: 3px solid #17686b; outline-offset: 3px; }

/* Consent panel: same family and palette as the stage, logic untouched */
@media (min-width: 901px) {
  /* keep the reopen pill off the booking dock; the consent dialog itself is unchanged */
  .home-page .privacy-manage-button { left: auto; right: 14px; }
}
.home-page .privacy-consent-panel { border-radius: 16px; border-color: #d6e2db; box-shadow: 0 18px 48px rgb(18 54 52 / .2); font-family: 'DM Sans', sans-serif; }


/* Villa key facts strip */
.home-page .quick-info { margin: 0; padding: 0; background: #e7eeea; border-bottom: 1px solid #d3e0d8; }
.home-page .quick-info .container { max-width: 1320px; display: flex; align-items: stretch; }
.home-page .quick-info-title { flex: none; display: flex; align-items: center; margin: 0; padding: 0 clamp(16px, 2.4vw, 36px) 0 0; border-right: 1px solid #cad9d1; font-family: 'Fraunces', Georgia, serif; font-size: 19px; letter-spacing: -.02em; color: var(--maspi-green); }
.home-page .info-cards { flex: 1; max-width: none; gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-page .info-card { display: flex; align-items: center; gap: 14px; text-align: left; border-radius: 0; border: 0; border-right: 1px solid #cad9d1; background: transparent; box-shadow: none; padding: 20px clamp(14px, 2vw, 32px); }
.home-page .info-card:last-child { border-right: 0; }
.home-page .info-card:hover { transform: none; box-shadow: none; background: #dce9e1; }
.home-page .info-icon { font-size: 22px; margin: 0; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #f3f6f2; }
.home-page .info-card strong { font-size: 15px; color: var(--maspi-green); }
.home-page .info-card p { font-size: 13px; color: #526766; margin: 2px 0 0; }

/* Accommodation cards */
.home-page .properties-section { background: #f3f6f2; padding: 96px 0 104px; }
.home-page .properties-section .container { max-width: 1320px; }
.home-page .properties-section .section-header { max-width: 760px; text-align: left; margin: 0 0 44px; }
.home-page .properties-section .eyebrow { color: #17686b; font-weight: 600; font-size: 14px; letter-spacing: .01em; text-transform: none; margin-bottom: 12px; }
.home-page .properties-section h2, .home-page .description h2, .home-page .photos h2, .home-page .tarifs h2, .home-page .reservation-cta h2 {
  font-family: 'Fraunces', Georgia, serif; color: #173b39; font-weight: 400; letter-spacing: -.04em; line-height: 1.08;
}
.home-page .properties-section h2 { font-size: clamp(36px, 3.8vw, 60px); margin-bottom: 16px; text-wrap: balance; }
.home-page .properties-section .section-header > p:last-child { color: #526766; font-size: 18px; line-height: 1.55; max-width: 36em; }
.home-page .property-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.home-page .property-card { border: 1px solid #dfe8e2; border-radius: 4px; box-shadow: none; background: white; overflow: hidden; display: flex; flex-direction: column; }
.home-page .property-card > .property-media { position: relative; padding: 0; }
.home-page .property-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.home-page .property-card:first-child img { object-position: center 55%; }
.home-page .property-capacity { position: absolute; left: 18px; bottom: 18px; padding: 7px 12px; border-radius: 3px; background: #f3f6f2f0; color: var(--maspi-green); font-size: 13px; font-weight: 600; }
.home-page .property-card > .property-body { padding: 30px clamp(22px, 3vw, 40px) 34px; display: flex; flex-direction: column; flex: 1; }
.home-page .property-card h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.035em; color: var(--maspi-green); margin: 0 0 12px; }
.home-page .property-card p { font-size: 16px; line-height: 1.6; max-width: 46ch; color: #4b605e; margin: 0; }
.home-page .property-actions { margin-top: auto; padding-top: 26px; gap: 12px; align-items: center; }
.home-page .property-actions .btn { border-radius: 4px; font-size: 15px; line-height: 1.2; padding: 0 20px; height: 50px; min-height: 50px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.home-page .property-actions .btn-secondary { border: 1px solid #abc5ba; color: #173b39; background: white; }
.home-page .property-actions .btn-secondary:hover { background: #edf4ef; }

/* Following sections, aligned with the new palette */
.home-page .description { background: #e6efea; padding-block: 94px; }
.home-page .description .container { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); gap: clamp(35px, 7vw, 120px); }
.home-page .description h2 { font-size: clamp(34px, 3vw, 52px); max-width: 440px; }
.home-page .description-content { max-width: 680px; }
.home-page .photos { background: #f3f6f2; }
.home-page .equipements { background: #e9f0eb; }
.home-page .tarifs, .home-page .infos-pratiques, .home-page .faq-section { background: #f3f6f2; }
.home-page .reservation-cta { background: #173b39; }
.home-page .reservation-cta h2 { color: #fff; }
.home-page .privacy-manage-button { background: #173b39e6; border-color: #ffffff40; }

@media (max-width: 1180px) {
  .home-page .quick-info .container { flex-direction: column; }
  .home-page .quick-info-title { padding: 18px 0 0; border-right: 0; font-size: 18px; }
  .home-page .info-card:first-child { padding-left: 0; }
}
@media (max-width: 1100px) {
  .home-page .hero-content h1 { font-size: clamp(48px, min(7.4vw, 9.6vh), 92px); }
  .home-page .nav-links { gap: 10px; }
  .home-page .nav-links a { font-size: 12px; }
}

/* Tablet portrait and mobile: photograph on top, text below */
@media (max-width: 900px) {
  .home-page .navbar .container { height: 64px; }
  .home-page .hero { margin-top: 64px; --stage-gap: 12px; --stage-radius: 24px; }
  .home-page .hero-frame { height: clamp(620px, calc(100svh - 64px - 12px), 900px); }
  .home-page .hero-shade {
    background:
      linear-gradient(0deg, rgb(8 33 31 / .78) 0%, rgb(8 33 31 / .42) 42%, rgb(8 33 31 / 0) 70%),
      linear-gradient(180deg, rgb(8 33 31 / .2) 0%, rgb(8 33 31 / 0) 18%);
  }
  .home-page .hero-content h1 { font-size: clamp(46px, 8.4vw, 76px); }
  .home-page .logo { font-size: 22px; }
  .home-page .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0; }
  .home-page .info-card, .home-page .info-card:first-child { padding: 16px 16px 16px 0; border-right: 0; border-bottom: 1px solid #cad9d1; border-radius: 0; }
  .home-page .info-card:nth-child(odd) { border-right: 1px solid #cad9d1; }
  .home-page .info-card:nth-child(even) { padding-left: 16px; }
  .home-page .info-card:nth-last-child(-n+2) { border-bottom: 0; }
  .home-page .properties-section { padding: 72px 0; }
  .home-page .description .container { gap: 36px; }
}

/* Tablet portrait: one card per row, photo beside the text */
@media (min-width: 701px) and (max-width: 900px) {
  .home-page .property-cards { grid-template-columns: 1fr !important; gap: 22px; }
  .home-page .property-card { flex-direction: row; }
  .home-page .property-card > .property-media { flex: 0 0 46%; }
  .home-page .property-card img { height: 100%; min-height: 300px; aspect-ratio: auto; }
  .home-page .property-card > .property-body { padding: 30px 30px 30px; }
  .home-page .property-actions { flex-direction: column; align-items: stretch; }
}

/* Short laptop screens: keep title, rating and dock inside the first screen */
@media (min-width: 901px) and (max-height: 820px) {
  .home-page .hero-content { padding-bottom: 22px; }
  .home-page .hero-place { margin-bottom: 12px; }
  .home-page .hero-content h1 { font-size: clamp(46px, min(6vw, 8.6vh), 84px); margin-bottom: 12px; }
  .home-page .hero-subtitle { font-size: 17px; }
  .home-page .hero-rating { margin-top: 12px; }
  .home-page .hero-dock { padding-top: 18px; padding-bottom: 18px; }
  .home-page .hero-cta.btn-primary { min-height: 54px; font-size: 17px; }
  .home-page .hero-dock-label { margin: 12px 0 8px; }
  .home-page .hero-stay img { width: 56px; height: 56px; }
}
/* Portrait tablets: a shorter frame lets the next section show and keeps the dock clear of the consent dialog */
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) {
  .home-page .hero-frame { height: clamp(600px, 70svh, 840px); }
  .home-page .slide img { object-position: 34% 60%; }
}

/* Phone: the photograph keeps its own rounded frame, the dock becomes a tab lifted over its lower edge */
@media (max-width: 640px) {
  .home-page .hero { --stage-gap: 10px; --stage-radius: 22px; --stage-pad: 20px; padding-bottom: 0; }
  .home-page .hero-frame { height: auto; overflow: visible; border-radius: 0; background: transparent; grid-template-rows: auto auto; }
  .home-page .hero-slider { grid-area: 1 / 1; height: clamp(440px, 72svh, 600px); border-radius: var(--stage-radius); overflow: hidden; }
  .home-page .hero-shade { grid-area: 1 / 1; border-radius: var(--stage-radius); background: linear-gradient(0deg, rgb(8 33 31 / .82) 0%, rgb(8 33 31 / .5) 40%, rgb(8 33 31 / 0) 68%), linear-gradient(180deg, rgb(8 33 31 / .22) 0%, rgb(8 33 31 / 0) 20%); }
  .home-page .hero-controls { margin: 12px 12px 0 0; }
  .home-page .slider-btn { width: 40px; height: 40px; font-size: 13px; }
  .home-page .slide img { object-position: 30% 60%; }
  .home-page .hero-content { padding: 0 20px 62px; }
  .home-page .hero-place { font-size: 13px; gap: 10px; margin-bottom: 12px; }
  .home-page .hero-place::before { width: 24px; }
  .home-page .hero-content h1 { font-size: clamp(38px, 11.2vw, 52px); line-height: .98; margin-bottom: 12px; }
  .home-page .hero-subtitle { font-size: 16px; }
  .home-page .hero-rating { margin-top: 12px; font-size: 13px; }
  .home-page .hero-dock { grid-area: 2 / 1; justify-self: stretch; width: auto; margin: -30px 10px 0; padding: 16px 14px 22px; border-radius: var(--stage-radius) var(--stage-radius) 0 0; }
  .home-page .hero-dock::before, .home-page .hero-dock::after { display: none; }
  .home-page .hero-cta.btn-primary { min-height: 56px; font-size: 17px; }
  .home-page .hero-dock-label { margin: 16px 2px 10px; font-size: 13px; }
  .home-page .hero-stays { gap: 10px; }
  .home-page .hero-stay { flex-direction: column; align-items: stretch; gap: 10px; padding: 6px 6px 12px; border-radius: 14px; }
  .home-page .hero-stay img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; }
  .home-page .hero-stay-text { padding: 0 6px; }
  .home-page .hero-stay strong { font-size: 17px; }
  .home-page .hero-stay-text > span { font-size: 12.5px; }
}

@media (max-width: 700px) {
  .home-page .property-cards { grid-template-columns: 1fr !important; gap: 20px; }
  .home-page .property-card { border-radius: 4px; }
  .home-page .property-card img { aspect-ratio: 3 / 2; }
  .home-page .property-card > .property-body { padding: 24px 22px 26px; }
  .home-page .properties-section { padding: 60px 0; }
  .home-page .properties-section .section-header { margin-bottom: 28px; }
  .home-page .properties-section .section-header > p:last-child { font-size: 16px; }
  .home-page .description { padding-block: 60px; }
  .home-page .description .container { display: block; }
  .home-page .description h2 { margin-bottom: 25px; }
}

@media (max-width: 600px) {
  .home-page .quick-info-title { padding-top: 16px; font-size: 17px; }
  .home-page .info-card, .home-page .info-card:first-child { padding: 14px 10px 14px 0; gap: 10px; min-height: 0; }
  .home-page .info-card:nth-child(even) { padding-left: 12px; }
  .home-page .info-icon { width: 34px; height: 34px; font-size: 18px; }
  .home-page .info-card strong { font-size: 14px; }
  .home-page .info-card p { font-size: 12px; }
  .home-page .property-actions { flex-direction: column; align-items: stretch; }
  .home-page .property-actions .btn { width: 100%; }
  .home-page .privacy-manage-button { min-height: 36px; padding: 6px 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .slide { transition: none; }
  .home-page .slide.active img { animation: none; transform: none; }
  .home-page .hero-cta.btn-primary, .home-page .hero-stay { transition: none; }
  .home-page .info-card, .home-page .btn { transition: none; }
}
