:root {
  --green-dark: #145a32;
  --green: #1e8449;
  --green-mid: #27ae60;
  --green-light: #eafaf1;
  --gold: #f5b041;
  --white: #ffffff;
  --gray-text: #4b5b53;
  --shadow: 0 6px 20px rgba(20, 90, 50, 0.10);
}

@font-face {
  font-family: 'FMBasuru';
  src: url('/fonts/FMBasuru.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #223027;
  background: var(--white);
  line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--green-dark); margin: 0 0 .5rem; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* Loading screen — floating logo */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  clip-path: inset(0 0 0 0);
  transition: clip-path .8s cubic-bezier(.65,0,.35,1);
}
#loading-screen.hide { clip-path: inset(0 0 100% 0); pointer-events: none; }

.load-logo-wrap {
  position: relative; width: 150px; height: 150px;
}
.load-logo-img { width: 100%; height: 150px; object-fit: contain; }

.load-text {
  font-weight: 700; color: var(--green-dark); letter-spacing: .04em;
  font-size: .95rem; opacity: .85;
}

.load-greeting {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0;
  animation: greetingIn .8s ease .15s forwards;
}
.load-greeting-hands {
  display: block; width: 112px; height: 159px; object-fit: contain;
}
.load-greeting-text {
  font-size: 1.5rem; font-weight: 800; color: var(--green-dark);
  letter-spacing: .03em;
}
.load-greeting-sinhala {
  font-family: 'FMBasuru', sans-serif;
  font-size: 1.6rem; color: var(--green-mid); font-weight: 600;
}
@keyframes greetingIn {
  from { opacity: 0; transform: translateY(14px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
section { padding: 64px 0; }

/* Sri Lanka attractions map */
.sl-map-wrap { display: flex; justify-content: center; position: relative; }
.map-pin-link { text-decoration: none; }
.sl-map-svg { width: 100%; max-width: 480px; height: auto; }
.sl-districts path {
  fill: #cdeed9;
  stroke: #1e8449;
  stroke-width: 1;
  transition: fill .2s ease;
}
.sl-districts path:hover { fill: #a9e0be; }
.map-pin circle {
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: r .15s ease, fill .15s ease;
}
.map-pin circle.pin-hit { fill: transparent; stroke: none; }
.map-pin.town-pin circle:not(.pin-hit) { fill: var(--gold); }
.map-pin.park-pin circle:not(.pin-hit) { fill: #2d6a4f; }
.map-pin.town-pin:hover circle:not(.pin-hit), .map-pin.town-pin.active circle:not(.pin-hit) { r: 9.5; fill: var(--green); }
.map-pin.park-pin:hover circle:not(.pin-hit), .map-pin.park-pin.active circle:not(.pin-hit) { r: 8.5; fill: #1b4332; }
.map-pin text {
  font-size: 9px;
  font-weight: 700;
  fill: var(--green-dark);
  pointer-events: none;
  transition: font-size .15s ease;
}
.map-pin.park-pin text { font-style: italic; }
.map-pin:hover text, .map-pin.active text { font-size: 11.5px; }
.sl-map-legend {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 18px; font-size: .85rem; color: var(--gray-text); flex-wrap: wrap;
}
.sl-legend-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.sl-legend-dot.town-dot { background: var(--gold); }
.sl-legend-dot.park-dot { background: #2d6a4f; }
.sl-tooltip {
  position: absolute;
  z-index: 20;
  max-width: 220px;
  background: var(--white);
  border: 1px solid #cfe8d8;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--gray-text);
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-10px);
  transition: opacity .15s ease;
  pointer-events: none;
}
.sl-tooltip.show { opacity: 1; }
.sl-tooltip strong { display: block; color: var(--green-dark); font-size: .92rem; margin-bottom: 4px; }
@media (max-width: 600px) {
  .map-pin text { font-size: 10px; }
  .map-pin:hover text, .map-pin.active text { font-size: 11.5px; }
}

/* About section — guide photo + bio */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; }
.about-photo-wrap { display: flex; justify-content: center; }
.about-photo-oval {
  width: 300px; height: 380px; object-fit: cover;
  border-radius: 50% / 42%;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  outline: 3px solid var(--green-light);
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo-oval { width: 260px; height: 330px; }
}
.section-alt { background: var(--green-light); }
.eyebrow { color: var(--green-mid); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.center { text-align: center; }
.muted { color: var(--gray-text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--green); color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-block.btn-whatsapp { justify-content: center; }
.btn-sm { padding: 6px 16px; font-size: .85rem; }

.icon-whatsapp { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }

/* Top info bar */
.topbar { background: var(--green-dark); color: #cfe8d8; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }
.topbar-contact { display: flex; align-items: center; gap: 10px; }
.topbar-contact a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.topbar-contact .icon-whatsapp { width: 14px; height: 14px; }
.topbar-divider { opacity: .5; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.topbar-social a:hover { transform: translateY(-2px); }
.topbar-social .icon-brand { width: 16px; height: 16px; }
@media (max-width: 600px) { .topbar-inner { font-size: .72rem; } .topbar-contact span:not(.topbar-divider) { display: none; } }

/* Main navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(20,90,50,.08);
  transition: box-shadow .2s ease;
  border-bottom: 3px solid var(--green-light);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-main { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-dark); font-size: 1.25rem; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn-whatsapp-pill) {
  position: relative;
  color: #2a3b31; font-weight: 600; font-size: .92rem; padding: 4px 0;
}
.nav-links a:not(.btn-whatsapp-pill)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--green); transition: width .25s ease;
}
.nav-links a:not(.btn-whatsapp-pill):hover { color: var(--green-dark); }
.nav-links a:not(.btn-whatsapp-pill):hover::after { width: 100%; }
.btn-whatsapp-pill {
  background: #1DA851; color: #fff !important; font-weight: 700;
  padding: 9px 22px; border-radius: 30px; font-size: .88rem;
  box-shadow: 0 4px 12px rgba(29,168,81,.35);
  transition: transform .15s ease, background .15s ease;
}
.btn-whatsapp-pill:hover { transform: translateY(-2px); background: #178a42; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--green-dark); cursor: pointer; }
.nav-close { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 26px 26px; gap: 22px; box-shadow: -8px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .3s ease; z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-close { display: block; align-self: flex-end; background: none; border: none; font-size: 1.8rem; color: var(--green-dark); cursor: pointer; margin-bottom: 10px; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(20,90,50,.4); z-index: 150; }
  .nav-overlay.open { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: .95; max-width: 640px; margin: 0 auto 28px; }
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Full-bleed photo hero (used when a gallery photo is available) */
.hero-photo {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,90,50,.55) 0%, rgba(20,90,50,.75) 100%);
  z-index: -1;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-photo .container { position: relative; z-index: 1; }
.hero-anim { opacity: 0; }
.reveal-hero .hero-anim { animation: heroFadeUp .9s ease forwards; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-photo .eyebrow { color: #d9f2e2; }
.hero-photo h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-photo .tagline-list { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: 18px 0 26px; font-weight: 600; }
.hero-photo .tagline-list span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); padding: 6px 16px; border-radius: 30px; font-size: .9rem; }
.hero-photo p.subtitle { font-size: 1.1rem; opacity: .95; max-width: 640px; margin: 0 auto 26px; }
.hero-photo .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-info-line {
  display: flex; gap: 0; flex-wrap: wrap; justify-content: center;
  margin-top: 22px; font-size: .85rem; color: #e8f5ec;
}
.hero-info-line span { position: relative; padding: 0 14px; }
.hero-info-line span:first-child { padding-left: 0; }
.hero-info-line span:not(:last-child)::after {
  content: '\2022'; position: absolute; right: -4px; opacity: .5;
}
@media (max-width: 700px) {
  .hero-photo { min-height: 620px; }
  .hero-photo h1 { font-size: 2rem; }
}

/* Trust badges strip */
.badge-strip { background: var(--white); margin-top: -18px; position: relative; z-index: 5; padding: 20px 0 30px; }
#day-tours-preview { scroll-margin-top: 90px; }
#explore-sri-lanka { scroll-margin-top: 90px; }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .badge-grid { grid-template-columns: repeat(2, 1fr); } }
.badge-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
  border-top: 3px solid var(--green);
}
.badge-card .badge-icon { width: 40px; height: 40px; margin: 0 auto 10px; color: #25D366; }
.badge-card .badge-icon svg { width: 100%; height: 100%; }
.badge-card h4 { font-size: .98rem; margin-bottom: 6px; }
.badge-card p { font-size: .82rem; color: var(--gray-text); margin: 0; }

/* Image-forward journey cards */
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr; } }
.journey-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .journey-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .journey-grid-4 { grid-template-columns: 1fr; } }
.journey-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.journey-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.journey-card:hover img { transform: scale(1.06); }
.journey-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,40,25,.45) 0%, rgba(15,60,35,.55) 40%, rgba(10,45,28,.95) 100%);
  z-index: -1;
}
.journey-card .journey-body { padding: 22px; width: 100%; }
.journey-card .tag { background: rgba(255,255,255,.2); color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.journey-card h3 { color: var(--white); margin: 8px 0 6px; }
.journey-card p { color: #e6f2e9; font-size: .88rem; margin: 0 0 12px; }
.journey-card .price-tag { color: #fff; font-size: .95rem; }
.journey-card .btn { padding: 8px 18px; font-size: .85rem; }

/* Quote-style testimonial cards */
.quote-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 24px; position: relative; }
.quote-card::before {
  content: '\201C';
  position: absolute; top: 8px; left: 18px;
  font-size: 3.2rem; color: var(--green-light); font-family: Georgia, serif; line-height: 1;
  z-index: 0;
}
.quote-card > * { position: relative; z-index: 1; }

/* Cards grid */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e4f2e9;
}
.card img { height: 200px; width: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body .tag { display: inline-block; background: var(--green-light); color: var(--green); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.card-body ul { padding-left: 18px; margin: 10px 0; color: var(--gray-text); }
.price-tag { color: var(--green-dark); font-weight: 700; margin: 10px 0; }

/* Gallery slider */
.slider { position: relative; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); }
.slider-track { display: flex; transition: transform .5s ease; }
.slider-slide { min-width: 100%; }
.slider-slide img { height: 420px; width: 100%; object-fit: cover; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,90,50,.6); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: #cfe8d8; cursor: pointer; }
.slider-dots span.active { background: var(--green); }
@media (max-width: 700px) { .slider-slide img { height: 260px; } }

/* Places / custom tour */
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.place-check { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); border: 2px solid transparent; }
.place-check img { width: 100%; height: 85px; object-fit: cover; display: block; }
.place-check input { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; }
.place-check .info { padding: 7px 9px; }
.place-check .info strong { font-size: .88rem; }
.place-check.selected { border-color: var(--green); }

/* Forms */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--green-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid #cfe0d5; font-size: 1rem; font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.phone-field-group { display: flex; gap: 8px; }
.phone-field-group select { flex: 0 0 128px; min-width: 0; }
.phone-field-group input { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .phone-field-group select { flex-basis: 108px; font-size: .85rem; }
}
.form-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 30px; }

/* Reviews */
.review-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; border-left: 4px solid var(--green); }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.review-name { font-weight: 700; color: var(--green-dark); margin-top: 8px; }

/* Ratings badges */
.ratings-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.rating-badge { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 20px; text-align: center; min-width: 150px; }
.rating-badge .score { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); }
.rating-badge .platform { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-text); }
.rating-badge a { display: inline-block; margin-top: 6px; font-size: .85rem; font-weight: 700; }

/* Footer */
footer { background: var(--green-dark); color: #d9ede1; padding: 40px 0 20px; margin-top: 40px; }
footer a { color: #fff; }
footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
footer .container > div { text-align: center; }
footer h4 { font-size: .95rem; letter-spacing: .02em; }
footer p { margin: 0 0 8px; font-size: .9rem; }
footer .btn-whatsapp { margin: 0 auto; }
@media (max-width: 900px) { footer .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { footer .container { grid-template-columns: 1fr; } }
.footer-bottom { text-align: center; margin-top: 24px; font-size: .85rem; opacity: .8; }
.footer-credit { text-align: center; margin-top: 6px; font-size: .8rem; opacity: .7; }
.footer-credit a { text-decoration: none; font-weight: 700; }
.footer-tagline { text-align: center; font-weight: 600; letter-spacing: .03em; color: var(--gold); margin-top: 6px; font-size: .85rem; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a { background: rgba(255,255,255,.12); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  background: #25D366; color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float .icon-whatsapp { width: 30px; height: 30px; }

/* Social media strip */
.social-strip {
  position: fixed; top: 50%; right: 14px; z-index: 150;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
}
.social-strip-item {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.social-strip-item:hover { transform: translateX(-4px) scale(1.06); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.social-strip-item .icon-brand { width: 38px; height: 38px; }
.social-strip-fb { background: #1877F2; }
.social-strip-ig { background: linear-gradient(45deg, #FFDD55, #FF543E, #C837AB, #5851DB); }
.social-strip-tt { background: #000; }
@media (max-width: 600px) {
  .social-strip { right: 10px; gap: 8px; }
  .social-strip-item { width: 40px; height: 40px; border-radius: 11px; }
  .social-strip-item:hover { transform: none; }
  .social-strip-item .icon-brand { width: 30px; height: 30px; }
}

/* Admin */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--green-dark); color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar a { display: block; color: #d9ede1; padding: 12px 22px; font-weight: 600; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { flex: 1; padding: 30px; background: #f6faf7; }
.admin-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e6f0ea; font-size: .92rem; }
table.admin-table th { color: var(--green-dark); }
.badge { padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.badge-pending { background: #fdebd0; color: #b9770e; }
.badge-approved, .badge-new { background: var(--green-light); color: var(--green-dark); }
.badge-rejected, .badge-closed { background: #fadbd8; color: #922b21; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-box { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 20px; text-align: center; }
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--green-dark); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--green-light); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #fadbd8; color: #922b21; }
.alert-success { background: var(--green-light); color: var(--green-dark); }


/* Gallery lightbox with watermark */
.gallery-photo { cursor: zoom-in; }
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.active { display: flex; }
.gallery-lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
}
.gallery-lightbox-inner img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}
.gallery-lightbox-watermark {
  position: absolute;
  bottom: 14px;
  right: 18px;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  letter-spacing: .3px;
  pointer-events: none;
}
.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}
@media (max-width: 640px) {
  .gallery-lightbox-watermark { font-size: 11px; bottom: 8px; right: 10px; }
  .gallery-lightbox-close { top: 10px; right: 14px; font-size: 28px; }
}


/* Gallery lightbox prev/next nav buttons */
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background .15s ease;
}
.gallery-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.gallery-lightbox-nav.prev { left: 18px; }
.gallery-lightbox-nav.next { right: 18px; }
@media (max-width: 640px) {
  .gallery-lightbox-nav { width: 40px; height: 40px; font-size: 30px; }
  .gallery-lightbox-nav.prev { left: 6px; }
  .gallery-lightbox-nav.next { right: 6px; }
}


/* Basic image protection: deter easy right-click/drag saving */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
