:root {
  --background: #07111f;
  --background-soft: #0b1728;
  --card: #0d1e36;
  --secondary: #142545;
  --foreground: #f0ebe1;
  --muted: #8499ba;
  --primary: #c9a05a;
  --primary-foreground: #07111f;
  --border: rgba(201, 160, 90, .18);
  --border-strong: rgba(201, 160, 90, .4);
  --whatsapp: #25d366;
  --danger: #d5674d;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: .6rem .9rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
  background: rgba(7, 17, 31, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: .75rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.brand-mark::before {
  top: 10px;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  top: 8px;
  left: 10px;
  background: var(--primary);
  box-shadow: 7px 5px 0 var(--primary), 0 10px 0 var(--primary);
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-serif);
  font-size: .92rem;
  font-weight: 600;
}

.brand-copy small {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.top-nav {
  gap: 1rem;
}

.top-nav a {
  text-decoration: none;
}

.phone-link {
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s ease;
}

.phone-link:hover {
  color: var(--primary);
}

.help-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: .88rem;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}

.help-link:hover {
  transform: translateY(-1px);
  background: #d7b06c;
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero-media,
.detail-media,
.room-hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(7, 17, 31, .42), rgba(7, 17, 31, .18) 46%, rgba(7, 17, 31, .92)),
    url("../img/figma-ref/hero.avif");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  z-index: -2;
}

.hero::after,
.detail-hero::after,
.room-hero::after,
.package-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(240, 235, 225, .08), transparent 34%),
    linear-gradient(to bottom, transparent 50%, var(--background) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  width: min(1020px, calc(100% - 2rem));
  padding: 7.5rem 0 4rem;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 2rem;
  border: 1px solid rgba(201, 160, 90, .4);
  border-radius: 999px;
  padding: .5rem 1rem;
  color: var(--primary);
  background: rgba(7, 17, 31, .2);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "*";
  font-family: var(--font-body);
  font-size: .9rem;
}

.hero h1,
.detail-copy h1,
.room-hero-copy h1,
.package-hero h1,
.tag-page-hero h1 {
  margin: 0 auto 1.2rem;
  max-width: 980px;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-emphasis {
  display: block;
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}

.hero p,
.detail-copy p,
.room-hero-copy p,
.package-hero p,
.tag-page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(240, 235, 225, .72);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
}

.search-bar {
  width: min(672px, 100%);
  margin: 3rem auto 0;
}

.lux-search {
  position: relative;
}

.search-field {
  display: block;
}

.search-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1rem 1.3rem;
  color: var(--foreground);
  background: rgba(20, 37, 69, .9);
  font: inherit;
  outline: none;
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, background .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: rgba(20, 37, 69, .98);
}

.search-submit {
  position: absolute;
  right: .4rem;
  top: .4rem;
  bottom: .4rem;
  min-height: 0;
  border: 0;
  border-radius: 999px;
  padding: 0 1.1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  cursor: pointer;
}

.hero-popular {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
  color: var(--muted);
  font-size: .78rem;
}

.hero-popular a {
  color: var(--primary);
  text-decoration: none;
}

.hero-popular a:hover {
  text-decoration: underline;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.button,
button {
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  line-height: 1.15;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-ghost {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--primary);
}

.icon-button {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  background: var(--secondary);
  color: var(--foreground);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(20, 37, 69, .42);
}

.trust-strip span {
  display: grid;
  gap: .2rem;
  justify-items: center;
  padding: 1.6rem 1rem;
  text-align: center;
}

.trust-strip strong {
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.trust-strip small {
  color: var(--muted);
  font-size: .9rem;
}

.filter-chip-rail {
  position: sticky;
  top: 68px;
  z-index: 45;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 17, 31, .95);
  backdrop-filter: blur(18px);
}

.filter-chip-inner {
  width: min(1240px, calc(100% - 3rem));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chip-inner::-webkit-scrollbar {
  display: none;
}

.chip,
.badge,
.mini-facts span,
.filter-chip,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1rem;
  color: var(--muted);
  background: transparent;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.chip:hover,
.filter-chip:hover,
.pagination a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-chip.is-active,
.pagination .is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.section {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.narrow {
  width: min(780px, calc(100% - 2rem));
}

.listing-section {
  padding-top: 4rem;
}

.result-toolbar,
.card-title-row,
.review-row,
.card-topline,
.card-actions,
.section-head,
.trust-panel,
.map-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.result-toolbar {
  align-items: end;
  margin-bottom: 2.5rem;
}

.result-toolbar h2,
.guide-grid h2,
.content-flow h2,
.editorial-panel h2,
.content-band h2,
.map-panel h2,
.offer-anchor h2,
.trust-panel h2,
.wedding-panel h2,
.tag-page-hero h1 {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
}

.result-toolbar h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.result-toolbar p,
.result-count {
  margin: .4rem 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.resort-card,
.room-card,
.package-card,
.filters,
.price-card,
.admin-nav,
.admin-panel,
.readiness-box,
.guide-grid article,
.editorial-panel,
.content-band,
.map-panel,
.offer-anchor,
.trust-panel,
.wedding-panel,
.source-box,
.quick-facts div,
.stats-grid div,
.faq-grid details,
.villa-table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.resort-card {
  min-width: 0;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.resort-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 160, 90, .4);
  box-shadow: 0 28px 80px rgba(201, 160, 90, .1);
}

.card-image {
  position: relative;
  display: block;
  min-height: 224px;
  overflow: hidden;
  background-color: var(--secondary);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.resort-card-visual {
  background-image:
    linear-gradient(to top, rgba(13, 30, 54, .82), rgba(13, 30, 54, .1) 58%),
    url("../img/figma-ref/card-01.avif");
}

.card-grid .resort-card:nth-child(11n+1) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-01.avif"); }
.card-grid .resort-card:nth-child(11n+2) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-02.avif"); }
.card-grid .resort-card:nth-child(11n+3) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-03.avif"); }
.card-grid .resort-card:nth-child(11n+4) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-04.avif"); }
.card-grid .resort-card:nth-child(11n+5) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-05.avif"); }
.card-grid .resort-card:nth-child(11n+6) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-06.avif"); }
.card-grid .resort-card:nth-child(11n+7) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-07.avif"); }
.card-grid .resort-card:nth-child(11n+8) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-08.avif"); }
.card-grid .resort-card:nth-child(11n+9) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-09.avif"); }
.card-grid .resort-card:nth-child(11n+10) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-10.avif"); }
.card-grid .resort-card:nth-child(11n) .resort-card-visual { background-image: linear-gradient(to top, rgba(13,30,54,.82), rgba(13,30,54,.1) 58%), url("../img/figma-ref/card-11.avif"); }

.rank-ribbon,
.price-pill,
.rating-pill,
.media-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.rank-ribbon {
  left: 1rem;
  top: 1rem;
  max-width: calc(100% - 2rem);
  padding: .5rem .8rem;
  color: var(--primary);
  background: rgba(7, 17, 31, .8);
  border: 1px solid rgba(201, 160, 90, .3);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.price-pill {
  right: 1rem;
  bottom: 1rem;
  padding: .45rem .75rem;
  background: rgba(7, 17, 31, .8);
  color: var(--foreground);
  font-size: .78rem;
  font-weight: 700;
}

.price-pill::first-letter {
  color: var(--primary);
}

.card-body {
  display: grid;
  gap: .8rem;
  padding: 1.5rem;
}

.card-title-row {
  align-items: flex-start;
}

.card-title-row h3 {
  margin: 0;
  max-width: 72%;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.card-title-row h3 a {
  text-decoration: none;
}

.card-title-row h3 a:hover {
  color: var(--primary);
}

.star-row {
  color: var(--primary);
  font-size: .8rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.card-location {
  margin: -.3rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.card-location::before {
  content: "o";
  margin-right: .4rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .8rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.icon-row {
  display: flex;
  gap: .55rem;
}

.icon-row span {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--secondary);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
}

.review-row {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .78rem;
}

.review-row > span::before {
  content: "*";
  margin-right: .3rem;
  color: var(--primary);
}

.compare-button {
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .65rem;
  background: transparent;
  color: var(--primary);
  font-size: .72rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}

.pagination a {
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: .4rem .7rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.guide-grid article,
.final-cta,
.editorial-panel,
.content-band,
.map-panel,
.offer-anchor,
.trust-panel,
.wedding-panel,
.source-box,
.price-card,
.admin-panel,
.admin-nav {
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
}

.guide-grid h2,
.guide-grid h3 {
  margin: .35rem 0 .8rem;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-weight: 600;
}

.guide-grid p,
.content-flow p,
.room-row-body p,
.faq-grid p,
.fine-print,
.price-card p,
.source-box p,
.map-panel p,
.trust-panel p,
.wedding-panel p,
.offer-anchor p {
  color: var(--muted);
}

.link-cloud,
.badge-row,
.mini-facts,
.hero-contact,
.hero-metrics,
.hero-actions,
.feature-list,
.tag-row,
.room-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.link-cloud a {
  color: var(--primary);
  font-weight: 600;
}

.final-cta {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 37, 69, .98), rgba(13, 30, 54, .92)),
    url("../img/figma-ref/card-04.avif");
  background-size: cover;
  background-position: center;
}

.final-cta h2 {
  margin: .3rem 0 .6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

.lead-grid span,
.filter-field span,
.panel-form span {
  display: block;
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.contact-line {
  margin: .2rem 0 0;
  color: var(--primary);
  font-weight: 700;
}

.contact-rail {
  position: fixed;
  right: 2.5rem;
  bottom: 1.75rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-rail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: .75rem 1.1rem;
  color: #fff;
  background: var(--whatsapp);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease;
}

.contact-rail a:hover {
  transform: scale(1.04);
}

.contact-rail a + a {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  background: var(--background-soft);
}

.site-footer p {
  max-width: 720px;
  margin: .4rem 0 0;
  color: var(--muted);
}

.detail-hero,
.room-hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.detail-copy,
.room-hero-copy,
.package-hero > div {
  position: relative;
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.detail-copy h1,
.room-hero-copy h1,
.package-hero h1,
.tag-page-hero h1 {
  margin-left: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.detail-copy p,
.room-hero-copy p,
.package-hero p,
.tag-page-hero p {
  margin-left: 0;
}

.safe-badges {
  margin-bottom: 1.5rem;
}

.safe-badges .badge {
  color: var(--foreground);
  background: rgba(7, 17, 31, .62);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.safe-badges .badge-warn {
  color: var(--primary);
}

.hero-metrics {
  margin-top: 1.5rem;
}

.hero-metrics span,
.hero-contact a,
.hero-contact span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem .85rem;
  color: var(--foreground);
  background: rgba(7, 17, 31, .55);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  color: var(--primary);
}

.hero-actions {
  margin-top: 1.6rem;
}

.review-note {
  max-width: 780px;
  margin-top: 1rem;
  color: rgba(240, 235, 225, .76);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.content-flow {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.quick-facts,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.quick-facts div,
.stats-grid div {
  padding: 1rem;
}

.quick-facts span,
.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: .25rem;
}

.quick-facts strong,
.stats-grid strong {
  color: var(--foreground);
}

.price-card {
  position: sticky;
  top: 92px;
  box-shadow: var(--shadow);
}

.price-card .badge-warn {
  color: var(--primary);
}

.price-card h2 {
  margin: .8rem 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.1;
}

.price {
  display: block;
  margin: .4rem 0;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

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

.price-card .lead-grid label:first-child,
.price-card .lead-grid label:last-child {
  grid-column: 1 / -1;
}

.price-card .button,
.lead-form .button {
  width: 100%;
}

.editorial-panel {
  border-left: 4px solid var(--primary);
}

.wedding-panel {
  border-left: 4px solid var(--whatsapp);
}

.room-listing-block {
  overflow: hidden;
  padding: 0;
}

.room-listing-block .section-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.room-list-detailed {
  display: grid;
}

.room-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.room-row-media {
  position: relative;
  min-height: 155px;
  border-radius: 14px;
  overflow: hidden;
  background-image:
    linear-gradient(to top, rgba(13, 30, 54, .82), rgba(13, 30, 54, .12)),
    url("../img/figma-ref/card-02.avif");
  background-size: cover;
  background-position: center;
}

.room-row-media span {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.room-row-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.room-row-title h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.room-row-title strong {
  color: var(--primary);
  text-align: right;
}

.room-fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin: .9rem 0;
}

.room-fact-strip span,
.feature-list span,
.tag-row span,
.amenity-grid span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem .75rem;
  color: var(--foreground);
  background: var(--secondary);
  font-size: .86rem;
}

.room-fact-strip small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.amenity-grid span {
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  border-radius: 12px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.room-card {
  display: grid;
  gap: .3rem;
  padding: 1rem;
  text-decoration: none;
}

.room-card span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
}

.room-card small {
  color: var(--muted);
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.villa-table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  color: var(--foreground);
}

th,
td {
  padding: .85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--primary);
  background: var(--secondary);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mini-map {
  min-width: 190px;
  min-height: 130px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--foreground);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, .2), rgba(7, 17, 31, .7)),
    url("../img/figma-ref/card-03.avif");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.mini-map span,
.mini-map strong {
  display: block;
}

.mini-map strong {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.faq-grid details {
  padding: 1rem;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--foreground);
  font-weight: 700;
}

.package-list {
  display: grid;
  gap: .9rem;
}

.package-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.package-hero,
.tag-page-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(to bottom, rgba(7, 17, 31, .55), rgba(7, 17, 31, .94)),
    url("../img/figma-ref/hero.avif");
  background-size: cover;
  background-position: center;
}

.tag-page-hero {
  padding: 8rem clamp(1.5rem, 4vw, 3rem) 4rem;
}

.hero-metrics {
  justify-content: flex-start;
}

.admin-shell {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0 3rem;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.5rem;
}

.admin-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: .45rem;
  align-self: start;
}

.admin-nav a {
  border-radius: 999px;
  padding: .6rem .8rem;
  color: var(--muted);
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--primary);
  background: var(--secondary);
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
}

.alert,
.notice,
.error-box {
  border-radius: 14px;
  padding: .85rem 1rem;
}

.alert {
  border: 1px solid rgba(213, 103, 77, .45);
  color: #ffd5cd;
  background: rgba(213, 103, 77, .14);
}

.notice {
  border: 1px solid rgba(201, 160, 90, .45);
  color: var(--primary);
  background: rgba(201, 160, 90, .12);
}

.error-box {
  white-space: pre-wrap;
  overflow: auto;
  background: #030912;
}

.sticky-cta {
  display: none;
}

@media (max-width: 1040px) {
  .card-grid,
  .guide-grid,
  .detail-layout,
  .final-cta,
  .content-split,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .price-card,
  .admin-nav {
    position: static;
  }

  .card-grid {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 1rem;
  }

  .phone-link {
    display: none;
  }

  .hero h1,
  .detail-copy h1,
  .room-hero-copy h1,
  .package-hero h1,
  .tag-page-hero h1 {
    font-size: clamp(2.85rem, 11vw, 4.45rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 7.25rem;
    padding-bottom: 8.5rem;
  }

  .trust-strip,
  .quick-facts,
  .stats-grid,
  .room-row,
  .room-fact-strip,
  .faq-grid,
  .amenity-grid,
  .lead-grid,
  .room-grid {
    grid-template-columns: 1fr;
  }

  .filter-chip-inner,
  .section,
  .detail-copy,
  .room-hero-copy,
  .package-hero > div,
  .final-cta,
  .admin-shell {
    width: min(100% - 2rem, 1240px);
  }

  .result-toolbar,
  .section-head,
  .trust-panel,
  .map-panel,
  .room-row-title,
  .package-card,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .card-title-row h3 {
    max-width: 100%;
  }

  .star-row {
    display: none;
  }

  .contact-rail {
    left: 1rem;
    right: 1rem;
    bottom: .75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-rail a {
    min-width: 0;
    padding-inline: .75rem;
  }

  .site-footer {
    padding-bottom: 6rem;
  }
}

@media (max-width: 520px) {
  .help-link {
    padding-inline: .8rem;
  }

  .brand-copy small {
    font-size: .58rem;
  }

  .hero-content {
    padding-top: 6.5rem;
    padding-bottom: 8rem;
  }

  .hero h1,
  .detail-copy h1,
  .room-hero-copy h1,
  .package-hero h1,
  .tag-page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.5rem);
  }

  .hero-kicker,
  .eyebrow {
    font-size: .66rem;
  }

  .search-submit {
    position: static;
    width: 100%;
    margin-top: .7rem;
    min-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
