/* ==========================================================================
   Halo Homes — site styles
   Brand colors live in :root below. To rebrand, change these 6 values only.
   ========================================================================== */

:root {
  /* ---- BRAND (edit these) ---- */
  --navy:        #10293f;   /* primary dark */
  --navy-deep:   #0a1c2c;   /* darker sections */
  --gold:        #d99e2b;   /* accent / halo */
  --gold-soft:   #f4d9a0;
  --cream:       #fbf7f0;   /* warm page background */
  --ink:         #1b2733;   /* body text */

  /* ---- DERIVED ---- */
  --muted:       #5d6b7a;
  --line:        #e3ddd2;
  --white:       #ffffff;
  --green:       #2f7d5b;
  --red:         #b3392f;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 2px rgba(16,41,63,.06), 0 2px 8px rgba(16,41,63,.06);
  --shadow-md:   0 4px 12px rgba(16,41,63,.08), 0 12px 32px rgba(16,41,63,.10);
  --shadow-lg:   0 10px 24px rgba(16,41,63,.10), 0 30px 60px rgba(16,41,63,.14);

  --font-head: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.14; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: 780px; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .85rem;
}
.lede { font-size: 1.15rem; color: var(--muted); }
.section-head { max-width: 700px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #eaad39; color: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-deep); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { font-size: .9rem; padding: .6em 1.15em; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- header ---------- */
.topbar {
  background: var(--navy-deep); color: #cfdae4;
  font-size: .85rem; padding: 7px 0;
}
.topbar .wrap { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-links { display: flex; gap: 18px; align-items: center; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand img, .brand svg { height: 44px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.brand-text span { display: block; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; white-space: nowrap;
  color: var(--ink); text-decoration: none; padding: .5em .7em; border-radius: 8px;
}
.nav a:hover { background: rgba(16,41,63,.06); color: var(--navy); }
.nav a.is-active { color: var(--navy); font-weight: 700; background: rgba(217,158,43,.14); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 90px 22px 30px; gap: 6px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: .8em .7em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(10,28,44,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 45; }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}
.placeholder svg { width: 56px; height: 56px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #17405f 100%);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; right: -12%; top: -30%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,158,43,.30) 0%, rgba(217,158,43,0) 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p { color: #d3dfe9; font-size: 1.16rem; max-width: 54ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.2rem; }
.hero-card p { font-size: .98rem; margin-bottom: 1rem; }

.page-hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: clamp(2.6rem, 6vw, 4.2rem) 0;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -60%;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,158,43,.26) 0%, rgba(217,158,43,0) 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #cfdbe6; font-size: 1.1rem; max-width: 62ch; margin: 0; }

.crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs span { margin: 0 .45em; opacity: .6; }

/* ---------- trust strip ---------- */
.trust { background: var(--navy-deep); color: #cfdae4; padding: 18px 0; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 38px; justify-content: center; }
.trust li { margin: 0; display: flex; align-items: center; gap: .5em; font-size: .93rem; font-weight: 500; }
.trust svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.step { position: relative; padding-top: 8px; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold);
  color: var(--navy-deep); font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center; margin-bottom: 14px; font-size: 1.05rem;
}
.icon-badge {
  width: 50px; height: 50px; border-radius: 14px; background: rgba(217,158,43,.16);
  color: var(--navy); display: grid; place-items: center; margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- listing cards ---------- */
.listing-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.listing {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.listing-media { position: relative; aspect-ratio: 4 / 3; background: #e8e2d7; overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-media .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #eee7db, #ded5c6); color: #a99a83;
}
.listing-media .placeholder svg { width: 56px; height: 56px; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .4em .8em; border-radius: 999px;
  background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm);
}
.badge-available { background: var(--green); color: #fff; }
.badge-pending  { background: var(--gold); color: var(--navy-deep); }
.badge-sold     { background: var(--red); color: #fff; }
.badge-featured { left: auto; right: 12px; background: var(--navy); color: var(--gold-soft); }
.photo-count {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(10,28,44,.78); color: #fff; font-size: .78rem; font-weight: 600;
  padding: .3em .7em; border-radius: 999px; display: flex; align-items: center; gap: .4em;
}
.photo-count svg { width: 14px; height: 14px; }
.listing-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.listing-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0 0 4px; }
.listing-loc { font-size: .9rem; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: .35em; }
.listing-loc svg { width: 15px; height: 15px; color: var(--gold); }
.specs { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.specs li { margin: 0; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .4em; }
.specs strong { color: var(--ink); font-weight: 600; }
.listing-body .btn { margin-top: auto; }

/* ---------- filters ---------- */
.filters {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm); margin-bottom: 34px;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); align-items: end;
}
.filters .field { margin: 0; }
.filters-actions { display: flex; gap: 10px; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--navy); margin-bottom: 6px;
}
.field .hint { font-size: .82rem; color: var(--muted); margin: 5px 0 0; }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .72em .85em; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b7a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center; background-size: 16px; padding-right: 2.4em; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,158,43,.18); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); }
.field-error { color: var(--red); font-size: .84rem; margin-top: 5px; display: none; }
.field-error.show { display: block; }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.check { display: flex; align-items: center; gap: .5em; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.form-note { font-size: .87rem; color: var(--muted); }
.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .95rem; }
.alert-ok  { background: #e7f4ed; border: 1px solid #b6ddc8; color: #1d5c41; }
.alert-err { background: #fbeceb; border: 1px solid #f0c4c0; color: #8f2b23; }
.alert-info{ background: #eef3f8; border: 1px solid #cfdce8; color: #294662; }

.success-panel { text-align: center; padding: 30px 10px; }
.success-panel .tick {
  width: 68px; height: 68px; border-radius: 50%; background: #e7f4ed; color: var(--green);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.success-panel .tick svg { width: 34px; height: 34px; }

/* ---------- detail page ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
.gallery-main {
  aspect-ratio: 16 / 10; background: #e8e2d7; border-radius: var(--radius-lg);
  overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-prev { left: 12px; } .gallery-next { right: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #e8e2d7; aspect-ratio: 4/3; }
.thumbs button.is-active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout { display: grid; grid-template-columns: 1.6fr .95fr; gap: 42px; align-items: start; }
@media (max-width: 950px) { .detail-layout { grid-template-columns: 1fr; gap: 30px; } }
.detail-side { position: sticky; top: 96px; }
@media (max-width: 950px) { .detail-side { position: static; } }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.spec-table th { font-family: var(--font-head); font-weight: 600; color: var(--muted); width: 46%; }
.feature-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.feature-list li { display: flex; gap: .55em; align-items: flex-start; font-size: .96rem; margin: 0; }
.feature-list svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

.lightbox { position: fixed; inset: 0; background: rgba(8,20,32,.94); z-index: 200; display: none; place-items: center; padding: 30px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 18px; right: 20px; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox-close svg { width: 34px; height: 34px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -110px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(217,158,43,.28), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdbe6; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > *:not(summary) { margin-bottom: 1rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c8d5; padding: 56px 0 26px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer a { color: #b9c8d5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; font-size: .95rem; }
.footer-brand .brand-text { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8fa2b3;
}
.footer-bottom a { color: #8fa2b3; }

/* ---------- misc ---------- */
.area-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.area-links li { margin: 0; }
.area-links a {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: .5em 1.05em; font-size: .92rem; text-decoration: none;
  color: var(--ink); transition: all .15s;
}
.area-links a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.bg-white { background: var(--white); }
.bg-navy { background: var(--navy-deep); color: #cfdbe6; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

.quote { background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.02rem; font-style: italic; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 600; font-family: var(--font-head); color: var(--navy); font-size: .95rem; }

.empty-state { text-align: center; padding: 60px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.skeleton { background: linear-gradient(90deg, #eee7db 25%, #f6f1e8 50%, #eee7db 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius-lg); }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tag { display: inline-block; font-size: .78rem; font-weight: 600; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; padding: .3em .7em; border-radius: 6px; background: rgba(217,158,43,.18); color: #8a6413; }

/* ---------- admin ---------- */
.admin-body { background: #eef1f5; }
.admin-shell { max-width: 1240px; margin-inline: auto; padding: 22px; }
.admin-bar {
  background: var(--navy-deep); color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 40;
}
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-bar .brand-text { color: #fff; }
.admin-tabs { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs button {
  border: 0; background: none; cursor: pointer; padding: .6em 1.1em; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--muted);
}
.admin-tabs button.is-active { background: var(--navy); color: #fff; }
.panel { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h2 { margin: 0; font-size: 1.4rem; }
.admin-list { display: grid; gap: 14px; }
.admin-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff;
}
@media (max-width: 620px) { .admin-row { grid-template-columns: 70px 1fr; } .admin-row .admin-actions { grid-column: 1 / -1; } }
.admin-row img, .admin-row .ph { width: 92px; height: 70px; object-fit: cover; border-radius: 9px; background: #e8e2d7; }
@media (max-width: 620px) { .admin-row img, .admin-row .ph { width: 70px; height: 56px; } }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center;
  color: var(--muted); cursor: pointer; transition: all .15s; background: #fafafa;
}
.dropzone.is-over { border-color: var(--gold); background: rgba(217,158,43,.07); color: var(--navy); }
.photo-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-tile { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile button {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(10,28,44,.8); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
  display: grid; place-items: center;
}
.photo-tile .cover-flag {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(10,28,44,.8); color: var(--gold-soft);
  font-size: .68rem; text-align: center; padding: 2px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.modal-scrim { position: fixed; inset: 0; background: rgba(10,28,44,.55); z-index: 100; display: none; overflow-y: auto; padding: 24px; }
.modal-scrim.is-open { display: block; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 780px; margin: 0 auto; padding: 28px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h2 { margin: 0; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; }
.icon-btn:hover { color: var(--navy); }
.icon-btn svg { width: 22px; height: 22px; }
.stat-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat .n { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat .l { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(150deg, var(--navy-deep), var(--navy)); }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 34px; max-width: 400px; width: 100%; box-shadow: var(--shadow-lg); }

@media print {
  .site-header, .site-footer, .topbar, .btn, .nav { display: none !important; }
  body { background: #fff; }
}
