/* ============================================================
   Stay Portal — public stylesheet
   Palette: warm ivory paper, deep pine ink, terracotta accent
   ============================================================ */

:root {
  --paper:      #FBF7F1;
  --paper-2:    #F4EDE3;
  --card:       #FFFFFF;
  --ink:        #16241E;
  --ink-2:      #3D4F47;
  --ink-3:      #7A8A82;
  --line:       #E3D9CC;
  --line-2:     #EFE6DA;
  --clay:       #C79A3C;   /* logo gold — accents, search, floating call */
  --clay-soft:  #F5ECD6;
  --pine:       #1B3A5B;   /* logo navy — buttons, footer, headings accent */
  --gold:       #C79A3C;   /* rating star */
  --blue-soft:  #EEF3F8;
  --blue-ink:   #2C4B6E;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22,36,30,.05), 0 4px 14px rgba(22,36,30,.05);
  --shadow-md: 0 2px 6px rgba(22,36,30,.06), 0 18px 40px -18px rgba(22,36,30,.22);
  --shadow-lg: 0 30px 70px -30px rgba(22,36,30,.4);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Karla", "Segoe UI", Helvetica, sans-serif;

  --wrap: 1180px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 82% -8%, #F6ECE0 0%, transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: .9rem;
  display: block;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,247,241,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .55rem; margin-right: auto; }
.brand-logo { height: 46px; width: auto; display: block; }
.footer-logo { height: 54px; width: auto; margin-bottom: .4rem; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em;
}
.brand-mark em { font-style: italic; color: var(--clay); }
.brand-tag {
  font-size: .72rem; color: var(--ink-3);
  letter-spacing: .1em; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: .93rem; color: var(--ink-2);
  padding-bottom: 3px; border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); border-color: var(--clay); }

.header-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pine); color: #fff;
  padding: .62rem 1.1rem; border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600;
  transition: transform .2s, background .2s;
}
.header-cta:hover { background: #12293F; transform: translateY(-1px); }

.burger { display: none; background: none; border: 0; padding: 6px; color: var(--ink); }

/* ---------------- hero ---------------- */

.hero { padding: clamp(2.5rem, 6vw, 4.75rem) 0 2.25rem; }
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero-sub { font-size: 1.05rem; color: var(--ink-2); max-width: 52ch; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 1.6rem; font-size: .87rem; color: var(--ink-2);
}
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .ic { width: 16px; height: 16px; color: var(--clay); }

/* ---------------- search bar ---------------- */

.searchbar {
  margin-top: 2.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr .85fr auto;
  gap: .25rem;
  align-items: stretch;
}
.sf { padding: .7rem .95rem; border-radius: var(--radius-sm); position: relative; }
.sf + .sf::before {
  content: ""; position: absolute; left: 0; top: 18%; height: 64%;
  width: 1px; background: var(--line-2);
}
.sf:hover { background: var(--paper-2); }
.sf label {
  display: block; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: .2rem;
}
.sf input, .sf select {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  outline: none;
}
.sf select { appearance: none; cursor: pointer; }
.sf input::placeholder { color: var(--ink-3); }

.search-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--clay); color: #fff; border: 0;
  border-radius: var(--radius-sm); padding: 0 1.5rem;
  font-weight: 700; font-size: .95rem;
  transition: background .2s, transform .2s;
}
.search-submit:hover { background: #A87F27; transform: translateY(-1px); }
.search-submit .ic { width: 17px; height: 17px; }

/* ---------------- section head ---------------- */

.section { padding: 3rem 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.9rem; flex-wrap: wrap;
}
.section-head p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.result-count { font-size: .9rem; color: var(--ink-3); }

/* ---------------- filter bar ---------------- */

.filters {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  padding: .9rem 0 1.4rem;
}
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius-pill); padding: .5rem .95rem;
  font-size: .87rem; color: var(--ink-2);
  transition: all .18s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-on, .chip:has(input:checked) {
  background: var(--pine); border-color: var(--pine); color: #fff;
}
.chip .ic { width: 15px; height: 15px; }

.select-sort {
  margin-left: auto; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius-pill); padding: .5rem 1rem; font-size: .87rem;
  color: var(--ink-2); appearance: none; cursor: pointer;
}

/* ---------------- property grid ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
  animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --- slider --- */
.slider { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.slides { display: flex; height: 100%; transition: transform .45s cubic-bezier(.3,.8,.3,1); }
.slides > * { min-width: 100%; height: 100%; }
.slides img { width: 100%; height: 100%; object-fit: cover; }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .22s, background .2s;
  box-shadow: var(--shadow-sm);
}
.slider:hover .slider-nav { opacity: 1; }
.slider-nav:hover { background: #fff; }
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }
.slider-nav.prev .ic { transform: rotate(180deg); }
.slider-nav .ic { width: 15px; height: 15px; }

.dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 6px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.55);
  transition: all .25s;
}
.dot.is-on { background: #fff; width: 18px; border-radius: var(--radius-pill); }

.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(22,36,30,.85); color: #fff; backdrop-filter: blur(6px);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; padding: .4rem .7rem; border-radius: 8px;
}
.fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); color: var(--ink-2);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}

/* --- card body --- */
.card-body { padding: 1.15rem 1.25rem 0; display: flex; flex-direction: column; flex: 1; }

.card-title-row { display: flex; gap: 1rem; align-items: flex-start; }
.card-title {
  font-family: var(--font-display); font-size: 1.22rem; line-height: 1.25;
  margin: 0 0 .3rem; letter-spacing: -.015em;
}
.card-title a:hover { color: var(--clay); }
.rating {
  display: inline-flex; align-items: center; gap: .28rem;
  font-weight: 700; font-size: .95rem; margin-left: auto; white-space: nowrap;
}
.rating .ic { width: 15px; height: 15px; color: var(--gold); }
.rating small { color: var(--ink-3); font-weight: 500; }

.card-loc {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--ink-2); font-size: .9rem; margin-bottom: .75rem;
}
.card-loc .ic { width: 15px; height: 15px; color: var(--ink-3); }

.specs {
  color: var(--ink-2); font-size: .88rem; margin-bottom: .85rem; line-height: 1.9;
}
.specs span { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; }
.specs span:not(:last-child)::after {
  content: "·"; color: var(--line); margin: 0 .5rem 0 .55rem;
}
.specs .ic { width: 15px; height: 15px; color: var(--ink-3); }

.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .35rem .72rem; font-size: .8rem; color: var(--ink-2);
}
.pill .ic { width: 14px; height: 14px; color: var(--ink-3); }

.price-row {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  padding-top: .9rem; border-top: 1px solid var(--line-2); margin-top: auto;
}
.price-old { color: var(--clay); text-decoration: line-through; font-size: .95rem; opacity: .8; }
.price-now { font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; }
.price-unit { color: var(--ink-3); font-size: .87rem; }

.card-actions { display: flex; gap: .5rem; padding: .95rem 0 1.15rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: var(--radius-pill); padding: .72rem 1.25rem;
  font-size: .92rem; font-weight: 600; border: 1px solid transparent;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--pine); color: #fff; flex: 1; }
.btn-primary:hover { background: #12293F; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--paper-2); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #A87F27; }
.btn-wide { width: 100%; }
.btn .ic { width: 16px; height: 16px; }

.offer {
  display: flex; align-items: center; gap: .55rem;
  background: var(--blue-soft); color: var(--blue-ink);
  font-size: .84rem; font-weight: 600;
  padding: .7rem 1.25rem; border-top: 1px solid #E1EAF3;
}
.offer .ic { width: 15px; height: 15px; }

/* ---------------- empty state ---------------- */

.empty {
  text-align: center; padding: 4rem 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.5);
}
.empty h3 { margin-bottom: .35rem; }
.empty p { color: var(--ink-2); }

/* ---------------- pagination ---------------- */

.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pager a, .pager span {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-2); background: var(--card);
}
.pager .is-on { background: var(--pine); border-color: var(--pine); color: #fff; }

/* ---------------- detail page ---------------- */

.crumbs { font-size: .85rem; color: var(--ink-3); padding: 1.5rem 0 .5rem; }
.crumbs a:hover { color: var(--clay); }

.detail-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.4rem; }
.detail-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3rem; }

.gallery {
  display: grid; gap: 10px; border-radius: var(--radius); overflow: hidden;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
}
.gallery a:first-child { grid-row: span 2; }

/* the gallery reshapes itself to however many photos a property has */
.gallery.g-1 { grid-template-columns: 1fr; grid-template-rows: 400px; }
.gallery.g-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 340px; }
.gallery.g-2 a:first-child { grid-row: auto; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 175px 175px; }
.gallery.g-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 210px; }
.gallery.g-4 a:first-child { grid-row: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a { overflow: hidden; display: block; background: var(--paper-2); }
.gallery a:hover img { transform: scale(1.04); }
.gallery-more {
  position: relative;
}
.gallery-more::after {
  content: attr(data-more);
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(22,36,30,.55); color: #fff; font-weight: 600; font-size: .95rem;
}

/* photos past the fifth stay in the DOM for the lightbox but out of the grid */
.gallery a[hidden] { display: none; }
.gallery a { cursor: zoom-in; }

.gallery-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .9rem; background: var(--card); border: 1px solid var(--line);
  color: var(--ink-2); border-radius: var(--radius-pill);
  padding: .6rem 1.15rem; font-size: .89rem; font-weight: 600;
  transition: all .18s;
}
.gallery-btn:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.gallery-btn .ic { width: 16px; height: 16px; }

/* ---------------- lightbox ---------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11, 18, 15, .97);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  grid-template-rows: 1fr auto;
  align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lb-stage {
  grid-column: 2; grid-row: 1;
  margin: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .9rem; min-height: 0; height: 100%;
  padding: 3.4rem 0 .5rem;
}
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 210px);
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
  animation: lbIn .3s cubic-bezier(.2,.7,.3,1);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb-stage figcaption {
  color: #C9D6CF; font-size: .9rem; text-align: center; max-width: 60ch;
  min-height: 1.2em; padding: 0 1rem;
}

.lb-nav, .lb-close {
  border: 0; background: rgba(255,255,255,.1); color: #fff;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  transition: background .18s, transform .18s;
}
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.lb-nav:disabled { opacity: .25; pointer-events: none; }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-close { position: absolute; top: 16px; right: 18px; font-size: 1.35rem; }

.lb-count {
  position: absolute; top: 22px; left: 24px;
  color: #A9BCB3; font-size: .84rem; letter-spacing: .1em; font-weight: 600;
}

.lb-thumbs {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; gap: .5rem; overflow-x: auto; justify-content: flex-start;
  padding: .9rem 1.5rem 1.4rem; scrollbar-width: thin;
}
.lb-thumbs::-webkit-scrollbar { height: 5px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 4px; }
.lb-thumb {
  flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; background: none; opacity: .5;
  transition: opacity .18s, border-color .18s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.is-on { opacity: 1; border-color: #fff; }

body.lb-locked { overflow: hidden; }

@media (max-width: 620px) {
  .lightbox { grid-template-columns: 52px 1fr 52px; }
  .lb-stage { padding-top: 3rem; }
  .lb-stage img { max-height: calc(100vh - 200px); border-radius: 6px; }
  .lb-nav, .lb-close { width: 40px; height: 40px; }
  .lb-thumb { width: 62px; height: 46px; }
}

.detail-grid {
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(320px, .85fr);
  gap: 3rem; padding: 2.5rem 0 3rem; align-items: start;
}

.stat-row {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  padding: 1.1rem 0 1.4rem; border-bottom: 1px solid var(--line-2); margin-bottom: 1.6rem;
}
.stat { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--ink-2); }
.stat .ic { width: 19px; height: 19px; color: var(--clay); }
.stat b { color: var(--ink); font-weight: 700; }

.prose { color: var(--ink-2); font-size: 1.02rem; }
.prose p { margin-bottom: 1.1em; }
.prose h3 { font-size: 1.16rem; color: var(--ink); margin: 1.9rem 0 .6rem; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.15rem; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--clay); }

.block { padding: 1.8rem 0; border-top: 1px solid var(--line-2); }
.block h2 { font-size: 1.4rem; margin-bottom: 1.1rem; }

.amenity-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem 1.5rem;
}
.amenity {
  display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--ink-2);
}
.amenity .ic { width: 19px; height: 19px; color: var(--pine); }

.rules { background: var(--paper-2); border-radius: var(--radius); padding: 1.3rem 1.5rem; color: var(--ink-2); font-size: .95rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* --- booking box --- */
.booking-box {
  position: static;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
/* the whole sidebar sticks as one column; boxes inside stack normally */
.detail-grid > aside {
  position: sticky; top: calc(var(--header-h) + 20px);
  align-self: start;
}
.booking-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.booking-price .price-now { font-size: 1.7rem; }

.field { margin-bottom: .8rem; }
.field label {
  display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin-bottom: .35rem;
}
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius-sm); padding: .72rem .9rem;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pine); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.tot {
  display: flex; justify-content: space-between; font-size: .93rem;
  color: var(--ink-2); padding: .45rem 0;
}
.tot.grand { border-top: 1px solid var(--line-2); margin-top: .5rem; padding-top: .8rem; color: var(--ink); font-weight: 700; }

.contact-split { display: flex; gap: .55rem; margin-top: .8rem; }
.contact-split .btn { flex: 1; }
.fineprint { font-size: .78rem; color: var(--ink-3); text-align: center; margin: .9rem 0 0; }

/* ---------------- OTA / booking links ---------------- */

.ota-links { display: grid; gap: .55rem; }
.ota {
  display: flex; align-items: center; gap: .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .9rem; background: var(--card); transition: all .18s;
}
.ota:hover { border-color: var(--ink-3); background: var(--paper-2); transform: translateY(-1px); }
.ota img { width: 30px; height: 22px; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.ota span { font-weight: 600; font-size: .93rem; color: var(--ink); }
.ota-arrow { width: 15px; height: 15px; margin-left: auto; color: var(--ink-3); }
.ota:hover .ota-arrow { color: var(--clay); }

/* social icons in the footer */
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); transition: background .18s, transform .18s;
}
.social-links a:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.social-links img { width: 22px; height: 22px; object-fit: contain; }

/* ---------------- alerts ---------------- */

.alert {
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem;
  font-size: .93rem; border: 1px solid;
}
.alert-success { background: #ECF5EF; border-color: #CBE3D4; color: #1F5136; }
.alert-error   { background: #FBEDE9; border-color: #F0D2C8; color: #8A3418; }

/* ---------------- floating contact ---------------- */

.floaters {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: flex; flex-direction: column; gap: .6rem;
}
.floaters a {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-lg); transition: transform .2s;
}
.floaters a:hover { transform: scale(1.07); }
.floaters .ic { width: 23px; height: 23px; }
.f-call { background: var(--clay); }
.f-wa   { background: #1FA855; }

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--pine); color: #D8E2DC;
  margin-top: 3rem; padding: 3.2rem 0 1.8rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .brand-mark { color: #fff; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: #94AFA3; margin-bottom: 1rem; font-weight: 700;
}
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; font-size: .84rem; color: #8FA79C;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1020px) {
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .booking-box { position: static; }
  .detail-grid > aside { position: static; }
  .gallery, .gallery.g-3, .gallery.g-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px; }
  .gallery a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery.g-1, .gallery.g-2 { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .gallery.g-2 a:first-child { grid-column: auto; }
}

@media (max-width: 900px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .sf + .sf::before { display: none; }
  .search-submit { grid-column: span 2; padding: .9rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  :root { --header-h: 62px; }
  .brand-logo { height: 38px; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 20px 1.2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
  .header-cta { display: none; }
  .grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .section { padding: 2.2rem 0; }
  .hero { padding: 2rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .slider-nav { opacity: 1; background: rgba(255,255,255,.82); }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .searchbar { grid-template-columns: 1fr; padding: .4rem; }
  .search-submit { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 120px; }
  .field-row { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .floaters { right: 14px; bottom: 14px; }
  .floaters a { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
