/* 
 * Donnecl Street Bin Collection Web App CSS
 * Inspired by Home Assistant HA Trash / Waste Collection Schedule Cards
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Theme Palette - Modern Dark (HA Slate/OLED aesthetic) */
    --bg-base: #0c1017;
    --bg-surface: #141b26;
    --bg-card: rgba(26, 35, 50, 0.7);
    --bg-card-hover: rgba(36, 48, 68, 0.85);
    --bg-glass: rgba(20, 27, 38, 0.65);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Bin Colors (Crawley Borough Council Official Specs) */
    --bin-general-bg: #1f2937;
    --bin-general-border: #4b5563;
    --bin-general-accent: #cbd5e1;
    
    --bin-recycling-bg: #7f1d1d;
    --bin-recycling-border: #ef4444;
    --bin-recycling-accent: #fca5a5;
    
    --bin-food-bg: #7c2d12;
    --bin-food-border: #ea580c;
    --bin-food-accent: #fdba74;
    
    --bin-garden-bg: #064e3b;
    --bin-garden-border: #10b981;
    --bin-garden-accent: #6ee7b7;
    
    --bin-glass-bg: #4c1d95;
    --bin-glass-border: #8b5cf6;
    --bin-glass-accent: #c4b5fd;

    /* Status Colors */
    --status-urgent: #ef4444;
    --status-warning: #f59e0b;
    --status-upcoming: #3b82f6;
    --status-ok: #10b981;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Light Theme Override */
[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.95);
    
    --border-color: #cbd5e1;
    --border-highlight: #94a3b8;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] body {
    background-image: 
        linear-gradient(rgba(241, 245, 249, 0.85), rgba(241, 245, 249, 0.95)),
        url('assets/street-bg.jpg');
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 60px;
    background-image: 
        linear-gradient(rgba(13, 17, 23, 0.88), rgba(13, 17, 23, 0.95)),
        url('assets/street-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Authentic UK Street Sign */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.street-sign-wrapper {
    display: flex;
    align-items: center;
}

.uk-street-sign {
    display: flex;
    background: #fbf9f4;
    border: 5px solid #d1d5db; /* metal frame */
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* contain the stripe and symbol */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.uk-street-sign:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.street-sign-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.street-sign-text {
    padding: 10px 18px 6px 18px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.street-sign-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #1a1b1e;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.street-sign-stripe {
    background-color: #f38048; /* orange */
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 4px 16px 4px 0;
    text-align: right;
    width: 100%;
}

.street-sign-symbol {
    width: 76px;
    background-color: #0b80d0; /* blue */
    border-left: 4px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.dead-end-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -2px; /* slight vertical adjustment */
}

.dead-end-t-top {
    width: 40px;
    height: 13px;
    background-color: #d11e32;
    border: 3px solid #ffffff;
    border-bottom: 0;
}

.dead-end-t-stem {
    width: 13px;
    height: 25px;
    background-color: #ffffff;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

/* Alert Banner (Tonight / Tomorrow) */
.alert-banner {
    display: none;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid var(--status-urgent);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    animation: pulse-border 2s infinite alternate;
}

.alert-banner.active {
    display: flex;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
    100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.5); }
}

.alert-banner .alert-icon {
    font-size: 28px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.alert-banner .alert-text h3 {
    font-size: 1.05rem;
    color: #fca5a5;
    margin-bottom: 2px;
}

.alert-banner .alert-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* HA Trash Card Hero Spotlight */
.hero-spotlight {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #8b5cf6);
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.spotlight-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.countdown-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--bin-recycling-accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.countdown-badge.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Bin Cards Grid (HA Lovelace Style) */
.trash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.bin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.bin-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.4);
}

.bin-card.urgent {
    border-color: var(--status-urgent);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.bin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bin-avatar {
    width: 100px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bin-card:hover .bin-avatar {
    transform: scale(1.15) translateY(-4px) rotate(-4deg);
}

.bin-photo-img {
    height: 125px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bin-card:hover .bin-photo-img {
    transform: scale(1.12) rotate(-3deg);
}

.wheelie-bin-svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
    transition: all 0.3s ease;
}

.wheelie-bin-lid {
    transition: transform 0.3s ease;
    transform-origin: 20px 20px;
}

.bin-card:hover .wheelie-bin-lid {
    transform: rotate(-6deg) translateY(-2px);
}

.bin-days-chip {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.bin-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bin-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.bin-info .bin-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bin-card-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Timeline & Schedule Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 16px 0;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-group {
    display: flex;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Timeline List */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.timeline-item:hover {
    background: var(--bg-card-hover);
}

.timeline-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-date-box {
    text-align: center;
    min-width: 54px;
    padding: 6px 10px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.timeline-date-box .day-num {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.timeline-date-box .month-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.timeline-bins-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.bin-pill[data-bin-type="general"] {
    background: rgba(156, 163, 175, 0.15);
    color: #f3f4f6;
    border: 1px solid rgba(156, 163, 175, 0.3);
}
.bin-pill[data-bin-type="recycling"] {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.bin-pill[data-bin-type="food"] {
    background: rgba(249, 115, 22, 0.15);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.35);
}
.bin-pill[data-bin-type="garden"] {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.bin-pill[data-bin-type="glass"] {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.bin-pill[data-bin-type="electricals"] {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}
.bin-pill[data-bin-type="textiles"] {
    background: rgba(232, 121, 249, 0.15);
    color: #f0abfc;
    border: 1px solid rgba(232, 121, 249, 0.35);
}

/* Light Mode High Contrast Specific Overrides */
[data-theme="light"] .bin-pill[data-bin-type="general"] {
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #94a3b8;
    font-weight: 600;
}
[data-theme="light"] .bin-pill[data-bin-type="recycling"] {
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #f87171;
    font-weight: 600;
}
[data-theme="light"] .bin-pill[data-bin-type="food"] {
    background: #fff7ed;
    color: #9a3412;
    border: 1.5px solid #fb923c;
    font-weight: 600;
}
[data-theme="light"] .bin-pill[data-bin-type="garden"] {
    background: #ecfdf5;
    color: #065f46;
    border: 1.5px solid #34d399;
    font-weight: 600;
}
[data-theme="light"] .bin-pill[data-bin-type="glass"] {
    background: #f5f3ff;
    color: #5b21b6;
    border: 1.5px solid #a78bfa;
    font-weight: 600;
}
[data-theme="light"] .bin-pill[data-bin-type="electricals"] {
    background: #f0f9ff;
    color: #0369a1;
    border: 1.5px solid #38bdf8;
    font-weight: 600;
}
[data-theme="light"] .bin-pill[data-bin-type="textiles"] {
    background: #fdf4ff;
    color: #86198f;
    border: 1.5px solid #e879f9;
    font-weight: 600;
}

[data-theme="light"] .alert-banner {
    background: #fef2f2;
    border: 1.5px solid #ef4444;
}
[data-theme="light"] .alert-banner .alert-text h3 {
    color: #991b1b;
    font-weight: 700;
}
[data-theme="light"] .alert-banner .alert-text p {
    color: #7f1d1d;
    font-weight: 500;
}

[data-theme="light"] .countdown-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #60a5fa;
}
[data-theme="light"] .countdown-badge.urgent {
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #f87171;
}

[data-theme="light"] .bin-days-chip {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

/* Bin Guide & Quick Tools */
.quick-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

/* Property Market Radar Section */
.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.property-title h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 4px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.property-stat-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.property-stat-box .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bin-recycling-accent);
    line-height: 1.2;
}

.property-stat-box .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

.property-alerts-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.property-alerts-box .alert-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.property-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-select {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--bin-recycling-border);
}

/* Bin Sorting Assistant Table */
.search-box {
    margin-bottom: 16px;
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.guide-item .item-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile First & Responsive Design Suite */
@media (max-width: 640px) {
    .app-container {
        padding: 12px 10px;
    }

    /* Header Mobile Adjustments */
    header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    #header-weather-widget {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    /* Street Sign Mobile Scaling */
    .street-sign-title {
        font-size: 1.8rem;
    }

    .street-sign-stripe {
        font-size: 0.9rem;
        padding: 3px 12px 3px 0;
    }

    .street-sign-text {
        padding: 8px 12px 4px 12px;
    }

    /* Spotlights & Cards */
    .trash-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .spotlight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .countdown-badge {
        align-self: flex-start;
    }

    /* Timeline Mobile Stacking */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .timeline-left {
        width: 100%;
        justify-content: flex-start;
    }

    .timeline-bins-pills {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Property Grid Mobile */
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .property-stat-box:nth-child(3) {
        grid-column: span 2;
    }

    .property-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .property-header button {
        width: 100%;
    }

    .property-alerts-box {
        flex-direction: column;
        align-items: stretch;
    }

    .property-actions {
        flex-direction: column;
        width: 100%;
    }

    .property-actions button,
    .property-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .quick-tools {
        grid-template-columns: 1fr;
    }

    /* Mobile Touch Friendly Modal Styling */
    .modal-overlay {
        padding: 12px;
    }

    .modal-content {
        max-width: 95vw;
        padding: 18px 16px;
        border-radius: var(--radius-md);
        max-height: 88vh;
    }
}

@media (max-width: 420px) {
    .street-sign-title {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .street-sign-sub {
        font-size: 0.65rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .property-stat-box:nth-child(3) {
        grid-column: span 1;
    }

    .bin-card {
        padding: 14px;
    }

    .bin-photo-img {
        width: 100px;
        height: 100px;
    }
}
