/* Aqua Beach Hotel — site styles
   Palette from the logo. Text colors meet WCAG AA (4.5:1) on their backgrounds:
   --ink on white 13.9:1, --muted on white 6.9:1, --teal-700 on white 6.1:1,
   white on --teal-900 11.6:1, --ink on --coral 8.6:1. --teal-500/--aqua are decorative only. */
:root {
  --teal-900: #0b3f3d;
  --teal-700: #0e6e6a;
  --teal-500: #14a8a3;
  --aqua: #33d9d9;
  --coral: #fbb1ae;
  --coral-100: #fde8e6;
  --sand: #f7f3ee;
  --ink: #12302f;
  --muted: #455a59;
  --line: #d9e3e2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 63, 61, .12);
  --font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 1.0625rem/1.65 var(--font-body);
  padding-bottom: 72px; /* room for the mobile booking bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: .18em; }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--teal-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.65rem); }
h4 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

/* Focus: always visible for keyboard users */
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .hero :focus-visible { outline-color: var(--coral); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--teal-900); color: var(--white); padding: .6em 1em; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-book { background: var(--coral); color: var(--ink); }
.btn-book:hover { background: #f99692; color: var(--ink); }
.btn-primary { background: var(--teal-700); color: var(--white); }
.btn-primary:hover { background: var(--teal-900); color: var(--white); }
.btn-outline { border-color: var(--teal-700); color: var(--teal-700); background: transparent; }
.btn-outline:hover { background: var(--teal-700); color: var(--white); }
.btn-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--teal-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .06em; }
.header-book { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: none; border: 2px solid var(--teal-700); border-radius: 999px; color: var(--teal-700);
  font: 600 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn), .submenu-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 48px; padding: .5em 0; color: var(--ink); text-decoration: none;
  font: 500 1.05rem var(--font-body); background: none; border: 0; cursor: pointer; text-align: left;
}
.site-nav a:not(.btn):hover, .submenu-toggle:hover { color: var(--teal-700); }
.site-nav a[aria-current="page"] { color: var(--teal-700); font-weight: 700; }
.submenu-toggle::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin: 0 6px 4px 12px; transition: transform .2s;
}
.submenu-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -4px; }
.submenu { padding-left: 14px !important; border-left: 3px solid var(--coral); margin-bottom: 8px !important; }
.submenu a { font-size: 1rem; min-height: 44px; }
.js .submenu[hidden] { display: none; }

/* Mobile: nav is a panel under the header (only collapsed when JS is available) */
@media (max-width: 74.99rem) {
  .site-nav { border-top: 1px solid var(--line); padding: 8px 16px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: var(--shadow); }
  .js .site-nav[hidden] { display: none; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-book { margin-top: 16px; }
  .nav-book .btn { width: 100%; }
}

/* Desktop: horizontal nav with dropdowns */
@media (min-width: 75rem) {
  :root { --header-h: 80px; }
  .site-nav a:not(.btn), .submenu-toggle { white-space: nowrap; }
  body { padding-bottom: 0; }
  .brand img { height: 58px; }
  .nav-toggle { display: none; }
  .site-nav[hidden] { display: block; }
  .site-nav > ul { display: flex; align-items: center; gap: 4px; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a:not(.btn), .submenu-toggle { padding: .5em .8em; width: auto; font-size: 1rem; }
  .submenu {
    position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white);
    border: 1px solid var(--line); border-left: 0; border-top: 3px solid var(--coral);
    border-radius: 0 0 10px 10px; box-shadow: var(--shadow); padding: 8px 0 !important; margin: 0 !important;
  }
  .submenu a { padding: .4em 1.1em; }
  .submenu a:hover { background: var(--sand); }
  .nav-book { margin-left: 10px; }
}

/* ---------- Mobile booking bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(11, 63, 61, .1);
}
.mobile-bar .btn { min-height: 48px; padding: .6em .8em; }
@media (min-width: 75rem) { .mobile-bar { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--teal-900); overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,63,61,.15) 0%, rgba(11,63,61,.55) 55%, rgba(11,63,61,.85) 100%); }
.hero-content { position: relative; z-index: 1; min-height: min(78vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 40px; }
.hero h1 { color: var(--white); max-width: 18ch; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font-size: 1.15rem; max-width: 40ch; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.eyebrow { font: 600 .82rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .6em; display: block; }
.hero .eyebrow { color: var(--coral); }

/* Interior page header: photo strip + title band */
.page-head-img { aspect-ratio: 16 / 10; width: 100%; overflow: hidden; background: var(--sand); }
.page-head-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
@media (min-width: 52rem) { .page-head-img { aspect-ratio: 16 / 6; max-height: 460px; } }
.page-title { background: var(--sand); padding: 28px 0 24px; border-bottom: 4px solid var(--coral); }
.page-title h1 { margin: 0; }
.page-title p { margin: .5em 0 0; color: var(--muted); max-width: 60ch; }
/* Split page header: whole photo beside the title (used where a wide crop would cut the photo apart) */
.page-title-split { padding: 0 0 28px; }
.page-title-split .wrap { display: grid; gap: 22px; }
.pts-photo { margin: 0 -16px; }
.pts-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 52rem) {
  .page-title-split { padding: 40px 0; }
  .page-title-split .wrap { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .pts-photo { order: 2; margin: 0; }
  .pts-photo img { border-radius: var(--radius); max-height: 520px; box-shadow: var(--shadow); }
}
.breadcrumb { font-size: .9rem; margin-bottom: .4em; color: var(--muted); }
.breadcrumb a { color: var(--teal-700); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--teal-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--coral); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 70ch; }
.center { text-align: center; }
.center .lead, .center .prose { margin-left: auto; margin-right: auto; }
@media (min-width: 48rem) { .section { padding: 72px 0; } }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}
.split img, .rounded { border-radius: var(--radius); }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Cards (rooms, condos, things to do) */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(11,63,61,.05); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .25em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card-body p { color: var(--muted); margin-bottom: .8em; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .8em; padding: 0; list-style: none; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; padding: .2em .7em; border-radius: 999px; background: var(--coral-100); color: var(--ink); }
.tag-teal { background: #e0f4f3; }
.card-link { margin-top: auto; font-weight: 600; }

/* Feature/amenity lists */
.check-list { list-style: none; padding: 0; display: grid; gap: 8px 24px; }
@media (min-width: 40rem) { .check-list.cols { grid-template-columns: repeat(2, 1fr); } }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.panel { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.section-alt .panel { border: 0; }

/* Room / condo detail blocks */
.unit { padding: 40px 0; border-top: 1px solid var(--line); }
.unit:first-of-type { border-top: 0; }
.unit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 12px; }
.unit-head h2 { margin: 0; }
.unit-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.unit-body { display: grid; gap: 24px; }
@media (min-width: 60rem) { .unit-body { grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; } }
.floorplan { margin: 1em 0 0; }
.floorplan img { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.floorplan figcaption { font-size: .9rem; color: var(--muted); margin-top: .4em; }

/* Galleries: swipeable row on phones, grid on larger screens */
.gallery { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery li { scroll-snap-align: start; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-hint { font-size: .9rem; color: var(--muted); margin: .4em 0 0; }
@media (min-width: 40rem) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .gallery-hint { display: none; }
}
.gallery-sub { font: 600 .95rem var(--font-body); color: var(--muted); margin: 1.4em 0 .6em; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 25, 24, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 8px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--white); font-size: .95rem; padding: 0 60px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--white); background: rgba(11,63,61,.7); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-btn:focus-visible { outline: 3px solid var(--coral); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Notices */
.notice { border-left: 5px solid var(--coral); background: var(--coral-100); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 1.5em; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--teal-900); }

/* Tables (package rates) */
.table-wrap { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.rates caption { text-align: left; font: 1.3rem var(--font-head); color: var(--teal-900); padding-bottom: .5em; }
.rates th, .rates td { padding: .75em 1em; text-align: left; border-bottom: 1px solid var(--line); }
.rates thead th { background: var(--teal-900); color: var(--white); font-weight: 600; }
.rates td:last-child, .rates th:last-child { text-align: right; white-space: nowrap; }
.rates tr.season td { background: var(--coral-100); font-weight: 600; text-align: left; }

/* Policies */
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 2em; }
.policy-nav a { display: inline-block; padding: .4em .9em; border-radius: 999px; background: var(--sand); text-decoration: none; font-size: .95rem; }
.policy-nav a:hover { background: var(--coral-100); }
.policy { padding: 1.4em 0; border-top: 1px solid var(--line); }
.policy h2 { font-size: 1.45rem; }

/* Menu (cafe) */
.menu-list { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 48rem) { .menu-list { grid-template-columns: 1fr 1fr; gap: 16px 40px; } }
.menu-list strong { display: block; color: var(--teal-900); }
.menu-list span { color: var(--muted); }

/* Testimonials */
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--coral); }
.quote p { font-size: 1.05rem; }
.quote footer { color: var(--muted); font-size: .95rem; }

/* Things to do */
.activity { display: grid; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); align-items: center; }
.activity:first-child { border-top: 0; }
.activity img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 48rem) { .activity { grid-template-columns: 320px 1fr; gap: 36px; } }

/* Contact block */
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--teal-700); }
.section-dark .contact-list svg { color: var(--coral); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #e6f2f1; padding: 48px 0 24px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--coral); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.footer-logo { width: 160px; margin-bottom: 16px; }
.site-footer h2 { font-size: 1.1rem; color: var(--white); font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social { display: flex; gap: 12px; margin-top: 12px; }
.social a { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.5); }
.social a:hover { border-color: var(--coral); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 18px; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
