:root {
    --brand-navy: #0f2847;
    --brand-yellow: #fddb00;
    --brand-yellow-dark: #e6c600;
    --text-muted: #5c6670;
    --card-border: #e4e8ec;
    --surface: #f5f7fa;
}

.public-site {
    background: var(--surface);
    margin-bottom: 0;
}

.public-header {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1a3d6b 100%);
    box-shadow: 0 2px 12px rgba(15, 40, 71, 0.18);
}

.public-navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.public-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-mark {
    font-family: 'MaterialIcons', sans-serif;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    border-radius: 10px;
    font-size: 22px;
}

.public-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding-inline: 0.85rem !important;
}

.public-navbar .nav-link:hover {
    color: var(--brand-yellow) !important;
}

.public-nav-btn {
    font-weight: 600;
    border-radius: 8px;
}

.admin-link {
    color: var(--brand-navy) !important;
}

.hero-band {
    background: linear-gradient(180deg, var(--brand-yellow) 0%, #ffe566 100%);
    padding: 28px 0 36px;
    border-radius: 0 0 28px 28px;
    margin-bottom: 28px;
}

.hero-title {
    color: var(--brand-navy);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 8px;
}

.hero-subtitle {
    color: #333;
    font-size: 1.05rem;
    max-width: 640px;
}

.carousel-slide-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 40, 71, 0.15);
    background: #fff;
}

.carousel-slide-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.carousel-caption-custom {
    padding: 14px 16px;
    background: #fff;
}

.carousel-caption-custom h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 4px;
}

.carousel-caption-custom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.section-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px 16px;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 40, 71, 0.1);
    color: inherit;
}

.section-icon {
    font-family: 'MaterialIcons', sans-serif;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef3f8;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 10px;
}

.section-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.section-card .meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.content-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(15, 40, 71, 0.06);
}

.content-card h1 {
    color: var(--brand-navy);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-band {
    background: var(--brand-navy);
    color: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 32px 0;
}

.cta-band h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-band p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.btn-brand {
    background: var(--brand-yellow);
    color: var(--brand-navy);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
}

.btn-brand:hover {
    background: var(--brand-yellow-dark);
    color: var(--brand-navy);
}

.btn-outline-brand {
    border: 2px solid var(--brand-yellow);
    color: var(--brand-yellow);
    font-weight: 600;
    border-radius: 10px;
}

.btn-outline-brand:hover {
    background: var(--brand-yellow);
    color: var(--brand-navy);
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(253, 219, 0, 0.2);
    color: var(--brand-yellow);
    border: 1px solid rgba(253, 219, 0, 0.5);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.public-footer {
    background: var(--brand-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 32px;
    margin-top: 48px;
}

.public-footer h5 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brand-yellow);
}

.footer-text {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
}

.footer-links a:hover {
    color: var(--brand-yellow);
}

.contact-email {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-decoration: none;
}

.contact-email:hover {
    color: #1565c0;
}

.page-heading {
    color: var(--brand-navy);
    font-weight: 800;
    margin-bottom: 20px;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rich-content a {
    color: #1565c0;
}

@media (min-width: 768px) {
    .carousel-slide-card img {
        height: 280px;
    }
}

/* ===== Mobile-first public site ===== */

.public-main {
    min-height: calc(100vh - 56px);
}

.pb-tabbar {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.mobile-topbar {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1a3d6b 100%);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.mobile-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-topbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mobile-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.mobile-topbar-btn--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.mobile-topbar-btn--admin {
    color: var(--brand-navy);
    background: #fff;
    border-color: #fff;
}

.mobile-page-header {
    background: var(--brand-yellow);
    padding: 14px 16px 16px;
    margin-bottom: 12px;
}

.mobile-page-header h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin: 8px 0 0;
    text-align: center;
}

.mobile-back-link {
    font-family: 'MaterialIcons', sans-serif;
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-page-body {
    padding-left: 14px;
    padding-right: 14px;
}

.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    box-shadow: 0 -4px 16px rgba(15, 40, 71, 0.08);
}

.mobile-tab {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-tab.active {
    color: var(--brand-navy);
}

.mobile-tab-icon {
    font-family: 'MaterialIcons', sans-serif;
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.mobile-tab-label {
    display: block;
}

.more-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.more-menu-form {
    margin: 0;
}

button.more-menu-card {
    appearance: none;
    -webkit-appearance: none;
}

.more-menu-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 40, 71, 0.06);
    cursor: pointer;
    text-align: right;
}

.more-menu-icon {
    font-family: 'MaterialIcons', sans-serif;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #f3f5f7;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.more-menu-title {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.more-menu-chevron {
    font-family: 'MaterialIcons', sans-serif;
    color: #999;
    font-size: 22px;
}

.mobile-form-card {
    max-width: 480px;
    margin: 0 auto;
}

.mobile-input {
    min-height: 48px;
    font-size: 16px;
    border-radius: 10px;
}

.mobile-btn {
    min-height: 48px;
    font-size: 1rem;
    border-radius: 10px;
}

.mobile-alert {
    border-radius: 10px;
    font-size: 0.95rem;
}

.geo-card {
    margin-top: 0;
}

.geo-hint {
    font-size: 0.92rem;
    line-height: 1.6;
}

.geo-box {
    background: #f8f9fb;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    user-select: none;
}

.geo-box:active {
    background: #eef3f8;
}

.geo-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.geo-label {
    color: #666;
}

.geo-value {
    font-weight: 600;
    color: #333;
    direction: ltr;
}

.geo-coords {
    font-weight: 800;
    color: var(--brand-navy);
    font-size: 1.05rem;
    margin-top: 8px;
    direction: ltr;
    text-align: center;
}

.geo-copy-hint {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 6px;
}

.geo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--brand-navy);
    font-size: 0.9rem;
}

.geo-toast {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    z-index: 1040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
    .public-main {
        min-height: auto;
    }

    .pb-tabbar {
        padding-bottom: 1rem;
    }
}

.form-section {
    margin-bottom: 14px;
}

.form-section-title {
    color: var(--brand-navy);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.hours-row {
    display: grid;
    grid-template-columns: 64px 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.hours-day {
    font-weight: 700;
    color: var(--brand-navy);
    font-size: 0.9rem;
}

.hours-sep {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}

.listing-form .note-editor {
    border-radius: 10px;
    overflow: hidden;
}

.listing-card {
    padding: 14px 16px;
}

.listing-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.listing-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin: 0;
    flex: 1;
}

.listing-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.listing-status.is-published {
    background: #d1e7dd;
    color: #0f5132;
}

.listing-status.is-pending {
    background: #fff3cd;
    color: #664d03;
}

.listing-card-date {
    font-size: 0.85rem;
    margin: 0;
}

.listing-card-actions .btn {
    min-width: 0;
}

.item-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 40, 71, 0.1);
    color: inherit;
}

.item-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #f3f5f7;
}

.item-thumb-sm {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    flex-shrink: 0;
}

.item-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MaterialIcons', sans-serif;
    font-size: 32px;
    color: #9aa3ad;
    background: #f3f5f7;
}

.item-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
    padding: 12px 14px 14px;
    line-height: 1.4;
}

.provider-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 40, 71, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.provider-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 40, 71, 0.1);
    color: inherit;
}

.provider-card-body {
    flex: 1;
    min-width: 0;
}

.provider-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.provider-card-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin: 0;
}

.provider-card-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.provider-detail-card {
    padding: 0;
    overflow: hidden;
}

.provider-detail-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    background: #f3f5f7;
}

.provider-detail-card .provider-detail-image.item-thumb-empty {
    height: 200px;
    font-size: 48px;
}

.hours-table {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.hours-table-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.92rem;
}

.hours-table-row:last-child {
    border-bottom: none;
}

.hours-table-row.is-today {
    background: #fff8e1;
    font-weight: 700;
}

.btn-outline-danger {
    color: #b42318;
    border: 1px solid #f1aeb5;
    background: #fff;
}

.btn-outline-danger:hover {
    background: #fef3f2;
    color: #912018;
    border-color: #f1aeb5;
}
