/* ==========================================================================
   Villa Estrella del Mar - modern coastal design system
   ========================================================================== */

/* ----- Tokens ----- */
:root {
  --ink: #16303c;
  --ink-2: #3d5866;
  --sea: #0f7d8c;
  --sea-deep: #0b5563;
  --sand: #f7f3ec;
  --sand-2: #efe6d7;
  --coral: #e76f51;
  --coral-dark: #d05a3d;
  --gold: #e9c46a;
  --white: #ffffff;
  --line: rgba(22, 48, 60, 0.1);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(22, 48, 60, 0.1);
  --shadow-lg: 0 24px 60px rgba(22, 48, 60, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--sea); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--coral); }

ul { padding-left: 1.2em; margin: 0 0 1.2em; }

::selection { background: var(--gold); color: var(--ink); }

/* ----- Layout ----- */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.section-sand { background: var(--sand); }
.section-tight { padding: clamp(36px, 6vw, 64px) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
}

/* Blur lives on its own layer: backdrop-filter directly on the sticky
   header makes Chrome leave seams around rounded children */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-name .star { color: var(--coral); margin-right: 6px; }

.brand-sun {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.14em;
  margin-right: 7px;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.6vw, 8px);
  flex: 1;
  min-width: 0;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover { background: var(--sand-2); color: var(--ink); }

.main-nav a.active {
  background: var(--ink);
  color: var(--white);
  transform: translateZ(0);
}

.header-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}

.lang-switch .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 5px 12px;
  border-radius: 999px;
}

.pill-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-switch .pill.active {
  background: var(--sea);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(231, 111, 81, 0.35);
}

.btn-primary:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(231, 111, 81, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
}

.btn-outline:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}

.rate-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover { background: var(--sea-deep); color: var(--white); transform: translateY(-2px); }

/* ----- Home hero ----- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 30, 40, 0.88) 0%, rgba(12, 30, 40, 0.35) 45%, rgba(12, 30, 40, 0.15) 100%);
}

.hero-content {
  padding: clamp(90px, 14vw, 160px) 0 clamp(56px, 8vw, 96px);
  max-width: 780px;
}

.hero-content .eyebrow { color: var(--gold); }

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 620px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-scroll {
  position: absolute;
  right: 4vw;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
  cursor: pointer;
}

.hero-scroll:hover { color: var(--white); }

/* Anchor targets land with the sticky header clear of the section top */
section[id] { scroll-margin-top: 74px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ----- Inner page hero ----- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 10vw, 130px) 0;
  background-image: url(../images/banners/sunset-at-bahia-la-pared.jpg?v=2);
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(12, 30, 40, 0.92) 20%, rgba(12, 30, 40, 0.55) 70%, rgba(12, 30, 40, 0.35) 100%);
}

.page-hero h1 { color: var(--white); margin-bottom: 0; }

.page-hero .eyebrow { color: var(--gold); }

/* ----- Split section (image + prose) ----- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose p { font-size: 1.05rem; }

/* ----- Cards ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.card-body { padding: 26px 28px 30px; }

.card-body h2, .card-body h3 { font-size: 1.35rem; margin-bottom: 12px; }

.card-body ul { margin: 0; padding: 0; list-style: none; }

.card-body li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.card-body li:last-child { border-bottom: 0; }

.card-body li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--coral);
  font-weight: 700;
}

.section-cta {
  text-align: center;
  margin-top: clamp(28px, 4vw, 44px);
}

/* ----- Card media carousel ----- */
.card-media.carousel { position: relative; overflow: hidden; }

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.active { opacity: 1; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 1;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.active {
  background: var(--white);
  transform: scale(1.2);
}

.carousel-state {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-state.show { opacity: 1; }

.swipe-hint {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  color: var(--white);
}

.swipe-hint i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(12, 30, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  animation: swipe-slide 1.4s ease-in-out infinite;
}

.swipe-hint.show { opacity: 1; }

@keyframes swipe-slide {
  0%, 100% { transform: translateX(-14px); }
  50% { transform: translateX(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-hint i { animation: none; }
}

/* ----- Gallery ----- */
.gallery-section { margin-bottom: clamp(36px, 6vw, 72px); }

.gallery-section:last-child { margin-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 20px);
}

.g-item {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.g-item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 30, 40, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 76vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  padding: 0 70px;
}

.lightbox button {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }

.lb-close { top: 20px; right: 20px; font-size: 1.6rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ----- Facilities ----- */
.facilities-list {
  columns: 3;
  column-gap: clamp(24px, 4vw, 56px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.facilities-list li {
  break-inside: avoid;
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.facilities-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--sea);
  font-weight: 700;
}

/* ----- Map ----- */
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}

.map-card iframe { width: 100%; height: clamp(340px, 55vh, 520px); border: 0; }

/* ----- Prices ----- */

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px);
}

.info-card ul { margin: 0; padding: 0; list-style: none; }

.info-card li {
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.info-card li:last-child { border-bottom: 0; }

.info-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--coral);
  font-weight: 700;
}

.rate-card {
  background: var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px) clamp(26px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.rate-card .eyebrow { display: block; margin-bottom: 2px; }

.rate-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
  display: block;
}

.rate-slash {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72em;
  color: var(--ink-2);
  margin: 0 0.14em 0 0.18em;
  vertical-align: 0.06em;
}

.rate-per {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  vertical-align: 0.32em;
}

.calc-row.calc-gbp {
  border-bottom: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.calc-note {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 14px 0 0;
}

/* ----- Price calculator ----- */
.prices-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.prices-columns .calc-card { margin-bottom: 0; }

.calc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.5vw, 40px);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.calc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.calc-top h3 { margin: 0; }

.calc-nights {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sea);
  white-space: nowrap;
}

.calc-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.calc-card input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
  cursor: pointer;
  margin: 0 0 22px;
}

.calc-rows { max-width: 460px; }

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.calc-row.calc-total {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: 4px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.1rem;
}

.calc-hint {
  display: none;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--coral-dark);
}

.calc-hint.show { display: block; }

/* ----- Contact ----- */
@media (min-width: 981px) {
  .contact-section { padding-top: 150px; }
  /* trailing paragraph margin counts as height and skews the optical centre */
  .contact-layout .prose p:last-child { margin-bottom: 0; }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 40px);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.contact-row:last-child { border-bottom: 0; }

.contact-row .icon-bubble {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--sea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.contact-row a {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  word-break: break-word;
}

.contact-row a:hover { color: var(--coral); }

/* ----- Empty state (coming soon) ----- */
.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 24px;
  background: var(--sand);
  border-radius: var(--radius-lg);
}

.empty-state .icon {
  font-size: 2.4rem;
  color: var(--sea);
  margin-bottom: 18px;
}

.empty-state p { margin: 0 0 8px; font-size: 1.1rem; }

.empty-state .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.empty-note {
  font-size: 0.9rem !important;
  color: var(--ink-2);
  margin-bottom: 18px !important;
}

/* ----- Centered page (thanks / 404) ----- */
.center-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.center-card {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 64px);
}

.center-card .big-icon { font-size: 3rem; color: var(--sea); margin-bottom: 20px; }

.center-card .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(48px, 7vw, 80px) 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.footer-brand .brand-name { color: var(--white); font-size: 1.5rem; }

.footer-brand p { margin-top: 12px; max-width: 320px; }

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-address { font-style: normal; line-height: 1.9; }

.social-row { display: flex; gap: 12px; }

.social-row a {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-row a:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-3px); color: var(--white); }

/* Tooltip fed by the link's aria-label */
.social-row a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--white);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.social-row a:hover::after,
.social-row a:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-row img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); }

.footer-lang { margin-top: 22px; }

.footer-lang .lang-switch { background: transparent; border-color: rgba(255, 255, 255, 0.25); }

.footer-lang .pill { color: rgba(255, 255, 255, 0.75); }

.footer-lang .pill.active { background: var(--coral); color: var(--white); }

.footer-legal {
  padding-bottom: 18px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 1120px) {
  .main-nav a { font-size: 0.85rem; padding: 8px 10px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; flex-shrink: 0; }

  /* Compress the header row so the hamburger always fits on screen */
  .header-inner { gap: 10px; }

  .brand { flex-shrink: 1; min-width: 0; }

  .brand-name { font-size: 1.2rem; }

  .header-tools { gap: 6px; }

  .lang-switch { padding: 2px; }

  .lang-switch .pill { padding: 4px 8px; gap: 5px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px 5vw 20px;
    display: none;
  }

  .nav-open .main-nav { display: flex; }

  .main-nav a { border-radius: 12px; padding: 13px 16px; font-size: 1rem; }

  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }

  .card-grid { grid-template-columns: 1fr; }

  .facilities-list { columns: 2; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .rate-card { flex-direction: column; align-items: flex-start; }

  .prices-columns { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1.05rem; }

  .facilities-list { columns: 1; }

  .gallery-grid { grid-template-columns: 1fr; }

  .hero { min-height: 78vh; }

  .brand-sub { display: none; }
}

/* Fixed backgrounds behave badly on mobile Safari, scroll instead */
@media (hover: none), (max-width: 900px) {
  .page-hero { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .btn, .card { transition: none; }
  .carousel-slide { transition: none; }
}
