:root {
  --ink: #14251d;
  --forest: #173a2b;
  --forest-deep: #0b2118;
  --leaf: #2f684c;
  --gold: #c9a227;
  --gold-soft: #eadb9c;
  --sand: #f4f0e5;
  --paper: #fffdf8;
  --muted: #64716a;
  --line: #dce2dc;
  --danger: #a63d32;
  --warning: #9a6b12;
  --success: #28754e;
  --shadow: 0 18px 50px rgba(20, 37, 29, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(201, 162, 39, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 36%, rgba(47, 104, 76, 0.12), transparent 32rem);
}

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

a { color: inherit; }

button, input, select, textarea { font: inherit; }

button, .button { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--forest-deep);
  border-radius: 10px;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  background: rgba(11, 33, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--forest-deep);
  background: var(--gold);
  border-radius: 50%;
}

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-links a {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }

.nav-cta { border: 1px solid rgba(234, 219, 156, 0.65); }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.public-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 24, 17, 0.97), rgba(23, 58, 43, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.5), transparent 26rem);
}

.public-hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(234, 219, 156, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 64px rgba(234, 219, 156, 0.035), 0 0 0 128px rgba(234, 219, 156, 0.025);
}

.hero-grid { position: relative; z-index: 1; display: grid; gap: 42px; align-items: end; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before { width: 26px; height: 2px; content: ""; background: var(--gold); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.12; }

.public-hero h1 { max-width: 760px; margin-bottom: 18px; font-family: Georgia, serif; font-size: clamp(2.45rem, 7vw, 5.2rem); font-weight: 500; }

.public-hero p { max-width: 680px; margin-bottom: 0; color: rgba(255, 255, 255, 0.78); font-size: clamp(1rem, 2vw, 1.18rem); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.trust-line { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.trust-line span { display: inline-flex; align-items: center; gap: 7px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 37, 29, 0.16); }

.button:disabled { cursor: not-allowed; opacity: 0.58; transform: none; box-shadow: none; }

.button-primary { color: var(--forest-deep); background: var(--gold); }

.button-light { color: var(--forest); background: #fff; }

.button-outline { color: var(--forest); background: transparent; border: 1px solid var(--forest); }

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

.button-danger { background: var(--danger); }

.button-small { min-height: 38px; padding: 7px 13px; font-size: 0.86rem; }

.filters-section { position: relative; z-index: 2; margin-top: -28px; }

.filters-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.7fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid rgba(23, 58, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 7px; }

.field label, .field-label { color: #31433a; font-size: 0.84rem; font-weight: 800; }

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

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd5cf;
  border-radius: 12px;
  outline: none;
}

textarea { min-height: 130px; resize: vertical; }

input:focus, select:focus, textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47, 104, 76, 0.13); }

.listing-section { padding: 60px 0 90px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }

.section-heading h2 { margin-bottom: 5px; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 500; }

.section-heading p { margin-bottom: 0; color: var(--muted); }

.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.guide-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(23, 58, 43, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(20, 37, 29, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.guide-card-cover { position: relative; height: 132px; overflow: hidden; background: linear-gradient(135deg, var(--forest-deep), var(--leaf)); }

.guide-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.guide-card-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 35%, rgba(7, 24, 17, 0.6)); }

.guide-card-body { position: relative; padding: 58px 20px 22px; }

.avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--leaf);
  border: 4px solid var(--paper);
  border-radius: 50%;
  font-weight: 900;
}

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

.guide-card .avatar { position: absolute; top: -45px; left: 20px; width: 88px; height: 88px; font-size: 1.35rem; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #31533f;
  background: #edf5ef;
  border: 1px solid #cce1d2;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 900;
}

.verified-badge.vip-badge {
  color: #654b00;
  background: #f7ecc3;
  border-color: #dfc96f;
}

.guide-card h3 { margin: 13px 0 6px; font-size: 1.34rem; }

.guide-region { display: flex; gap: 7px; align-items: center; min-height: 28px; margin-bottom: 12px; color: var(--muted); font-size: 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip { padding: 6px 9px; color: #395047; background: #eef1ec; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }

.chip-gold { color: #654b00; background: #f7ecc3; }

.guide-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

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

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

.skeleton { height: 390px; border-radius: var(--radius); background: linear-gradient(100deg, #e5e6e0 20%, #f6f4ed 40%, #e5e6e0 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

@keyframes shimmer { to { background-position-x: -200%; } }

.empty-state { padding: 44px 24px; text-align: center; color: var(--muted); background: rgba(255, 253, 248, 0.74); border: 1px dashed #bcc8c0; border-radius: var(--radius); }

.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 1.15rem; }

.message { display: none; margin: 14px 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; }

.message.is-visible { display: block; }

.message-info { color: #294d3b; background: #e7f0ea; }

.message-error { color: #782b24; background: #f8e8e5; }

.message-success { color: #235c3f; background: #e2f2e8; }

.account-page { min-height: 100vh; background: linear-gradient(135deg, #f4f0e5, #e9eee8); }

.account-main { width: min(1040px, calc(100% - 32px)); margin: auto; padding: 42px 0 80px; }

.account-heading { max-width: 760px; margin-bottom: 26px; }

.account-heading h1 { margin-bottom: 10px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; }

.account-heading p { color: var(--muted); }

.account-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr); gap: 24px; align-items: start; }

.panel-card { padding: clamp(20px, 4vw, 34px); background: var(--paper); border: 1px solid rgba(23, 58, 43, 0.1); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(20, 37, 29, 0.08); }

.panel-card h2 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }

.panel-card > p { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.field-full { grid-column: 1 / -1; }

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

.check-option { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: #f7f7f2; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }

.check-option input { width: 17px; min-height: 17px; accent-color: var(--forest); }

.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.helper-list { padding-left: 20px; color: var(--muted); }

.helper-list li + li { margin-top: 8px; }

.status-card { position: sticky; top: 92px; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 900; }

.status-pending { color: #725015; background: #fff0c5; }
.status-approved { color: #235c3f; background: #dff2e6; }
.status-rejected, .status-suspended { color: #7e3028; background: #f8e2df; }

.auth-shell { width: min(470px, calc(100% - 32px)); margin: auto; padding: 56px 0 90px; }

.auth-shell .brand-lockup { margin-bottom: 24px; text-align: center; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; padding: 5px; background: #edf0eb; border-radius: 14px; }

.auth-tab { padding: 10px; border: 0; color: var(--muted); background: transparent; border-radius: 10px; font-weight: 850; cursor: pointer; }

.auth-tab.is-active { color: var(--forest); background: #fff; box-shadow: 0 4px 12px rgba(20, 37, 29, 0.08); }

.separator { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 0.8rem; }

.separator::before, .separator::after { flex: 1; height: 1px; content: ""; background: var(--line); }

.full-width { width: 100%; }

.text-link { color: var(--forest); font-weight: 800; }

.hidden { display: none !important; }

.profile-cover { position: relative; height: clamp(270px, 43vw, 480px); overflow: hidden; color: #fff; background: linear-gradient(140deg, var(--forest-deep), var(--leaf)); }

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

.profile-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(7, 24, 17, 0.05), rgba(7, 24, 17, 0.78)); }

.profile-identity { position: relative; z-index: 2; margin-top: -96px; }

.identity-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: end; padding: 26px; background: var(--paper); border: 1px solid rgba(23, 58, 43, 0.1); border-radius: 26px; box-shadow: var(--shadow); }

.profile-avatar { width: 150px; height: 150px; font-size: 2rem; }

.identity-card h1 { margin: 9px 0 7px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; }

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

.identity-actions { display: flex; flex-direction: column; gap: 9px; }

.profile-social-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.profile-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.8fr); gap: 24px; padding: 30px 0 80px; align-items: start; }

.profile-layout-simple { grid-template-columns: minmax(0, 720px); justify-content: center; }

.profile-stack { display: grid; gap: 22px; }

.content-card { padding: clamp(22px, 4vw, 32px); background: var(--paper); border: 1px solid rgba(23, 58, 43, 0.09); border-radius: var(--radius); }

.content-card h2 { margin-bottom: 18px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }

.content-card p:last-child { margin-bottom: 0; }

.contact-card { position: sticky; top: 92px; }

.social-icon-button {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon-button svg {
  width: 25px;
  height: 25px;
}

.whatsapp-icon-button {
  color: #fff;
  background: #1fa855;
  border-color: #1fa855;
}

.whatsapp-icon-button:hover {
  color: #fff;
  background: #188a46;
  border-color: #188a46;
}

.whatsapp-icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-icon-button {
  color: #fff;
  background: radial-gradient(circle at 30% 105%, #ffd600 0 22%, #ff7a00 38%, #ff0169 62%, #d300c5 78%, #7638fa 100%);
}

.instagram-icon-button:hover { color: #fff; }

.instagram-icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-icon-button .instagram-icon-dot {
  fill: currentColor;
  stroke: none;
}

.contact-note { margin-top: 16px; color: var(--muted); font-size: 0.82rem; text-align: center; }

.vip-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.vip-actions .verified-badge { width: max-content; margin-bottom: 4px; }

.sightings-button {
  color: #6a5511;
  background: #f3e8b9;
  border: 1px dashed #c9a227;
}

.sightings-button:disabled { opacity: 1; color: #6a5511; cursor: default; }

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

.gallery-item { position: relative; min-height: 170px; overflow: hidden; background: #e7eae5; border-radius: 14px; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.gallery-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 10px 9px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); font-size: 0.78rem; }

.gallery-manager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }

.gallery-manager figure { margin: 0; overflow: hidden; background: #eef0eb; border-radius: 13px; }

.gallery-manager img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.gallery-manager button { width: 100%; padding: 8px; color: var(--danger); background: #fff; border: 0; cursor: pointer; font-weight: 800; }

.admin-shell { width: min(1240px, calc(100% - 32px)); margin: auto; padding: 38px 0 80px; }

.admin-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }

.admin-top h1 { margin-bottom: 6px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; }

.admin-top p { margin: 0; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }

.stat-card { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }

.stat-card strong { display: block; font-size: 1.7rem; }

.stat-card span { color: var(--muted); font-size: 0.82rem; }

.admin-toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 16px; }

.admin-list { display: grid; gap: 12px; }

.admin-guide { display: grid; grid-template-columns: auto minmax(200px, 1.4fr) minmax(180px, 1fr) auto; gap: 16px; align-items: center; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }

.admin-guide .avatar { width: 56px; height: 56px; border-width: 2px; }

.admin-guide h3 { margin-bottom: 3px; font-size: 1rem; }

.admin-guide p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.admin-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }

dialog { width: min(700px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3); }

dialog::backdrop { background: rgba(7, 24, 17, 0.72); backdrop-filter: blur(4px); }

.dialog-body { max-height: 82vh; overflow: auto; padding: 26px; }

.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }

.dialog-header button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }

.site-footer { padding: 35px 16px; color: rgba(255, 255, 255, 0.68); background: var(--forest-deep); text-align: center; }

.site-footer a { color: #fff; }

@media (max-width: 900px) {
  .filters-card { grid-template-columns: repeat(2, 1fr); }
  .guides-grid, .loading-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid, .profile-layout { grid-template-columns: 1fr; }
  .status-card, .contact-card { position: static; }
  .identity-card { grid-template-columns: auto 1fr; }
  .identity-actions { grid-column: 1 / -1; flex-direction: row; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-guide { grid-template-columns: auto 1fr; }
  .admin-guide-meta, .admin-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .site-nav { min-height: 62px; }
  .brand-text { font-size: 0.86rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a { padding: 8px 10px; font-size: 0.78rem; }
  .public-hero { padding: 64px 0 62px; }
  .filters-card { grid-template-columns: 1fr; }
  .listing-section { padding-top: 42px; }
  .section-heading { align-items: start; flex-direction: column; }
  .guides-grid, .loading-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .check-group { grid-template-columns: 1fr; }
  .identity-card { grid-template-columns: 1fr; align-items: center; text-align: center; }
  .profile-avatar { width: 126px; height: 126px; margin: auto; }
  .identity-actions { grid-column: auto; flex-direction: column; }
  .profile-social-actions { justify-content: center; }
  .profile-cover { height: 310px; }
  .profile-identity { margin-top: -74px; }
  .gallery-grid, .gallery-manager { grid-template-columns: repeat(2, 1fr); }
  .admin-top { align-items: start; flex-direction: column; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-guide { grid-template-columns: 1fr; text-align: center; }
  .admin-guide .avatar { margin: auto; }
  .admin-guide-meta, .admin-actions { grid-column: auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
