/* Component-specific styles */

/* Real photos — share container behaviour with .imgph (position: absolute; inset: 0)
   so we can swap placeholders for real images without rewriting layouts. */
.photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-warm);
}
.photo--top { background-position: center top; }
.photo--bottom { background-position: center bottom; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  padding-top: max(20px, env(safe-area-inset-top, 20px));
  transition: all .35s ease;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav--scrolled {
  background: rgba(244, 241, 234, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.nav__logo { display: inline-flex; }
.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 36px);
}
.nav__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.nav--scrolled .nav__link { color: var(--ink); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 1px;
  background: currentColor;
  transition: all .3s ease;
}
.nav__link:hover::after { left: 0; right: 0; }

.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__lang { position: relative; }
.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cream);
  border: 1px solid rgba(250,247,238,0.3);
}
.nav--scrolled .nav__lang-btn { color: var(--ink); border-color: var(--rule); }
.nav__lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 8px 0;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.15);
}
.nav__lang-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 13px;
  text-align: left;
  color: var(--ink);
  transition: background .15s ease;
}
.nav__lang-item:hover { background: var(--bg-warm); }
.nav__lang-item.is-active { background: var(--bg-deep); }
.nav__lang-code { font-weight: 600; font-size: 11px; letter-spacing: 0.14em; color: var(--terra); width: 24px; }

.btn-book {
  background: var(--cream);
  color: var(--green-deep);
  padding: 12px 22px;
  font-size: 12px;
}
.nav--scrolled .btn-book { background: var(--green-deep); color: var(--cream); }
.btn-book:hover { background: var(--terra); color: var(--cream); }

.nav__burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 12px; min-width: 44px; min-height: 44px; }
.nav__burger span { width: 22px; height: 1.5px; background: var(--cream); }
.nav--scrolled .nav__burger span { background: var(--ink); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
}
.mobile-menu__inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background: var(--cream);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu__close { font-size: 32px; align-self: flex-end; padding: 4px 12px; line-height: 1; }
.mobile-menu__link {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--green-deep);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu__langs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mobile-menu__lang { padding: 8px 14px; border: 1px solid var(--rule); font-size: 13px; }
.mobile-menu__lang.is-active { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.6) 100%);
}
.hero__content {
  position: relative;
  padding-top: 18vh;
  padding-bottom: 60px;
  z-index: 2;
}
.hero__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.hero__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero__coords {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(250,247,238,0.7);
}
.hero__title {
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 200;
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 28px;
  max-width: 540px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(250,247,238,0.92);
}

.booking-strip {
  position: relative;
  z-index: 2;
  margin: 0 clamp(24px, 5vw, 80px) 48px;
  background: var(--cream);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
}
.booking-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) auto) auto;
  align-items: stretch;
}
.booking-strip__field { display: flex; flex-direction: column; padding: 18px 24px; min-width: 0; }
.booking-strip__label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 4px;
}
.booking-strip input, .booking-strip select {
  border: none;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
}
.booking-strip__divider { width: 1px; background: var(--rule); margin: 12px 0; }
.booking-strip__submit {
  border-radius: 0;
  padding: 0 32px;
  align-self: stretch;
  font-size: 12px;
}
@media (max-width: 900px) {
  .booking-strip__inner { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
  .booking-strip__divider { display: none; }
  .booking-strip__field { background: var(--cream); padding: 14px 16px; }
  .booking-strip__submit { grid-column: 1/-1; padding: 18px; justify-content: center; }
}

.hero__scroll {
  position: absolute;
  bottom: 14vh;
  right: clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,247,238,0.7);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollline 2s ease-in-out infinite;
}
@keyframes scrollline {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* === INTRO === */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.intro__copy { padding-top: 40px; }
.intro__title { margin-top: 24px; max-width: 14ch; }
.intro__body { margin-top: 32px; max-width: 48ch; }
.intro__signature {
  margin-top: 36px;
  font-size: 22px;
  font-style: italic;
  color: var(--terra);
}
.intro__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.intro__stat { display: flex; flex-direction: column; gap: 6px; }
.intro__stat-num { font-size: 36px; font-weight: 300; color: var(--green-deep); }

.intro__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px auto auto;
  gap: 24px;
}
.intro__img-main {
  grid-column: 1 / -1;
  height: 540px;
  margin-top: 60px;
}
.intro__img-small {
  grid-column: 1 / 2;
  height: 240px;
}
.intro__caption-block {
  grid-column: 2 / 3;
  padding: 24px 0 0 4px;
}
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__img-main { height: 400px; margin-top: 0; }
}

/* === ROOMS === */
.rooms { background: var(--bg-warm); }
.rooms__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 24px;
}
.rooms__title { margin-top: 20px; max-width: 12ch; }
.rooms__sub { max-width: 42ch; padding-bottom: 8px; }

.rooms__shared-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--cream);
  border-left: 2px solid var(--terra);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 56px;
}
.rooms__shared-banner svg { color: var(--terra); flex-shrink: 0; }

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.room-card { background: var(--cream); display: flex; flex-direction: column; }
.room-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.room-card__media .imgph { position: absolute; inset: 0; transition: transform .8s ease; }
.room-card:hover .room-card__media .imgph { transform: scale(1.04); }
.room-card__num {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 32px;
  color: var(--cream);
  font-weight: 300;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.room-card { cursor: pointer; }
.room-card__photos {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(20,18,15,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,18,15,0.94);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
  padding: 24px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(250,247,238,0.08);
  border: 1px solid rgba(250,247,238,0.15);
  color: var(--cream);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 2;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(250,247,238,0.18); transform: scale(1.05); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__stage { max-width: min(1200px, 92vw); max-height: 86vh; display: flex; flex-direction: column; gap: 12px; }
.lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; color: rgba(250,247,238,0.7); font-size: 13px; }
.lightbox__caption { letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.lightbox__count { font-feature-settings: "tnum"; font-size: 12px; letter-spacing: 0.1em; }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* Gallery captions */
.gallery__item { position: relative; cursor: pointer; border: none; padding: 0; background: none; text-align: left; }
.gallery__cap {
  position: absolute;
  bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(20,18,15,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }

/* Room Modal */
.rm {
  position: fixed; inset: 0;
  background: rgba(20,18,15,0.7);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .3s ease;
  overflow-y: auto;
}
.rm__sheet {
  background: var(--cream);
  border-radius: 6px;
  max-width: 1100px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  animation: rmIn .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
@keyframes rmIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rm__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  background: rgba(250,247,238,0.92);
  border: 1px solid rgba(20,18,15,0.08);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s, transform .2s;
}
.rm__close:hover { background: var(--cream); transform: rotate(90deg); }
.rm__media { display: flex; flex-direction: column; background: var(--ink); }
.rm__main {
  flex: 1;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  transition: opacity .3s ease;
}
.rm__thumbs {
  display: flex; gap: 6px;
  padding: 10px;
  background: var(--ink);
  overflow-x: auto;
}
.rm__thumb {
  flex: 0 0 72px; height: 56px;
  background-size: cover; background-position: center;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: border .2s, opacity .2s;
  opacity: .55;
  background-color: #333;
}
.rm__thumb:hover { opacity: .85; }
.rm__thumb.is-active { border-color: var(--cream); opacity: 1; }
.rm__body { padding: 40px 44px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.rm__head { display: flex; flex-direction: column; gap: 6px; }
.rm__name { font-size: 42px; line-height: 1; }
.rm__intro { font-size: 16px; }
.rm__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.rm__fact { display: flex; flex-direction: column; gap: 4px; }
.rm__fact strong { font-size: 22px; font-weight: 400; color: var(--ink); }
.rm__fact--wide { grid-column: 1 / -1; }
.rm__section { display: flex; flex-direction: column; gap: 12px; }
.rm__features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.rm__features li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.rm__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rm__price { display: flex; align-items: baseline; gap: 8px; }
.rm__book { white-space: nowrap; }

@media (max-width: 860px) {
  .rm { padding: 0; align-items: flex-start; }
  .rm__sheet { grid-template-columns: 1fr; max-height: 100vh; height: 100vh; border-radius: 0; }
  .rm__main { min-height: 280px; max-height: 40vh; }
  .rm__body { padding: 28px 24px; }
  .rm__name { font-size: 32px; }
  .rm__features { grid-template-columns: 1fr; }
}
.room-card__body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.room-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.room-card__name { font-size: 28px; font-weight: 400; }
.room-card__tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); white-space: nowrap; }
.room-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.room-card__meta strong { font-weight: 600; color: var(--ink); }
.room-card__sep { width: 4px; height: 4px; background: var(--terra); border-radius: 50%; display: inline-block; }
.room-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.room-card__price { display: flex; align-items: baseline; gap: 8px; }
.room-card__price-num { font-size: 32px; font-weight: 400; color: var(--green-deep); }

@media (max-width: 1100px) { .rooms__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .rooms__grid { grid-template-columns: 1fr; } .rooms__head { grid-template-columns: 1fr; } }

.rooms__suite {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--ivory);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}
.rooms__suite-media { position: relative; min-height: 420px; }
.rooms__suite-media .photo { position: absolute; inset: 0; }
.rooms__suite-body { padding: 56px 56px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.rooms__suite-name { font-size: 42px; line-height: 1.05; margin: 4px 0 0; }
.rooms__suite-desc { max-width: 44ch; margin: 0; }
.rooms__suite-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.rooms__suite-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
@media (max-width: 900px) { .rooms__suite { grid-template-columns: 1fr; } .rooms__suite-body { padding: 32px; } .rooms__suite-media { min-height: 320px; } }

/* === AMENITIES === */
.amenities__head { text-align: center; margin-bottom: 80px; }
.amenities__title { margin-top: 20px; }
.amenities__sub { margin: 24px auto 0; max-width: 56ch; }

.amenities__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}
.amenities__visual { position: sticky; top: 100px; height: min(80vh, 720px); }
.amenities__visual .imgph { position: absolute; inset: 0; }

.amenities__list { display: flex; flex-direction: column; }
.amenity {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.amenity:first-child { padding-top: 0; }
.amenity__num { color: var(--terra); font-weight: 500; padding-top: 6px; }
.amenity__icon { color: var(--green-deep); padding-top: 2px; }
.amenity__title { font-size: 26px; font-weight: 400; }
.amenity__desc { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 44ch; }

@media (max-width: 900px) {
  .amenities__split { grid-template-columns: 1fr; }
  .amenities__visual { position: relative; top: 0; height: 400px; }
}

/* === GALLERY === */
.gallery { padding-bottom: 0; }
.gallery__head {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.gallery__head h2 { margin-top: 16px; }
.gallery__count-badge {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 22px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.12);
}
.gallery__count-num { font-size: 32px; font-weight: 400; color: var(--green-deep); line-height: 1; }
.gallery__count-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

.gallery__filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.gallery__filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.gallery__filter:hover { border-color: var(--terra); color: var(--green-deep); transform: translateY(-1px); }
.gallery__filter.is-active { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.gallery__filter-count { font-size: 9px; padding: 2px 6px; background: rgba(31,42,32,0.06); border-radius: 999px; letter-spacing: .08em; }
.gallery__filter.is-active .gallery__filter-count { background: rgba(250,247,238,0.18); color: var(--gold); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 4px;
}
.gallery__item { position: relative; overflow: hidden; cursor: pointer; border: none; padding: 0; background: none; text-align: left; }
.gallery__item .photo { position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.gallery__item:hover .photo { transform: scale(1.06); filter: brightness(1.04) saturate(1.05); }
.gallery__item::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(31,42,32,0.5));
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.gallery__item:hover::before { opacity: 1; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__zoom {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--green-deep);
  border-radius: 50%; z-index: 2;
  opacity: 0; transform: scale(.7) rotate(-20deg);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.25);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: scale(1) rotate(0); }

.gallery__grid .gallery__item {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(min(var(--gi, 0), 16) * 60ms);
}
.gallery__grid.is-revealed .gallery__item { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .gallery__grid { grid-auto-rows: 180px; }
  .gallery__head { gap: 16px; }
  .gallery__count-badge { padding: 10px 16px; }
  .gallery__count-num { font-size: 24px; }
}

/* Big open-gallery CTA */
.gallery__cta-wrap { margin: 56px auto 0; max-width: 760px; padding: 0 24px; }
.gallery-cta {
  position: relative; overflow: hidden; width: 100%;
  display: grid; grid-template-columns: 56px 1fr 32px; align-items: center; gap: 22px;
  padding: 26px 32px;
  background: linear-gradient(135deg, var(--green-deep) 0%, #1a2a1f 60%, var(--green-deep) 100%);
  color: var(--cream);
  border: 1px solid rgba(212,175,108,0.35);
  border-radius: 4px; cursor: pointer; text-align: left;
  box-shadow: 0 20px 60px -20px rgba(31,42,32,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.gallery-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 80px -24px rgba(31,42,32,0.6), 0 0 0 1px var(--gold), inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: var(--gold);
}
.gallery-cta__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,108,0.12); color: var(--gold);
  border: 1px solid rgba(212,175,108,0.35); border-radius: 50%;
  flex-shrink: 0;
  transition: background .3s ease, transform .4s cubic-bezier(.2,.7,.2,1), color .3s ease;
}
.gallery-cta:hover .gallery-cta__icon { background: var(--gold); color: var(--green-deep); transform: rotate(-6deg); }
.gallery-cta__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gallery-cta__title { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.gallery-cta__sub { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,247,238,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-cta__sub strong { color: var(--gold); font-weight: 500; }
.gallery-cta__arrow { color: var(--gold); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.gallery-cta:hover .gallery-cta__arrow { transform: translateX(6px); }
.gallery-cta__shine {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(115deg, transparent 30%, rgba(212,175,108,0.18) 50%, transparent 70%);
  transform: skewX(-15deg);
  transition: left .9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.gallery-cta:hover .gallery-cta__shine { left: 130%; }
@media (max-width: 600px) {
  .gallery-cta { grid-template-columns: 48px 1fr 24px; gap: 14px; padding: 20px; }
  .gallery-cta__title { font-size: 20px; }
  .gallery-cta__sub { font-size: 10px; }
  .gallery-cta__icon { width: 48px; height: 48px; }
}

/* === VIANA === */
.viana { background: var(--green-deep); color: var(--cream); padding: clamp(80px, 12vw, 160px) 0; }
.viana .eyebrow { color: var(--gold); }
.viana .eyebrow::before { background: var(--gold); }
.viana__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.viana__title { color: var(--cream); margin-top: 20px; max-width: 14ch; }
.viana__sub { color: rgba(250,247,238,0.75); margin-top: 24px; max-width: 44ch; }
.viana__map {
  margin-top: 48px;
  background: rgba(244,241,234,0.04);
  border: 1px solid rgba(250,247,238,0.1);
  aspect-ratio: 1/1;
  position: relative;
}
.viana__map-svg { width: 100%; height: 100%; display: block; }
.viana__map .viana__map-svg text { fill: rgba(250,247,238,0.7); }
.viana__map .viana__map-svg text:nth-of-type(2) { fill: var(--gold); }

.viana__places { display: flex; flex-direction: column; gap: 0; padding-top: 0; }
.place {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid rgba(250,247,238,0.12);
  align-items: center;
}
.place:last-child { border-bottom: 1px solid rgba(250,247,238,0.12); }
.place__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.place__media .imgph { position: absolute; inset: 0; }
.place__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.place__name { color: var(--cream); font-size: 26px; font-weight: 400; }
.place__top .caption { color: var(--gold); }
.place__desc { margin-top: 8px; font-size: 14px; color: rgba(250,247,238,0.75); line-height: 1.6; }

@media (max-width: 900px) {
  .viana__grid { grid-template-columns: 1fr; }
  .place { grid-template-columns: 100px 1fr; gap: 16px; }
}

/* === BREAKFAST === */
.breakfast__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.breakfast__visual { position: relative; aspect-ratio: 4/5; }
.breakfast__img-1 { position: absolute; top: 0; left: 0; right: 30%; bottom: 20%; }
.breakfast__img-2 { position: absolute; bottom: 0; right: 0; width: 60%; aspect-ratio: 1/1; }
.breakfast__title { margin-top: 20px; }
.breakfast__body { margin-top: 28px; }
.breakfast__list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.breakfast__list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.breakfast__list li:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) {
  .breakfast__grid { grid-template-columns: 1fr; }
  .breakfast__visual { aspect-ratio: 1/1; }
}

/* === REVIEWS === */
.reviews { background: var(--bg-warm); }
.reviews__head { text-align: center; margin-bottom: 64px; }
.reviews__head h2 { margin-top: 16px; }
.reviews__score {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 24px;
  background: var(--cream);
  border: 1px solid var(--rule);
}
.reviews__score-num { font-size: 48px; font-weight: 300; color: var(--green-deep); line-height: 1; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.review {
  background: var(--cream);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 2px solid var(--terra);
}
.review__score { display: flex; align-items: baseline; gap: 8px; }
.review__score-num { font-size: 36px; font-weight: 400; color: var(--green-deep); }
.review__quote { font-size: 20px; font-style: italic; line-height: 1.45; flex: 1; color: var(--ink); }
.review__author { font-size: 14px; color: var(--ink-soft); padding-top: 16px; border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } }

/* === CONTACT === */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(32px, 5vw, 64px);
}
.contact__head { grid-column: 1 / -1; max-width: 800px; }
.contact__title { margin-top: 20px; }
.contact__details { display: flex; flex-direction: column; gap: 32px; }
.contact__row { display: flex; flex-direction: column; gap: 4px; }
.contact__link { font-size: 22px; color: var(--green-deep); transition: color .2s; border-bottom: 1px solid var(--rule); padding-bottom: 6px; align-self: flex-start; }
.contact__link:hover { color: var(--terra); }
.contact__map { position: relative; min-height: 480px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* === FAQ === */
.faq { background: var(--bg-warm); }
.faq__head { text-align: center; margin-bottom: 64px; }
.faq__head h2 { margin-top: 16px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  text-align: left;
}
.faq__num { color: var(--terra); }
.faq__q-text { font-size: 24px; font-weight: 400; line-height: 1.3; }
.faq__icon { font-size: 24px; color: var(--green-deep); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); transition: all .25s ease; }
.faq__item.is-open .faq__icon { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.faq__a {
  padding: 0 0 28px 56px;
  max-width: 70ch;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 15px;
  animation: faqfade .35s ease;
}
@keyframes faqfade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .faq__a { padding-left: 0; } .faq__q-text { font-size: 18px; } }

/* === Livro de Reclamações (Portuguese law) === */
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  padding: 28px 0; border-top: 1px solid rgba(250,247,238,0.12);
}
.footer__livro {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(250,247,238,0.04);
  border: 1px solid rgba(250,247,238,0.18);
  border-radius: 4px;
  text-decoration: none; color: var(--cream);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.footer__livro:hover { background: rgba(212,175,108,0.12); border-color: var(--gold); transform: translateY(-1px); }
.footer__livro-icon { display: flex; color: var(--gold); }
.footer__livro-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer__livro-text strong { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--cream); font-weight: 500; }
.footer__livro-text span { font-size: 11px; color: rgba(250,247,238,0.5); margin-top: 2px; font-family: var(--mono); }
.footer__link--small { font-size: 12px; }

/* === FOOTER === */
.footer { background: var(--green-deep); color: var(--cream); padding: 0 0 32px; }
.footer__cta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 100px 0;
  border-bottom: 1px solid rgba(250,247,238,0.15);
}
.footer__cta-title { color: var(--cream); font-size: clamp(40px, 6vw, 80px); max-width: 12ch; font-weight: 200; }
.footer__cta-btn { font-size: 13px; padding: 18px 32px; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0;
}
.footer__col { display: flex; flex-direction: column; }
.footer__link {
  font-size: 14px;
  color: rgba(250,247,238,0.7);
  transition: color .2s ease;
}
.footer__link:hover { color: var(--gold); }
.footer__lang {
  text-align: left;
  font-size: 14px;
  color: rgba(250,247,238,0.7);
  padding: 4px 0;
  transition: color .2s ease;
}
.footer__lang.is-active { color: var(--gold); }
.footer__lang:hover { color: var(--cream); }
.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250,247,238,0.15);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer__cta { flex-direction: column; align-items: flex-start; padding: 60px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* === BOOKING MODAL === */
.booking-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: stretch; justify-content: flex-end; }
.booking-modal__backdrop { position: absolute; inset: 0; background: rgba(20,25,20,0.6); backdrop-filter: blur(6px); animation: fade .3s ease; }
.booking-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  background: var(--cream);
  display: grid;
  grid-template-rows: 200px 1fr;
  overflow-y: auto;
  animation: slideRight .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes slideRight { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.booking-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 44px; height: 44px;
  font-size: 24px;
  color: var(--cream);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(250,247,238,0.3);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.booking-modal__close:hover { background: rgba(0,0,0,0.5); }
.booking-modal__hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: 32px 40px 24px;
}
.booking-modal__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%); pointer-events: none; }
.booking-modal__hero-content { position: relative; z-index: 1; }
.booking-modal__steps {
  position: absolute;
  bottom: 0; left: 40px; right: 40px;
  display: flex; gap: 4px;
  z-index: 2;
  transform: translateY(50%);
}
.booking-modal__step {
  flex: 1;
  height: 4px;
  background: var(--bg-deep);
  position: relative;
  transition: background .35s ease;
}
.booking-modal__step.is-active { background: var(--green-deep); }
.booking-modal__body { padding: 56px 40px 40px; }

.booking-modal__form { display: flex; flex-direction: column; gap: 20px; }
.booking-modal__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-modal__section-title { margin-bottom: 16px; }
.booking-modal__nights { padding: 8px 0; color: var(--terra); font-weight: 500; }
.booking-modal__submit { margin-top: 16px; align-self: flex-start; }

.booking-modal__loading {
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.booking-modal__results { animation: fade .4s ease; }
.booking-modal__rooms { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.booking-modal__room {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-warm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.booking-modal__room:hover:not(.is-unavailable) { background: var(--cream); border-color: var(--green-deep); }
.booking-modal__room.is-selected { background: var(--cream); border-color: var(--green-deep); }
.booking-modal__room.is-unavailable { opacity: 0.5; cursor: not-allowed; }
.booking-modal__room-mark { align-self: stretch; }
.booking-modal__room-name { font-size: 20px; font-weight: 400; }
.booking-modal__room-meta { margin-top: 4px; }
.booking-modal__room-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.booking-modal__room-price-num { font-size: 22px; font-weight: 500; color: var(--green-deep); }

.booking-modal__radio-group legend { margin-bottom: 8px; }
.booking-modal__radios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-modal__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  background: var(--cream);
  cursor: pointer;
  transition: all .2s ease;
}
.booking-modal__radio input { display: none; }
.booking-modal__radio.is-active { border-color: var(--green-deep); background: var(--bg-warm); }
.booking-modal__radio.is-active svg { color: var(--green-deep); }

.booking-modal__success {
  text-align: center;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.booking-modal__receipt {
  margin-top: 32px;
  width: 100%;
  background: var(--bg-warm);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-modal__receipt-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.booking-modal__receipt-row span:last-child { font-weight: 500; }

@media (max-width: 600px) {
  .booking-modal__sheet { width: 100%; }
  .booking-modal__hero, .booking-modal__body { padding-left: 24px; padding-right: 24px; }
  .booking-modal__steps { left: 24px; right: 24px; }
  .booking-modal__row--2 { grid-template-columns: 1fr; }
  .booking-modal__radios { grid-template-columns: 1fr; }
}

/* Smaller nav on mobile */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .btn-book { display: none; }
}
