/* GhodaGaadi — site styles. Mobile first. */
:root {
  --yellow: #F5B400;
  --yellow-soft: #FFF1C2;
  --ink: #1C1C1C;
  --ink-2: #3A3A3A;
  --muted: #5F5A4E;
  --line: #E6DFCC;
  --bg: #FFFBF0;
  --card: #FFFFFF;
  --green: #1F7A3E;
  --green-bg: #E5F4EA;
  --red: #B42318;
  --red-bg: #FDECEA;
  --blue: #1D4E89;
  --blue-bg: #E7EFFA;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 28, 28, .06), 0 4px 16px rgba(28, 28, 28, .06);
  --head: 'Baloo 2', 'Noto Sans Devanagari', system-ui, sans-serif;
  --body: 'Noto Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
body.lang-hi { font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #000; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 10px; }
.brand-name { font-family: var(--head); font-size: 26px; font-weight: 600; letter-spacing: -.3px; line-height: 1; }
.brand-name b { font-weight: 800; color: #B07F00; }
.main-nav { display: none; gap: 4px; margin-left: 12px; }
.main-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--ink-2); }
.main-nav a:hover { background: var(--yellow-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle { font-weight: 600; text-decoration: none; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.menu-mobile { position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--yellow-soft); }
.menu-panel { position: absolute; right: 0; top: 50px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 240px; display: flex; flex-direction: column; }
.menu-panel a { padding: 12px; text-decoration: none; border-radius: 8px; font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--yellow-soft); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 22px; }
  .header-row { gap: 8px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent; font: 700 17px/1 var(--head); text-decoration: none; cursor: pointer; transition: transform .05s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-primary:hover { background: #FFC21F; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--yellow-soft); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- alerts & badges ---------- */
.alert { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; border: 1px solid; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #B7DFC4; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #F5C2BD; }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: #C3D4EE; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #EEE9DB; color: var(--ink-2); }
.badge-approved, .badge-yes { background: var(--green-bg); color: var(--green); }
.badge-pending { background: #FFF4D1; color: #7A5A00; }
.badge-rejected, .badge-closed { background: var(--red-bg); color: var(--red); }
.chip { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--yellow-soft); font-size: 13px; font-weight: 600; margin: 0 4px 4px 0; }

/* ---------- hero ---------- */
.hero { background: var(--yellow); border-bottom: 3px solid var(--ink); padding: 40px 0 48px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { margin-bottom: 12px; }
.hero .lead { font-size: 19px; max-width: 34em; color: var(--ink-2); }
.hero-tag { display: inline-block; background: var(--ink); color: var(--yellow); font: 700 15px/1 var(--head); padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; }
.search-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 0 var(--ink); }
.search-card h2 { font-size: 22px; }
.search-card .grid-form { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; }
}

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .type-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.type-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; min-height: 112px; transition: border-color .15s, transform .15s; }
.type-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.type-tile .micon { color: var(--ink); }
.type-tile .count { font-size: 13px; color: var(--muted); font-weight: 500; }

.role-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.role-card .role-num { font: 800 15px/1 var(--head); color: #8A6400; text-transform: uppercase; letter-spacing: .5px; }
.role-card p { color: var(--muted); flex: 1; }
.role-card.dark { background: var(--ink); color: #fff; }
.role-card.dark p { color: #D8D3C4; }
.role-card.dark .role-num { color: var(--yellow); }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font: 800 20px/1 var(--head); margin-bottom: 12px; }

.trust { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 800px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust div { display: flex; gap: 10px; align-items: flex-start; }
.trust .ico { flex: none; color: var(--green); margin-top: 2px; }

/* ---------- listing ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 6px; }
.filters { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0 20px; }
@media (min-width: 760px) { .filters { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: end; } }
.result-count { margin: 0 0 14px; color: var(--muted); font-weight: 500; }

.card-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; background: var(--yellow-soft); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .micon { color: #8A6400; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 21px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-foot { padding: 0 16px 16px; }
.card-type { font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .5px; color: #8A6400; }

.op-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 800 24px/1 var(--head); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; font-size: 36px; }

.empty { text-align: center; padding: 40px 16px; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty .micon { margin: 0 auto 12px; color: #B8AD8E; }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 28px 0 8px; }
.pager a { font-weight: 600; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 8px; text-decoration: none; }

/* ---------- detail ---------- */
.detail-grid { display: grid; gap: 24px; padding: 8px 0 48px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--yellow-soft); display: grid; place-items: center; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 76px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; color: var(--muted); font-weight: 500; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.panel { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 5px 0 var(--ink); }
@media (min-width: 960px) { .panel-sticky { position: sticky; top: 84px; } }
.panel h2 { font-size: 24px; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.privacy-note .ico { flex: none; color: var(--green); }
.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 20px; }
.breadcrumb a { color: var(--muted); }

/* ---------- forms ---------- */
.form-page { padding: 28px 0 56px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 760px; }
.form-card.narrow { max-width: 460px; margin: 0 auto; }
@media (min-width: 640px) { .form-card { padding: 28px; } }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font: 800 20px/1.2 var(--head); padding: 0; margin-bottom: 12px; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--red); margin-left: 2px; }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #CFC6AE; border-radius: 10px; background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 0; }
.has-err input, .has-err select, .has-err textarea, .has-err .type-picker { border-color: var(--red); }
.field-err { color: var(--red); font-size: 14px; font-weight: 500; margin: 4px 0 0; }
.row-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.type-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-radius: 12px; }
@media (min-width: 560px) { .type-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .type-picker.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.type-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 104px; padding: 10px 8px; border: 1.5px solid #CFC6AE; border-radius: 12px; background: #fff; font-weight: 600; font-size: 14px; line-height: 1.25; }
.type-opt span .micon { color: var(--muted); }
.type-opt input:checked + span { border: 2.5px solid var(--ink); background: var(--yellow-soft); box-shadow: 0 3px 0 var(--ink); }
.type-opt input:checked + span .micon { color: var(--ink); }
.type-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.type-opt .tick { position: absolute; top: 6px; right: 8px; display: none; color: var(--ink); }
.type-opt input:checked ~ .tick { display: block; }

.toggle-row { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle-row label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid #CFC6AE; border-radius: 10px; font-weight: 500; min-height: 48px; cursor: pointer; }
.toggle-row input { width: 20px; height: 20px; accent-color: var(--ink); }

.dropzone { position: relative; border: 2px dashed #B8AD8E; border-radius: 12px; padding: 22px 16px; text-align: center; background: var(--bg); transition: background .15s, border-color .15s; }
.dropzone.drag { background: var(--yellow-soft); border-color: var(--ink); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .ico { margin: 0 auto 6px; }
.dropzone strong { display: block; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.previews figure { margin: 0; width: 84px; }
.previews img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.previews figcaption { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.existing-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.existing-photos label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; width: 100px; }
.existing-photos img { width: 100px; height: 76px; object-fit: cover; border-radius: 8px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.form-foot { margin-top: 16px; text-align: center; }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; gap: 20px; padding-bottom: 56px; }
.dash-actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0 28px; }
.dash-actions a { display: flex; align-items: center; gap: 10px; padding: 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; text-decoration: none; font-weight: 600; min-height: 64px; }
.dash-actions a:hover { background: var(--yellow-soft); }
.list-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.list-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.list-table th, .list-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: middle; }
.list-table th { background: var(--bg); font-weight: 600; font-size: 14px; color: var(--muted); }
.list-table tr:last-child td { border-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #E9E4D6; padding: 40px 0 90px; margin-top: 24px; }
.site-footer a { color: #E9E4D6; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.site-footer .muted { color: #B8B2A2; margin-top: 10px; }
.brand-footer { display: inline-flex !important; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-name b { color: var(--yellow); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #3A3A3A; margin-top: 28px; padding-top: 16px; font-size: 14px; color: #B8B2A2; }
.footer-bottom a { display: inline; }

.fab-call { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; text-decoration: none; font: 700 16px/1 var(--head); padding: 0 18px; min-height: 52px; border-radius: 99px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.fab-call:hover { color: #fff; background: #17602F; }
@media (min-width: 900px) { .fab-call span { display: inline; } }
