/* public/css/pages/destinations.css */
/* Destinations Page Styles - Production Ready */

/* ============================================
   Hero Section
   ============================================ */
.destinations-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%), 
                url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ============================================
   Filter Section
   ============================================ */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    border-color: #adb5bd;
}

.filter-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13,110,253,0.3);
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
    pointer-events: none;
}

/* ============================================
   Counties Grid Section
   ============================================ */
.counties-grid-section {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* County Card */
.county-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
}

.county-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.county-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.county-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.county-card:hover .county-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.county-info {
    padding: 1.25rem;
}

.county-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 600;
}

.county-info .capital {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.county-info .description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.county-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0.5rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.county-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-explore {
    display: inline-block;
    width: 100%;
    padding: 0.7rem;
    background: #0d6efd;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-explore:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}

/* ============================================
   Region Map Section
   ============================================ */
.region-map-section {
    padding: 3rem 0;
    background: white;
}

.region-map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #212529;
    font-weight: 600;
}

.region-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.region-stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.region-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.region-stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
    font-weight: 600;
}

.region-stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 0.5rem;
}

.region-stat-card small {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
    display: block;
}

/* ============================================
   Loading and No Results
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
    background: white;
    border-radius: 12px;
}

.no-results i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.no-results p {
    color: #6c757d;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .counties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .destinations-hero {
        min-height: 300px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .filter-section {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .counties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .county-image {
        height: 200px;
    }
    
    .region-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .destinations-hero {
        min-height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .county-image {
        height: 180px;
    }
    
    .county-info {
        padding: 1rem;
    }
    
    .county-info h3 {
        font-size: 1.1rem;
    }
    
    .region-stat-card {
        padding: 1rem;
    }
    
    .region-stat-card p {
        font-size: 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .filter-section,
    .btn-explore,
    .featured-badge {
        display: none;
    }
    
    .county-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .county-image {
        height: 150px;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.filter-btn:focus-visible,
.search-box input:focus-visible,
.btn-explore:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.county-card:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
    transform: translateY(-2px);
}