:root {
  --sand: #f7f1e8;
  --sand-2: #efe5d6;
  --ink: #2b2620;
  --muted: #6f655a;
  --line: #e2d6c4;
  --brand: #0a5f73;
  --brand-dark: #074656;
  --brand-light: #5cc8d2;
  --gold: #c8995e;
  --gold-dark: #9c7340;
  --white: #fffdf9;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(60, 40, 20, .25);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .eyebrow, .page-hero .eyebrow { display: inline-flex; align-items: center; gap: .9rem; }
.section-head .eyebrow::before, .section-head .eyebrow::after,
.page-hero .eyebrow::before, .page-hero .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 600; color: var(--gold-dark); margin-bottom: .75rem; display: block; }
.lead { font-size: 1.1rem; color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 95, 115, .7); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand picture { display: block; line-height: 0; }
.brand img { display: block; height: 58px; width: auto; max-width: 160px; object-fit: contain; transition: transform .25s ease; }
.brand:hover img { transform: scale(1.03); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a:not(.btn):not(.lang) { position: relative; }
.nav a.active:not(.btn):not(.lang)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav .lang { border: 1px solid var(--line); padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; }
.nav .btn { color: #fff; padding: .55rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px) {
  .site-header .container { height: 68px; }
  .brand img { height: 48px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--sand); padding: 1rem 1.25rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,32,40,.15) 15%, rgba(4,32,40,.78)); }
.hero .container { position: relative; z-index: 1; padding: 0 0 clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 14ch; }
.hero p { max-width: 52ch; font-size: 1.15rem; opacity: .92; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .eyebrow { color: #f0d3a8; }
@media (max-width: 700px) { .hero-bg { grid-template-columns: 1fr; } .hero-bg img:not(:first-child) { display: none; } }

.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.5rem; position: relative; z-index: 2; }
.highlight { background: var(--white); border-radius: var(--radius); padding: 1.25rem; display: flex; gap: .75rem; align-items: center; box-shadow: var(--shadow); font-weight: 500; }
.highlight .icon { width: 2rem; height: 2rem; color: var(--brand); }
@media (max-width: 860px) { .highlights { grid-template-columns: repeat(2, 1fr); } }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.palette { display: flex; gap: .5rem; margin-top: 1.5rem; }
.palette span { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Room cards */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.room-card {
  --accent: var(--brand);
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
  border-top: 5px solid var(--accent);
}
.room-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(60, 40, 20, .4); }
.room-card .media { position: relative; aspect-ratio: 4/3; background: var(--sand-2); overflow: hidden; }
.room-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room-card:hover .media img { transform: scale(1.04); }
.room-card .tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); padding: .25rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.room-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.room-card h3 { margin: 0; }
.room-card .meaning { color: var(--muted); font-style: italic; margin: 0; }
.room-card .specs { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .88rem; color: var(--muted); margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.room-card .specs span { display: inline-flex; gap: .35rem; align-items: center; }
.room-card .more { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: var(--accent); filter: brightness(.85); margin-top: .5rem; }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }

.filters { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filters a { text-decoration: none; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; background: var(--white); }
.filters a.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty { text-align: center; color: var(--muted); }

/* Page header */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 2rem; text-align: center; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* Room detail */
.room-hero { --accent: var(--brand); padding: 2.5rem 0 1rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; }
.room-title { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.room-title .listing { color: var(--muted); margin: 0; }
.room-title .code { display: inline-flex; gap: .5rem; align-items: center; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: .75rem; border-radius: var(--radius); overflow: hidden; }
.gallery-grid a { display: block; overflow: hidden; background: var(--sand-2); }
.gallery-grid a:first-child { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid.count-1 { grid-template-columns: 1fr; grid-auto-rows: 460px; }
.gallery-grid.count-1 a:first-child { grid-row: auto; }
.gallery-grid.count-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 420px; }
.gallery-grid.count-2 a:first-child { grid-row: auto; }
.gallery-grid.count-3 { grid-template-columns: 2fr 1fr; }
.gallery-grid.count-4 a:last-child { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery-grid, .gallery-grid.count-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-grid a:first-child, .gallery-grid.count-2 a { grid-column: span 2; grid-row: span 1; }
}

.room-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; padding: 3rem 0 5rem; align-items: start; }
@media (max-width: 960px) { .room-layout { grid-template-columns: 1fr; } }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin: 0 0 2.5rem; }
.spec { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.spec dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.spec dd { margin: .25rem 0 0; font-weight: 600; }
.story { border-left: 4px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 0 0 2rem; }
.story h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.amenity-list li { display: flex; gap: .65rem; align-items: center; }
.amenity-list .icon { color: var(--accent); width: 1.4rem; height: 1.4rem; filter: brightness(.9); }
.book-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

.card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.sticky { position: sticky; top: 92px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 95, 115, .15); }
.field input[type="date"], .field input[type="datetime-local"] {
  -webkit-appearance: none; appearance: none; min-width: 0; -webkit-rtl-ordering: logical;
  min-height: 3.1rem; display: block; line-height: normal;
}
.field input::-webkit-date-and-time-value { text-align: left; }
.field textarea { min-height: 110px; resize: vertical; }
.field .error, .form-error { color: #b42318; font-size: .85rem; margin-top: .3rem; }
.form-error { background: #fef3f2; border: 1px solid #fecdca; padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.contact-info li { display: flex; gap: .9rem; }
.contact-info .icon { width: 1.5rem; height: 1.5rem; color: var(--brand); margin-top: .2rem; }
.contact-info small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.map-section { padding-top: 0; }
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.map-head h2 { margin: 0; }
.map-head .eyebrow .icon { width: 1rem; height: 1rem; vertical-align: -2px; }
.map { width: 100%; aspect-ratio: 21/9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } .map { aspect-ratio: 4/3; } }

/* Gallery page */
.gallery-section { margin-bottom: 3.5rem; }
.gallery-section h2 { display: flex; align-items: center; gap: .75rem; font-size: 1.9rem; }
.masonry { columns: 3 280px; column-gap: .9rem; }
.masonry a { display: block; margin-bottom: .9rem; border-radius: 14px; overflow: hidden; break-inside: avoid; }
.masonry img { width: 100%; transition: transform .5s ease; }
.masonry a:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 14, 8, .92); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .close { top: 1.25rem; right: 1.25rem; }
.lightbox .prev { left: 1.25rem; }
.lightbox .next { right: 1.25rem; }
.lightbox .caption { position: absolute; bottom: 1.25rem; color: #eee; font-size: .9rem; }

/* Thanks / 404 */
.message-page { text-align: center; padding: clamp(4rem, 12vw, 9rem) 0; }
.message-page .icon { width: 4rem; height: 4rem; color: var(--brand); margin: 0 auto 1rem; }

/* Footer */
.site-footer { background: linear-gradient(180deg, #08394a, #052732); color: #cfe0e2; padding: 4rem 0 2rem; }
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer .brand img { height: auto; width: 200px; max-width: 100%; }
.site-footer a { text-decoration: none; color: #cfe0e2; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer h4 { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 1rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: #8fb0b6; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* Icons in forms & UI */
.control { position: relative; }
.control > .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: var(--muted); pointer-events: none; transition: color .15s; }
.control-top > .icon { top: .95rem; transform: none; }
.control input, .control select, .control textarea { padding-left: 2.6rem; }
.control:focus-within > .icon { color: var(--brand); }
.control select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f655a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1rem; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #b5aa9c; }
.form-error { display: flex; gap: .6rem; align-items: flex-start; }
.form-error .icon { width: 1.2rem; height: 1.2rem; margin-top: .1rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form-note { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.form-note .icon { color: var(--brand); }
.btn .icon { width: 1.05rem; height: 1.05rem; }
.nav .lang, .nav .btn { display: inline-flex; align-items: center; gap: .4rem; }
.nav .lang .icon { width: .95rem; height: .95rem; }
.filters a { display: inline-flex; align-items: center; gap: .45rem; }
.filters a .icon { width: 1rem; height: 1rem; color: var(--gold-dark); }
.filters a.active .icon { color: var(--gold); }
.title-icon { display: flex; align-items: center; gap: .6rem; }
.title-icon .icon { width: 1.4rem; height: 1.4rem; color: var(--brand); }
.eyebrow .icon { width: 1rem; height: 1rem; }
.site-footer li a, .site-footer li span { display: inline-flex; align-items: center; gap: .55rem; }
.site-footer li .icon { width: 1rem; height: 1rem; color: var(--brand-light); flex-shrink: 0; }
.socials { display: flex; gap: .6rem; margin: -0.75rem 0 2rem; }
.socials a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--brand); transition: .2s; }
.socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.contact-info li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-info li a:hover { color: var(--brand); }
.sticky .form-grid { grid-template-columns: minmax(0, 1fr); }
.sticky .form-actions { flex-direction: column; align-items: stretch; }
.sticky .form-actions .btn { justify-content: center; }
