/* ================================
   SosTruck Global Layout
   Dark Green Theme
   ================================ */

html {
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #ecfdf5;
    color: #10231c;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.app-shell {
    flex: 1 0 auto;
}

main {
    flex: 1 0 auto;
}

/* ================================
   Navbar
   ================================ */

.navbar {
    min-height: 64px;
    border-bottom: 1px solid #a7f3d0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(2, 44, 34, 0.08);
}

    .navbar .container {
        max-width: 1180px;
    }

.navbar-brand,
.sos-navbar-brand {
    color: #065f46 !important;
    font-weight: 900;
    letter-spacing: -0.02em;
}

    .navbar-brand:hover,
    .sos-navbar-brand:hover {
        color: #047857 !important;
    }

.navbar .nav-link {
    color: #065f46 !important;
    font-weight: 700;
}

    .navbar .nav-link:hover {
        color: #047857 !important;
    }

.navbar-toggler {
    border-color: #a7f3d0;
}

.sos-navbar-link {
    padding: 8px 12px !important;
    border-radius: 12px;
    color: #065f46 !important;
    font-weight: 800 !important;
    transition: all 0.18s ease;
}

    .sos-navbar-link:hover {
        background: #ecfdf5;
        color: #047857 !important;
    }

.sos-navbar-logout {
    padding: 9px 16px;
    border: none;
    border-radius: 13px;
    background: #047857;
    color: #ffffff;
    font-weight: 800;
    transition: all 0.18s ease;
}

    .sos-navbar-logout:hover {
        transform: translateY(-1px);
        background: #065f46;
        color: #ffffff;
        box-shadow: 0 10px 24px rgba(2, 44, 34, 0.18);
    }

/* ================================
   Footer
   ================================ */

.footer {
    position: static !important;
    bottom: auto !important;
    width: 100%;
    margin-top: auto;
    padding: 16px 0;
    white-space: normal;
    line-height: normal;
    border-top: 1px solid #a7f3d0 !important;
    background: #ecfdf5;
    color: #065f46;
}

    .footer .container {
        max-width: 1180px;
    }

/* ================================
   Shared Buttons
   ================================ */

.sos-btn-main,
.sos-btn-light-custom {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 800;
    transition: all 0.18s ease;
}

.sos-btn-main {
    border: none;
    background: #ffffff;
    color: #065f46;
    box-shadow: 0 14px 34px rgba(2, 44, 34, 0.28);
}

    .sos-btn-main:hover {
        transform: translateY(-1px);
        background: #ecfdf5;
        color: #022c22;
        box-shadow: 0 18px 42px rgba(2, 44, 34, 0.32);
    }

.sos-btn-light-custom {
    border: 1px solid rgba(209, 250, 229, 0.42);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

    .sos-btn-light-custom:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
    }

.sos-small-action {
    padding: 10px 16px;
    border: none;
    border-radius: 13px;
    background: #047857;
    color: #ffffff;
    font-weight: 800;
    transition: all 0.18s ease;
}

    .sos-small-action:hover {
        transform: translateY(-1px);
        background: #065f46;
        color: #ffffff;
        box-shadow: 0 10px 24px rgba(2, 44, 34, 0.20);
    }

/* ================================
   Map Page
   ================================ */

.sos-map-page {
    min-height: calc(100vh - 120px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 38px 0 54px;
    background: radial-gradient(circle at top left, rgba(209, 250, 229, 0.28), transparent 32%), radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.22), transparent 34%), linear-gradient(135deg, #022c22 0%, #064e3b 35%, #065f46 68%, #047857 100%);
}

    .sos-map-page .container {
        max-width: 1180px;
    }

.sos-map-header {
    margin-bottom: 28px;
}

.sos-map-heading-box {
    color: #ffffff;
}

.sos-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    margin-bottom: 14px;
    border: 1px solid rgba(209, 250, 229, 0.30);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ecfdf5;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
}

.sos-map-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 24px rgba(2, 44, 34, 0.35);
}

.sos-map-subtitle {
    max-width: 650px;
    margin-top: 12px;
    margin-bottom: 0;
    color: #d1fae5;
    font-size: 17px;
    line-height: 1.65;
}

.sos-map-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sos-map-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(6, 95, 70, 0.12);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(2, 44, 34, 0.28);
}

.sos-map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border-bottom: 1px solid #a7f3d0;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

    .sos-map-card-header h2 {
        margin: 0;
        color: #064e3b;
        font-size: 24px;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .sos-map-card-header p {
        margin: 6px 0 0;
        color: #047857;
        font-size: 14px;
    }

.sos-map-card-body {
    padding: 16px;
    background: #ffffff;
}

.sos-map-mini-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

#map {
    width: 100%;
    height: 68vh;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
}

    #map .gm-err-container {
        border-radius: 20px;
    }

/* ================================
   Google Maps API Warning
   ================================ */

.sos-map-warning {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(167, 243, 208, 0.65), transparent 36%), #ecfdf5;
    color: #064e3b;
    text-align: center;
}

.sos-map-warning-icon {
    font-size: 44px;
}

.sos-map-warning h3 {
    margin: 0;
    color: #064e3b;
    font-size: 26px;
    font-weight: 900;
}

.sos-map-warning p {
    max-width: 520px;
    margin: 0;
    color: #047857;
    line-height: 1.6;
}

.sos-map-warning code {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
    color: #065f46;
    white-space: normal;
}

/* ================================
   Login Page
   ================================ */

.sos-login-page {
    min-height: calc(100vh - 120px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: radial-gradient(circle at top left, rgba(209, 250, 229, 0.28), transparent 34%), radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.22), transparent 34%), linear-gradient(135deg, #022c22 0%, #064e3b 36%, #065f46 70%, #047857 100%);
}

.min-vh-login {
    min-height: calc(100vh - 130px);
    padding: 44px 0;
}

.sos-login-card {
    padding: 34px;
    border: 1px solid rgba(6, 95, 70, 0.12);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(2, 44, 34, 0.28);
}

.sos-login-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 20px;
    background: #ecfdf5;
    color: #047857;
    font-size: 32px;
}

.sos-login-title {
    margin: 0;
    color: #064e3b;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sos-login-subtitle {
    margin-top: 10px;
    margin-bottom: 0;
    color: #047857;
    font-size: 15px;
    line-height: 1.6;
}

.sos-login-form {
    margin-top: 28px;
}

.sos-form-label {
    color: #047857;
    font-weight: 800;
}

.sos-form-control {
    min-height: 50px;
    border: 1px solid #a7f3d0;
    border-radius: 15px;
    color: #1f2937;
    font-weight: 600;
}

    .sos-form-control:focus {
        border-color: #047857;
        box-shadow: 0 0 0 0.22rem rgba(4, 120, 87, 0.16);
    }

.sos-login-button {
    min-height: 52px;
    border: none;
    border-radius: 16px;
    background: #047857;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(2, 44, 34, 0.22);
    transition: all 0.18s ease;
}

    .sos-login-button:hover {
        transform: translateY(-1px);
        background: #065f46;
        color: #ffffff;
    }

.sos-login-error {
    margin-bottom: 14px;
    color: #b91c1c;
    font-weight: 700;
}

.sos-login-footer-link {
    margin-top: 22px;
    text-align: center;
}

    .sos-login-footer-link a {
        color: #047857;
        font-weight: 800;
        text-decoration: none;
    }

        .sos-login-footer-link a:hover {
            color: #065f46;
        }

/* ================================
   Reusable Admin/Form Styles
   ================================ */

.sos-admin-page {
    min-height: calc(100vh - 120px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 38px 0 54px;
    background: radial-gradient(circle at top left, rgba(209, 250, 229, 0.28), transparent 32%), radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.22), transparent 34%), linear-gradient(135deg, #022c22 0%, #064e3b 35%, #065f46 68%, #047857 100%);
}

    .sos-admin-page .container {
        max-width: 1180px;
    }

.sos-admin-card {
    overflow: hidden;
    border: 1px solid rgba(6, 95, 70, 0.12);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(2, 44, 34, 0.26);
}

.sos-admin-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid #a7f3d0;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

    .sos-admin-card-header h1,
    .sos-admin-card-header h2 {
        margin: 0;
        color: #064e3b;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .sos-admin-card-header p {
        margin: 8px 0 0;
        color: #047857;
    }

.sos-admin-card-body {
    padding: 28px;
}

.sos-admin-label {
    color: #064e3b;
    font-weight: 800;
}

.sos-admin-input,
.sos-admin-select,
.sos-admin-textarea {
    min-height: 48px;
    border: 1px solid #a7f3d0;
    border-radius: 15px;
    color: #1f2937;
    font-weight: 600;
}

.sos-admin-textarea {
    min-height: 120px;
}

    .sos-admin-input:focus,
    .sos-admin-select:focus,
    .sos-admin-textarea:focus {
        border-color: #047857;
        box-shadow: 0 0 0 0.22rem rgba(4, 120, 87, 0.16);
    }

.sos-admin-primary-btn {
    min-height: 50px;
    padding: 12px 22px;
    border: none;
    border-radius: 15px;
    background: #047857;
    color: #ffffff;
    font-weight: 900;
    transition: all 0.18s ease;
}

    .sos-admin-primary-btn:hover {
        transform: translateY(-1px);
        background: #065f46;
        color: #ffffff;
        box-shadow: 0 14px 30px rgba(2, 44, 34, 0.20);
    }

.sos-admin-secondary-btn {
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid #a7f3d0;
    border-radius: 15px;
    background: #ffffff;
    color: #065f46;
    font-weight: 900;
    transition: all 0.18s ease;
}

    .sos-admin-secondary-btn:hover {
        background: #ecfdf5;
        color: #022c22;
    }

.sos-admin-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
    color: #ffffff;
}

    .sos-admin-topbar h1 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(32px, 4vw, 48px);
        line-height: 1.06;
        font-weight: 900;
        letter-spacing: -0.04em;
        text-shadow: 0 8px 24px rgba(2, 44, 34, 0.35);
    }

    .sos-admin-topbar p {
        max-width: 680px;
        margin: 10px 0 0;
        color: #d1fae5;
        font-size: 16px;
        line-height: 1.65;
    }

.sos-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    margin-bottom: 14px;
    border: 1px solid rgba(209, 250, 229, 0.30);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ecfdf5;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.sos-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.sos-validation-summary {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 700;
}

    .sos-validation-summary:empty {
        display: none;
    }

.sos-upload-box {
    padding: 18px;
    border: 1px dashed #6ee7b7;
    border-radius: 20px;
    background: #ecfdf5;
}

.sos-upload-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #d1fae5;
    font-size: 24px;
}

.sos-upload-box strong {
    display: block;
    color: #064e3b;
    font-weight: 900;
}

.sos-upload-box p {
    margin: 4px 0 0;
    color: #047857;
    font-size: 14px;
    line-height: 1.5;
}

.sos-upload-info {
    margin-top: 10px;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.sos-location-helper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ecfdf5;
    color: #064e3b;
}

    .sos-location-helper strong {
        display: block;
        margin-bottom: 2px;
        font-weight: 900;
    }

    .sos-location-helper span {
        display: block;
        color: #047857;
        font-size: 14px;
    }

#map.sos-point-map {
    width: 100%;
    height: 430px;
    min-height: 430px;
    border: 1px solid #a7f3d0;
    border-radius: 22px;
    overflow: hidden;
    background: #f3f4f6;
}

.sos-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* ================================
   Points Index Page
   ================================ */

.sos-table-wrap {
    overflow-x: auto;
    border: 1px solid #d1fae5;
    border-radius: 22px;
}

.sos-admin-table {
    min-width: 860px;
}

    .sos-admin-table thead th {
        padding: 16px 18px;
        border-bottom: 1px solid #a7f3d0;
        background: #ecfdf5;
        color: #064e3b;
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .sos-admin-table tbody td {
        padding: 16px 18px;
        border-bottom: 1px solid #d1fae5;
        color: #10231c;
        vertical-align: middle;
    }

    .sos-admin-table tbody tr:last-child td {
        border-bottom: none;
    }

    .sos-admin-table tbody tr:hover {
        background: #f0fdf4;
    }

.sos-point-thumb,
.sos-point-thumb-placeholder {
    width: 76px;
    height: 58px;
    border-radius: 16px;
}

.sos-point-thumb {
    object-fit: cover;
    border: 1px solid #d1fae5;
}

.sos-point-thumb-placeholder {
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #047857;
    font-size: 22px;
}

.sos-table-title {
    color: #064e3b;
    font-weight: 900;
}

.sos-table-meta {
    margin-top: 3px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.sos-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    padding: 8px 12px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
    font-weight: 900;
}

    .sos-category-pill img {
        width: 22px;
        height: 22px;
        border-radius: 8px;
        object-fit: cover;
    }

.sos-coordinates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sos-description-preview {
    max-width: 360px;
    color: #374151;
    line-height: 1.5;
}

.sos-muted-text {
    color: #9ca3af;
    font-weight: 700;
}

.sos-empty-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 34px;
    border: 1px dashed #6ee7b7;
    border-radius: 24px;
    background: #ecfdf5;
    text-align: center;
}

.sos-empty-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #d1fae5;
    font-size: 32px;
}

.sos-empty-state h3 {
    margin: 0;
    color: #064e3b;
    font-size: 24px;
    font-weight: 900;
}

.sos-empty-state p {
    max-width: 480px;
    margin: 0;
    color: #047857;
    line-height: 1.6;
}

/* ================================
   Categories Index Page
   ================================ */

.sos-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
}

    .sos-alert strong {
        display: block;
        white-space: nowrap;
        font-weight: 900;
    }

    .sos-alert span {
        display: block;
        line-height: 1.5;
    }

.sos-alert-success {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

.sos-alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.sos-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sos-category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 190px;
    padding: 20px;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(2, 44, 34, 0.08);
    transition: all 0.18s ease;
}

    .sos-category-card:hover {
        transform: translateY(-2px);
        border-color: #a7f3d0;
        box-shadow: 0 20px 45px rgba(2, 44, 34, 0.12);
    }

.sos-category-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sos-category-icon-box {
    flex: 0 0 auto;
}

.sos-category-icon,
.sos-category-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.sos-category-icon {
    object-fit: cover;
    border: 1px solid #d1fae5;
    background: #ecfdf5;
}

.sos-category-icon-placeholder {
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #047857;
    font-size: 30px;
}

.sos-category-info h3 {
    margin: 0;
    color: #064e3b;
    font-size: 20px;
    font-weight: 900;
}

.sos-category-info p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.sos-category-actions {
    display: flex;
    justify-content: flex-end;
}

.sos-danger-btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff1f2;
    color: #b91c1c;
    font-weight: 900;
    transition: all 0.18s ease;
}

    .sos-danger-btn:hover {
        transform: translateY(-1px);
        background: #fee2e2;
        color: #991b1b;
    }

/* ================================
   Edit Pages
   ================================ */

.sos-current-image-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    background: #ecfdf5;
}

    .sos-current-image-box span {
        color: #047857;
        font-size: 13px;
        font-weight: 900;
    }

    .sos-current-image-box img {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        object-fit: cover;
        border: 1px solid #a7f3d0;
    }

/* ================================
   Points Edit/Delete UI
   ================================ */

.sos-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sos-table-edit-btn {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
    font-weight: 900;
    transition: all 0.18s ease;
}

    .sos-table-edit-btn:hover {
        transform: translateY(-1px);
        background: #d1fae5;
        color: #022c22;
    }

.sos-table-delete-btn {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 900;
    transition: all 0.18s ease;
}

    .sos-table-delete-btn:hover {
        transform: translateY(-1px);
        background: #fee2e2;
        color: #991b1b;
    }

.sos-phone-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

    .sos-phone-link:hover {
        background: #d1fae5;
        color: #022c22;
    }

.sos-existing-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    background: #ecfdf5;
}

    .sos-existing-gallery img {
        width: 100%;
        height: 70px;
        border-radius: 14px;
        object-fit: cover;
        border: 1px solid #a7f3d0;
    }

/* ================================
   Responsive
   ================================ */

@media (max-width: 991px) {
    .sos-map-page,
    .sos-admin-page {
        padding-top: 26px;
    }

    .sos-map-actions {
        justify-content: flex-start;
    }

    .sos-map-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sos-map-mini-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .sos-admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sos-admin-actions {
        justify-content: flex-start;
    }

    .sos-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navbar-nav {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .sos-navbar-link {
        padding: 10px 12px !important;
    }

    .sos-navbar-logout {
        width: 100%;
        margin-top: 8px;
    }

    #map {
        height: 62vh;
        min-height: 430px;
    }
}

@media (max-width: 576px) {
    .sos-map-page,
    .sos-admin-page {
        padding: 20px 0 34px;
    }

    .sos-map-badge {
        font-size: 13px;
    }

    .sos-map-title {
        letter-spacing: -0.03em;
    }

    .sos-map-subtitle {
        font-size: 15px;
    }

    .sos-map-actions,
    .sos-admin-actions,
    .sos-form-actions {
        width: 100%;
    }

        .sos-btn-main,
        .sos-btn-light-custom,
        .sos-admin-actions .btn,
        .sos-form-actions .btn {
            width: 100%;
            justify-content: center;
        }

    .sos-map-card,
    .sos-admin-card {
        border-radius: 22px;
    }

    .sos-map-card-header,
    .sos-admin-card-header {
        padding: 18px;
    }

    .sos-map-card-body,
    .sos-admin-card-body {
        padding: 16px;
    }

    #map {
        height: 56vh;
        min-height: 360px;
        border-radius: 16px;
    }

        #map.sos-point-map {
            height: 360px;
            min-height: 360px;
            border-radius: 18px;
        }

    .sos-login-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .sos-login-title {
        font-size: 30px;
    }

    .sos-small-action {
        width: 100%;
        text-align: center;
    }

    .sos-alert {
        flex-direction: column;
    }

    .sos-category-grid {
        grid-template-columns: 1fr;
    }

    .sos-category-card {
        min-height: auto;
    }

    .sos-category-actions,
    .sos-category-actions form,
    .sos-danger-btn {
        width: 100%;
    }

    .sos-row-actions,
    .sos-row-actions form,
    .sos-table-edit-btn,
    .sos-table-delete-btn {
        width: 100%;
    }

    .sos-existing-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

        .sos-existing-gallery img {
            height: 90px;
        }
}
