/* ============================================================
   SardiniaGem — version 2026a
   Airbnb-inspired design language:
   white canvas · #222/#717171 text · rausch #FF385C accent ·
   flat listing cards · rounded-xl imagery · quiet gray footer
   ============================================================ */

:root {
  --text: #222222;
  --gray: #717171;
  --border: #dddddd;
  --border-light: #ebebeb;
  --bg: #ffffff;
  --bg-gray: #f7f7f7;
  --rausch: #ff385c;
  --rausch-grad: linear-gradient(to right, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
  --star: #222222;
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.12);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --content-max: 980px;   /* max-width for all content sections (hero stays full-bleed) */
  --font: 'Figtree', -apple-system, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

[x-cloak] { display: none !important; }

.container {
  width: min(var(--content-max), calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 500px) {
  .container { width: calc(100% - 64px); }
}

section { padding-block: 32px; }

.section-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.section-sub {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 24px;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--rausch-grad); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-card); }

.btn-dark { background: #4a4f56; color: #fff; }
.btn-dark:hover { background: #383c42; }

.btn-outline {
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}
.btn-outline:hover { background: var(--bg-gray); }

.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { box-shadow: var(--shadow-card); }

.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 22px; }

.text-link {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover { color: #000; }

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

/* Sticky header: transparent over the hero, solid white once scrolled */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: #fff;
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.header-nav {
  display: flex;
  gap: 4px;
  list-style: none;
}

.header-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease;
}

.header-nav a:hover { background: rgba(255, 255, 255, 0.14); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* language switcher */
.lang { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  border-radius: 22px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* scrolled state — dark text on the solid white bar */
.header.scrolled .logo { color: var(--rausch); text-shadow: none; }
.header.scrolled .header-nav a,
.header.scrolled .lang-btn { color: var(--text); text-shadow: none; }
.header.scrolled .header-nav a:hover,
.header.scrolled .lang-btn:hover { background: var(--bg-gray); }

.lang-btn svg { width: 16px; height: 16px; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: var(--r-md);
  padding: 8px 0;
  min-width: 160px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.lang-menu button:hover { background: var(--bg-gray); }

@media (max-width: 760px) {
  .header-nav { display: none; }
}

@media (max-width: 500px) {
  .lang-btn > span { display: none; }
  .logo { font-size: 20px; }
}

/* ---------- hero (full-bleed) ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the still image sits above the video and dissolves out once the video is ready */
.hero-photo {
  opacity: 1;
  transition: opacity 1.8s ease;
}

.hero.show-video .hero-photo { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-photo { transition: none; }
}

/* darker blend so the light menu + white type stay legible */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.05) 22%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0) 70%);
}

.hero-inner {
  width: min(var(--content-max), calc(100% - 48px));
  padding-block: 80px 96px;
}

@media (max-width: 500px) {
  .hero-inner { width: calc(100% - 64px); }
}

.hero-content {
  color: #fff;
  max-width: 820px;
  display: grid;
  gap: 22px;
  justify-items: start;
}

/* hero typography mirrors version-2026c (Fraunces / Cutive Mono, warm palette) */
.hero-eyebrow {
  font-family: 'Cutive Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c6a6a0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-content h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f2f0ed;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 380;
  color: #e7cec9;
}

.hero-content p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 42ch;
  color: rgba(242, 240, 237, 0.9);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(242, 240, 237, 0.6);
  color: #f2f0ed;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  transition: gap 0.25s ease, border-color 0.25s ease;
}

.hero-link span { font-size: 1.3em; line-height: 0; }

.hero-link:hover { gap: 0.95rem; border-bottom-color: #fff; }

.hero-scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Cutive Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 240, 237, 0.8);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll svg { animation: none; }
}

@media (max-width: 600px) {
  .hero { min-height: 92vh; }
  .hero-inner { padding-block: 88px 64px; }
  .hero-scroll { display: none; }
  /* mobile: show the still image, hide the video */
  .hero-video { display: none; }
  .hero-photo { display: block; }
  /* keep the title on a single line */
  .hero-content h1 { white-space: nowrap; font-size: 8.5vw; }
}

/* trust strip */
.trust-section { padding-block: 24px; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.trust-strip .item { display: inline-flex; align-items: center; gap: 8px; }

.trust-strip svg { width: 18px; height: 18px; color: var(--rausch); }

/* ---------- rating block (credibility) ---------- */

.intro-score { display: flex; align-items: center; gap: 12px; }

.score-num { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

.score-stars { display: inline-flex; gap: 2px; color: var(--star); }

.score-stars svg { width: 15px; height: 15px; }

.score-meta { font-size: 13.5px; color: var(--gray); font-weight: 600; }

/* ---------- book direct banner (with rating) ---------- */

.direct-banner {
  background: var(--bg-gray);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.direct-rating {
  display: grid;
  gap: 6px;
  justify-items: start;
  white-space: nowrap;
  padding-right: 40px;
  border-right: 1px solid var(--border);
}

.direct-copy { flex: 1; min-width: 260px; }

.direct-banner h2 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }

.direct-banner p { color: var(--gray); font-size: 15px; max-width: 56ch; }

@media (max-width: 760px) {
  .direct-banner { gap: 24px; }
  .direct-rating { border-right: 0; padding-right: 0; }
}

/* ---------- listing cards ---------- */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 32px;
}

@media (max-width: 680px) { .listings-grid { grid-template-columns: 1fr; gap: 36px; } }

.listing-card { display: grid; gap: 12px; }

.listing-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-gray);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-slide { flex: 0 0 100%; min-width: 0; height: 100%; }

.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.listing-media:hover .carousel-btn { opacity: 1; }

@media (hover: none) { .carousel-btn { opacity: 1; } }

.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }

.carousel-btn svg { width: 12px; height: 12px; }

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.carousel-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel-dots i.active { background: #fff; transform: scale(1.15); }

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--text);
  border-radius: 22px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.listing-badge.premium {
  background: var(--text);
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.listing-body { display: grid; gap: 2px; padding-inline: 2px; }

.listing-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.listing-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.listing-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  flex-shrink: 0;
}

.listing-rating svg { width: 12px; height: 12px; color: var(--star); }

.listing-sub { color: var(--gray); font-size: 14.5px; }

.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.listing-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-gray);
  border-radius: 20px;
  padding: 4px 10px;
}

.listing-tag svg { width: 12px; height: 12px; color: var(--rausch); flex-shrink: 0; }

.listing-links { display: flex; gap: 16px; margin-top: 8px; }

.listing-links .text-link.rausch { color: var(--rausch); }
.listing-links .text-link.rausch:hover { color: #d70466; }

/* ---------- amenities ---------- */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
}

@media (max-width: 900px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amenities-grid { grid-template-columns: 1fr; } }

.amenity { display: flex; gap: 16px; align-items: flex-start; }

.amenity svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--text);
  stroke-width: 1.6;
  margin-top: 2px;
}

.amenity h3 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }

.amenity p { font-size: 14px; color: var(--gray); }

/* ---------- experiences ---------- */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .exp-grid { gap: 16px; } }

.exp-card { display: grid; gap: 10px; text-decoration: none; }

.exp-media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.exp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.exp-card:hover .exp-media img { transform: scale(1.04); }

.exp-card h3 { font-size: 16px; font-weight: 600; }

.exp-card p { font-size: 14px; color: var(--gray); margin-top: -8px; }

/* ---------- host card ---------- */

.host-section { background: var(--bg-gray); padding-block: 48px; }

.host-card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  max-width: 740px;
  margin-inline: auto;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px 40px;
  align-items: center;
}

@media (max-width: 700px) {
  .host-card { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
}

.host-id { display: grid; justify-items: center; gap: 6px; }

.host-id img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
}

.host-id .host-name { font-size: 26px; font-weight: 700; margin-top: 8px; }

.host-id .host-flag {
  font-size: 14px;
  font-weight: 600;
}

.host-id .host-stars {
  display: inline-flex;
  gap: 3px;
  margin-top: 2px;
  color: var(--rausch);
}

.host-id .host-stars svg { width: 15px; height: 15px; }

.host-info { display: grid; gap: 16px; justify-items: start; min-width: 0; }

@media (max-width: 700px) { .host-info { justify-items: center; width: 100%; } }

.host-stats {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 420px;
}

.host-stat {
  flex: 1;
  padding-inline: 16px;
  border-left: 1px solid var(--border-light);
}

.host-stat:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 700px) { .host-stat:first-child { padding-left: 16px; } }

.host-stat b { display: block; font-size: 20px; font-weight: 700; }

.host-stat span { font-size: 12px; color: var(--gray); }

.host-info > p { color: var(--gray); font-size: 15px; }

/* stacked contact buttons — equal width, sized to the widest (not full width) */
.host-contact-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

.host-contact-row .btn {
  width: auto;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.host-contact-row .btn strong { font-weight: 700; }

.host-contact-row .btn .btn-detail { font-weight: 400; opacity: 0.85; }

@media (max-width: 700px) {
  .host-contact-row { align-items: stretch; width: 100%; }
  .host-contact-row .btn { width: 100%; }
}

.host-meta { font-size: 14px; color: var(--gray); }

.host-meta a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- reviews ---------- */

.reviews-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 24px;
}

.reviews-stars { display: inline-flex; gap: 3px; color: var(--star); }

.reviews-head svg { width: 20px; height: 20px; color: var(--star); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* mobile: horizontal swipe carousel with scroll-snap */
@media (max-width: 900px) {
  .reviews-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    /* let the last card snap flush and the row breathe at the end */
    scroll-padding-left: 0;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review {
    flex: 0 0 85%;
    max-width: 340px;
    scroll-snap-align: start;
  }
}

.review { display: grid; gap: 12px; align-content: start; }

.review-stars { display: inline-flex; gap: 2px; }

.review-stars svg { width: 12px; height: 12px; color: var(--star); }

.review p { font-size: 15px; line-height: 1.55; }

.review-author { display: flex; align-items: center; gap: 12px; }

.review-author b { display: block; font-size: 15px; }

.review-author span { font-size: 13px; color: var(--gray); }

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

footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
  margin-top: 32px;
  font-size: 14px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-block: 40px;
}

@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-cols { grid-template-columns: 1fr; } }

.footer-cols h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.footer-cols .col { display: grid; gap: 10px; align-content: start; justify-items: start; }

.footer-cols a { color: var(--gray); text-decoration: none; }

.footer-cols a:hover { color: var(--text); text-decoration: underline; }

.footer-cols p { color: var(--gray); max-width: 34ch; }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray);
}

.footer-bottom .left { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }

/* ---------- floating whatsapp ---------- */

.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  border-radius: 28px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.float-wa:hover { transform: scale(1.04); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }

.float-wa svg { width: 20px; height: 20px; }
