*{ box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Devanagari", sans-serif;
    background: #fff8ee;
    color: #2d2a26;
    line-height: 1.5;
}

a { color: #e65100; }

.disclaimer {
    background: #fff3cd;
    border-bottom: 1px solid #f0d78c;
    color: #6b4f00;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.92rem;
}

.hero {
    background: linear-gradient(135deg, #f57c00, #e65100);
    color: #fff;
    text-align: center;
    padding: 32px 16px 28px;
    position: relative;
}
.btn-hero-add {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #fff;
    color: #e65100;
    font-size: 0.9rem;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-hero-notify {
    position: absolute;
    top: 14px;
    left: 16px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    padding: 8px 14px;
}
.btn-hero-add:hover { background: #fff8ee; }
.btn-hero-notify:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }
.hero .brand {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}
.hero .tagline { margin: 8px 0 4px; font-size: 1.15rem; }
.hero .purpose { margin: 0; opacity: 0.9; font-size: 0.9rem; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* Search + filters */
.search-box {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 12px;
    padding: 16px;
    margin-top: -40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }
.filters { display: flex; gap: 8px; margin-top: 12px; }
.filter-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #f57c00;
    border-radius: 999px;
    color: #e65100;
    text-decoration: none;
    font-weight: 600;
}
.filter-btn.active { background: #f57c00; color: #fff; }

.section-title { margin: 28px 0 12px; }
.section-title small { color: #6d6660; font-weight: 400; font-size: 0.9rem; }

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.card {
    background: #fff;
    border: 1px solid #eadfce;
    border-left: 5px solid #f57c00;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 4px 0; }
.card .desc { color: #6d6660; font-size: 0.92rem; margin-top: 8px; }
.badge-verified {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
    font-weight: 600;
}

.empty {
    background: #fff;
    border: 1px dashed #eadfce;
    border-radius: 12px;
    text-align: center;
    padding: 28px 16px;
    color: #6d6660;
}

.add-cta { text-align: center; margin-top: 36px; }
.add-cta .btn { margin: 6px; }
.btn-notify { background: #5d4037; color: #fff; font-size: 1.05rem; padding: 12px 22px; }
.btn-notify:hover { background: #3e2723; }

.notify-strip {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.notify-strip .btn.is-on { background: #2e7d32; color: #fff; border-color: #2e7d32; }

/* Buttons */
.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}
.btn-primary { background: #f57c00; color: #fff; }
.btn-primary:hover { background: #e65100; }
.btn-secondary { background: #fff; color: #e65100; border: 1px solid #f57c00; }
.btn-directions { background: #1a73e8; color: #fff; margin-top: auto; align-self: flex-start; }
.btn-directions:hover { background: #1557b0; }
.btn-add { background: #2e7d32; color: #fff; font-size: 1.15rem; padding: 14px 28px; }
.btn-danger { background: #c62828; color: #fff; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.card .btn-directions { margin-top: 12px; }

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6cbbb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
input:focus, textarea:focus { outline: 2px solid #f57c00; border-color: transparent; }

.form-card {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 12px;
    padding: 20px;
    max-width: 620px;
    margin: 0 auto;
}
.form-card h2 { margin-top: 0; }
fieldset {
    border: 1px solid #eadfce;
    border-radius: 10px;
    padding: 12px 16px 4px;
    margin: 0 0 16px;
}
legend { font-weight: 700; padding: 0 6px; }
label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 0.93rem; }
label input, label textarea { margin-top: 4px; font-weight: 400; }
.row { display: flex; gap: 12px; }
.row > label { flex: 1; }
.field-error { display: block; color: #c62828; font-weight: 400; font-size: 0.85rem; margin-top: 4px; }
#use-location { margin-bottom: 12px; }
.status-ok { color: #2e7d32; }
.status-error { color: #c62828; }

.back-link { display: inline-block; margin-bottom: 12px; text-decoration: none; }

.muted { color: #6d6660; }
.small { font-size: 0.87rem; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }

/* Popup */
.popup {
    border: none;
    border-radius: 12px;
    padding: 28px 24px 20px;
    max-width: 380px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-top: 6px solid #2e7d32;
}
.popup-error { border-top-color: #c62828; }
.popup::backdrop { background: rgba(0, 0, 0, 0.5); }
.popup[open] { animation: popup-in 0.2s ease-out; }
.popup-icon { font-size: 3rem; line-height: 1; }
.popup-message { font-size: 1.05rem; margin: 14px 0 20px; }
.popup form { margin: 0; }
@keyframes popup-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.footer { text-align: center; color: #6d6660; font-size: 0.85rem; padding: 20px; }

/* Admin */
.admin-bar {
    background: #3e2723;
    color: #fff;
    padding: 12px 16px;
    margin: -20px -16px 20px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.admin-bar a, .admin-bar button { color: #ffcc80; text-decoration: none; margin-left: 14px; }
.admin-bar button { background: transparent; border: 1px solid #ffcc80; }
.admin-bar button.is-on { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.admin-bar .brand { color: #fff; margin-left: 0; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: #2d2a26;
}
.stat strong { display: block; font-size: 1.8rem; }
.stat.pending strong { color: #e65100; }
.stat.approved strong { color: #2e7d32; }
.stat.rejected strong { color: #c62828; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #eadfce; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eadfce; vertical-align: top; font-size: 0.93rem; }
th { background: #fbf3e6; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.status-badge { padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-approved { background: #e8f5e9; color: #2e7d32; }
.status-rejected { background: #ffebee; color: #c62828; }
.detail-list { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.login-box { max-width: 380px; margin: 60px auto; }

@media (max-width: 560px) {
    .hero .brand { font-size: 1.55rem; }
    .hero { padding-top: 60px; }
    .btn-hero-add, .btn-hero-notify { top: 12px; font-size: 0.78rem; padding: 6px 10px; }
    .btn-hero-notify { left: 12px; }
    .btn-hero-add { right: 12px; }
    .search-form { flex-direction: column; }
    .row { flex-direction: column; gap: 0; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-list dt { margin-top: 8px; }
}
