/* Destinations List Premium Styles */

/* 1. Hero Section */
.destinations-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    padding: 160px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: -40px;
    /* Pull content up */
}

.destinations-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/pattern-dot.png');
    opacity: 0.1;
    animation: slideBackground 60s linear infinite;
}

.destinations-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.destinations-hero p {
    font-size: 1.25rem;
    color: var(--primary-100);
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Filter Bar */
.filter-bar-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.filter-bar {
    background: white;
    padding: 12px;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.filter-input-group i {
    color: var(--primary-500);
    margin-right: 12px;
}

.filter-input-group input {
    border: none;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    color: var(--gray-800);
}

.filter-divider {
    width: 1px;
    height: 30px;
    background: var(--gray-200);
}

.filter-select-group {
    flex: 0 0 200px;
    position: relative;
}

.filter-select-group select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    outline: none;
}

/* 3. Grid Layout */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* Optimised width */
    gap: 40px;
    justify-content: center;
    padding-bottom: 60px;
}

/* 4. Premium Card Design */
.destination-card-premium {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 400px;
    /* Taller card */
    display: block;
    text-decoration: none;
}

.destination-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card-premium:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.2) 70%,
            transparent 100%);
    z-index: 1;
}

/* Circular Iconic Badge (like reference) */
.iconic-badge {
    position: absolute;
    top: 50%;
    /* Center initially */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle glass */
    backdrop-filter: blur(2px);
    transition: all 0.5s ease;
}

.destination-card-premium:hover .iconic-badge {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    top: 0;
    left: 0;
    transform: none;
    justify-content: flex-end;
    padding-bottom: 120px;
    /* Push text up */
}

.iconic-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.destination-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

.destination-state {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* Bottom Stats Bar */
.card-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.destination-card-premium:hover .card-stats {
    transform: translateY(0);
}

/* Always show stats in simplified form if users prefer, 
   but for "premium feel" hover reveal is nice. 
   Let's keep hover reveal for desktop, static for mobile. */

.stat-item {
    color: white;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

.stat-value {
    font-weight: 600;
}

.badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .destinations-hero {
        padding: 120px 0 80px;
    }

    .destinations-hero h1 {
        font-size: 2.2rem;
    }

    .filter-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 16px;
        gap: 0;
    }

    .filter-input-group {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
        padding: 0 0 12px;
        margin-bottom: 12px;
    }

    .filter-divider {
        display: none;
    }

    .filter-select-group {
        width: 100%;
        flex: none;
    }

    .filter-select-group select {
        padding: 12px 0;
    }

    /* Card Mobile State - Always show stats */
    .iconic-badge {
        width: 100%;
        height: 100%;
        border: none;
        background: transparent;
        backdrop-filter: none;
        top: 0;
        left: 0;
        transform: none;
        justify-content: flex-end;
        padding-bottom: 90px;
    }

    .card-stats {
        transform: translateY(0);
        padding: 16px;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 60px;
    }
}