/* Corsica Paradise — calm, minimal stylesheet. No frameworks. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

:root {
  --green-950: #0d2522;
  --green-900: #163530;
  --green-700: #2b5a50;
  --cream: #fffdf8;
  --sand: #f6f2ea;
  --ink: #24302d;
  --muted: #6a7672;
  --gold: #d1a548;
  --line: rgba(36, 48, 45, .1);
  --radius: 16px;
  --wrap: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; line-height: 1.6; color: var(--ink); background: var(--cream); }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; font-weight: 400; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cards--two { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
@media (max-width: 640px) { .cards--two { grid-template-columns: 1fr; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--green-950); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.muted { color: var(--muted); }

/* Subtle reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 11px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: .94rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--gold { background: var(--gold); color: var(--green-950); }
.btn--gold:hover { background: #dcb45f; }
.btn--green { background: var(--green-900); color: var(--cream); }
.btn--green:hover { background: var(--green-700); }
.btn--line { border-color: currentColor; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--green-700); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Header: logo · language · book · menu */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--green-900); color: var(--cream); transition: background .3s, box-shadow .3s; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.has-hero .site-header.is-solid, .menu-open .site-header { background: var(--green-900); }
.brand { margin-right: auto; display: flex; }
.brand img { width: 116px; height: auto; }
.lang { font-size: .82rem; letter-spacing: .06em; display: flex; gap: 8px; align-items: center; }
.lang a { text-decoration: none; opacity: .65; }
.lang a:hover { opacity: 1; }
.lang span[aria-current] { font-weight: 600; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 10px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: .9rem; }
.menu-btn__bars { position: relative; width: 22px; height: 2px; background: currentColor; transition: background .2s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 640px) { .site-header .lang, .menu-btn__label, .header-book { display: none; } }

/* Menu overlay */
.menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: var(--green-900); color: var(--cream); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: clamp(32px, 6vw, 72px) 0 48px; }
@media (max-width: 760px) { .menu .wrap { grid-template-columns: 1fr; } }
.menu nav ul { list-style: none; margin: 0; padding: 0; }
.menu nav a { display: block; padding: 8px 0; font-size: clamp(1.6rem, 4vw, 2.4rem); text-decoration: none; transition: color .2s, transform .3s var(--ease); }
.menu nav a:hover { color: var(--gold); transform: translateX(6px); }
.menu__side { display: grid; gap: 22px; align-content: start; font-size: .95rem; color: rgba(255, 253, 248, .75); }
.menu__side a { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.menu__side a:hover { color: var(--gold); }
.menu__side .lang { font-size: 1rem; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--cream); background: var(--green-950); isolation: isolate; overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 37, 34, .45) 0%, rgba(13, 37, 34, 0) 22%, rgba(13, 37, 34, .1) 40%, rgba(13, 37, 34, .78) 72%, rgba(13, 37, 34, .85) 100%); }
.hero h1, .hero__sub { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero__content { padding: calc(var(--header-h) + 48px) 0 clamp(36px, 6vw, 64px); }
.hero__sub { font-size: .95rem; opacity: .9; margin-bottom: .6rem; }
.hero h1 { max-width: 12ch; margin-bottom: 32px; }

/* Booking */
.booking { background: var(--cream); color: var(--ink); border-radius: 20px; padding: 14px; max-width: 1000px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); }
.booking__grid { display: grid; grid-template-columns: 1fr 1fr .8fr 1.1fr auto; gap: 8px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.field input, .field select { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: .96rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(209, 165, 72, .28); }
.booking .btn { min-height: 50px; padding-inline: 26px; white-space: nowrap; }
.booking__summary { margin: 10px 4px 0; font-size: .85rem; color: var(--green-700); font-weight: 500; }
.booking__summary:empty { display: none; }
.booking__error { display: none; margin: 10px 4px 0; font-size: .86rem; color: #a2321f; }
.booking__error.is-visible { display: block; }
@media (max-width: 960px) { .booking__grid { grid-template-columns: 1fr 1fr; } .booking .btn { grid-column: 1 / -1; } }
.booking--card { box-shadow: none; border: 1px solid var(--line); padding: 16px; max-width: none; }
.booking--card .booking__grid { grid-template-columns: 1fr 1fr; }
.booking--card .btn, .booking--card .field:nth-child(4) { grid-column: 1 / -1; }

/* Key facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 32px 0; margin: 0; border-bottom: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 12px; font-size: .93rem; }
.facts .icon { width: 26px; height: 26px; color: var(--green-700); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* Slider (scroll-snap) */
.slider { position: relative; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 253, 248, .9); color: var(--green-950); cursor: pointer; opacity: 0; transition: opacity .25s; }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }
.slider:hover .slider__btn, .slider:focus-within .slider__btn { opacity: 1; }
.slider__btn[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .slider__btn { display: none; } }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.slider__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background .25s, transform .25s; }
.slider__dots span.is-active { background: #fff; transform: scale(1.3); }

/* Mobile home cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card .slider { border-radius: var(--radius); overflow: hidden; }
.card .slider__slide { aspect-ratio: 4 / 3; }
.card__body { padding: 16px 2px 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.card h3 { font-size: 1.3rem; margin: 0; }
.card h3 a { text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 6px 0 0; width: 100%; font-size: .86rem; color: var(--muted); }
.chips li { display: inline-flex; align-items: center; gap: 6px; }
.chips .icon { width: 17px; height: 17px; color: var(--green-700); }

/* Masonry gallery */
.masonry { columns: 3 280px; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; position: relative; background: var(--sand); }
.masonry button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.masonry button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.masonry img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 12px; bottom: 12px; font-size: .82rem; padding: 4px 12px; border-radius: 999px; background: rgba(255, 253, 248, .92); color: var(--green-950); pointer-events: none; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 20, 18, .95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 64px 72px 24px; }
.lightbox img { max-height: calc(100vh - 130px); max-width: 100%; width: auto; border-radius: 8px; }
.lightbox figcaption { font-size: .9rem; opacity: .85; }
.lightbox__btn { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255, 253, 248, .25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 14px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: fixed; top: 26px; left: 22px; font-size: .85rem; opacity: .7; }
@media (max-width: 640px) { .lightbox figure { padding: 64px 0 20px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; } }

/* Region slider */
.region .slider__track { gap: 20px; }
.region .slider__slide { flex: 0 0 min(340px, 78%); }
.place__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.place__img img { transition: transform .9s var(--ease); }
.place:hover .place__img img { transform: scale(1.05); }
.place h3 { margin: 14px 0 2px; }
.place p { margin: 0; font-size: .9rem; color: var(--muted); }
.place small { font-size: .78rem; color: var(--green-700); font-weight: 500; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, opacity .2s; }
.slider-nav button:hover { border-color: var(--green-700); }
.slider-nav button[disabled] { opacity: .35; pointer-events: none; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-700); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 20px 0; margin: 0; }

/* CTA */
.cta { position: relative; overflow: hidden; color: var(--cream); padding: clamp(96px, 14vw, 180px) 0; isolation: isolate; text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13, 37, 34, .5); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cta p { margin: 18px 0 0; font-size: .92rem; opacity: .85; }
.cta p a { text-decoration: none; }
.cta p a:hover { text-decoration: underline; }

/* Unit page */
.unit-top { padding: 28px 0 clamp(56px, 8vw, 96px); }
.breadcrumb { font-size: .84rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); }
.unit-title { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; }
.unit-title span { display: block; font-size: .4em; color: var(--muted); letter-spacing: 0; margin-top: .4em; }
.unit-top .chips { margin: 16px 0 0; font-size: .92rem; }
.unit-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: 28px; }
@media (max-width: 960px) { .unit-grid { grid-template-columns: 1fr; } }
.unit-slider .slider { border-radius: var(--radius); overflow: hidden; }
.unit-slider .slider__slide { aspect-ratio: 3 / 2; }
.unit-slider .slider__slide button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: 0 0 84px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; background: none; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--gold); }
.unit-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.unit-aside h2 { font-size: 1.2rem; margin: 0 0 12px; }
.unit-aside .note { font-size: .82rem; color: var(--muted); margin: 12px 2px 0; }
.unit-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .unit-about { grid-template-columns: 1fr; gap: 24px; } }
.unit-about p { font-size: 1.05rem; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.features li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.features .icon { width: 22px; height: 22px; color: var(--green-700); }
.plan { margin-top: 40px; }
.plan button { all: unset; display: block; cursor: zoom-in; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; padding: 12px; }

/* Legal */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; font-weight: 500; }
.prose p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(255, 253, 248, .7); padding: 52px 0 24px; font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 253, 248, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }

/* Sticky mobile booking button */
.mobile-book { display: none; }
@media (max-width: 760px) {
  .mobile-book { display: flex; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 50; transform: translateY(150%); transition: transform .4s var(--ease); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
  .mobile-book.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
