/* =====================================================
   COIMJ VILLA – style.css (FULL, fully responsive)
   Breakpoints: 1600+ | 1100 | 860 | 620 | 380 | landscape
   ===================================================== */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #fff;
  --ink: #452919;
  --mut: #62706a;
  --g2: #d8c8aa;
  --g: #3b2a20;
  --gold: #b08d4a;
  --line: #e3ded2;
  --btn: #050044e6;
  --header-shade: rgba(0, 0, 0, 0.35); /* how dark the top bar is: 0 = no change, 0.6 = almost black */
  @import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@800;900&display=swap");

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.65 DM Sans, system-ui, sans-serif;
  overflow-x: clip;
}
img,
video,
svg {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: DM Sans, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
}
h1 {
  font-size: clamp(34px, 5.5vw, 56px);
}
h2 {
  font-size: clamp(26px, 3.5vw, 36px);
}
h3 {
  font-size: 20px;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wrap {
  max-width: 1420px;
  margin: auto;
  padding: 0 20px;
}
header {
  /* background: var(--card); */
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(176, 141, 74, 0.22)),
    linear-gradient(160deg, var(--g), var(--g2));
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* ---------- Header wordmark: COIMJ / VILLA beside the logo ---------- */
header .logo,
footer .logo {
  display: flex;
  align-items: center;
}
header .logo-word,
footer .logo-word {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 5px 8px;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap;
}
header .lw-main,
footer .lw-main {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: #ffffff;
}
header .lw-j,
footer .lw-j {
  color: #c0914f;
}
header .lw-sub,
footer .lw-sub {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.55em;
  margin-right: -0.55em; /* cancels the trailing letter-space so VILLA stays centred */
  margin-top: 5px;
  color: #c0914f;
}
@media (max-width: 860px) {
  header .logo {
    gap: 8px;
  }
  header .logo-word {
    padding: 5px 10px 6px;
  }
  header .lw-main {
    font-size: 20px;
  }
  header .lw-sub {
    font-size: 8px;
    margin-top: 4px;
  }
}
@media (max-width: 380px) {
  header .lw-main {
    font-size: 17px;
  }
  header .lw-sub {
    font-size: 7px;
  }
}


.logo {
  font-family: DM Sans, system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fff;
}
.logo i {
  color: var(--gold);
  font-style: normal;
}
.logo small {
  display: block;
  font: 400 9px Inter;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
nav {
  display: flex;
  gap: 8px;
}
nav a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 20px;
  font-weight: 600;
  font-family: DM Sans, system-ui, sans-serif;
}
nav a.on {
  /* background: var(--g); */
  background: var(--btn);
  color: #fff;
}
nav a:hover {
  color: var(--g2);
}
nav a.on:hover {
  color: #fff;
}
.btn {
  display: inline-block;
  /* background: var(--g); */
  background: var(--btn);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  border-radius: 4px;
  font: 500 14px Inter;
  cursor: pointer;
}
.btn.dk {
  /* background: var(--g); */
  background: var(--btn);
}
.btn:hover {
  filter: brightness(1.1);
}
#menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 4px;
  padding: 6px 10px;
}
@media (max-width: 860px) {
  #menu {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
  }
  nav.open {
    display: flex;
  }
  /*header .btn {*/
  /*  display: none;*/
  /*}*/
}
.hero {
  position: relative;
  color: #fff;
  padding: 90px 0 80px;
  background-size: cover;
}
.hero.tall {
  padding: 130px 0 120px;
}
.hero p {
  max-width: 520px;
  margin: 14px 0 22px;
  opacity: 0.92;
}
.hero .crumb {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
}
.ph {
  border-radius: 6px;
  min-height: 160px;
  background: var(--b);
}
.sec {
  padding: 56px 30px;
}
.grid {
  display: grid;
  gap: 22px;
}
.g2 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.g3 {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.g4 {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.card .bd {
  padding: 16px;
}
.card .ph {
  border-radius: 0;
  height: 170px;
}
.mut {
  color: var(--mut);
  font-size: 14px;
}
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  text-align: center;
  padding: 34px 0;
}
.feat b {
  display: block;
  font-family: DM Sans, system-ui, sans-serif;
  font-size: 19px;
}
.feat i {
  font-style: normal;
  font-size: 26px;
  color: var(--gold);
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font: 13px Inter;
}
.tabs button.on {
  background: var(--g);
  color: #fff;
  border-color: var(--g);
}
.price {
  color: var(--gold);
  font-weight: 600;
}
form {
  display: grid;
  gap: 14px;
}
label {
  font-size: 13px;
  font-weight: 500;
  display: grid;
  gap: 5px;
}
input,
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.panel.split {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    /* Shadow effect */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18),
        0 3px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    transition: all 0.3s ease;
}

/* Hover effect */
.panel.split:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.25),
        0 5px 12px rgba(0, 0, 0, 0.15);
}
/* Same soft shadow card look as the "Plan your journey" box
   (used by "Need a custom stay?" and "Write a Review") */
.panel.card-shadow {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    0 3px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}
.panel.card-shadow:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.25),
    0 5px 12px rgba(0, 0, 0, 0.15);
}
/* a form must not move while the guest is typing: shadow gets stronger, no lift */
form.panel.card-shadow:hover {
  transform: none;
}
.ok {
  background: #e7f3ea;
  color: #1c5a34;
  padding: 12px 14px;
  border-radius: 4px;
  margin-top: 12px;
  font-size: 14px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }

}
.map {
  height: 380px;
  margin: 40px 70px;
  border-radius: 6px;
  position: relative;
  background: linear-gradient(120deg, #cfe0d6, #e8efe6 40%, #b9d6df);
}
.map span {
  position: absolute;
  left: 50%;
  top: 48%;
  background: var(--g);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  transform: translate(-50%, -50%);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: up 0.8s both;
  }
  @keyframes up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}
.btn {
  font: 600 16px DM Sans, system-ui, sans-serif;
}
.top {
  background: #000; /* contact strip above the menu: plain black */
  color: #eee9dc;
  font-size: 12px;
}
.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
}
.hero.home {
  padding: 0;
}
.hg {
  display: flex;
  grid-template-columns: 1fr 330px;
  gap: 30px;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 400px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.hero.home h1 {
  font-weight: 500;
}
.eb {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eb::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: #e6d3a3;
  margin-left: 12px;
  vertical-align: middle;
}
.bk {
  background: #fbf8f0;
  color: #1d2a24;
  padding: 20px;
  width: 400px;
  border: 1px solid var(--gold);
  outline: 1px solid #b08d4a66;
  outline-offset: 4px;
  border-radius: 10px;
  gap: 10px;
}
.bk h3 {
  font-size: 22px;
  font-weight: 500;
}
.bk label {
  border: 1px solid #e3ded2;
  padding: 6px 10px;
  background: #fff;
  font-weight: 400;
  font-size: 11px;
  color: #62706a;
  gap: 0;
}
.bk input,
.bk select {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: #1d2a24;
  font-size: 13px;
}
.feat > div + div {
  border-left: 1px solid var(--line);
}
.feat {
  padding: 30px 0;
}
.feat b {
  margin: 4px 0;
}
.sh {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 26px 0 18px;
  gap: 12px;
}
.ey {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mut);
  text-transform: uppercase;
}
.ey::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  margin-left: 10px;
  vertical-align: middle;
}
/* Full-image hover cards */
.hc {
  position: relative;
  display: block;
  height: 400px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--g);
}
.hc .ph {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  transition: transform 0.6s ease;
}
.hc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 0, 68, 0.9) 0%,
    rgba(5, 0, 68, 0.25) 55%,
    rgba(5, 0, 68, 0) 100%
  );
  transition: background 0.4s ease;
}
.hc:hover::after,
.hc:focus-visible::after {
  background: linear-gradient(
    to top,
    rgba(5, 0, 68, 0.96) 0%,
    rgba(5, 0, 68, 0.8) 100%
  );
}
.hc .bd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
}
.hc .tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font:
    600 11px Inter,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hc h3 {
  font-size: 24px;
  color: #fff;
}
.hc .more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.4s ease,
    opacity 0.4s ease;
}
.hc .more > div {
  overflow: hidden;
}
.hc .more p {
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 12px;
  opacity: 0.92;
}
.hc .lm {
  font-size: 14px;
  font-weight: 600;
  color: #e6d3a3;
}
.hc:hover .more,
.hc:focus-visible .more {
  grid-template-rows: 1fr;
  opacity: 1;
}
/* touch devices: hover nathi nisa details hamadama pennanna */
@media (hover: none) {
  .hc .more {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .hc::after {
    background: linear-gradient(
      to top,
      rgba(5, 0, 68, 0.94),
      rgba(5, 0, 68, 0.35)
    );
  }
}
.ab {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
}
@media (max-width: 860px) {
  .hg,
  .ab {
    grid-template-columns: 1fr;
  }
  .feat > div + div {
    border: 0;
  }

  
  .map {
    margin: 40px;
}
}
footer {
  background: var(--g);
  color: #261b01;
  font-weight: 600;
  border-top: 3px solid var(--gold);
  margin-top: 50px;
  padding-top: 56px;
}
.fg {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
footer .logo {
  color: #e6d3a3;
  font-size: 30px;
}
footer p {
  font-size: 16px;
  opacity: 0.8;
  margin: 12px 0;
}
footer h4 {
  font: 600 24px DM Sans, system-ui, sans-serif;
  color: #e6d3a3;
  margin-bottom: 14px;
}
footer nav {
  display: flex;
  flex-direction: column;
  position: static;
  padding: 0;
  background: none;
  gap: 9px;
}
footer nav a {
  color: #eee9dc;
  opacity: 0.8;
  padding: 0;
  font: 400 16px DM Sans, system-ui, sans-serif;
  border-radius: 0;
}
footer nav a:hover,
footer nav a.on {
  background: none;
  color: #e6d3a3;
  opacity: 1;
}
.soc {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
/* .soc a {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
} */



.soc a {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #eee9dc;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.soc a svg {
  display: block;
  width: 20px;
  height: 20px;
}
.soc a:hover {
  color: #fff;
  transform: translateY(-3px);
}
/* brand colours on hover */
.soc .fb-i { background: #1877f2; border-color: #1877f2; }
.soc .wa-i { background: #25d366; border-color: #25d366; }
.soc .ig-i {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border-color: #dc2743;
}
.soc .tt-i { background: #000; }

footer .btn {
  margin-top: 6px;
}
.fb {
  border-top: 1px solid #ffffff22;
  font-size: 13px;
  opacity: 0.75;
}
.fb .wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
/* Footer credit bar */
.fb-credit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.fb-credit .ln {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.fb-credit p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  text-align: center;
  font-size: 16px;
}
.fb-credit .dev {
  color: #ff0000 ;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fb-credit a:hover {
  color: #a40000;
}
@media (max-width: 860px) {
  .fg {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .fg {
    grid-template-columns: 1fr;
  }
}
.hero.home {
  min-height: calc(100vh - 94px);
  min-height: calc(100svh - 94px);
  display: flex;
  align-items: center;
  padding: 0;
}
.hero.home .hg {
  width: 100%;
  min-height: 0;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* =====================================================
   REVIEWS (dark creative layout) – fully responsive
   Slider eka container query walin: slider eke REAL
   width eka anuwa 2-up / 1-up wenas wenawa.
   ===================================================== */
.rv {
  position: relative;
  overflow: hidden;
  margin-top: 50px;
  padding: 80px 0 64px;
  color: #fff;
  background:
    radial-gradient(
      900px 400px at 85% 0%,
      rgba(176, 141, 74, 0.22),
      transparent 60%
    ),
    linear-gradient(160deg, var(--g), var(--g2));
}
.rv::before {
  content: "”";
  position: absolute;
  right: 4%;
  top: -60px;
  font: 600 420px/1 DM Sans, system-ui, sans-serif;
  color: rgba(230, 211, 163, 0.06);
  pointer-events: none;
}
.rv-grid {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.rv .ey {
  color: #e6d3a3;
}
.rv .ey::after {
  background: #e6d3a3;
}
.rv-info {
  min-width: 0;
}
.rv-info h2 {
  margin: 10px 0 26px;
  color: #fff;
}
.rv-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.rv-score b {
  font: 500 68px/1 DM Sans, system-ui, sans-serif;
  color: #e6d3a3;
}
.rv-score small {
  display: block;
  font-size: 13px;
  opacity: 0.75;
  margin-top: 2px;
}
.stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 18px;
}
.rv-bars {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 12px;
}
.rv-bars li {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.rv-bars i {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.rv-bars u {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e6d3a3);
  border-radius: 99px;
}
.rv-bars em {
  font-style: normal;
  opacity: 0.7;
  text-align: right;
}

/* Slider: real width eka balanna */
.rv-slider {
  container-type: inline-size;
  min-width: 0;
}

/* Track: side padding => shadow / hover lift clip nowenna */
.rv-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 8px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 10px 8px 52px;
  -webkit-overflow-scrolling: touch;
}
.rv-track::-webkit-scrollbar {
  display: none;
}
.rv-track .rc {
  flex: 0 0 calc((100% - 22px) / 2);
  scroll-snap-align: start;
  min-width: 0;
}
.rc {
  position: relative;
  background: #fbf8f0;
  color: var(--ink);
  border-radius: 10px;
  padding: 46px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  border-top: 3px solid var(--gold);
  transition: transform 0.35s;
}
.rc:nth-child(even) {
  margin-top: 34px;
}
.rc:hover {
  transform: translateY(-6px);
}
.qm {
  position: absolute;
  top: 6px;
  left: 20px;
  font: 600 90px/1 DM Sans, system-ui, sans-serif;
  color: var(--gold);
  opacity: 0.55;
}
.rc blockquote {
  font: italic 500 clamp(17px, 0.9vw + 13px, 20px) / 1.5 DM Sans, system-ui,
    sans-serif;
  flex: 1;
  overflow-wrap: anywhere;
}
.rc figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  border-top: 1px dashed #d9cfb6;
  padding-top: 16px;
}
.rc figcaption > div {
  min-width: 0;
}
.rc figcaption b {
  display: block;
  font-size: 14px;
}
.rc figcaption small {
  color: var(--mut);
  font-size: 12px;
}
.av {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  display: grid;
  place-items: center;
  font: 600 18px DM Sans, system-ui, sans-serif;
  box-shadow:
    0 0 0 3px #fbf8f0,
    0 0 0 4px var(--gold);
}
.chip {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Slider eka kuda unama (<600px) => 1 card, stagger nathuwa */
@container (max-width: 599px) {
  .rv-track .rc {
    flex-basis: 100%;
  }
  .rc:nth-child(even) {
    margin-top: 0;
  }
  .rc {
    padding: 42px 20px 18px;
  }
  .rc .chip {
    margin-left: 0;
  }
}
/* Slider eka nuhuru (<=420px) */
@container (max-width: 420px) {
  .rc blockquote {
    font-size: 17px;
  }
  .qm {
    font-size: 72px;
  }
}

/* Dots: pena size small, tap area loku */
.rv-ctrl {
  display: flex;
  justify-content: center;
}
.rv-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.rv-dots button {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    width 0.3s,
    background 0.3s;
}
.rv-dots button::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.rv-dots button.on {
  width: 28px;
  background: #e6d3a3;
}

@media (max-width: 980px) {
  .rv-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .rv::before {
    font-size: 260px;
    right: 0;
    top: -30px;
  }
  .rv-info {
    max-width: 560px;
  }
  .rv-bars {
    max-width: 420px;
  }
}
@media (max-width: 620px) {
  .rv {
    margin-top: 36px;
    padding: 48px 0 40px;
  }
  .rv::before {
    font-size: 200px;
    top: -20px;
  }
  .rv-info h2 {
    margin-bottom: 18px;
  }
  .rv-score {
    gap: 12px;
    margin-bottom: 18px;
  }
  .rv-score b {
    font-size: 56px;
  }
  .rv-track {
    gap: 14px;
    padding-bottom: 40px;
  }
}
@media (max-width: 380px) {
  .rv-score b {
    font-size: 48px;
  }
  .stars {
    font-size: 16px;
  }
  .rv-bars li {
    grid-template-columns: 24px 1fr 32px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv-track {
    scroll-behavior: auto;
  }
}

/* Contact */
.ct {
  padding: 40px 0 56px;
}
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.ct-info ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 18px;
}
.ct-info li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ct-info li i {
  font-style: normal;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.ct-info li b {
  display: block;
  font: 600 18px DM Sans, system-ui, sans-serif;
}
.ct-info li span {
  color: var(--mut);
  font-size: 14px;
}
.ct-form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ct-form textarea {
  resize: vertical;
}
.ct-form .btn {
  justify-self: start;
}
.ok[hidden] {
  display: none;
}
/* Contact form placeholders */
.ct-form input::placeholder,
.ct-form textarea::placeholder {
  color: #9a9488;
  opacity: 1;
}
@media (max-width: 860px) {
  .ct-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .ct-form .two {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   RESPONSIVE LAYER (all devices)
   ===================================================== */

/* ---------- Large screens ---------- */
@media (min-width: 1600px) {
  body {
    font-size: 16px;
  }
  .wrap {
    max-width: 1560px;
  }
}

/* ---------- Laptop / small desktop (861 – 1100) ---------- */
@media (min-width: 861px) and (max-width: 1100px) {
  header .wrap {
    gap: 10px;
  }
  nav {
    gap: 2px;
  }
  nav a {
    padding: 8px 10px;
    font-size: 15px;
  }
  header .btn {
    padding: 9px 14px;
    font-size: 15px;
  }
  .logo {
    font-size: 21px;
  }
  .hg {
    grid-template-columns: 1fr 300px;
  }
  .ab {
    grid-template-columns: 1fr 1.4fr;
  }
  .ab .q {
    grid-column: 1 / -1;
  }
  .hc {
    height: 360px;
  }
}

/* ---------- Tablet & below (<= 860) ---------- */
@media (max-width: 860px) {
  header .btn {
    display: inline-block;
    margin-left: auto;
    text-align:center;
    /*padding: 8px 14px;*/
    font-size: 11px;
  }
  #menu {
    min-height: 40px;
    min-width: 64px;
    font: 500 14px DM Sans, system-ui, sans-serif;
    cursor: pointer;
  }
  /* mobile menu: same brown/gold look as the header (white links were invisible on the old white background) */
  #menu {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
  }
  #menu:hover,
  #menu:focus-visible {
    background: rgba(255, 255, 255, 0.2);
  }
  header nav {
    background:
      linear-gradient(var(--header-shade), var(--header-shade)),
      radial-gradient(500px 220px at 100% 0%, rgba(176, 141, 74, 0.28), transparent),
      linear-gradient(160deg, var(--g), #6b4a33);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    gap: 4px;
  }
  header nav a {
    padding: 12px 14px;
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  header nav a:last-child {
    border-bottom: 0;
  }
  header nav a:hover,
  header nav a:focus-visible {
    color: var(--g2);
    background: rgba(255, 255, 255, 0.08);
  }
  header nav a.on {
    background: var(--gold);
    color: #fff;
    border-bottom-color: transparent;
  }
  header nav a.on:hover {
    color: #fff;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .hero.home .hg {
    padding-top: 36px;
    padding-bottom: 36px;
    gap: 26px;
  }
  .bk {
    max-width: 480px;
    width: 100%;
  }
  .sec {
    padding: 40px 0;
  }
  .hc {
    height: 340px;
  }
  .ab .q {
    padding: 24px 16px;
  }
  .rv {
    padding: 64px 0 52px;
  }
}

/* ---------- Phones (<= 620) ---------- */
@media (max-width: 620px) {
  .wrap {
    padding: 16px;
  }
  .top .wrap span:last-child {
    display: none;
  }
  .top .wrap {
    justify-content: center;
  }
  .top .wrap span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11.5px;
  }
  .logo {
    font-size: 20px;
  }
  .logo small {
    font-size: 8px;
    letter-spacing: 0.16em;
  }
  .hero {
    padding: 48px 0 44px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero.home {
    min-height: 0;
  }
  .hero.home .hg {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .feat {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
    padding: 24px 0;
  }
  .feat > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .feat > div + div {
    border: 0;
  }
  .sh {
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 0 14px;
  }
  .hc {
    height: 300px;
  }
  .hc .bd {
    padding: 18px;
  }
  .hc h3 {
    font-size: 22px;
  }
  .ab {
    gap: 20px;
  }
  .panel {
    padding: 18px;
  }
  .split {
    gap: 24px;
  }
  .ct {
    padding: 24px 0 40px;
  }
  .ct-grid {
    gap: 28px;
  }
  /* iOS zoom nathi wenna inputs 16px */
  input,
  select,
  textarea,
  .bk input,
  .bk select {
    font-size: 16px;
  }
  .btn,
  .tabs button {
    min-height: 44px;
  }
  .btn {
    padding: 12px 20px;
  }
  .bk .btn,
  .panel form .btn,
  .rd-btns .btn,
  .rd-btns {
    width: 100%;
    text-align: center;
  }
  .ct-form .btn {
    justify-self: stretch;
    text-align: center;
  }
  /* Tabs: swipe row */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 16px -16px;
    padding: 0 16px 4px;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs button {
    flex: none;
    min-height: 40px;
  }
  /* Gallery */
  #gg {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  #gg .ph {
    height: 120px !important;
  }
  /* Room details */
  .rd-list {
    grid-template-columns: 1fr;
  }
  .rd-thumbs {
    gap: 8px;
  }
  .rd-thumbs button {
    height: 64px;
  }
  /* Footer */
  footer {
    padding-top: 40px;
    margin-top: 36px;
  }
  .fg {
    gap: 28px;
    padding-bottom: 28px;
  }
  .fb-credit .ln {
    display: none;
  }
  .fb-credit p {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- Very small phones (<= 380) ---------- */
@media (max-width: 380px) {
  h1 {
    font-size: 30px;
  }
  .logo {
    font-size: 18px;
  }
  /*header .btn {*/
  /*  display: none;*/
  /*}*/
  .feat {
    grid-template-columns: 1fr;
  }
  .hc {
    height: 280px;
  }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero.home {
    min-height: 0;
  }
  .hero {
    padding: 36px 0;
  }
  .rv {
    padding: 36px 0 28px;
  }
  .lb {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* ---------- Touch devices ---------- */
@media (hover: none) {
  .rc:hover {
    transform: none;
  }
  #gg > div:hover .ph {
    transform: none;
  }
}

/* =====================================================
   HC CARD SLIDESHOW (home page rooms, max 3 images)
   ===================================================== */
.hc-slides {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}
.hc-s {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
}
.hc-s.on {
  opacity: 1;
}
.hc-dots {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.hc-dots span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  transition:
    width 0.3s,
    background 0.3s;
}
.hc-dots span.on {
  width: 22px;
  background: #e6d3a3;
}
@media (hover: none) {
  .hc-slides {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hc-s {
    transition: none;
  }
}

/* =====================================================
   HOME HERO SLIDESHOW
   ===================================================== */
.hero.home {
  overflow: hidden;
  isolation: isolate;
}
.hero.home > .wrap {
  position: relative;
  z-index: 2;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 12, 42, 0.5),
    rgba(11, 42, 33, 0.2)
  );
}
/* slides only fade from one to the next (no zoom) */
.hero-s {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-s.on {
  opacity: 1;
}
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    width 0.3s,
    background 0.3s;
}
.hero-dots button.on {
  width: 30px;
  background: #e6d3a3;
}
@media (max-width: 620px) {
  .hero-dots {
    bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-s,
  .hero-s.on {
    transition: opacity 0.4s;
    transform: none;
  }
}

/* Tabs filter karaddi card width eka wenas nowenna */

/* Rooms: 4 cards => 4 columns fixed */
#rl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  #rl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #rl {
    grid-template-columns: 1fr;
  }
}

/* Gallery: auto-fill => empty columns thiyaganna */
#gg {
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}
@media (max-width: 620px) {
  #gg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================
   HEADER / NAV & FOOTER BACKGROUND IMAGES
   Image eka maru karanna: yatha path dekama wenas karanna.
   Image nathi unama: none dala thiyanna.
   (path eka css/ folder eken balanawa nisa ../assets/images/...)
   ===================================================== */

/* ---------- Header ---------- */
header {
  /* same brown/gold gradient as the footer, under a dark layer (--header-shade) so the bar sits darker */
  background:
    linear-gradient(var(--header-shade), var(--header-shade)),
    radial-gradient(
      900px 400px at 85% 0%,
      rgba(176, 141, 74, 0.22),
      transparent 60%
    ),
    linear-gradient(160deg, var(--g), var(--g2));

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobile menu dropdown ekatath ewage */
@media (max-width: 860px) {
  nav {
    background-color: var(--card);
    background-image:
      linear-gradient(var(--header-overlay), var(--header-overlay)),
      var(--header-img);
    background-size: cover;
    background-position: center;
  }
}

/* Footer eke nav ekata background nathuwa thiyanna */
footer nav {
  background: none;
}

/* ---------- Footer ---------- */
footer {
  background:
    radial-gradient(
      900px 400px at 85% 0%,
      rgba(176, 141, 74, 0.22),
      transparent 60%
    ),
    linear-gradient(160deg, var(--g), var(--g2));
}
/* ---------- availability (assets/js/site-data.js) ---------- */
.av-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #eee;
  color: #555;
}
.av-badge:empty {
  display: none;
}
.av-yes {
  background: #e5f4ec;
  color: #1f7a4d;
}
.av-no {
  background: #fbeaea;
  color: #9b2c2c;
}
.av-none {
  background: #f1ede4;
  color: #7a6a45;
}
.av-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.6fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}
.av-bar label {
  margin: 0;
}
@media (max-width: 760px) {
  .av-bar {
    grid-template-columns: 1fr 1fr;
  }
  .av-bar-t {
    grid-column: 1/-1;
  }
}
.panel form textarea {
  width: 100%;
}

/* ---------- availability calendar (book.html, room-details.html) ---------- */
.vcal {
  max-width: 440px;
}
.vcal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vcal-nav {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.vcal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.vcal-g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.vcal-w {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 0;
}
/* day colours: available = green, pending = blue, booked = red, your stay = gold */
.vcal-d {
  border: 0;
  border-radius: 6px;
  padding: 10px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  background: #eeeae2; /* no room linked yet: neutral */
  color: var(--ink);
}
.vcal-d.free {
  background: #c7ffe1;
  color: #006b32;
  cursor: pointer;
}
.vcal-d.pending {
  background: #ffc89e;
  color: #9c4400;
  cursor: not-allowed;
}
.vcal-d.booked {
  background: #ffafaf;
  color: #bf0101;
  cursor: not-allowed;
}
.vcal-d.past {
  background: transparent;
  color: #c4beb2;
  font-weight: 400;
}
.vcal-d.sel {
  background: #680965;
  color: #fff;
}
.vcal-d.sel-a {
  /* outline: 3px solid var(--g); */
  outline-offset: 1px;
}
.vcal-d.free:not(:disabled):hover {
  background: #5bff9a;
  box-shadow: 0 0 0 2px #bbf7d0;
}
/* colour key under the calendar: one line per colour */
.vcal-lg {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf6ee;
  font-size: 14px;
  color: var(--ink);
}
.vcal-lg span {
  display: flex;
  align-items: center;
}
.vcal-lg b {
  margin-right: 4px;
}
.vcal-lg i {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  margin-right: 10px;
}
.vcal-lg i.free {
  background: #c7ffe1;
}
.vcal-lg i.pending {
  background: #ffc89e;
}
.vcal-lg i.booked {
  background: #ffafaf;
}

/* =====================================================
   MEDIA (photos + video clips shot on phones) – fit every device
   Phone files can be portrait or landscape and any size, so every
   frame has a fixed RATIO (not a fixed pixel height) and the media
   fills it with object-fit / background-size: cover.
   ===================================================== */
img,
video {
  max-width: 100%;
}
video {
  height: auto;
}

/* ---- Home hero video ---- */
.hero-s video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* portrait phone clip on desktop / landscape clip on phone: always fills, never stretches */
  object-position: center;
  pointer-events: none;
}
.hero-s:has(video).on {
  transform: none; /* the clip already moves, no extra zoom */
}
.hero.home {
  min-height: clamp(480px, 100svh - 94px, 900px);
}
@media (max-width: 860px) {
  .hero.home {
    min-height: 0; /* text + booking form decide the height; the video covers all of it */
  }
}

/* ---- Cards (rooms) ---- */
.card .ph {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
}
.panel .ph {
  min-height: 0;
}

/* ---- Gallery tiles ---- */
#gg {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
}
#gg > div {
  position: relative;
}
#gg .ph {
  height: auto !important;
  min-height: 0;
  aspect-ratio: 4 / 3;
}
#gg .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 16px;
  pointer-events: none;
}
@media (max-width: 620px) {
  #gg {
    grid-template-columns: 1fr 1fr;
  }
  #gg .play-badge {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
}

/* ---- Home room cards (.hc) keep their tall card, but scale with the screen ---- */
.hc {
  height: clamp(320px, 42vw, 400px);
}
@media (max-width: 620px) {
  .hc {
    height: min(420px, 112vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-s video {
    display: none;
  }
}

/* ---------- COIMJ Villa logo ---------- */
.logo img {
  display: block;
  height: 70px;
  padding: 5px;
  width: auto;
  max-width: 100%;
}
footer .logo img {
  height: 72px;
}
@media (max-width: 860px) {
  .logo img {
    height: 46px;
  }
  footer .logo img {
    height: 62px;
  }
}

/* ---------- Home hero: bigger booking form (desktop only) ---------- */
@media (min-width: 1101px) {
  .hg {
    grid-template-columns: 1fr 420px; /* form column was 330px */
    gap: 50px;
  }
  .bk {
    padding: 32px 30px;
    gap: 16px;
  }
  .bk h3 {
    font-size: 30px;
    margin-bottom: 4px;
  }
  .bk label {
    padding: 10px 14px;
    font-size: 12px;
  }
  .bk input,
  .bk select {
    font-size: 16px;
    padding: 4px 0;
  }
  .bk .btn {
    padding: 15px 22px;
    font-size: 18px;
  }
}

/* Very large screens: a bit bigger again */
@media (min-width: 1600px) {
  .hg {
    grid-template-columns: 1fr 480px;
  }
  .bk {
    padding: 38px 34px;
  }
}

/* ---------- Home: story banner (between features and offers) ---------- */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: clamp(320px, 40vw, 480px);
  /* full-bleed: break out of .wrap so the image spans the whole screen width */
  width: 100vw;
  margin: 10px calc(50% - 50vw) 0;
  padding: clamp(28px, 5vw, 64px) max(20px, calc((100vw - 1420px) / 2 + 20px));
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(270deg, rgba(20, 12, 6, 0.78), rgba(20, 12, 6, 0.25)),
    var(--bn-img) center / cover no-repeat,
    linear-gradient(160deg, #2f6b3f, #8fb56a 55%, #d9c27a);
}
.banner-in {
  max-width: 560px;
}
.banner .ey {
  color: #e6d3a3;
}
.banner h2 {
  margin: 10px 0 14px;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
}
.banner p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 620px) {
  .banner {
    background:
      linear-gradient(0deg, rgba(20, 12, 6, 0.8), rgba(20, 12, 6, 0.45)),
      var(--bn-img) center / cover no-repeat,
      linear-gradient(160deg, #2f6b3f, #8fb56a 55%, #d9c27a);
  }
}

/* ---------- Home: offers (full-width image slideshow) ---------- */
/* Heading / background / overlay nathuwa, image eka mulu space ekama.
   Prev + Next buttons bottom-right corner eke. */
.offers {
  --of-ratio: 16 / 9; /* image shape: 21 / 9, 16 / 9, 4 / 3 ... wenas karanna puluwan */
  position: relative;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 24px;
  padding: 0;
  overflow: hidden;
}
.of-view {
  overflow: hidden;
}
.of-track {
  display: flex;
  gap: 0;
  transition: transform 0.55s ease;
}
.of-item {
  flex: 0 0 100%;
  display: block;
  aspect-ratio: var(--of-ratio);
  max-height: 80svh;
  overflow: hidden;
}
.of-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover; /* crop nowenna one nam: contain */
}
.of-nav {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.of-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.of-btn:hover {
  background: #e6d3a3;
  color: #1d1408;
}
@media (max-width: 620px) {
  .offers {
    --of-ratio: 4 / 3;
  }
  .of-nav {
    right: 12px;
    bottom: 12px;
  }
  .of-btn {
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .of-track {
    transition: none;
  }
}

/* =====================================================
   HOME HERO: booking BAR at the bottom of the hero
   (dark full-width bar, fields in one row, gold button)
   ===================================================== */
.hero.home {
  align-items: flex-end;
}
.hero.home > .wrap.hg {
  display: block;
  max-width: none;
  min-height: 0;
  padding: 0;
}
.hero.home .bk {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(150px, 1fr)) auto;
  align-items: center;
  gap: 16px 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px max(20px, calc((100vw - 1420px) / 2 + 20px));
  background: rgba(20, 12, 6, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 0;
  border-top: 1px solid rgba(176, 141, 74, 0.5);
  border-radius: 0;
  outline: 0;
}
.hero.home .bk h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}
.hero.home .bk label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 0 2px 20px;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #d8c8aa;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero.home .bk input,
.hero.home .bk select {
  width: 100%;
  padding: 2px 0;
  color: #fff;
  font-size: 16px;
  color-scheme: dark;
}
.hero.home .bk select option {
  color: #1d2a24;
  background: #fff;
}
.hero.home .bk .btn {
  padding: 14px 28px;
  background: var(--gold);
  color: #1b120a;
  border: 2px solid #f1e3bd;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.hero.home .bk .btn:hover {
  filter: brightness(1.08);
}
/* slide dots sit just above the booking bar (main.js puts them in the bar's box) */
.hero.home .hero-dots {
  top: auto;
  bottom: calc(100% + 16px);
}
@media (max-width: 1000px) {
  .hero.home .bk {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero.home .bk h3,
  .hero.home .bk .btn {
    grid-column: 1 / -1;
  }
  .hero.home .bk .btn {
    text-align: center;
  }
  .hero.home .bk label:first-of-type {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 860px) {
  .hero.home {
    min-height: clamp(580px, 88vh, 760px);
  }
}
@media (max-width: 620px) {
  .hero.home .bk {
    grid-template-columns: 1fr 1fr;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .hero.home .bk label:nth-of-type(3) {
    grid-column: 1 / -1;
    border-left: 0;
    padding-left: 0;
  }
  .hero.home .bk label:nth-of-type(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* hero booking bar: .wrap has margin:auto, which centered it vertically inside the flex hero */
.hero.home > .wrap.hg {
  margin: 0;
}
/* footer: software company name in italic */
.fb-credit .dev {
  font-style: italic;
}

/* ---------- Tours page ---------- */
/* tour posters (1536 x 1024) one under the other: whole image, never cropped,
   never wider than 1536px, centred; smaller screens scale them down */
.tour-stack {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px 0;
}
.tour-ad {
  width: 100%;
  max-width: 1536px;
}
.tour-ad img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 620px) {
  .tour-stack {
    gap: 10px;
  }
}
/* tours page background = the same brown/gold gradient as the header and footer */
.tours-page main {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(176, 141, 74, 0.22), transparent 60%),
    linear-gradient(160deg, var(--g), var(--g2));
}
.tours-page footer {
  margin-top: 0; /* no white strip between the page and the footer */
}
.tours-page #trEmpty {
  color: #eee9dc;
}
.tr-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px max(20px, calc((100vw - 1420px) / 2 + 20px)) 28px;
  padding-right: 120px;
  color: #fff;
  background: linear-gradient(0deg, rgba(20, 12, 6, 0.85), rgba(20, 12, 6, 0));
}
.tr-cap h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
}
.tr-cap p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 620px) {
  .tr-cap {
    padding: 40px 16px 16px;
    padding-right: 70px;
  }
  .tr-cap p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* =====================================================
   MOTION & HOVER POLISH  (buttons, links, cards, reveal)
   ===================================================== */
:root {
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}
a {
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* header menu: gold line grows from the centre */
header nav a:not(.on) {
  background-image: linear-gradient(var(--g2), var(--g2));
  background-repeat: no-repeat;
  background-position: 50% calc(100% - 3px);
  background-size: 0 2px;
  transition:
    background-size 0.35s var(--ease),
    color 0.25s ease;
}
header nav a:not(.on):hover,
header nav a:not(.on):focus-visible {
  background-size: calc(100% - 28px) 2px;
}
header nav a.on {
  transition: transform 0.25s var(--ease);
}
header nav a.on:hover {
  transform: translateY(-2px);
}

/* footer links: underline slides in, menu links nudge right */
footer a:not(.btn):not([class$="-i"]) {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition:
    background-size 0.3s var(--ease),
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s var(--ease);
}
footer a:not(.btn):not([class$="-i"]):hover,
footer a:not(.btn):not([class$="-i"]):focus-visible {
  background-size: 100% 1px;
}
footer nav a:hover {
  transform: translateX(5px);
}
.soc > * {
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s ease,
    filter 0.3s ease;
}
.soc > *:hover {
  transform: translateY(-4px) rotate(-6deg) scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* buttons: lift + light sweep + press */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    filter 0.25s ease,
    background-color 0.25s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 55%;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::after,
.btn:focus-visible::after {
  left: 130%;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(20, 12, 6, 0.3);
}
.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 8px rgba(20, 12, 6, 0.25);
}
.of-btn,
#menu,
.tabs button,
.hero-dots button {
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    width 0.3s ease;
}
.of-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.of-btn:active {
  transform: scale(0.94);
}
.tabs button:hover,
#menu:hover {
  transform: translateY(-2px);
}
.hero-dots button:hover {
  transform: scale(1.35);
}

/* cards */
.card,
.hc,
.rc,
.feat > div {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(69, 41, 25, 0.18);
  border-color: var(--gold);
}
.card .ph {
  transition: transform 0.7s var(--ease);
}
.card:hover .ph {
  transform: scale(1.07);
}
.feat > div:hover {
  transform: translateY(-6px);
}
.feat i {
  display: block;
}
.feat i svg {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  transition: transform 0.45s var(--ease);
}
.feat > div:hover i svg {
  transform: translateY(-4px) scale(1.18) rotate(-6deg);
}

/* booking bar fields */
.hero.home .bk label {
  transition: border-color 0.3s ease;
}
.hero.home .bk label:hover,
.hero.home .bk label:focus-within {
  border-left-color: var(--gold);
}
.hero.home .bk h3 {
  transition: color 0.3s ease;
}

/* entrance animations */
@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes barUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
main {
  animation: pageIn 0.6s ease both;
}
.hero.home .bk {
  animation: barUp 0.9s var(--ease) 0.25s both;
}
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.sr.sr-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  main,
  .hero.home .bk {
    animation: none;
  }
  .sr {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card,
  .hc,
  .feat > div,
  .of-btn,
  .soc > * {
    transition: none;
  }
  .btn::after {
    display: none;
  }
  .btn:hover,
  .card:hover,
  .feat > div:hover {
    transform: none;
  }
}

/* gallery tile without a picture, or whose picture file is missing (site-data.js) */
#gg .ph-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
#gg .ph-empty b {
  font-size: 34px;
  font-weight: normal;
  opacity: 0.85;
}
#gg .ph-empty small {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#gg .is-video .ph-empty {
  justify-content: flex-end;
  padding-bottom: 14px; /* below the play button */
}

/* offer banners: caption (title + description) printed on the slide, like the tours (site-data.js) */
.offers .of-item {
  position: relative;
}
.tr-cap .of-until {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e6d3a3;
}

/* rooms.html cards: photo slideshow (site-data.js roomSlides). The photos zoom
   inside their own frame, so they never cover the room name below. */
#rl .card .rc-ph {
  position: relative;
  overflow: hidden;
}
#rl .card:hover .rc-ph {
  transform: none;
}
#rl .rc-s {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.7s var(--ease);
}
#rl .rc-s.on {
  opacity: 1;
}
#rl .card:hover .rc-s.on {
  transform: scale(1.07);
}
#rl .rc-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 1;
}
#rl .rc-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
#rl .rc-dots button.on {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  #rl .rc-s {
    transition: none;
  }
}

/* availability calendar without a linked room: shown, days not coloured (site-data.js Calendar) */
.vcal-note {
  margin: 10px 0 0;
  font-size: 13px;
}

/* rooms.html cards: availability badge sits on the photo */
#rl .card .ph .av-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}
#rl .card .ph .av-yes {
  background: rgba(229, 244, 236, 0.95);
}
#rl .card .ph .av-no {
  background: rgba(251, 234, 234, 0.95);
}
#rl .card .ph .av-none {
  background: rgba(255, 255, 255, 0.92);
}

/* =====================================================
   Page loader (every page, until the page + its data have loaded)
   Shown by the markup right after <body>, hidden by main.js.
   ===================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
  /* safety net: never stays up longer than 10 s, even without JavaScript */
  animation: pageLoaderGone 0s 10s forwards;
}
.page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes pageLoaderGone {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.loader {
  --color-1: var(--g);
  --size: 1px;
  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  border: calc(5 * var(--size)) solid var(--color-1);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  position: relative;
  animation: loaderPulse 1s linear infinite;
}
.loader::after {
  content: "";
  position: absolute;
  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  border: calc(5 * var(--size)) solid var(--color-1);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: loaderScaleUp 1s linear infinite;
}
@keyframes loaderScaleUp {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  60%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes loaderPulse {
  0%,
  60%,
  100% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.2);
  }
}

/* book.html: step by step booking (site-data.js bookPage) */
.bk-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  counter-reset: none;
}
.bk-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f4efe6;
  color: var(--mut);
  font-size: 14px;
  font-weight: 600;
}
.bk-steps li span {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9cdb6;
  color: #fff;
  font-size: 13px;
}
.bk-steps li.on {
  background: #fff;
  color: var(--ink, #2a1b12);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.bk-steps li.on span {
  background: var(--gold);
}
.bk-steps li.done span {
  background: #2e7d4f;
}
.bk-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.bk-nav .btn:only-child {
  margin-left: auto;
}
.bk-sum {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.bk-sum th,
.bk-sum td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.bk-sum th {
  width: 38%;
  color: var(--mut);
  font-weight: 500;
}
.bk-done {
  text-align: center;
  padding: 10px 0;
}
.bk-done-ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5f4ec;
  color: #1f7a4d;
  font-size: 30px;
  font-weight: 700;
}
.bk-ref {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 8px 18px;
  border: 1.5px dashed var(--gold);
  border-radius: 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
@media (max-width: 620px) {
  .bk-steps li {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    text-align: center;
  }
}
.bk-step {
  display: grid;
  gap: 14px;
}
.bk-step[hidden],
#bf[hidden],
.bk-steps[hidden],
.bk-done[hidden] {
  display: none;
}

/* =====================================================
   Review cards: stars, the villa's reply, room page list
   ===================================================== */
.rc-stars {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: -8px;
}
.rc-reply {
  background: #fff;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}
.rc-reply b {
  display: block;
  font-size: 12px;
  color: var(--g);
  margin-bottom: 4px;
}
.rc-reply p {
  margin: 0;
  color: var(--mut);
  overflow-wrap: anywhere;
}
.rd-reviews {
  margin-bottom: 26px;
}
.rd-rv-sum {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rd-rv-sum b {
  font-size: 30px;
  color: var(--g);
}
.rd-rv-sum .stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
}
.rd-rv-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.rd-rv-list .rc {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.rd-rv-list .rc:nth-child(even) {
  margin-top: 0;
}
.rd-rv-list .rc blockquote {
  font-size: 16px;
}
.rd-rv-more {
  margin-top: 16px;
}
.rv-err {
  background: #fbeaea;
  color: #8a2020;
  border-radius: 6px;
  padding: 10px 14px;
}
.rv-err[hidden] {
  display: none;
}

/* room-details.html: "Check availability" (dates + guests -> result) */
.rd-av-f {
  display: grid;
  /* minmax(0, …): a date box may shrink below the browser's default width */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 12px;
}
.rd-av-f label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.rd-av-f input,
.rd-av-f select {
  width: 100%;
  min-width: 0;
}
/* "3 guests: +15% …" under the fields (room-details.html) */
.rd-av-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #fbf6ea;
  color: #4a3b1f;
  font-size: 13.5px;
  line-height: 1.5;
}
.rd-av-note[hidden] {
  display: none;
}
.rd-bed {
  margin-top: 12px;
}
.rd-av-r {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f4efe6;
  font-size: 14px;
}
.rd-av-r.av-yes {
  background: #e5f4ec;
  color: #1f7a4d;
}
.rd-av-r.av-no {
  background: #fbeaea;
  color: #9b2c2c;
}
.rd-av-r .btn {
  margin-left: auto;
  padding: 8px 16px;
}
@media (max-width: 620px) {
  .rd-av-f {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .rd-av-r .btn {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}
@media (max-width: 360px) {
  .rd-av-f {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================
   Home "Our Location": text on the left, Google map on the right
   ===================================================== */
.near {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.near-dir {
  margin-top: 18px;
}
.near-map {
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: #e8efe6;
}
.near-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 860px) {
  .near {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .near-map {
    height: 300px;
  }
}

/* book.html: extra bed question (4+ guests) + rate note (3+ guests) */
.bk-bed {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  background: #fbf7ef;
}
.bk-bed[hidden],
.bk-rate[hidden] {
  display: none;
}
.bk-bed .mut {
  display: block;
  font-size: 13px;
}
.bk-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.bk-radio input {
  width: auto;
}
.bk-rate {
  margin: -6px 0 0;
  font-size: 13px;
}

/* =====================================================
   Gallery "whole photo" (Admin > Gallery, per photo):
   the full picture, nothing cut off, on a soft blurred copy of itself
   ===================================================== */
#gg .ph.fit-contain {
  position: relative;
  overflow: hidden;
  background: #f3efe6;
}
#gg .ph.fit-contain::before,
#gg .ph.fit-contain::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
#gg .ph.fit-contain::before {
  inset: -24px;
  background: var(--img) center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.5;
}
#gg .ph.fit-contain::after {
  inset: 0;
  background: var(--img) center / contain no-repeat;
}

/* =====================================================
   COOKIE NOTICE + SETTINGS  (assets/js/cookie-consent.js)
   ===================================================== */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.cc-box {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 22px 18px;
  background: #fff;
  color: var(--ink);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(20, 12, 6, 0.35);
  font-size: 14px;
  line-height: 1.55;
  pointer-events: auto;
  animation: ccUp 0.35s ease both;
}
@keyframes ccUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}
.cc-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--g);
}
.cc-box p,
.cc-panel p {
  margin: 0 0 6px;
}
.cc-box a,
.cc-panel a {
  color: var(--g);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.cc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cc-btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  font: 600 14px DM Sans, system-ui, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cc-primary {
  min-width: 108px;
  background: var(--btn);
  color: #fff !important;
}
.cc-primary:hover {
  background: #050044;
}
.cc-ghost {
  background: #efe8dc;
  color: var(--g) !important;
}
.cc-ghost:hover {
  background: #e3d7c3;
}
.cc-btn:focus-visible,
.cc-x:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* settings panel */
body.cc-lock {
  overflow: hidden;
}
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 12, 6, 0.6);
}
.cc-panel {
  width: 100%;
  max-width: 620px;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 20px 22px;
  background: #fff;
  color: var(--ink);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.cc-panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-x {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--g);
  cursor: pointer;
}
.cc-intro {
  color: var(--mut);
}
.cc-cat {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf6ee;
}
.cc-cat-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cc-cat p {
  margin: 0;
  color: var(--mut);
  font-size: 13px;
}
.cc-always {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
}
.cc-switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
}
.cc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.cc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #c9c1b3;
  pointer-events: none;
  transition: background 0.2s ease;
}
.cc-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.cc-switch input:checked + span {
  background: var(--gold);
}
.cc-switch input:checked + span::after {
  transform: translateX(20px);
}
.cc-switch input:focus-visible + span {
  outline: 2px solid var(--g);
  outline-offset: 2px;
}

/* map box while Google Maps is not allowed */
iframe[data-consent][hidden] {
  display: none !important; /* beats .map iframe { display: block } */
}
.cc-map-ph {
  display: grid;
  place-content: center;
  gap: 12px;
  min-height: 260px;
  height: 100%;
  padding: 24px;
  text-align: center;
  background: #faf6ee;
  border: 1px dashed var(--g2);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}
.cc-map-ph p {
  margin: 0;
}
.cc-map-ph .cc-row {
  justify-content: center;
}

/* footer links */
.fb-credit .cc-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* cookie-policy.html */
.policy {
  max-width: 860px;
  padding: 40px 20px 50px;
}
.policy h1 {
  margin-bottom: 6px;
}
.policy h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}
.policy p,
.policy li {
  color: #4a3a2e;
}
.policy ul {
  padding-left: 20px;
}
.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
}
.policy th,
.policy td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.policy th {
  background: #faf6ee;
}
.policy .table-scroll {
  overflow-x: auto;
}

@media (max-width: 620px) {
  .cc-banner {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .cc-box {
    padding: 16px;
    font-size: 13px;
    max-height: 70svh;
    overflow-y: auto;
  }
  .cc-actions,
  .cc-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cc-btn {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-box {
    animation: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

