/* Drawer root */
#covered-cities.drawer {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 16px rgba(0,0,0,0.12);
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 22px;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.35s ease;
    z-index: 9999;
}

#covered-cities.drawer.visible {
    transform: translateX(0);
    opacity: 1;
}

#covered-cities.drawer.hidden {
    pointer-events: none;
}

/* Header */
#covered-cities .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

#covered-cities .title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

#covered-cities .back-btn {
    background: white;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.15s ease;
    padding: 0;
    line-height: 0;
    border: 1px solid #D9EEF3;
    border-radius: 50%;
    box-shadow: 0px 4px 8px 0px #76777933;
}

#covered-cities .back-btn:hover {
    transform: scale(1.1);
}

/* Info box */
#covered-cities .info-box {
    margin-top: 20px;
    background: #DDF3FF;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#covered-cities .request-btn {
    background: #FF8F6C;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#covered-cities .request-btn:hover {
    background: #ff7c58;
}

/* Search box */
#covered-cities .search-box-container {
    position: relative;
    margin-top: 20px;
    width: 100%;
}

#covered-cities .search-box {
    width: 100%;
    padding: 10px 10px 10px 36px;
    border-radius: 12px;
    border: 1px solid #D9EEF3;
    font-size: 14px;
    outline: none;
    transition: all 0.3 ease;
}

#covered-cities .search-box:focus {
    border-color:#42A8C3;
}

#covered-cities .search-box-container svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Grid & cards */
#covered-cities .cities-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

#covered-cities .city-card {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.45s ease, opacity 0.45s ease;
}

#covered-cities .city-card:hover {
    transform: scale(1.02);
}

#covered-cities .city-card.animate-card {
    opacity: 1;
    transform: translateY(0);
}

#covered-cities .city-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: white;
}

#covered-cities .city-name {
    font-size: 20px;
}

#covered-cities .plan-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: white;
    color: black;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* Skeleton loaders */
#covered-cities .skeleton {
    height: 180px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f5f5f5 50%, #e0e0e0 100%);
    background-size: 200% 100%;
    border-radius: 16px;
    animation: skeleton-loading 1.2s infinite ease-in-out;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile responsive */
@media (max-width: 480px) {
    #covered-cities.drawer {
        width: 100%;
        padding: 16px;
    }

    #covered-cities .cities-grid {
        grid-template-columns: 1fr;
    }

    #covered-cities .city-card {
        height: 200px;
    }
}
