/**
 * Modern Destinations Section Styles
 * Enhances destination presentation with modern design and interactivity
 */

/* ===============================
   1. Destinations Section Structure
   =============================== */
.modern-destinations-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.modern-destinations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 104, 26, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 104, 26, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 104, 26, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.destinations-container {
    position: relative;
    z-index: 1;
}

/* ===============================
   2. Enhanced Title Area
   =============================== */
.modern-destinations-header {
    position: relative;
    margin-bottom: 3.5rem;
    text-align: center;
}

.destinations-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 104, 26, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 104, 26, 0.2);
}

.destinations-badge i {
    color: #FF681A;
    font-size: 1.1rem;
}

.destinations-badge .sec-subtitle {
    color: #FF681A;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.95rem;
    margin: 0;
}

.destinations-main-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    color: #2c3e50;
}

.destinations-gradient-text {
    background: linear-gradient(135deg, #FF681A 0%, #ff8a4c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.destinations-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ===============================
   3. Filter Tabs for Destinations
   =============================== */
.destinations-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.destination-filter-btn {
    background: white;
    border: 2px solid rgba(255, 104, 26, 0.2);
    color: #555;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.destination-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.destination-filter-btn:hover::before {
    left: 100%;
}

.destination-filter-btn:hover {
    background: rgba(255, 104, 26, 0.1);
    color: #FF681A;
    border-color: #FF681A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 104, 26, 0.25);
}

.destination-filter-btn.active {
    background: #FF681A;
    color: white;
    border-color: #FF681A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 104, 26, 0.4);
}

/* ===============================
   4. Enhanced Destination Cards
   =============================== */
.modern-destination-grid {
    position: relative;
    z-index: 1;
}

.destination-item {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.destination-item:nth-child(1) { animation-delay: 0.1s; }
.destination-item:nth-child(2) { animation-delay: 0.2s; }
.destination-item:nth-child(3) { animation-delay: 0.3s; }
.destination-item:nth-child(4) { animation-delay: 0.4s; }

.destination-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 104, 26, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.destination-card:hover::before {
    opacity: 1;
}

.destination-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 104, 26, 0.3);
}

/* ===============================
   5. Destination Image Container
   =============================== */
.destination-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.1) rotate(2deg);
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.destination-card:hover .destination-overlay {
    opacity: 1;
}

.destination-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.destination-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #FF681A;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 104, 26, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.destination-card:hover .destination-tag {
    transform: translateY(0);
    opacity: 1;
}

.destination-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.destination-card:hover .destination-actions {
    transform: translateX(0);
    opacity: 1;
}

.destination-action-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #FF681A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.destination-action-btn:hover {
    background: #FF681A;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 104, 26, 0.4);
}

/* ===============================
   6. Destination Content
   =============================== */
.destination-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 200px;
    justify-content: space-between;
}

.destination-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.destination-location i {
    color: #FF681A;
    font-size: 0.9rem;
}

.destination-name {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.destination-card:hover .destination-name {
    color: #FF681A;
}

.destination-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.destination-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.destination-stats {
    display: flex;
    gap: 1rem;
}

.destination-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #777;
    font-size: 0.8rem;
}

.destination-stat i {
    color: #FF681A;
    font-size: 0.9rem;
}

.destination-price {
    font-weight: 700;
    color: #FF681A;
    font-size: 1.1rem;
}

.destination-price .currency {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===============================
   7. Enhanced Navigation Controls
   =============================== */
.destinations-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.destinations-info {
    flex: 1;
}

.destinations-nav-buttons {
    display: flex;
    gap: 1rem;
}

.destinations-nav-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid rgba(255, 104, 26, 0.2);
    border-radius: 50%;
    color: #FF681A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.destinations-nav-btn:hover {
    background: #FF681A;
    color: white;
    border-color: #FF681A;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 104, 26, 0.3);
}

.destinations-nav-btn:disabled {
    background: #f8f9fa;
    color: #ccc;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===============================
   8. Interactive Elements
   =============================== */
.destination-quickview {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF681A;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 30px rgba(255, 104, 26, 0.4);
}

.destination-card:hover .destination-quickview {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.destination-quickview:hover {
    background: #e55a17;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 104, 26, 0.5);
}

/* ===============================
   9. Load More Section
   =============================== */
.destinations-load-more {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.destinations-load-btn {
    background: linear-gradient(135deg, #FF681A 0%, #e55a17 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 104, 26, 0.3);
}

.destinations-load-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.destinations-load-btn:hover::before {
    left: 100%;
}

.destinations-load-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 104, 26, 0.4);
}

/* ===============================
   10. Animations
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ===============================
   11. Responsive Design
   =============================== */
@media (max-width: 1200px) {
    .destinations-main-title {
        font-size: 2.8rem;
    }
    
    .destination-content {
        padding: 1.8rem;
        height: 180px;
    }
    
    .destination-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .destinations-main-title {
        font-size: 2.4rem;
    }
    
    .destinations-subtitle {
        font-size: 1rem;
    }
    
    .destinations-nav-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .destinations-nav-buttons {
        justify-content: center;
    }
    
    .destination-image-container {
        height: 250px;
    }
    
    .destination-content {
        height: 160px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modern-destinations-header {
        margin-bottom: 2.5rem;
    }
    
    .destinations-main-title {
        font-size: 2rem;
    }
    
    .destinations-filter-tabs {
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .destination-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .destination-image-container {
        height: 220px;
    }
    
    .destination-content {
        padding: 1.2rem;
        height: 140px;
    }
    
    .destination-name {
        font-size: 1.2rem;
    }
    
    .destination-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }
    
    .destination-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .destinations-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .destinations-badge {
        padding: 0.6rem 1.5rem;
    }
    
    .destinations-main-title {
        font-size: 1.6rem;
    }
    
    .destinations-subtitle {
        font-size: 0.95rem;
    }
    
    .destination-item {
        margin-bottom: 20px;
    }
    
    .destination-image-container {
        height: 200px;
    }
    
    .destination-content {
        padding: 1rem;
        height: 120px;
    }
    
    .destination-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .destination-description {
        display: none;
    }
    
    .destination-stats {
        gap: 0.8rem;
    }
    
    .destination-stat {
        font-size: 0.75rem;
    }
    
    .destinations-load-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* ===============================
   12. Special Effects
   =============================== */
.destination-card.featured {
    border: 2px solid rgba(255, 104, 26, 0.3);
    position: relative;
}

.destination-card.featured::after {
    content: '⭐ Featured';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #FF681A 0%, #e55a17 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 104, 26, 0.3);
}

.destination-card.new::before {
    content: 'NEW';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
}

/* Loading states */
.destination-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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