/* ==========================================================================
   horairedechetterie.fr — Custom CSS
   Design: Nature-inspired, conversion-optimized, mobile-first
   ========================================================================== */

:root {
    --color-primary: #2D6A4F;
    --color-primary-light: #52B788;
    --color-primary-subtle: #D8F3DC;
    --color-cta: #E63946;
    --color-cta-hover: #C1121F;
    --color-cta-glow: rgba(230, 57, 70, 0.35);
    --color-bg: #F8F9FA;
    --color-bg-warm: #FFF8F0;
    --color-dark: #1B2A21;
    --color-text: #343A40;
    --color-muted: #6C757D;
    --color-border: #DEE2E6;
    --color-white: #FFFFFF;
    --color-star: #F4B740;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Base */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-primary-light);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
    z-index: 1030;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-dark) !important;
    font-weight: 400;
}
.navbar-brand strong {
    font-weight: 700;
}
.navbar-brand .brand-icon {
    flex-shrink: 0;
}
.nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.nav-link:hover {
    background: var(--color-bg);
    color: var(--color-primary) !important;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb-nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0.6rem 0;
}
.breadcrumb {
    font-size: 0.82rem;
    background: transparent;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--color-muted);
}
.breadcrumb-item a {
    color: var(--color-muted);
}
.breadcrumb-item a:hover {
    color: var(--color-primary);
}
.breadcrumb-item.active {
    color: var(--color-dark);
    font-weight: 500;
}

/* ==========================================================================
   HERO SECTION (Homepage)
   ========================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1B4332 100%);
    padding: 4rem 0 5rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(82, 183, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(216, 243, 220, 0.15) 0%, transparent 40%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.hero-title .text-accent {
    color: var(--color-primary-light);
}
.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Search Box */
.search-wrapper {
    max-width: 560px;
}
.search-box {
    position: relative;
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
    z-index: 2;
}
.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(82,183,136,0.2);
}
.search-input::placeholder {
    color: var(--color-muted);
}
.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}
.search-results.active {
    display: block;
}
.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
    transition: background 0.15s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover,
.search-result-item.active {
    background: var(--color-primary-subtle);
}
.search-result-name {
    font-weight: 500;
    color: var(--color-dark);
}
.search-result-cp {
    color: var(--color-muted);
    font-size: 0.85rem;
}
.search-result-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-weight: 500;
    white-space: nowrap;
}

/* Sidebar search */
.search-input-sidebar {
    border-radius: 50px;
    padding-left: 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */
.btn-cta {
    background: var(--color-cta);
    color: var(--color-white) !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--color-cta-glow);
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn-cta svg {
    animation: phone-ring 1.5s ease-in-out infinite;
}
.btn-cta:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-cta-glow);
}
.btn-cta:hover svg {
    animation: phone-ring 0.4s ease-in-out infinite;
}
@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-12deg); }
    20% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}
.btn-cta:active {
    transform: translateY(0);
}
.btn-cta.btn-sm {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
}
.cta-phone-wrapper.inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* SVA display (phone result with overlay) */
.sva-display {
    margin-top: 0.75rem;
    animation: fadeInUp 0.3s ease;
}
.sva-link {
    text-decoration: none;
    display: inline-block;
}
.sva-overlay {
    position: relative;
    display: inline-block;
}
.sva-img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}
.sva-number {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 60%;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
    pointer-events: none;
}
/* SVA inside dech cards and inline wrappers */
.dech-card-body .sva-img,
.cta-phone-wrapper.inline .sva-img {
    width: 220px;
}
.dech-card-body .sva-number,
.cta-phone-wrapper.inline .sva-number {
    font-size: 0.78rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.sticky-cta-mobile .sva-img {
    width: 260px;
    margin: 0.5rem auto 0;
}
.sva-code {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.3rem;
}
.sva-error {
    text-align: center;
    padding: 0.75rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}
@media (max-width: 400px) {
    .sva-number {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   DEPARTEMENTS GRID (Homepage)
   ========================================================================== */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
}
.dept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    height: 100%;
}
.dept-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.dept-code {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.dept-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.2;
}
.dept-count {
    font-size: 0.72rem;
    color: var(--color-muted);
}
.dept-section {
    background: var(--color-bg);
}

/* ==========================================================================
   DECHETTERIE DETAIL PAGE
   ========================================================================== */
.page-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}
.page-title small {
    font-weight: 400;
    font-size: 0.6em;
}
.dech-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}
.dech-address {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Info sections */
.info-section-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary-subtle);
}
.info-section-title svg {
    color: var(--color-primary);
    flex-shrink: 0;
}
.info-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.info-card .table {
    margin-bottom: 0;
}
.info-card .table td {
    padding: 0.5rem 0.75rem;
    border-color: var(--color-border);
    vertical-align: middle;
}
.info-card .table td:first-child {
    width: 40%;
    font-size: 0.88rem;
}

/* Today's date bar */
.today-date-bar {
    background: var(--color-primary);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    padding: 0.35rem 0;
    text-align: center;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* Horaires table */
.table-horaires {
    border-collapse: separate;
    border-spacing: 0;
}
.table-horaires .horaire-row td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}
.table-horaires .horaire-row:last-child td {
    border-bottom: none;
}
.horaire-jour {
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    width: 35%;
}
.horaire-heures {
    color: var(--color-text);
}
.horaire-note {
    color: var(--color-muted);
    font-style: italic;
    font-size: 0.85rem;
}
.horaire-row.horaire-today {
    background: var(--color-primary-subtle);
}
.horaire-row.horaire-today .horaire-jour {
    color: var(--color-primary);
}

/* Horaires status badge */
.horaire-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.horaire-open {
    background: #D1FAE5;
    color: #065F46;
}
.horaire-closed {
    background: #FEE2E2;
    color: #991B1B;
}
.horaire-disclaimer {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

/* Weekly day dots */
.horaire-semaine {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.semaine-jour {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 36px;
}
.semaine-jour-nom {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 0.04em;
}
.semaine-today .semaine-jour-nom {
    color: var(--color-primary);
    font-weight: 700;
}
.semaine-jour-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-open {
    background: var(--color-primary-light);
}
.dot-closed {
    background: var(--color-border);
}
.semaine-today .dot-open {
    background: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}
.semaine-today .dot-closed {
    background: #EF4444;
    box-shadow: 0 0 0 3px #FEE2E2;
}
.semaine-ferme .semaine-jour-nom {
    color: var(--color-border);
}

/* Refused waste tags */
.waste-tags-refused .waste-tag {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

/* Déchetterie map */
.dech-map {
    height: 300px;
    width: 100%;
    border-radius: var(--radius-md);
}
.dech-marker {
    background: none;
    border: none;
}

/* Waste tags */
.waste-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.waste-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s;
}
.waste-tag svg {
    flex-shrink: 0;
    opacity: 0.8;
}
.waste-tag:hover {
    background: var(--color-primary-light);
    color: white;
}
.waste-tag:hover svg {
    opacity: 1;
}

/* Nearby list */
.nearby-list {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.nearby-item {
    display: block;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
    text-decoration: none;
    color: var(--color-text);
}
.nearby-item:last-child {
    border-bottom: none;
}
.nearby-item:hover {
    background: var(--color-primary-subtle);
    color: var(--color-text);
}

/* Stat badges */
.stat-badge {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
}
.stat-badge strong {
    color: var(--color-primary);
}

/* ==========================================================================
   DECHETTERIE CARDS (listings)
   ========================================================================== */
.dech-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.dech-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}
.dech-card-body {
    padding: 1.25rem;
}
.dech-card-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.dech-card-title a {
    color: var(--color-dark);
}
.dech-card-title a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   STAR RATINGS
   ========================================================================== */
.kk-star-ratings {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.kksr-stars {
    position: relative;
    display: inline-flex;
    height: 20px;
    overflow: hidden;
}
.kksr-stars-inactive {
    display: flex;
    gap: 2px;
}
.kksr-stars-active {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 2px;
    overflow: hidden;
    white-space: nowrap;
}
.star-svg {
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.star-svg:hover {
    transform: scale(1.2);
}
.kksr-legend {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}
.sidebar-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.sidebar-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}
.sidebar-cta {
    background: linear-gradient(135deg, #FFF5F2 0%, var(--color-white) 100%);
    border-color: rgba(231, 111, 81, 0.2);
}

/* ==========================================================================
   STICKY MOBILE CTA
   ========================================================================== */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 0.6rem 1rem;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1040;
}
.sticky-cta-mobile .btn-cta {
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    justify-content: center;
}
.sticky-cta-mobile .sva {
    text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 1.2rem 0;
    margin-top: 4rem;
}
.site-footer h5 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.site-footer a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--color-primary-light);
}
.site-footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 1.5rem 0;
}
.dept-links {
    column-count: 2;
    column-gap: 1rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 0.15rem;
    color: var(--color-primary);
    border-color: var(--color-border);
    font-size: 0.9rem;
}
.pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert-info {
    background: var(--color-primary-subtle);
    border-color: var(--color-primary-light);
    color: var(--color-dark);
    border-radius: var(--radius-md);
}

/* ==========================================================================
   AD SLOTS
   ========================================================================== */
.ad-slot {
    min-height: 90px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dech-detail,
.commune-detail,
.dept-detail {
    animation: fadeInUp 0.4s ease;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }
    /* Add padding bottom for sticky CTA */
    body {
        padding-bottom: 70px;
    }
}
@media (max-width: 575px) {
    .hero-section {
        padding: 2.5rem 0 3rem;
    }
    .search-input {
        padding: 0.85rem 0.85rem 0.85rem 2.5rem;
        font-size: 0.95rem;
    }
    .dept-card {
        padding: 0.75rem 0.3rem;
    }
    .dept-code {
        font-size: 1.2rem;
    }
    .dept-name {
        font-size: 0.75rem;
    }
    .info-card {
        padding: 1rem;
    }
}

/* ==========================================================================
   BUTTON OUTLINES
   ========================================================================== */
.btn-outline-primary {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
}
.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}
.btn-outline-primary:active {
    transform: translateY(0);
}
.btn-outline-primary.btn-sm {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
}

/* ==========================================================================
   France Map + Top Communes
   ========================================================================== */
.map-communes-section {
    background: var(--color-bg-alt, #f8f9fa);
}
.france-map {
    max-width: 500px;
    margin: 0 auto;
}
.france-map svg {
    width: 100%;
    height: auto;
}
.top-communes-list {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    max-height: 580px;
    overflow-y: auto;
}
.top-commune-item {
    display: block;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}
.top-commune-item:last-child {
    border-bottom: none;
}
.top-commune-item:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.intro-section p {
    font-size: 1.05rem;
    line-height: 1.7;
}
@media (max-width: 576px) {
    .france-map {
        max-width: 100%;
    }
}

/* Footer suggestion link */
.footer-suggest-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-suggest-link:hover { opacity: 1; }

/* Suggestion dechetterie search */
.suggest-dech-results {
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 2rem);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.suggest-dech-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.15s;
}
.suggest-dech-item:hover { background: var(--color-primary-subtle); }
.suggest-current-dech .badge { font-size: 0.85rem; }

/* Suggestion modal */
#suggestionModal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}
#suggestionModal .modal-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
}
#suggestionModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.25rem;
}

/* Suggestion form */
.suggestion-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 0.75rem;
}
.suggestion-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

/* Tabs */
.suggest-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0;
}
.suggest-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.suggest-tab:hover { color: var(--color-primary); }
.suggest-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.suggest-tab-content { display: none; }
.suggest-tab-content.active { display: block; }

/* Schedule grid */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.schedule-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.2s;
}
.schedule-row:hover { border-color: var(--color-primary-light); }
.schedule-day {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 110px;
    cursor: pointer;
    margin: 0;
}
.schedule-day-name {
    font-weight: 500;
    font-size: 0.875rem;
}
.schedule-check {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}
.schedule-slots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    transition: opacity 0.2s;
}
.schedule-slot {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.schedule-time {
    width: 90px;
    padding: 0.25rem 0.4rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.82rem;
    background: #fff;
    text-align: center;
}
.schedule-time:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.15);
}
.schedule-sep {
    color: #adb5bd;
    font-size: 0.8rem;
}
.btn-add-slot {
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.btn-add-slot:hover {
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

/* Waste chips */
.waste-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.waste-chip {
    cursor: pointer;
    margin: 0;
}
.waste-chip input { display: none; }
.waste-chip-label {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #495057;
    background: #fff;
    transition: all 0.15s;
    user-select: none;
}
.waste-chip-label:hover {
    border-color: var(--color-primary-light);
    background: var(--color-primary-subtle);
}
.waste-chip input:checked + .waste-chip-label {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 576px) {
    .schedule-day { min-width: 90px; }
    .schedule-time { width: 75px; font-size: 0.78rem; }
    .schedule-slots { gap: 0.3rem; }
    .schedule-slot { gap: 0.15rem; }
}
