/* ==================== DESTINATIONS PAGE STYLES ==================== */

/* ==================== MAIN DESTINATIONS PAGE ==================== */
.destinations-page,
.destinations {
    padding: 80px 0;
    background-color: #fff;
}

/* ==================== CATEGORIES ==================== */
.destinations-categories {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.category-tab {
    background-color: #f5f5f5;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-tab.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(11, 37, 69, 0.3);
}

/* ==================== DESTINATIONS GRID ==================== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.animated-grid {
    min-height: 400px;
}

.animated-grid .destination-card {
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.animated-grid .destination-card.visible {
    animation: fadeInUp 0.4s ease forwards;
}

/* Staggered animation delays */
.animated-grid .destination-card:nth-child(1) { animation-delay: 0.05s; }
.animated-grid .destination-card:nth-child(2) { animation-delay: 0.1s; }
.animated-grid .destination-card:nth-child(3) { animation-delay: 0.15s; }
.animated-grid .destination-card:nth-child(4) { animation-delay: 0.2s; }
.animated-grid .destination-card:nth-child(5) { animation-delay: 0.25s; }
.animated-grid .destination-card:nth-child(6) { animation-delay: 0.3s; }
.animated-grid .destination-card:nth-child(7) { animation-delay: 0.35s; }
.animated-grid .destination-card:nth-child(8) { animation-delay: 0.4s; }
.animated-grid .destination-card:nth-child(9) { animation-delay: 0.45s; }
.animated-grid .destination-card:nth-child(10) { animation-delay: 0.5s; }

/* ==================== DESTINATION CARDS ==================== */
.destination-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.destination-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.destination-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.7s ease;
}

.destination-card:hover .destination-image img {
    transform: scale(1.15);
}

.destination-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.destination-details h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    text-align: center;
}

.destination-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.destination-details p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    min-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.destination-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 14px;
    color: #777;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.destination-meta span {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.destination-meta span:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.destination-meta span i {
    margin-left: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

.destination-details .btn {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.3);
    border: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 52px;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
}

.destination-details .btn::after {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.destination-details .btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.4);
}

.destination-details .btn:hover::after {
    transform: translateX(-4px);
}

/* ==================== CALL TO ACTION SECTION ==================== */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.9), rgba(7, 19, 48, 0.8)), url('../../images/pages/about/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.01em;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-section .btn {
    padding: 14px 28px; /* Reduced for better proportion */
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 150px; /* Reduced minimum width */
    max-width: 280px; /* Prevent buttons from being too wide */
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap; /* Prevent text wrapping */
}

.cta-section .hero-btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f1c40f 100%);
    color: var(--dark-color);
    border-color: var(--secondary-color);
}

.cta-section .hero-btn-primary:hover {
    background: linear-gradient(135deg, #f1c40f 0%, var(--secondary-color) 100%);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: var(--primary-color);
}

.cta-section .hero-btn-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.cta-section .hero-btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.4);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
}

@media (max-width: 768px) {
    .destinations-page,
    .destinations {
        padding: 60px 0;
}

    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .destination-image {
        min-height: 180px;
    }
    
    .destination-details {
        padding: 20px;
        min-height: 240px;
    }
    
    .destination-details h3 {
        font-size: 20px;
    }
    
    .destination-details .btn {
        padding: 12px 0;
        font-size: 15px;
        height: 48px;
    }
    
    .category-tabs {
        gap: 12px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .category-tabs::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to right, transparent, #ffffff);
        pointer-events: none;
        z-index: 1;
    }
    
    .category-tab {
        padding: 12px 20px;
        font-size: 14px;
        min-width: max-content;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cta-section {
        padding: 50px 0;
        background-attachment: scroll;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        gap: 12px;
        flex-direction: column;
    }
    
    .cta-section .btn {
        padding: 12px 20px; /* Reduced for better proportion */
        font-size: 15px;
        min-width: 120px; /* Reduced minimum width */
        max-width: 220px; /* Prevent buttons from being too wide */
        white-space: nowrap; /* Prevent text wrapping */
    }
}

@media (max-width: 576px) {
    .destinations-page,
    .destinations {
        padding: 40px 0;
    }
    
    .destination-image {
        min-height: 160px;
    }
    
    .destination-details {
        padding: 15px;
        min-height: 220px;
    }
    
    .destination-details .btn {
        padding: 10px 0;
        font-size: 14px;
        height: 44px;
    }
    
    .category-tabs {
        gap: 10px;
        padding: 0 15px;
    }
    
    .category-tabs::after {
        width: 25px;
        background: linear-gradient(to right, transparent, #ffffff);
    }
    
    .category-tab {
        padding: 10px 16px;
        font-size: 13px;
        min-width: max-content;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-section .btn {
        padding: 10px 18px; /* Reduced for better proportion */
        font-size: 14px;
        min-width: 100px; /* Smaller minimum for very small screens */
        max-width: 180px; /* Prevent buttons from being too wide */
        white-space: nowrap; /* Prevent text wrapping */
    }
}

 