/* ========== mi Aruba — Redesigned UI ========== */
:root {
    --navy: #0D1B4A;
    --aruba-blue: #4B92DB;
    --blue: #1A56DB;
    --blue-dark: #1344B0;
    --blue-light: #EBF0FF;
    --aruba-blue-light: #D6E8F7;
    --yellow: #F5C518;
    --yellow-light: #FEF9E7;
    --purple: #7C3AED;
    --purple-light: #EDE9FE;
    --pink: #EC4899;
    --pink-light: #FCE7F3;
    --coral: #F97316;
    --coral-light: #FFF7ED;
    --red: #DC2626;
    --red-light: #FEE2E2;
    --green: #16A34A;
    --green-light: #DCFCE7;
    --orange: #EA580C;
    --orange-light: #FFF7ED;
    --dark-red: #5C1A1A;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --topbar-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--aruba-blue-light);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========== Top Bar (Desktop) ========== */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--aruba-blue);
    border-bottom: none;
    z-index: 900;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.topbar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--aruba-blue);
    z-index: -1;
}
.topbar-brand {
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: -0.02em;
}
.topbar-brand strong {
    font-weight: 800;
}
.topbar-logo {
    height: 32px;
    width: auto;
    display: block;
}
.topbar-nav {
    display: flex;
    gap: 0.25rem;
    margin: 0 auto;
}
.topbar-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: all 0.2s;
    position: relative;
}
.topbar-link:hover { color: #fff; }
.topbar-link.active {
    color: #fff;
    font-weight: 600;
}
.topbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.topbar-icon-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.topbar-lang-wrap { position: relative; }
.topbar-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 1000;
}
.topbar-lang-dropdown.open { display: block; }
.topbar-lang-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--gray-600);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.topbar-lang-btn:hover { background: var(--gray-50); color: var(--blue); }
.topbar-lang-btn.active { color: var(--blue); background: var(--blue-light); }

/* ========== Notification Bell ========== */
.notif-bell { position: relative; cursor: pointer; }
.notif-bell.notif-active svg { fill: var(--yellow, #F5C518); stroke: var(--yellow, #F5C518); }
.notif-bell.notif-active::after {
    content: '';
    position: absolute;
    top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: var(--green, #16A34A);
    border-radius: 50%;
    border: 2px solid var(--aruba-blue, #4B92DB);
}

/* ========== Profile Notification Toggle ========== */
.profile-notif-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.profile-notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.profile-notif-label { font-weight: 600; font-size: 0.95rem; color: var(--navy, #0D1B4A); }
.profile-notif-desc { font-size: 0.8rem; color: var(--gray-500, #6b7280); margin-top: 2px; }
.profile-notif-status { font-size: 0.8rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100, #f3f4f6); }
.notif-on { color: var(--green, #16A34A); }
.notif-off { color: var(--gray-400, #9ca3af); }

/* ========== Admin Notification Queue ========== */
.notif-queue { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.notif-queue-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid var(--yellow, #F5C518);
}
.notif-queue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.notif-queue-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--blue-light, #EBF0FF);
    color: var(--blue, #1A56DB);
    padding: 2px 8px;
    border-radius: 4px;
}
.notif-queue-time { font-size: 0.75rem; color: var(--gray-400, #9ca3af); }
.notif-queue-title { font-weight: 700; font-size: 1rem; color: var(--navy, #0D1B4A); margin-bottom: 0.25rem; }
.notif-queue-body { font-size: 0.85rem; color: var(--gray-600, #4b5563); margin-bottom: 0.25rem; }
.notif-queue-url { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.75rem; }
.notif-queue-actions { display: flex; gap: 0.5rem; }

/* ========== Share Button & Dropdown ========== */
.share-wrap { position: relative; }
.share-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 170px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1100;
    padding: 0.35rem 0;
}
.share-dropdown.open { display: block; }
.share-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.share-option:hover { background: var(--gray-50); }
.share-option svg { flex-shrink: 0; }
.share-copied {
    color: var(--green);
    font-weight: 600;
}

/* ========== Admin Dropdown (Desktop topbar) ========== */
.topbar-admin-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.topbar-admin-wrap > .topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.topbar-admin-wrap > .topbar-link svg { transition: transform 0.2s; }
.topbar-admin-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 0.35rem 0;
}
.topbar-admin-wrap:hover .topbar-admin-dropdown { display: block; }
.topbar-admin-wrap:hover > .topbar-link svg { transform: rotate(180deg); }
/* Invisible bridge so hover doesn't break when moving to dropdown */
.topbar-admin-dropdown::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}
.topbar-admin-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.15s;
}
.topbar-admin-link:hover { background: var(--gray-50); color: var(--navy); }

/* ========== User Button (Desktop topbar) ========== */
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    transition: background 0.15s;
}
.topbar-user-btn:hover { background: rgba(255,255,255,0.15); }
.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.topbar-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Mobile styles → style_mobile.css */

/* ========== Layout ========== */
.layout-main {
    padding-top: var(--topbar-height);
    min-height: 100vh;
}

/* ========== Site Footer ========== */
.site-footer {
    background: var(--aruba-blue);
    border-top: none;
    padding: 2rem 1.5rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-brand {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 400;
}
.footer-brand strong { font-weight: 800; }
.footer-logo { height: 24px; width: auto; display: block; }
.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ========== Main Content ========== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
.page-section {
    padding: 1.5rem 1.5rem;
}

/* ========== Cards ========== */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.25rem; }

/* ========== Section Titles ========== */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title svg { color: var(--yellow); }

/* ========== Hero Sections ========== */
.hero-section {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    color: #fff;
    padding: 2.5rem 2rem;
    background-size: cover;
    background-position: center;
}
.hero-section h1 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.hero-section p {
    font-size: 0.9rem;
    opacity: 0.85;
    max-width: 480px;
    line-height: 1.5;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,74,0.85), rgba(26,86,219,0.6));
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-yellow { background: var(--yellow); color: var(--navy); font-weight: 700; }
.btn-yellow:hover { background: #E0B115; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #162455; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ========== Forms ========== */
.form-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem 1rem;
}
.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}
.form-logo { display: block; height: 48px; margin: 0 auto 1.5rem; }
.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}
.form-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-800);
    background: #fff;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.form-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ========== Alerts ========== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.alert-error { background: var(--red-light); color: var(--red); }
.alert-success { background: var(--green-light); color: var(--green); }

/* ========== Map ========== */
.map-container {
    width: 100%;
    height: 55vh;
    min-height: 300px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.map-container-submit {
    height: 40vh;
    min-height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--gray-200);
}
#map, #submitMap { width: 100%; height: 100%; }

/* ========== Home Dashboard ========== */
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    overflow: hidden;
}
.home-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.home-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
    transition: all 0.2s;
}
.home-card:hover { box-shadow: var(--shadow-md); }
.home-grid > div { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.home-grid > div > .home-card { flex: 1; display: flex; flex-direction: column; }

/* Services card — spans full width */
.home-services-span { grid-column: 1 / -1; }
.home-services-card { padding: 1rem; }
.home-services-header { margin-bottom: 0.75rem; }
.home-services-badge {
    display: inline-block;
    background: #AAFF45;
    color: #111;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}
.home-services-tagline {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.home-service-provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.2s;
}
.home-service-provider:hover {
    border-color: #AAFF45;
    box-shadow: 0 4px 16px rgba(170, 255, 69, 0.15);
    transform: translateY(-2px);
}
.home-service-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.home-service-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.home-service-cat {
    font-size: 0.7rem;
    color: var(--gray-500);
}
.home-service-rating {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 999px;
}
.home-services-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.home-service-cat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.15s;
}
.home-service-cat-pill:hover {
    background: #AAFF45;
    border-color: #AAFF45;
    color: #111;
}

/* Movie preview card on home */
.home-movie-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #fff;
}
.home-movie-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}
.home-movie-hero > * { position: relative; z-index: 1; }
.home-movie-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--yellow);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.home-movie-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}
.home-movie-cinema {
    font-size: 0.78rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}
.home-movie-times {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.home-movie-time {
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.home-movie-cta {
    display: block;
    text-align: center;
    padding: 0.6rem;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}
.home-movie-cta:hover { background: var(--gray-100); }

/* IMDB badge on poster */
.home-imdb-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.75);
    color: var(--yellow);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}
.now-playing-poster { position: relative; }

/* Pharmacy list on home */
.home-pharmacy-list {
    display: flex;
    flex-direction: column;
}
.home-pharmacy-list .home-pharmacy-item {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
}
.home-pharmacy-list .home-pharmacy-item + .home-pharmacy-item {
    border-top: 1px solid var(--gray-200);
}
.home-pharmacy-icon-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}
.home-pharmacy-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Pothole vote badge */
.home-pothole-votes {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--blue-light);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}
.home-potholes-card .home-pothole-item + .home-pothole-item {
    border-top: 1px solid var(--gray-100);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

/* Pharmacy card on home */
.home-pharmacy-card {
    padding: 1.5rem;
    text-align: center;
}
.home-pharmacy-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.home-pharmacy-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.home-pharmacy-address {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}
.home-pharmacy-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.home-pharmacy-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Pets card on home */
.home-pets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
}
a.home-pets-card,
a.home-pets-card:visited,
a.home-pets-card:link,
a.home-pets-card:hover {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-50);
    transition: box-shadow 0.2s;
}
a.home-pets-card:hover { box-shadow: var(--shadow-sm); }
.home-pet-photo {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}
.home-pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-pet-photo .status-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}
.home-pet-info {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.home-pet-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
}
.home-pet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.home-pet-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 600;
}
.home-pet-location,
.home-pet-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}
.home-pet-location svg,
.home-pet-date svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Potholes card on home */
.home-potholes-card {
    padding: 1.25rem;
}
.home-pothole-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}
.home-pothole-photo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    background: var(--gray-200);
    overflow: hidden;
    flex-shrink: 0;
}
.home-pothole-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ========== Potholes Page ========== */
.potholes-map-section {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.potholes-map-section .map-container {
    border-radius: 0;
}
.potholes-filter-bar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 500;
    display: flex;
    gap: 0.5rem;
}
.pothole-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.875rem;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow);
}
.pothole-filter-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.pothole-filter-chip .dot.red { background: var(--red); }
.pothole-filter-chip .dot.yellow { background: var(--yellow); }
.pothole-filter-chip .dot.green { background: var(--green); }
.pothole-filter-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.pothole-report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.pothole-report-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}
.pothole-report-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pothole-report-photo {
    height: 180px;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}
.pothole-report-photo img { width: 100%; height: 100%; object-fit: cover; }
.pothole-report-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}
.pothole-report-status.reported { background: var(--red); color: #fff; }
.pothole-report-status.in_progress { background: var(--yellow); color: var(--navy); }
.pothole-report-status.fixed { background: var(--green); color: #fff; }
.pothole-report-body { padding: 1rem; }
.pothole-report-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.pothole-report-votes {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--blue);
    font-size: 0.8rem;
}
.pothole-report-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pothole-report-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-400);
}
.pothole-report-footer a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

/* Legacy pothole styles */
.pothole-list { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.pothole-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem;
    display: flex; align-items: flex-start; gap: 1rem; transition: all 0.2s; text-decoration: none; color: inherit; cursor: pointer;
}
.pothole-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pothole-rank { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.pothole-info { flex: 1; min-width: 0; }
.pothole-address { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pothole-desc { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pothole-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.75rem; }
.pothole-votes { display: flex; align-items: center; gap: 0.25rem; color: var(--blue); font-weight: 600; }
.pothole-severity { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.severity-low { background: var(--green-light); color: var(--green); }
.severity-medium { background: var(--orange-light); color: var(--orange); }
.severity-high { background: var(--red-light); color: var(--red); }
.pothole-status { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.status-reported { background: var(--orange-light); color: var(--orange); }
.status-in_progress { background: var(--blue-light); color: var(--blue); }
.status-fixed { background: var(--green-light); color: var(--green); }

/* ========== Events Page ========== */
.events-hero {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}
.events-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,74,0.9) 0%, rgba(13,27,74,0.4) 50%, rgba(13,27,74,0.2) 100%);
}
.events-hero > * { position: relative; z-index: 1; }
.events-hero-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.events-hero-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.events-hero-badge.yellow { background: var(--yellow); color: var(--navy); }
.events-hero-badge.outline { background: rgba(255,255,255,0.2); color: #fff; }
.events-hero h1 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.events-hero p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 500px;
    margin-bottom: 1rem;
}
.events-hero-actions {
    display: flex;
    gap: 0.75rem;
}

.events-search-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.events-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem 0.6rem 2.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.75rem center;
}
.events-search-input:focus { outline: none; border-color: var(--blue); }

.events-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.event-card-v2 {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.2s;
}
.event-card-v2:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-card-photo {
    height: 180px;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}
.event-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.event-card-date {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--yellow);
    color: var(--navy);
    border-radius: var(--radius-xs);
    padding: 0.25rem 0.5rem;
    text-align: center;
    line-height: 1.2;
}
.event-card-date-month { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; }
.event-card-date-day { font-size: 1.1rem; font-weight: 800; }
.event-card-body { padding: 1rem; }
.event-card-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    margin-bottom: 0.25rem;
}
.event-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.event-card-meta {
    font-size: 0.78rem;
    color: var(--gray-500);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}
.event-card-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
}

.events-newsletter {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    margin-top: 2rem;
}
.events-newsletter h2 {
    font-size: 1.75rem;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.events-newsletter p {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.events-newsletter-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}
.events-newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
}
.events-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.events-newsletter-form button {
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
}

/* Legacy event styles */
.event-card { display: flex; gap: 1rem; padding: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.2s; }
.event-card:hover { box-shadow: var(--shadow-md); }
.event-card.featured { border-left: 3px solid var(--purple); }
.event-info { flex: 1; min-width: 0; }
.event-title { font-weight: 700; font-size: 0.95rem; color: var(--gray-800); margin-bottom: 0.25rem; }
.event-meta { font-size: 0.8rem; color: var(--gray-500); display: flex; flex-direction: column; gap: 0.125rem; }
.event-meta span { display: flex; align-items: center; gap: 0.25rem; }
.event-tag { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.65rem; font-weight: 600; background: var(--purple-light); color: var(--purple); margin-top: 0.375rem; }

/* ========== Pharmacy Page ========== */
.pharmacy-emergency {
    background: var(--dark-red);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.pharmacy-emergency-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pharmacy-emergency-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.pharmacy-emergency-title { font-weight: 700; font-size: 1rem; }
.pharmacy-emergency-subtitle { font-size: 0.8rem; opacity: 0.7; }
.pharmacy-emergency-numbers {
    display: flex;
    gap: 0.75rem;
}
.pharmacy-emergency-num {
    text-align: center;
    padding: 0.5rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #fff;
}
.pharmacy-emergency-num-label { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; }
.pharmacy-emergency-num-value { font-size: 1.25rem; font-weight: 800; }

.pharmacy-hero {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 2rem 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.pharmacy-hero-content { flex: 1; }
.pharmacy-hero-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
    color: var(--green);
    border-color: var(--green);
}
.pharmacy-hero h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.pharmacy-hero p {
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 400px;
}
.pharmacy-hero-icon {
    width: 100px;
    height: 100px;
    opacity: 0.15;
    flex-shrink: 0;
}

.pharmacy-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    align-items: start;
}
.pharmacy-list-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pharmacy-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-left: 4px solid var(--gray-200);
}
.pharmacy-item.on-duty { border-left-color: var(--green); }
.pharmacy-item-info { flex: 1; }
.pharmacy-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pharmacy-on-duty-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
}
.pharmacy-item-detail {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.pharmacy-item-detail a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}
.pharmacy-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.pharmacy-directions-btn:hover { background: var(--blue); }

.pharmacy-sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1rem;
}
.pharmacy-map-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}
.pharmacy-map-card-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pharmacy-map-image {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
}
.pharmacy-map-image img { width: 100%; height: 100%; object-fit: cover; }

.pharmacy-info-box {
    background: var(--yellow-light);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid rgba(245,197,24,0.3);
}
.pharmacy-info-box h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pharmacy-info-box ul {
    list-style: none;
    font-size: 0.8rem;
    color: var(--gray-600);
}
.pharmacy-info-box li {
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Legacy pharmacy styles */
.pharmacy-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.pharmacy-card-name { font-weight: 700; font-size: 1.1rem; color: var(--gray-800); margin-bottom: 0.5rem; }
.pharmacy-card-info { font-size: 0.85rem; color: var(--gray-500); display: flex; flex-direction: column; gap: 0.375rem; }
.pharmacy-card-info span { display: flex; align-items: center; gap: 0.375rem; }
.pharmacy-status { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.pharmacy-status.open { background: var(--green-light); color: var(--green); }
.pharmacy-status.closed { background: var(--gray-100); color: var(--gray-500); }
.pharmacy-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.pharmacy-week { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pharmacy-week th { text-align: left; padding: 0.5rem 0.75rem; color: var(--gray-500); font-weight: 600; font-size: 0.75rem; border-bottom: 2px solid var(--gray-200); }
.pharmacy-week td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--gray-100); }
.pharmacy-week tr.today td { background: var(--green-light); font-weight: 600; }

/* ========== Movies Page ========== */
.movies-header h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.cinema-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.cinema-filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--gray-300);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.cinema-filter-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--navy);
}
.cinema-filter-btn:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

.movies-featured {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    margin-bottom: 2rem;
}
.movies-featured-hero {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 340px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}
.movies-featured-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}
.movies-featured-hero > * { position: relative; z-index: 1; }
.movies-featured-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.movies-featured-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.movies-featured-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movies-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.movies-featured-trailer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: var(--yellow);
    color: var(--navy);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}
.movies-featured-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.movies-featured-score small { font-size: 0.65rem; font-weight: 500; opacity: 0.7; }

.movies-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.movies-sidebar-card {
    background: var(--dark-red);
    border-radius: var(--radius);
    padding: 1.25rem;
    color: #fff;
}
.movies-sidebar-card h3 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.movies-sidebar-card p { font-size: 0.78rem; opacity: 0.75; }
.movies-sidebar-card a { color: #fff; font-weight: 600; font-size: 0.8rem; }

/* Featured movie compact card */
.movies-featured-compact {
    display: flex;
    gap: 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}
.movies-featured-compact:hover { box-shadow: var(--shadow-lg); }
.movies-featured-compact-poster {
    width: 140px;
    min-width: 140px;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: var(--shadow);
}
.movies-featured-compact-poster img { width: 100%; height: 100%; object-fit: cover; }
.movies-featured-compact-info { flex: 1; min-width: 0; }

/* Now Playing grid */
.now-playing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.now-playing-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
}
/* Carousel wrapper */
.carousel-wrap {
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.carousel-wrap:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.carousel-arrow-left { left: 4px; }
.carousel-arrow-right { right: 4px; }

.now-playing-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.now-playing-grid::-webkit-scrollbar { display: none; }
.now-playing-card {
    min-width: 140px;
    flex: 0 0 140px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.now-playing-card:hover { transform: translateY(-4px); }
.now-playing-poster {
    width: 140px;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
    box-shadow: var(--shadow);
}
.now-playing-poster img { width: 100%; height: 100%; object-fit: cover; }
.now-playing-rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}
.now-playing-rating.pg13 { background: var(--yellow); color: var(--navy); }
.now-playing-rating.r { background: var(--red); color: #fff; }
.now-playing-rating.pg { background: var(--green); color: #fff; }
.now-playing-rating.g { background: var(--blue); color: #fff; }
.now-playing-info {
    margin-top: 0.5rem;
}
.now-playing-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.now-playing-meta {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

/* Selected movie detail section */
.movie-detail-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.movie-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    margin-bottom: 0.75rem;
}
.movie-detail-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}
.movie-detail-card:hover { box-shadow: var(--shadow-md); }
.movie-detail-top {
    display: flex;
    gap: 1rem;
}
.movie-detail-poster {
    width: 140px;
    min-width: 140px;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.movie-detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.movie-detail-info { flex: 1; }
.movie-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.movie-detail-genres {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.movie-genre-tag {
    padding: 0.2rem 0.6rem;
    background: var(--navy);
    color: #fff;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}
.movie-detail-stats {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}
.movie-detail-stat {
    text-align: center;
}
.movie-detail-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.movie-detail-stat-label { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; color: var(--gray-400); letter-spacing: 0.5px; }

/* IMDB badge (shared between movies.php and movie.php) */
.imdb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--yellow);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
.imdb-star { font-style: normal; }
.imdb-label { font-weight: 500; opacity: 0.75; font-size: 0.72rem; }

/* Movie meta line (duration + rating pill) */
.movie-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.movie-detail-rating-pill {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.movie-detail-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.movie-detail-showtimes-full {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}
.movie-detail-showtimes-full h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.movie-showtimes-section h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.showtime-cinema-block {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.showtime-cinema-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.showtime-cinema-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.showtime-cinema-link { font-size: 0.75rem; color: var(--blue); text-decoration: none; font-weight: 600; }
.showtime-times { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.movie-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Legacy movie styles */
.movie-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; display: flex; gap: 1rem; transition: all 0.2s; }
.movie-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.movie-poster { width: 80px; min-width: 80px; height: 120px; border-radius: var(--radius-sm); background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 2rem; overflow: hidden; flex-shrink: 0; }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-info { flex: 1; min-width: 0; }
.movie-title { font-weight: 700; font-size: 0.95rem; color: var(--gray-800); }
.movie-meta { font-size: 0.8rem; color: var(--gray-500); margin: 0.25rem 0 0.5rem; }
.movie-showtimes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.movie-cinema-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-600); width: 100%; margin-top: 0.25rem; }
.time-chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--navy);
    border: 1.5px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
}
.time-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.time-chip.sold-out { background: var(--yellow); color: var(--navy); border-color: var(--yellow); text-decoration: line-through; opacity: 0.7; }

.date-tabs { display: flex; gap: 0.25rem; background: var(--gray-100); border-radius: var(--radius-sm); padding: 0.25rem; margin-bottom: 1rem; overflow-x: auto; }
.date-tab { padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: var(--gray-500); cursor: pointer; white-space: nowrap; transition: all 0.2s; border: none; background: none; font-family: inherit; text-decoration: none; }
.date-tab.active { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.date-tab:hover:not(.active) { color: var(--gray-700); }

/* ========== Pets Page ========== */
.pets-hero {
    margin-bottom: 1.5rem;
}
.pets-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.pets-hero p {
    font-size: 0.9rem;
    color: var(--gray-500);
    max-width: 500px;
    margin-bottom: 1rem;
}
.pets-status-toggle {
    display: flex;
    gap: 0;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    display: inline-flex;
}
.pets-status-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    font-family: inherit;
}
.pets-status-btn.active {
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow);
}

.pets-search-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.pets-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem 0.6rem 2.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.75rem center;
}
.pets-type-pills {
    display: flex;
    gap: 0.5rem;
}
.pets-type-pill {
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.pets-type-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.pets-map-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.pets-map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    position: relative;
}
.pet-map-icon { background: none !important; border: none !important; }
.pet-marker-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.pets-map-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 500;
    padding: 0.35rem 0.75rem;
    background: #fff;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow);
}
.pets-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pets-alert-card {
    border-radius: var(--radius);
    padding: 1.25rem;
    color: #fff;
}
.pets-alert-card.urgent { background: var(--dark-red); }
.pets-alert-card.success { background: var(--navy); }
.pets-alert-card h3 { font-weight: 800; font-size: 1rem; margin-bottom: 0.35rem; }
.pets-alert-card p { font-size: 0.8rem; opacity: 0.85; margin-bottom: 0.75rem; }

.pet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.pet-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.2s;
}
.pet-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
a.pet-card { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; }
a.pet-card * { text-decoration: none !important; }

/* Pet Detail Page */
.pet-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.pet-detail-photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 4/3;
}
.pet-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pet-detail-photo .status-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}
.pet-detail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.pet-detail-info { display: flex; flex-direction: column; }
.pet-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.pet-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.pet-detail-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}
.pet-detail-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.pet-detail-facts { display: flex; flex-direction: column; gap: 0.5rem; }
.pet-detail-fact {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-700);
}
.pet-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    min-width: 80px;
    flex-shrink: 0;
}
.pet-detail-map-section { margin-top: 1.5rem; }
.pet-detail-map-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.pet-detail-map {
    height: 300px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    overflow: hidden;
}
.pet-photo {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}
.pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-photo .status-badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.pet-body { padding: 1rem; }
.pet-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pet-heart {
    color: var(--red);
    cursor: pointer;
}
.pet-detail {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}
.pet-time {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 0.375rem;
}
/* Pet card labeled rows */
.pet-card-row {
    font-size: 0.78rem;
    margin-top: 0.2rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pet-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-400);
    margin-right: 0.3rem;
}
.pet-card-value {
    color: var(--gray-600);
}

.pet-contact-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    margin-top: 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    cursor: pointer;
    background: none;
    font-family: inherit;
    transition: all 0.2s;
}
.pet-contact-btn:hover { background: var(--gray-50); border-color: var(--blue); color: var(--blue); }

/* ========== Category Pills ========== */
.category-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
    padding: 0.4rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}
.category-pill:hover { border-color: var(--blue); color: var(--blue); }
.category-pill.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* ========== Status Badge ========== */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.625rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-badge.lost { background: var(--red); color: #fff; }
.status-badge.found { background: var(--green); color: #fff; }
.status-badge.reunited { background: var(--gray-100); color: var(--gray-500); }
.status-badge.active { background: var(--green-light); color: var(--green); }
.status-badge.cancelled { background: var(--red-light); color: var(--red); }
.status-badge.completed { background: var(--gray-100); color: var(--gray-500); }
.status-badge.open { background: var(--green-light); color: var(--green); }
.status-badge.closed { background: var(--gray-100); color: var(--gray-500); }

/* ========== Date Badge (Events) ========== */
.date-badge {
    width: 48px; min-width: 48px; text-align: center; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
}
.date-badge-month { background: var(--purple); color: #fff; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 0.125rem 0; letter-spacing: 0.5px; }
.date-badge-day { background: var(--purple-light); color: var(--purple); font-size: 1.25rem; font-weight: 800; padding: 0.25rem 0; }

/* ========== Vote Button ========== */
.vote-btn {
    display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem;
    border: 2px solid var(--blue); background: transparent; color: var(--blue);
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.vote-btn:hover { background: var(--blue); color: #fff; }
.vote-btn.voted { background: var(--blue); color: #fff; pointer-events: none; }

/* ========== View Toggle ========== */
.view-toggle { display: flex; gap: 0; background: var(--gray-100); border-radius: var(--radius-sm); padding: 0.25rem; }
.view-toggle-btn { padding: 0.375rem 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: var(--gray-500); cursor: pointer; transition: all 0.2s; border: none; background: none; font-family: inherit; text-decoration: none; }
.view-toggle-btn.active { background: #fff; color: var(--blue); box-shadow: var(--shadow); }

/* ========== Page Header ========== */
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.page-header-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ========== Service Grid (Home Dashboard - legacy) ========== */
.service-grid { display: flex; gap: 0.75rem; padding: 0.75rem 1rem 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.5rem; }
.service-grid::-webkit-scrollbar { display: none; }
.service-card { min-width: 140px; flex: 0 0 140px; scroll-snap-align: start; border-radius: var(--radius); padding: 1.25rem 1rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; transition: all 0.2s; position: relative; box-shadow: var(--shadow-md); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card.card-red { background: linear-gradient(135deg, #FEE2E2, #fff); }
.service-card.card-purple { background: linear-gradient(135deg, #EDE9FE, #fff); }
.service-card.card-green { background: linear-gradient(135deg, #DCFCE7, #fff); }
.service-card.card-orange { background: linear-gradient(135deg, #FFF7ED, #fff); }
.service-card.card-pink { background: linear-gradient(135deg, #FCE7F3, #fff); }
.service-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.service-card-icon.red { background: var(--red); color: #fff; }
.service-card-icon.purple { background: var(--purple); color: #fff; }
.service-card-icon.green { background: var(--green); color: #fff; }
.service-card-icon.yellow { background: var(--orange); color: #fff; }
.service-card-icon.pink { background: var(--pink); color: #fff; }
.service-card-title { font-weight: 700; font-size: 0.85rem; color: var(--gray-800); }
.service-card-subtitle { font-size: 0.7rem; color: var(--gray-500); }
.service-card-badge { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.6rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--blue); color: #fff; }

/* ========== Content Panels (Home Dashboard - legacy) ========== */
.dashboard-panels { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem 1rem; }
.content-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.content-panel.panel-green { border-top: 4px solid var(--green); }
.content-panel.panel-purple { border-top: 4px solid var(--purple); }
.content-panel.panel-orange { border-top: 4px solid var(--orange); }
.content-panel.panel-pink { border-top: 4px solid var(--pink); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); }
.panel-header-left { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--gray-800); }
.panel-header-left svg { width: 20px; height: 20px; }
.panel-link { font-size: 0.8rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.panel-body { padding: 0.75rem 1rem; }
.panel-body-empty { text-align: center; padding: 1.5rem 1rem; color: var(--gray-400); font-size: 0.85rem; }

/* ========== Welcome Message ========== */
.welcome-message { padding: 1rem 1rem 0; }
.welcome-message h2 { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.125rem; }
.welcome-message p { font-size: 0.8rem; color: var(--gray-500); }

/* ========== Floating Action Button ========== */
.fab {
    position: fixed; bottom: 80px; right: 1.5rem; width: 56px; height: 56px;
    border-radius: 50%; background: var(--navy); color: #fff; border: none;
    box-shadow: var(--shadow-lg); cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; z-index: 50; transition: all 0.2s;
    text-decoration: none;
}
.fab:hover { transform: scale(1.1); background: var(--blue); }

/* ========== Empty State ========== */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.empty-state svg { margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; }

/* ========== PWA Smart Install Banner ========== */
.pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--navy, #0D1B4A);
    color: #fff;
    padding: 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
    animation: pwa-slide-up 0.4s ease;
}
.pwa-install-banner.show { display: block; }
@keyframes pwa-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.pwa-install-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.pwa-install-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.pwa-install-text { flex: 1; min-width: 0; }
.pwa-install-text strong { display: block; font-size: 0.9rem; }
.pwa-install-text span { font-size: 0.75rem; opacity: 0.8; }
.pwa-install-btn {
    background: var(--yellow, #F5C518);
    color: var(--navy, #0D1B4A);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.pwa-install-btn:hover { opacity: 0.9; }
.pwa-install-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}
.pwa-install-close:hover { color: #fff; }

/* PWA Install Guide Popup */
.pwa-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.pwa-guide-popup {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.pwa-guide-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.pwa-guide-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pwa-guide-popup h3 {
    font-size: 1.15rem;
    color: var(--navy, #0D1B4A);
    margin-bottom: 0.5rem;
}
.pwa-guide-popup p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}
.pwa-guide-steps {
    text-align: left;
}
.pwa-guide-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--navy, #0D1B4A);
    border-bottom: 1px solid #f1f5f9;
}
.pwa-guide-step:last-child { border-bottom: none; }
.pwa-guide-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--aruba-blue, #4B92DB);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* PWA Install Card (profile page) */
.pwa-install-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ========== Desc clamp (Movies) ========== */
.desc-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; margin-top: 0.3rem; }
.desc-clamp.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.desc-more-btn { background: none; border: none; color: var(--blue); font-size: 0.75rem; cursor: pointer; padding: 0; margin-top: 0.15rem; display: inline-block; }

/* ========== Profile ========== */
.profile-header { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 2rem 1rem; text-align: center; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 700; margin: 0 auto 0.75rem; border: 3px solid rgba(255,255,255,0.3); }
.profile-name { font-size: 1.25rem; font-weight: 700; }
.profile-email { font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; }
.profile-stats { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.profile-stat { text-align: center; }
.profile-stat-value { font-size: 1.5rem; font-weight: 800; }
.profile-stat-label { font-size: 0.75rem; opacity: 0.7; }

/* ========== Admin ========== */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.kpi-card { background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.kpi-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); }
.kpi-label { font-size: 0.75rem; font-weight: 500; color: var(--gray-500); margin-top: 0.125rem; }
.kpi-card.blue .kpi-value { color: var(--blue); }
.kpi-card.yellow .kpi-value { color: var(--yellow); }
.kpi-card.red .kpi-value { color: var(--red); }
.kpi-card.green .kpi-value { color: var(--green); }
.kpi-card.purple .kpi-value { color: var(--purple); }
.kpi-card.pink .kpi-value { color: var(--pink); }

.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { background: var(--gray-50); padding: 0.75rem 1rem; text-align: left; font-weight: 600; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.admin-table tr:hover td { background: var(--gray-50); }
.status-select { padding: 0.25rem 0.5rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.8rem; font-family: inherit; cursor: pointer; }
.admin-nav { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; background: var(--gray-100); border-radius: var(--radius-sm); padding: 0.25rem; overflow-x: auto; }
.admin-nav-link { padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--gray-500); text-decoration: none; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.admin-nav-link:hover { color: var(--gray-700); }
.admin-nav-link.active { background: #fff; color: var(--blue); box-shadow: var(--shadow); }

/* ========== Nearby Potholes (Submit page) ========== */
.nearby-section { margin-top: 1rem; }
.nearby-card { background: var(--blue-light); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; transition: border-color 0.2s; }
.nearby-card:hover { border-color: var(--blue); }
.nearby-info { flex: 1; min-width: 0; }
.nearby-addr { font-weight: 600; font-size: 0.85rem; }
.nearby-votes { font-size: 0.8rem; color: var(--gray-500); }

/* ========== Report Type Toggle ========== */
.report-type-toggle { display: flex; gap: 0; margin-bottom: 1rem; background: var(--gray-100); border-radius: var(--radius-sm); padding: 0.25rem; }
.report-type-btn { flex: 1; text-align: center; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--gray-500); cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.report-type-btn.active { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
button.report-type-btn { border: none; background: none; }

/* ========== Language Switcher (legacy) ========== */
.lang-switcher { display: flex; gap: 2px; }
.lang-btn { background: transparent; border: 1px solid var(--gray-200); padding: 0.25rem 0.5rem; font-size: 0.7rem; font-weight: 600; font-family: inherit; color: var(--gray-500); cursor: pointer; transition: all 0.2s; border-radius: 4px; }
.lang-btn:first-child { border-radius: 4px 0 0 4px; }
.lang-btn:last-child { border-radius: 0 4px 4px 0; }
.lang-btn:not(:first-child):not(:last-child) { border-radius: 0; }
.lang-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.lang-btn:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

/* ========== Pharmacy Map ========== */
.pharmacy-map { height: 200px; border-radius: var(--radius); overflow: hidden; margin-top: 0.75rem; border: 2px solid var(--gray-200); }

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.flex-wrap { flex-wrap: wrap; }

/* ========== Responsive — Desktop ========== */
@media (min-width: 769px) {
    .topbar { display: flex; }
    .mobile-topbar { display: none !important; }
    .mobile-menu, .mobile-menu.open { display: none !important; }
    .mobile-menu-overlay { display: none !important; }
    body { padding-bottom: 0; }
    .pothole-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
    .service-grid { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; }
    .service-card { min-width: unset; flex: unset; }
    .dashboard-panels { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(4, 1fr); }
    .pothole-report-grid { grid-template-columns: repeat(3, 1fr); }
    .events-card-grid { grid-template-columns: repeat(3, 1fr); }
}
