/* StateSide: Old Glory navy and red, pool blue, cool mist. Archivo throughout. */
:root {
  --navy: #0A3161;
  --navy-2: #13407A;
  --red: #B31942;
  --red-2: #961435;
  --pool: #1F8FBF;
  --mist: #EEF4F8;
  --ink: #14213D;
  --muted: #5A6B82;
  --line: #D3DDE7;
  --white: #FFFFFF;
  --ok: #1E7A4C;
  --warn: #9A6200;
  --radius: 6px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--pool); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 750; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.page { padding-top: 40px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Top bar */
.topbar { background: var(--navy); color: var(--white); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark { display: grid; gap: 3px; width: 22px; }
.brand-mark i { display: block; height: 4px; background: var(--red); border-radius: 1px; }
.brand-mark i:nth-child(2) { background: var(--white); }
.brand-word { font-weight: 800; font-size: 1.35rem; font-variation-settings: "wdth" 120; letter-spacing: -.01em; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 550; }
.nav a:hover { color: #FFD1DC; text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: var(--white);
  font: inherit; padding: 6px 12px; border-radius: var(--radius); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy);
    flex-direction: column; gap: 0; padding: 8px 20px 16px; z-index: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .topbar { position: relative; }
}

/* Hero: the one loud moment */
.hero {
  position: relative; color: var(--white); min-height: clamp(260px, 44vh, 440px);
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,49,97,.15) 0%, rgba(10,49,97,.55) 55%, rgba(10,49,97,.92) 100%),
              var(--hero, linear-gradient(135deg, var(--navy), var(--pool))) center / cover no-repeat;
}
.hero-in { padding-top: 40px; padding-bottom: 80px; }
/* Rotating hero photos: layers fade over each other, with the same dark gradient on top */
.hero { isolation: isolate; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slides::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,49,97,.15) 0%, rgba(10,49,97,.55) 55%, rgba(10,49,97,.92) 100%); }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.on { opacity: 1; }
.hero-place { position: absolute; top: 12px; right: 12px; z-index: 1; margin: 0; padding: 3px 10px; border-radius: 99px;
  background: rgba(10,49,97,.65); color: #FFFFFF; font-size: .8rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero h1 {
  font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 800; font-variation-settings: "wdth" 125;
  line-height: .98; letter-spacing: -.025em; max-width: 13ch; margin-bottom: .35em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 46ch; margin: 0; }
.hero-credit { font-size: .8rem; color: var(--muted); padding-bottom: 12px; }
.hero-credit a { color: inherit; }

/* Search */
.search {
  position: relative; margin-top: -56px; z-index: 2; background: var(--white);
  border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 12px;
  grid-template-columns: 2fr 1fr 1fr .8fr auto; align-items: end;
  box-shadow: 0 18px 40px -18px rgba(10,49,97,.45);
}
.search-inline { margin: 0 0 20px; box-shadow: none; }
.search label { display: grid; gap: 4px; font-size: .85rem; font-weight: 650; color: var(--muted); }
@media (max-width: 900px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .s-where, .search .btn { grid-column: 1 / -1; }
}

/* Forms */
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%; padding: 10px 12px; min-height: 46px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pool); outline: 2px solid rgba(31,143,191,.25); }
.form { display: grid; gap: 14px; }
.form > label, .two > label, .three > label { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .three { grid-template-columns: 1fr 1fr; } }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 450 !important; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0; }
legend { font-weight: 650; padding: 0 6px; }
.amen-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.panel { background: var(--mist); border-radius: var(--radius); padding: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  min-height: 46px; padding: 10px 20px; border-radius: var(--radius);
  background: var(--navy); color: var(--white); border: 1px solid var(--navy);
}
.btn:hover { background: var(--navy-2); color: var(--white); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-2); text-decoration: underline; cursor: pointer; }
.link-red { color: var(--red); }

/* Flash */
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; border-left: 4px solid var(--ok); background: #E8F5EE; }
.flash-err { border-color: var(--red); background: #FBEAEE; }
.flash-warn { border-color: var(--warn); background: #FFF4DE; }

/* Villa cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { margin-top: auto; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card-resort { color: var(--red); font-weight: 650; font-size: .9rem; margin: 0 0 4px; }
.card-facts { color: var(--muted); }

/* Carousel (cards and villa gallery) */
[data-carousel] { position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.noimg { display: grid; place-items: center; background: var(--mist); color: var(--muted); }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.car-btn.prev { left: 10px; } .car-btn.next { right: 10px; }
.gallery .carousel-slide { aspect-ratio: 16 / 9; max-height: 70vh; }
@media (min-width: 900px) { .gallery .carousel-slide { flex-basis: 66%; } }

/* Villa page */
.villa { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 32px; padding-bottom: 64px; }
@media (max-width: 900px) { .villa { grid-template-columns: 1fr; } }
.villa-side .panel { position: sticky; top: 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 1.05rem; }
.prose { max-width: 68ch; margin-bottom: 28px; }
.amen { columns: 2; padding-left: 1.2em; margin: 0 0 28px; }
@media (max-width: 520px) { .amen { columns: 1; } }

/* Attractions */
.attractions { background: var(--navy); color: var(--white); }
.attractions .lead { color: #C9D6E8; }
/* Compact cards: 2 across on a phone, 3 on a computer, short photos */
.att-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .att-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.att { margin: 0; }
.att img, .att-noimg { width: 100%; aspect-ratio: 16 / 9; max-height: 160px; object-fit: cover; border-radius: var(--radius); background: var(--navy-2); }
.att figcaption { padding-top: 8px; }
.att h3 { font-size: 1rem; margin: 0 0 2px; }
.att p { color: #C9D6E8; margin: 0; font-size: .85rem; line-height: 1.35; }
.att small, .att small a { color: #93A7C2; font-size: .78rem; }

/* Owner CTA */
.owner-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.owner-cta p { margin: 0; color: var(--muted); }

/* Lists of rows (dashboard, admin) */
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head-row h1 { margin: 0; }
.rows { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row p { margin: 0 0 4px; }
.row-title { font-size: 1.2rem; margin-bottom: 4px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.row-actions form { display: flex; flex-wrap: wrap; gap: 8px; }
.note { background: var(--mist); padding: 10px 14px; border-radius: var(--radius); margin-top: 8px !important; }
.status { display: inline-block; font-size: .8rem; font-weight: 650; padding: 2px 10px; border-radius: 99px; background: var(--mist); color: var(--navy); vertical-align: middle; }
.status-approved, .status-booked { background: #E1F2E8; color: var(--ok); }
.status-pending, .status-new { background: #FFF1D6; color: var(--warn); }
.status-rejected { background: #FBE3E9; color: var(--red); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--navy); border-color: var(--red); }
.tabs span { font-weight: 450; }
.reject summary { cursor: pointer; color: var(--red); font-weight: 600; padding: 10px 0; }
.reject .form { min-width: 280px; margin-top: 8px; }

/* Photos in editor */
.thumbs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.thumbs li { position: relative; }
.thumbs img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); width: 100%; }
.thumbs form { display: flex; gap: 12px; padding-top: 6px; font-size: .9rem; }
.cover-tag { position: absolute; top: 6px; left: 6px; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 650; padding: 2px 8px; border-radius: 99px; }
.danger { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Register page */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 6px; }

/* Empty states */
.empty { padding: 40px 24px; text-align: center; background: var(--mist); border-radius: var(--radius); }

/* Footer */
.foot { background: var(--ink); color: #C9D6E8; margin-top: 40px; }
.foot a { color: var(--white); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 20px; }
.foot-brand { font-weight: 800; font-size: 1.2rem; color: var(--white); font-variation-settings: "wdth" 120; margin-bottom: 4px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; padding-bottom: 20px; font-size: .85rem; }
.foot-legal p { margin: 0; }
.home .foot { margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  .carousel-track { scroll-behavior: smooth; }
}
.contact-row { margin-bottom: 16px; } .contact-row .btn { flex: 1 1 auto; }
.section-gap { margin-top: 40px; }

/* Coming soon */
.soon .topbar-in { justify-content: space-between; }
.soon-login { color: var(--white); font-weight: 550; }
.soon-login:hover { color: #FFD1DC; }
.soon-hero { min-height: clamp(300px, 50vh, 500px); }
.soon-tag { display: inline-block; background: var(--red); color: var(--white); font-weight: 700;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 18px; font-size: .95rem; }
.soon-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px;
  align-items: start; margin-top: -64px; position: relative; z-index: 2; padding-bottom: 64px; }
.soon-form { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--red);
  box-shadow: 0 18px 40px -18px rgba(10,49,97,.45); }
.soon-owner { padding-top: 96px; max-width: 52ch; }
.soon-offer { font-weight: 650; color: var(--navy); background: var(--mist); border-left: 4px solid var(--red);
  padding: 12px 16px; border-radius: var(--radius); }
.soon-type { display: grid; gap: 8px; }
@media (max-width: 860px) {
  .soon-grid { grid-template-columns: 1fr; gap: 32px; }
  .soon-owner { padding-top: 0; }
}

/* Featured villa badge on cards */
.feat-badge { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 99px; background: #FFC72C;
  color: var(--navy); font-size: .75rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }

/* Resort pages */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: inherit; }
.resort-links { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.resort-links li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.resort-links a { font-weight: 700; }
.resort-about { margin-bottom: 20px; }

.resort-banner { position: relative; margin: 0; max-height: 340px; overflow: hidden; background: var(--navy); }
.resort-banner img { display: block; width: 100%; height: clamp(200px, 38vh, 340px); object-fit: cover; }
.resort-banner figcaption { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 99px;
  background: rgba(10,49,97,.7); color: #FFFFFF; font-size: .8rem; font-weight: 600; }
.resort-amen { margin-bottom: 6px; }
.small { font-size: .9rem; }

/* Special offers */
.offer-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--red); color: #FFFFFF;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }
.card-offer { margin: 0 0 6px; font-size: .88rem; font-weight: 650; color: var(--red); }
.offer-box { border: 2px solid var(--red); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; background: #FFF5F7; }
.offer-box p { margin: 0 0 8px; }
.offer-box p:last-child { margin: 0; }
.offer-toggle { margin: 4px 0 14px; }
.offer-toggle a { color: var(--navy); font-weight: 650; text-decoration: none; }
.offer-toggle a:hover span + * , .offer-toggle a:hover { text-decoration: underline; }

/* Reviews */
.stars { color: #F2B600; letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: #CDD5DF; }
.rating-line { margin: -4px 0 10px; }
.rating-line a { color: var(--navy); text-decoration: none; }
.card-rating { color: var(--navy); font-weight: 600; margin-left: 4px; white-space: nowrap; }
.reviews { list-style: none; padding: 0; margin: 0 0 8px; }
.reviews li { padding: 14px 0; border-top: 1px solid var(--line); }
.reviews li p { margin: 0 0 6px; }
.rv-src { color: #14532D; font-weight: 650; }
.rv-reply { margin-top: 8px; padding: 10px 14px; background: var(--mist); border-radius: var(--radius); font-size: .95rem; }
.enq-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

/* Listing checklist */
.checklist { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 8px; font-size: .88rem; font-weight: 650; }
.ck { padding: 2px 10px; border-radius: 99px; text-decoration: none; }
.ck-ok { background: #E3F2EA; color: #14532D; }
.ck-no { background: #FDECEF; color: var(--red); }
.ck-no:hover { text-decoration: underline; }

.push-panel { margin: 0 0 22px; }
.push-panel h2 { font-size: 1.1rem; margin-top: 0; }

/* Founding owner label and offer pill */
.founding-badge { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border-radius: 99px; background: #FFC72C; color: #0A3161; font-weight: 700; font-size: .78rem; }
.founding-pill { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 99px; background: #FFC72C; color: #0A3161; font-weight: 700; font-size: .95rem; }
