/* ============================================================
   Ganesh Mandal Map — shared stylesheet
   Palette: Ganeshotsav at night — pandal drapes, zendu garlands,
   brass aarti lamps. One loud colour (marigold), everything else quiet.
   ============================================================ */
:root{
  /* पांढरी थीम — पांढरी पार्श्वभूमी, काळा मजकूर.
     जुनी काळी थीम हवी असल्यास फक्त हे चौदा रंग बदला, बाकी काही नाही. */
  --night:     #FFFFFF;   /* पानाची पार्श्वभूमी */
  --surface:   #FFFFFF;   /* कार्ड, पॅनेल, इनपुट */
  --surface-2: #F4F1EB;   /* थोडी गडद पट्टी */
  --zendu:     #C2790A;   /* भगवा — पांढऱ्यावर वाचता येईल असा */
  --zendu-dim: #8A5606;
  --kumkum:    #B22A19;
  --green:     #1F7A46;
  --saffron:   #B45309;
  --cream:     #15100E;   /* मुख्य मजकूर — जवळजवळ काळा */
  --body:      #3A322C;
  --muted:     #6B6058;
  --faint:     #948A80;
  --line:      rgba(21,16,14,.15);
  --shadow:    0 6px 22px rgba(21,16,14,.10);
  --sheet-h:   322px;   /* शीर्षकाखालील .sheet-actions पट्टीसाठी वाढवले (आधी 264px) */
  --r:         12px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  margin:0;background:var(--night);color:var(--cream);
  font-family:"Mukta",system-ui,-apple-system,sans-serif;font-weight:300;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--zendu)}
button{font-family:inherit;cursor:pointer;border:0}
img{max-width:100%}
.wordmark{font-family:"Yatra One",cursive;font-weight:400;letter-spacing:.01em}
.hidden{display:none !important}

/* ---------- torana / garland motif ---------- */
.torana{display:block;width:100%;height:34px;margin-bottom:22px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:13px 20px;border-radius:11px;font-size:16px;font-weight:700;
  background:var(--zendu);color:#fff;text-decoration:none;
  box-shadow:0 2px 8px rgba(21,16,14,.13);
  transition:transform .12s,filter .12s;
}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-block{display:flex;width:100%}
.btn-wa{background:var(--green);color:#fff}
.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--line);box-shadow:none}
.btn-danger{background:var(--kumkum);color:#fff}
.btn-sm{padding:8px 14px;font-size:14px;border-radius:9px}

label{color:#000000}

/* ---------- forms ---------- */
.field{margin-bottom:15px}
.field label{
  display:block;font-size:13px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:#000000;margin-bottom:6px;
}
.field label .opt{font-weight:500;letter-spacing:0;text-transform:none;color:#000000}
.field input[type=text],.field input[type=tel],.field input[type=email],
.field input[type=password],.field input[type=number],.field textarea,.field select{
  width:100%;padding:12px 14px;background:#FBFAF7;color:var(--cream);
  border:1px solid var(--line);border-radius:10px;font-size:16px;font-family:inherit;
  transition:border-color .15s,background .15s;
}
.field textarea{resize:vertical;min-height:96px;line-height:1.55}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:0;border-color:var(--zendu);background:#fff;box-shadow:0 0 0 3px rgba(194,121,10,.12);
}
.field .hint{font-size:12.5px;color:var(--faint);margin-top:5px;line-height:1.45}

/* ---------- पासवर्ड दाखवा / लपवा ---------- */
.pw-wrap{position:relative}
.field .pw-wrap input[type=text],
.field .pw-wrap input[type=password]{padding-right:78px}
.pw-toggle{
  position:absolute;top:50%;right:6px;transform:translateY(-50%);
  border:0;background:transparent;cursor:pointer;
  font-family:inherit;font-size:12px;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;color:var(--zendu);padding:8px 10px;border-radius:8px;
}
.pw-toggle:hover{background:rgba(194,121,10,.10)}
.pw-toggle:active{transform:translateY(-50%) scale(.96)}

/* डोळ्याचे बटण — assets/js/pw-toggle.js आपोआप जोडते */
.field .pw-wrap input[type=text],
.field .pw-wrap input[type=password]{padding-right:52px}
.pw-eye{
  position:absolute;top:50%;right:8px;transform:translateY(-50%);
  width:34px;height:34px;border:0;border-radius:9px;cursor:pointer;
  background:transparent;color:var(--muted);
  display:grid;place-items:center;padding:0;
  transition:color .15s, background .15s;
}
.pw-eye svg{width:19px;height:19px;display:block}
.pw-eye:hover{color:var(--zendu);background:rgba(194,121,10,.10)}
.pw-eye.on{color:var(--zendu)}
.pw-eye:active{transform:translateY(-50%) scale(.94)}
.field-row{display:flex;gap:12px}
.field-row .field{flex:1}
@media(max-width:520px){.field-row{flex-direction:column;gap:0}}

.file-drop{
  border:1px dashed rgba(21,16,14,.22);border-radius:var(--r);padding:18px;
  text-align:center;color:var(--muted);font-size:14px;background:var(--surface-2);
}
.file-drop input{display:block;margin:10px auto 0;color:var(--muted);font-size:13px;max-width:100%}

.consent{display:flex;gap:10px;align-items:flex-start;margin:18px 0;
  font-size:14px;color:#000000;line-height:1.45}
.consent input{margin-top:3px;accent-color:var(--zendu);width:16px;height:16px;flex:none}

.err{color:var(--kumkum);font-size:13.5px;margin:-6px 0 12px;display:none}
.err.show{display:block}

.alert{padding:12px 15px;border-radius:10px;font-size:14.5px;margin-bottom:16px;line-height:1.5}
.alert-ok{background:rgba(31,122,70,.10);color:#156034;border:1px solid rgba(31,122,70,.32)}
.alert-err{background:rgba(178,42,25,.09);color:#8E2114;border:1px solid rgba(178,42,25,.3)}
.alert-info{background:rgba(194,121,10,.10);color:#8A5606;border:1px solid rgba(194,121,10,.3)}

/* ---------- page shells ---------- */
.page{min-height:100%;padding:30px 18px 60px}
.narrow{width:100%;max-width:440px;margin:0 auto}
.wide{width:100%;max-width:1080px;margin:0 auto}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--zendu);margin:0 0 6px}
h1.title{font-size:29px;line-height:1.18;margin:0 0 8px;font-weight:800}
h1.title em{font-style:normal;color:var(--zendu)}
.lede{color:var(--muted);font-size:15px;margin:0 0 26px;line-height:1.55}
.rise{animation:rise .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.panel + .panel{margin-top:18px}
.panel h2{font-size:17px;font-weight:800;margin:0 0 4px}
.panel .panel-sub{color:var(--muted);font-size:13.5px;margin:0 0 18px;line-height:1.5}

/* ---------- top bar ---------- */
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 18px;background:var(--surface);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:50;
}
.topbar .brand{font-size:16px;font-weight:800;text-decoration:none;color:var(--cream)}
.topbar .brand span{color:var(--zendu)}
.topbar nav{display:flex;align-items:center;gap:8px;font-size:14px}
.topbar nav a{color:var(--muted);text-decoration:none;padding:7px 11px;border-radius:8px}
.topbar nav a:hover,.topbar nav a.on{color:var(--cream);background:var(--surface-2)}

/* ---------- stats ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:20px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}
.stat b{display:block;font-size:28px;font-weight:800;color:var(--zendu);line-height:1.1}
.stat span{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}

/* ---------- tables ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
table.data{width:100%;border-collapse:collapse;font-size:14.5px;min-width:640px}
table.data th{
  text-align:left;padding:12px 14px;font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);font-weight:800;
  border-bottom:1px solid var(--line);white-space:nowrap;
}
table.data td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
table.data tr:last-child td{border-bottom:0}
/* गोल फोटो — td अरुंद असल्याने img{max-width:100%} मुळे रुंदी
   दबत होती आणि वर्तुळाचा अंडाकृती होत होता. म्हणून रुंदी/उंची
   दोन्ही ठाम केली आहेत. */
table.data .thumb{
  width:44px;height:44px;min-width:44px;max-width:44px;
  flex:none;display:block;border-radius:50%;
  object-fit:cover;object-position:center;aspect-ratio:1/1;
  border:2px solid var(--zendu);background:var(--surface-2);
}
table.data td:first-child{width:60px}
.pill{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11.5px;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase}
.pill-pending{background:rgba(194,121,10,.13);color:var(--zendu)}
.pill-approved{background:rgba(31,122,70,.13);color:#156034}
.pill-rejected{background:rgba(178,42,25,.12);color:#8E2114}

.empty{padding:40px 20px;text-align:center;color:var(--muted);font-size:15px}

/* ============================================================
   VISITOR GATE
   ============================================================ */
#gate{position:fixed;inset:0;z-index:900;background:var(--night);
  display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}
.gate-card{width:100%;max-width:400px}
#step2{display:none}
#step2.show{display:block}
.namaskar{font-size:26px;margin:0 0 6px}

/* ============================================================
   MAP
   ============================================================ */
#map{position:fixed;inset:0;bottom:var(--sheet-h);background:var(--night)}
.leaflet-container{background:var(--night);font-family:"Mukta",sans-serif}
.leaflet-control-attribution{background:rgba(255,255,255,.86)!important;color:var(--muted)!important;font-size:10px}
.leaflet-control-attribution a{color:var(--muted)!important}
.leaflet-control-zoom a{background:var(--surface)!important;color:var(--cream)!important;border-color:var(--line)!important}
.leaflet-bar{border:0!important;box-shadow:0 3px 12px rgba(21,16,14,.16)!important}

/* SIGNATURE — circular mandal medallion in a marigold ring */
.medallion-wrap{position:relative}
.medallion{
  width:56px;height:56px;border-radius:50%;background-size:cover;background-position:center;
  background-color:var(--surface-2);border:2.5px solid var(--zendu);
  box-shadow:0 0 0 4px rgba(194,121,10,.18),0 6px 16px rgba(21,16,14,.22);
  transition:transform .18s cubic-bezier(.2,.8,.2,1);
}
.medallion-wrap:hover .medallion{transform:scale(1.09)}
.medallion-wrap.nearest .medallion{border-color:#8A5606}
.medallion-wrap.nearest::before{
  content:"";position:absolute;inset:-8px;border-radius:50%;
  border:1.5px solid var(--zendu);animation:halo 2.6s ease-out infinite;pointer-events:none;
}
@keyframes halo{0%{transform:scale(.85);opacity:.85}100%{transform:scale(1.5);opacity:0}}
.medallion-tag{
  position:absolute;top:60px;left:50%;transform:translateX(-50%);white-space:nowrap;
  font-size:11px;font-weight:700;color:#fff;background:rgba(21,16,14,.86);
  padding:2px 8px;border-radius:20px;border:1px solid var(--line);pointer-events:none;
}
.you-dot{width:16px;height:16px;border-radius:50%;background:#1D6FD0;border:2.5px solid #fff;
  box-shadow:0 0 0 6px rgba(29,111,208,.20),0 2px 6px rgba(21,16,14,.25)}
.route-label{background:var(--zendu);color:#fff;font-weight:800;font-size:12px;
  padding:3px 9px;border-radius:20px;white-space:nowrap}

/* map floating buttons */
.map-fab{position:fixed;right:14px;z-index:400;width:44px;height:44px;border-radius:50%;
  background:var(--surface);color:var(--cream);border:1px solid var(--line);
  display:grid;place-items:center;box-shadow:0 4px 14px rgba(21,16,14,.14)}
#fab-locate{bottom:calc(var(--sheet-h) + 14px)}
#fab-add{bottom:calc(var(--sheet-h) + 68px);background:var(--zendu);color:#fff;border-color:transparent}

/* ---------- top search ---------- */
#top-search{
  position:fixed;top:calc(env(safe-area-inset-top) + 14px);left:14px;right:14px;
  z-index:450;display:flex;flex-direction:column;align-items:flex-end;
}
#top-search-toggle{
  width:44px;height:44px;border-radius:50%;background:var(--surface);color:var(--cream);
  border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 4px 14px rgba(21,16,14,.14);
}
#top-search-box{
  display:none;align-items:center;gap:9px;width:100%;padding:10px 13px;border-radius:14px;
  background:var(--surface);border:1px solid var(--line);box-shadow:0 4px 14px rgba(21,16,14,.14);color:var(--muted);
}
#top-search.open #top-search-toggle{display:none}
#top-search.open #top-search-box{display:flex}
#top-search-box input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--cream);
  font-size:14.5px;font-family:inherit}
#top-search-box input::placeholder{color:var(--muted)}
#top-search-clear{flex:none;background:none;color:var(--muted);width:22px;height:22px;
  display:grid;place-items:center;font-size:15px;line-height:1;border-radius:50%}
#top-search-clear:active{background:var(--surface-2)}
#top-search-results{
  display:none;margin-top:8px;width:100%;max-height:56vh;overflow-y:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 10px 30px rgba(21,16,14,.16);
}
#top-search-results.show{display:block}
#top-search-results .row{padding:10px 10px}
#top-search-results .empty{padding:22px 16px;font-size:14px}

/* ---------- bottom sheet ---------- */
#sheet{
  position:fixed;left:0;right:0;bottom:0;height:var(--sheet-h);z-index:500;
  background:var(--surface);border-top:1px solid var(--line);border-radius:20px 20px 0 0;
  box-shadow:0 -10px 34px rgba(21,16,14,.13);display:flex;flex-direction:column;
  padding-bottom:env(safe-area-inset-bottom);
}
.sheet-grip{width:38px;height:4px;border-radius:4px;background:#D6CFC5;margin:9px auto 4px}
.sheet-head{display:flex;align-items:baseline;justify-content:space-between;padding:2px 18px 10px}
.sheet-head h2{font-size:16px;font-weight:800;margin:0}
.sheet-head span{font-size:12px;color:var(--muted);font-weight:500}
.sheet-search{display:flex;align-items:center;gap:9px;margin:0 18px 10px;padding:9px 12px;
  border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted)}
.sheet-search svg{flex:none}
.sheet-search input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--cream);
  font-size:14px;font-family:inherit}
.sheet-search input::placeholder{color:var(--muted)}
.sheet-list{overflow-y:auto;padding:0 12px 14px;flex:1}
.row{display:flex;align-items:center;gap:13px;padding:11px 8px;border-radius:12px;width:100%;
  background:transparent;text-align:left;color:inherit;transition:background .14s}
.row:active{background:var(--surface-2)}
.row + .row{border-top:1px solid var(--line)}
.row-thumb{width:46px;height:46px;border-radius:50%;background-size:cover;background-position:center;
  background-color:var(--surface-2);border:2px solid var(--zendu);flex:none}
.row-body{flex:1;min-width:0}
.row-body b{display:block;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-body small{color:var(--muted);font-size:12.5px;font-weight:500}
.row-dist{font-size:15px;font-weight:800;color:var(--zendu);flex:none;text-align:right}
.row-dist small{display:block;font-size:10px;color:var(--muted);font-weight:500;
  letter-spacing:.07em;text-transform:uppercase}

/* ---------- mandal card ---------- */
#card{position:fixed;inset:0;z-index:800;display:none}
#card.show{display:block}
.scrim{position:absolute;inset:0;background:rgba(21,16,14,.48);backdrop-filter:blur(3px)}
.card-body{position:absolute;left:0;right:0;bottom:20px;top: 0;
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:var(--surface);border-radius:22px 22px 0 0;
  box-shadow:0 -14px 40px rgba(21,16,14,.18);
  animation:slideUp .34s cubic-bezier(.2,.85,.25,1) both;padding-bottom:env(safe-area-inset-bottom)}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:none}}
@media(min-width:720px){
  /* पडद्याच्या बरोबर मध्यभागी — वर आणि खाली सारखीच मोकळी जागा.
     पूर्वी top:20% आणि bottom:20px दोन्ही दिले होते आणि वर
     translate(-50%,-50%) ही लागत होते, त्यामुळे कार्ड वर सरकून
     त्याचा वरचा भाग पडद्याबाहेर जात होता. आता फक्त top:50% —
     उंची मजकुराप्रमाणे, ८८% पेक्षा मोठी झाली तर आतल्या आत scroll. */
  .card-body{left:50%;right:auto;top:50%;bottom:auto;
    width:560px;max-width:calc(100vw - 40px);
    height:auto;max-height:88dvh;
    border-radius:20px;
    box-shadow:0 20px 60px rgba(21,16,14,.22);
    animation:cardRise .34s cubic-bezier(.2,.85,.25,1) both}
}
/* translate(-50%,-50%) keyframe मध्येच ठेवली आहे, नाहीतर ती रद्द होते */
@keyframes cardRise{
  from{opacity:0;transform:translate(-50%,-44%)}
  to  {opacity:1;transform:translate(-50%,-50%)}
}
/* आतला scrollbar बारीक पण दिसणारा */
.card-body::-webkit-scrollbar{width:9px}
.card-body::-webkit-scrollbar-thumb{background:#D6CFC5;border-radius:9px;border:2px solid var(--surface)}
.card-body::-webkit-scrollbar-track{background:transparent}
/* ---------- card hero photo ---------- */
/* गणपतीचा फोटो आता खऱ्या <img> मधून येतो — पूर्वी तो CSS background
   म्हणून लावला होता, त्यामुळे कधी तो आडवा पुन्हा पुन्हा उमटायचा
   (repeat) आणि कापल्यासारखा दिसायचा. <img> + object-fit:contain
   मध्ये असे काहीही होत नाही: फोटो कितीही उभा-आडवा असो, तो पूर्णच्या
   पूर्ण चौकटीत बसतो, एकदाच. */
.card-hero{height:240px;position:relative;overflow:hidden;background-color:var(--surface-2);
  display:block}
.card-hero::before,.card-hero::after{content:none;display:none}
.card-hero .hero-img{
  display:block;width:100%;height:100%;
  object-fit:contain;object-position:center;
  background-color:var(--surface-2);
}
@media(max-width:560px){.card-hero{height:210px}}

/* ---------- मंडळ क्रमांक — कार्डाच्या डाव्या वरच्या कोपऱ्यात ---------- */
.mandal-no{
  position:absolute;top:12px;left:12px;z-index:3;
  display:inline-flex;align-items:baseline;gap:5px;
  padding:6px 11px;border-radius:999px;
  background:rgba(255,255,255,.94);border:1px solid var(--line);
  box-shadow:0 2px 10px rgba(21,16,14,.16);
  font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--faint);
  max-width:calc(100% - 68px);                /* बंद करण्याच्या × ला जागा */
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.mandal-no b{font-size:12.5px;font-weight:800;color:var(--cream);letter-spacing:.06em}
.mandal-no[hidden]{display:none}

/* ---------- QR तपासणी होईपर्यंतची ओळ ---------- */
.qr-pending{
  margin:14px 0 0;padding:11px 13px;border-radius:11px;
  background:var(--surface-2);border:1px dashed var(--line);
  font-size:12.5px;color:var(--faint);line-height:1.5;
}

/* ---------- OTP पडताळणीची पायरी ---------- */
.otp-alt{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px}
.otp-sep{color:var(--faint)}
.btn-link{
  background:none;border:0;padding:4px 2px;cursor:pointer;
  font-family:inherit;font-size:13.5px;font-weight:700;
  color:var(--zendu);text-decoration:underline;text-underline-offset:3px;
}
.btn-link:hover{color:var(--green)}

.verified-strip{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:wrap;margin-bottom:16px;padding:12px 15px;border-radius:13px;
  background:rgba(27,94,58,.07);border:1px solid rgba(27,94,58,.22);
}
.verified-strip b{display:block;font-size:14.5px;color:var(--cream)}
.verified-strip span{font-size:12.5px;color:var(--faint)}
.verified-tick{
  display:inline-block;margin-bottom:3px;
  font-size:11px;font-weight:800;letter-spacing:.07em;
  text-transform:uppercase;color:var(--green);
}
.card-close{position:absolute;top:12px;right:12px;z-index:2;width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.92);color:var(--cream);font-size:19px;display:grid;place-items:center;
  border:1px solid var(--line);box-shadow:0 2px 10px rgba(21,16,14,.18);backdrop-filter:blur(6px)}
/* gradient काढल्यामुळे मजकूर फोटोवर चढवायचा नाही — म्हणून वरची
   उणी (negative) जागा काढून फोटोच्या खालून सुरुवात केली आहे. */
.card-main{padding:16px 20px 20px;margin-top:0;position:relative;z-index:1}
.card-main h3{font-size:25px;font-weight:800;margin:0 0 3px;line-height:1.2}
.card-area{color:var(--muted);font-size:13.5px;font-weight:500;margin:0 0 6px}
.card-aarti{color:var(--zendu);font-size:13px;font-weight:700;margin:0 0 14px}
.card-foundation{color:var(--muted);font-size:13px;font-weight:600;margin:0 0 10px}
.aarti-vel{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;
  padding:12px 14px;margin:0 0 18px}
.aarti-vel-head{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin:0 0 8px}
.aarti-vel-list{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;list-style:none}
.aarti-vel-list li{font-size:14px;color:var(--body)}
.aarti-vel-list b{color:var(--zendu);font-weight:800}
/* आरतीची वेळ भरलेली नसेल तर रिकामी चौकट दाखवायची नाही */
.aarti-vel:has(.aarti-vel-list:empty){display:none}
.card-desc{font-size:15px;line-height:1.62;color:var(--body);margin:0 0 20px;white-space:pre-line}
.strip-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:9px}
.strip-head h4{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin:0}
.strip-head em{font-style:normal;font-size:11px;color:var(--faint)}
.strip{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;
  margin:0 -20px 22px;padding-left:20px;padding-right:20px}
.strip::-webkit-scrollbar{height:0}
/* सजावटीचे फोटो पूर्ण दिसावेत — पूर्वी object-fit:cover मुळे कडा
   कापल्या जात होत्या. आता contain, म्हणजे उभा असो की आडवा, संपूर्ण
   फोटो चौकटीत बसतो. */
.strip img{width:150px;height:112px;object-fit:contain;border-radius:11px;flex:none;
  background:var(--surface-2);
  scroll-snap-align:start;border:1px solid var(--line);cursor:zoom-in;transition:transform .18s}
.strip img:active{transform:scale(.97)}
/* कार्डाच्या तळाशी चिकटलेली कृतीची पट्टी — कितीही scroll केले तरी
   "दिशा मिळवा" चे बटण नेहमी दिसते. */
.card-actions{display:flex;gap:10px;position:sticky;bottom:0;z-index:6;
  margin:8px -20px -20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));
  background:var(--surface);border-top:1px solid var(--line)}
.card-actions .btn{flex:1}
/* एकच बटण असेल तर ते मधोमध, फार रुंद नको */
.card-actions.single{justify-content:center}
.card-actions.single .btn{flex:0 1 320px;max-width:100%}


/* ---------- lightbox ---------- */
#lightbox{position:fixed;inset:0;z-index:950;background:rgba(255,255,255,.96);
  display:none;align-items:center;justify-content:center;padding:20px}
#lightbox.show{display:flex}
#lightbox img{max-width:100%;max-height:86%;border-radius:12px}
#lightbox .card-close{top:18px;right:18px;position:fixed}

/* ---------- location picker (registration) ---------- */
#pickmap{height:280px;border-radius:var(--r);border:1px solid var(--line);margin-bottom:10px}
.geo-search{display:flex;gap:8px;margin-bottom:10px}
.geo-search input{flex:1}
.latlng{font-size:12.5px;color:var(--muted);font-family:ui-monospace,monospace}

/* ---------- gallery manager ---------- */
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.gal figure{margin:0;position:relative;border-radius:11px;overflow:hidden;border:1px solid var(--line)}
.gal img{width:100%;height:88px;object-fit:cover;display:block}
.gal .del{position:absolute;top:5px;right:5px;width:26px;height:26px;border-radius:50%;
  background:rgba(255,255,255,.92);color:var(--kumkum);border:1px solid var(--line);font-size:14px;display:grid;place-items:center}

/* ---------- step indicator ---------- */
.steps{display:flex;gap:8px;margin-bottom:22px}
.steps i{flex:1;height:3px;border-radius:3px;background:var(--surface-2);font-style:normal}
.steps i.on{background:var(--zendu)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
/* ============================================================
   REGISTRATION — two column layout with the live card preview
   Form on the left, "kaardacha namuna" on the right.
   ============================================================ */
.reg-shell{
  width:100%;max-width:1060px;margin:0 auto;
  display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start;
}
.reg-form-col{min-width:0}
.reg-preview-col{min-width:0}
.preview-sticky{position:sticky;top:86px}
.preview-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.preview-head h2{font-size:16px;font-weight:800;margin:2px 0 0}
.preview-toggle{
  background:transparent;color:var(--muted);border:1px solid var(--line);
  border-radius:8px;padding:5px 11px;font-size:12.5px;font-weight:700;
}
.preview-body.collapsed{display:none}

/* the round map marker, exactly as it appears on the map */
.pv-marker-row{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.pv-medallion{
  width:52px;height:52px;border-radius:50%;flex:none;
  background-size:cover;background-position:center;background-color:var(--surface-2);
  border:2.5px solid var(--zendu);box-shadow:0 0 0 4px rgba(194,121,10,.16);
}
.pv-marker-tag{
  font-size:11.5px;font-weight:700;color:#fff;background:rgba(21,16,14,.86);
  padding:3px 10px;border-radius:20px;border:1px solid var(--line);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* the card itself — same shapes as #card on the map, scaled down */
.pv-card{
  background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
}
.pv-hero{
  height:150px;background-size:cover;background-position:center;background-color:var(--surface-2);
  position:relative;display:grid;place-items:center;
}
.pv-hero::after{content:"";position:absolute;inset:0;
  background:linear-gradient(to top,var(--surface) 4%,transparent 60%)}
.pv-hero-empty{position:relative;z-index:1;font-size:12.5px;color:var(--faint)}
.pv-main{padding:0 16px 16px;margin-top:-28px;position:relative;z-index:1}
.pv-main h3{font-size:19px;font-weight:800;margin:0 0 3px;line-height:1.25;word-break:break-word}
.pv-area{color:var(--muted);font-size:12.5px;font-weight:500;margin:0 0 5px}
.pv-aarti{color:var(--zendu);font-size:12px;font-weight:700;margin:0 0 10px}
.pv-desc{font-size:13.5px;line-height:1.6;color:var(--body);margin:0 0 16px;white-space:pre-line;
  max-height:132px;overflow:hidden}
.pv-sec-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.pv-sec-head h4{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin:0}
.pv-sec-head em{font-style:normal;font-size:10.5px;color:var(--faint)}
.pv-strip{display:flex;gap:7px;overflow-x:auto;padding-bottom:6px;margin:0 -16px 16px;
  padding-left:16px;padding-right:16px}
.pv-strip::-webkit-scrollbar{height:0}
.pv-strip img{width:96px;height:70px;object-fit:cover;border-radius:9px;flex:none;
  border:1px solid var(--line)}
.pv-actions{display:flex;gap:8px;margin-top:4px}
.pv-btn{flex:1;text-align:center;padding:9px 10px;border-radius:9px;font-size:13px;font-weight:700;
  background:var(--zendu);color:#1A1207}
.pv-btn.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}

/* padadhikari inside the preview */
.pv-team{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}
.pv-person{text-align:center;min-width:0}
.pv-person .pv-face{
  display:block;width:52px;height:52px;margin:0 auto 6px;border-radius:50%;
  background-size:cover;background-position:center;background-color:var(--surface-2);
  border:2px solid var(--zendu);
}
.pv-person .pv-face.empty{border-style:dashed;border-color:var(--faint)}
.pv-person b{display:block;font-size:11.5px;font-weight:700;line-height:1.25;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-person small{display:block;font-size:10.5px;color:var(--zendu);font-weight:700;line-height:1.3;
  word-break:break-word}

/* QR inside the preview */
.pv-qr{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px;
  display:grid;place-items:center;margin-bottom:16px}
.pv-qr img{width:130px;height:130px;object-fit:contain;border-radius:8px;background:#fff;padding:6px}

@media(max-width:900px){
  .reg-shell{grid-template-columns:1fr;gap:20px}
  .preview-sticky{position:static}
  .reg-preview-col{order:2}
  .pv-card{max-width:420px}
}

/* ---------- "already registered" quick sign in ---------- */
.quick-panel{border-color:rgba(194,121,10,.3);background:linear-gradient(180deg,rgba(194,121,10,.06),transparent 60%),var(--surface)}
.or-line{display:flex;align-items:center;gap:12px;margin:22px 0 18px;color:var(--faint);font-size:12.5px}
.or-line::before,.or-line::after{content:"";flex:1;height:1px;background:var(--line)}

/* ---------- padadhikari inputs on the form ---------- */
.team-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(max-width:480px){.team-grid{grid-template-columns:1fr}}
.team-slot{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:14px;text-align:center}
.team-slot-head{font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:#000000;margin-bottom:10px}
.team-photo-pick{display:block;cursor:pointer}
.team-photo-ring{
  display:grid;place-items:center;width:66px;height:66px;margin:0 auto 6px;border-radius:50%;
  background-size:cover;background-position:center;background-color:var(--surface);
  border:2px dashed var(--faint);color:var(--faint);transition:border-color .15s;
}
.team-photo-ring.filled{border-style:solid;border-color:var(--zendu)}
.team-photo-ring.filled .team-photo-plus{display:none}
.team-photo-plus{font-size:22px;line-height:1}
.team-photo-text{font-size:12.5px;color:#000000}
.team-photo-input{display:none}
.team-slot input[type=text],.team-slot select{
  width:100%;margin-top:8px;padding:9px 11px;background:var(--surface);color:var(--cream);
  border:1px solid var(--line);border-radius:9px;font-size:14px;font-family:inherit;text-align:center;
}
.team-slot select{text-align:left;text-align-last:center;cursor:pointer}
.team-slot input[type=text]:focus,.team-slot select:focus{outline:0;border-color:var(--zendu)}

/* ============================================================
   MANDAL CARD — padadhikari row and donation QR
   ============================================================ */
.team-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}
@media(max-width:420px){.team-row{grid-template-columns:repeat(2,1fr);gap:14px}}
.team-row .person{text-align:center;min-width:0}
.team-row .face{
  display:block;width:62px;height:62px;margin:0 auto 7px;border-radius:50%;
  background-size:cover;background-position:center;background-color:var(--surface-2);
  border:2.5px solid var(--zendu);box-shadow:0 0 0 3px rgba(194,121,10,.16);
  cursor:zoom-in;transition:transform .18s;
}
.team-row .face:active{transform:scale(.96)}
.team-row .face.empty{border-style:dashed;border-color:var(--faint);box-shadow:none;cursor:default}
.team-row .person b{display:block;font-size:13px;font-weight:700;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-row .person small{display:block;font-size:11.5px;color:var(--zendu);font-weight:700;line-height:1.35}

.qr-box{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:16px;
  display:grid;place-items:center;gap:10px;margin-bottom:22px;text-align:center}
.qr-box img{width:180px;height:180px;object-fit:contain;background:#fff;border-radius:10px;padding:8px;
  cursor:zoom-in}
.qr-box span{font-size:12.5px;color:var(--muted);line-height:1.5}

#c-team-block,#c-qr-block{display:none}

/* registration closed — no preview to show, so drop back to one column */
.reg-shell.one-col{grid-template-columns:minmax(0,1fr);max-width:460px}

/* ============================================================
   लॉगिन / नोंदणी पानावरची वरची मराठी ओळ
   ============================================================ */
.mandal-banner-text{
  font-family:"Yatra One",cursive;font-weight:400;
  font-size:clamp(19px,4.4vw,30px);line-height:1.35;
  color:var(--zendu);text-align:center;
  margin:0 auto 26px;max-width:820px;padding:0 6px;
}
@media(max-width:720px){.mandal-banner-text{margin-bottom:20px}}

/* ============================================================
   enter.php — फोटो जसा आहे तसा, एक ओळ, दोन हिरवी बटणे. बस्स.
   Image file: assets/img/enter.png  (transparent PNG चालतो)
   चौकट, सावली किंवा कापाकापी नाही — फोटोचा मूळ आकार तसाच राहतो.
   ============================================================ */
.enter-wrap{
  min-height:100dvh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:24px;padding:32px 20px;text-align:center;
}
.enter-img{
  display:block;
  width:auto;height:auto;
  max-width:min(400px,82vw);
  max-height:46vh;
  object-fit:contain;
}
.enter-img-empty{
  display:grid;place-items:center;width:min(320px,74vw);aspect-ratio:1/1;padding:18px;
  border-radius:18px;color:var(--faint);font-size:13px;line-height:1.6;
  background:repeating-linear-gradient(45deg,var(--surface),var(--surface) 12px,var(--surface-2) 12px,var(--surface-2) 24px);
}
.enter-img-empty b{color:var(--muted);font-weight:700}
.enter-line{
  font-family:"Yatra One",cursive;font-weight:400;
  font-size:clamp(21px,5.4vw,32px);line-height:1.4;
  color:var(--zendu);margin:0;max-width:560px;
}
.enter-actions{display:flex;gap:14px;width:min(420px,100%)}
.enter-actions .btn{flex:1;justify-content:center;padding:15px 18px;font-size:16px}
@media(max-width:420px){.enter-actions{flex-direction:column;gap:12px}}

/* ---------- बटणाखालची छोटी ओळ — दुसऱ्या पानावर जा ---------- */
.switch-line{
  text-align:center;font-size:13.5px;color:var(--muted);
  margin:14px 0 0;line-height:1.5;
}
.switch-line a{color:var(--zendu);font-weight:700;text-decoration:none;border-bottom:1px solid rgba(194,121,10,.4)}
.switch-line a:hover{border-bottom-color:var(--zendu)}

/* ---------- नोंदणी पान — एकाच स्तंभात (कार्डाचा नमुना काढला) ---------- */
.reg-single{width:100%;max-width:620px;margin:0 auto}

/* ---------- निवडलेल्या फोटोची छोटी झलक ---------- */
.pick-thumb{display:none;margin:12px auto 0;max-width:220px}
.pick-thumb img{
  display:block;width:100%;height:auto;max-height:170px;object-fit:contain;
  border-radius:10px;border:1px solid var(--line);background:var(--night);
}

/* ============================================================
   Aartichi Vel — Morning / Afternoon / Evening, hour only (1-12)
   ============================================================ */
.aarti-vel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.aarti-vel-col{background:#FBFAF7;border:1px solid var(--line);border-radius:10px;
  padding:10px 12px;text-align:center}
.aarti-vel-col label{display:block;font-size:12px;font-weight:800;letter-spacing:.07em;
  text-transform:uppercase;color:#000000;margin-bottom:6px}
.aarti-vel-col input{width:100%;text-align:center;padding:9px 6px;border:1px solid var(--line);
  border-radius:8px;font-size:17px;font-weight:700;font-family:inherit;background:#fff;
  color:var(--cream)}
.aarti-vel-col input:focus{outline:0;border-color:var(--zendu);background:#fff;
  box-shadow:0 0 0 3px rgba(194,121,10,.12)}
/* चुकीच्या आकड्यासाठी 'err' हा वर्ग वापरता येत नाही — वरती
   .err{display:none} असल्यामुळे खानेच नाहीसे होत होते. म्हणून
   .vel-bad. display:block ही ठेवले आहे, जुनी 'err' वर्गाची
   पाने cache मधून आली तरी खाने दिसत राहावीत. */
.aarti-vel-col input.err,
.aarti-vel-col input.vel-bad{display:block;
  border-color:#C0392B;box-shadow:0 0 0 3px rgba(192,57,43,.12)}
/* ---- मोबाइलवर तिन्ही कप्पे बारीक — नाव डावीकडे, आकडा उजवीकडे ----
   पूर्वी .field input[type=text] चा width:100% वरचढ ठरत होता, म्हणून
   खालचे नियम अधिक ठाम (specific) लिहिले आहेत. */
@media(max-width:560px){
  .aarti-vel-grid{grid-template-columns:1fr;gap:7px}
  .field .aarti-vel-col{display:flex;align-items:center;justify-content:space-between;
    gap:10px;text-align:left;padding:6px 10px}
  .field .aarti-vel-col label{margin-bottom:0;font-size:12.5px;letter-spacing:.05em;flex:1 1 auto;color:#000000}
  .field .aarti-vel-col input[type=text]{
    width:66px;max-width:66px;flex:0 0 66px;padding:7px 4px;font-size:16px}
}

/* ============================================================
   नोंदणी — खालची दोन बटणे (डावीकडे झलक, उजवीकडे मंजुरी)
   ============================================================ */
.submit-row{display:flex;gap:10px;margin-top:4px}
.submit-row .btn{flex:1}
@media(max-width:480px){.submit-row{flex-direction:column}}

/* ---------- बटणांचे रंग — पांढऱ्या पार्श्वभूमीवर ---------- */
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:#186036}
.btn-saffron{background:var(--saffron);color:#fff}
.btn-saffron:hover{background:#8F4207}
.btn-red{background:var(--kumkum);color:#fff}
.btn-red:hover{background:#8E2114}

/* ============================================================
   कार्डाची झलक (preview) — नोंदणी पानावर आणि स्थिती पानावर
   ============================================================ */
.pv-wrap{position:fixed;inset:0;z-index:900;display:none}
.pv-wrap.show{display:block}
.pv-scrim{position:absolute;inset:0;background:rgba(21,16,14,.48);backdrop-filter:blur(3px)}
.pv-sheet{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:560px;max-width:calc(100vw - 28px);max-height:88dvh;overflow-y:auto;
  overscroll-behavior:contain;background:var(--surface);border-radius:20px;
  box-shadow:0 20px 60px rgba(21,16,14,.24);
}
.pv-sheet::-webkit-scrollbar{width:9px}
.pv-sheet::-webkit-scrollbar-thumb{background:#D6CFC5;border-radius:9px;border:2px solid var(--surface)}
.pv-note{
  background:rgba(194,121,10,.10);border-bottom:1px solid var(--line);
  padding:10px 16px;font-size:12.5px;color:var(--zendu-dim);text-align:center;font-weight:700;
}

/* ============================================================
   status.php — मंजुरीची स्थिती + पूर्ण कार्ड
   ============================================================ */
.status-shell{width:100%;max-width:620px;margin:0 auto}
.status-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:18px 20px;box-shadow:var(--shadow);margin-bottom:18px;
}
.status-head h2{font-size:17px;font-weight:800;margin:0 0 4px}
.status-head p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5;max-width:42ch}
.status-head .btn{flex:none}
.status-card{
  background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;
  box-shadow:var(--shadow);
}
.status-card .card-hero{border-radius:0}
.status-steps{display:flex;gap:0;margin:0 0 18px;padding:0;list-style:none}
.status-steps li{
  flex:1;text-align:center;font-size:11.5px;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;color:var(--faint);padding:9px 4px;border-bottom:3px solid var(--surface-2);
}

/* ============================================================
   Admin — credentials reveal box after Approve, and the
   view/edit + preview pages
   ============================================================ */
.cred-box{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;
  padding:18px 20px;margin:12px 0 18px}
.cred-box h3{margin:0 0 12px;font-size:15px;font-weight:800}
.cred-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin-bottom:8px}
.cred-row .cred-label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:#000000;flex:none;width:80px}
.cred-row .cred-value{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px;
  font-weight:700;color:var(--cream);flex:1;word-break:break-all}
.cred-copy-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.cred-copy-row .btn{flex:1;min-width:120px}
.cred-copy-row .btn.copied{background:var(--green);color:#fff}

.admin-preview-wrap{max-width:420px;margin:0 auto}
.admin-preview-wrap .card-hero{border-radius:14px 14px 0 0}
.admin-preview-wrap .card-body-static{background:var(--surface);border:1px solid var(--line);
  border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.status-steps li.done{color:var(--green);border-bottom-color:var(--green)}
.status-steps li.now{color:var(--zendu);border-bottom-color:var(--zendu)}