/**
 * Destinations Page Stylesheet
 * Specific styles for the destinations listing page
 */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(8, 43, 92, 0.9) 0%, rgba(0, 81, 186, 0.8) 100%),
                url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(8, 43, 92, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero Search Box */
.hero-search-box {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.search-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #182033;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-field input,
.search-field select {
    padding: 12px 16px;
    border: 1px solid #E4EAF2;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #182033;
    background-color: #F8F9FA;
    transition: all 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 81, 186, 0.1);
}

.search-btn {
    align-self: flex-end;
    padding: 12px 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 6px 20px rgba(0, 81, 186, 0.3);
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: #F8F9FA;
    padding: 20px 0;
    border-bottom: 1px solid #E4EAF2;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    color: #667085;
}

.breadcrumb-item.active {
    color: #0B5ED7;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #0B5ED7;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Main Content Layout */
.main-content {
    padding: 40px 0;
}

.filter-sidebar {
    background-color: white;
    border: 1px solid #E4EAF2;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E4EAF2;
}

.filter-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #182033;
}

.reset-filters {
    color: #0B5ED7;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reset-filters:hover {
    color: #082B5C;
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E4EAF2;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #182033;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section h6 i {
    font-size: 0.8rem;
    color: #667085;
    transition: transform 0.3s ease;
}

.filter-section h6.collapsed i {
    transform: rotate(-90deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    cursor: pointer;
    accent-color: #0B5ED7;
}

.filter-option label {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #667085;
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.filter-option:hover label {
    color: #182033;
}

.filter-count {
    font-size: 0.8rem;
    color: #667085;
    font-weight: 500;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    font-size: 0.95rem;
    color: #667085;
}

.results-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #E4EAF2;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #182033;
    background-color: white;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 8px;
    border: 1px solid #E4EAF2;
    border-radius: 8px;
    padding: 4px;
}

.view-toggle button {
    background-color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #667085;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.view-toggle button.active {
    background-color: #E4EAF2;
    color: #0B5ED7;
}

.view-toggle button:hover {
    color: #0B5ED7;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .destinations-grid {
        grid-template-columns: 1fr;
    }
}

/* Destination Card */
.destination-card {
    background-color: white;
    border: 1px solid #E4EAF2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.destination-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.destination-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #0B5ED7, #082B5C);
}

.destination-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.05);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(8, 43, 92, 0.9), transparent);
    padding: 16px;
    color: white;
    z-index: 2;
}

.destination-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
}

.badge-popular {
    background-color: rgba(11, 94, 215, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wishlist-btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667085;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background-color: white;
    color: #FF6B6B;
    transform: scale(1.1);
}

.destination-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.destination-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #182033;
    margin-bottom: 4px;
}

.destination-country {
    font-size: 0.85rem;
    color: #667085;
    margin-bottom: 12px;
}

.destination-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 0.8rem;
    color: #FFB020;
}

.review-count {
    color: #667085;
    font-size: 0.85rem;
}

.destination-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B5ED7;
    margin-top: auto;
}

.destination-price-label {
    font-size: 0.75rem;
    color: #667085;
    font-weight: 500;
}

/* List View */
.destination-list-item {
    background-color: white;
    border: 1px solid #E4EAF2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.destination-list-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.destination-list-image {
    width: 200px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.destination-list-info {
    flex: 1;
}

.destination-list-info h5 {
    margin-bottom: 8px;
}

.destination-list-info p {
    font-size: 0.9rem;
    color: #667085;
    margin-bottom: 8px;
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #E4EAF2;
    background-color: white;
    color: #0B5ED7;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-link:hover {
    background-color: #F1F7FF;
    border-color: #0B5ED7;
}

.page-link.active {
    background-color: #0B5ED7;
    color: white;
    border-color: #0B5ED7;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #F1F7FF;
    border-radius: 12px;
}

.empty-state-icon {
    font-size: 3rem;
    color: #0B5ED7;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h4 {
    color: #182033;
    margin-bottom: 8px;
}

.empty-state p {
    color: #667085;
    margin-bottom: 24px;
}

.empty-state-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0B5ED7;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state-btn:hover {
    background-color: #082B5C;
}

/* Trust Section */
.trust-section {
    background-color: #F1F7FF;
    border-radius: 12px;
    padding: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background-color: #0B5ED7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.trust-item h6 {
    font-size: 1rem;
    color: #182033;
    margin: 0;
}

.trust-item p {
    font-size: 0.9rem;
    color: #667085;
    margin: 0;
}

/* Filter Toggle for Mobile */
.filter-toggle {
    display: none;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .filter-toggle {
        display: block;
    }
    
    .filter-sidebar {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        border-radius: 0;
    }
    
    .filter-sidebar.show {
        display: block;
    }
    
    .hero-search-box {
        margin-top: 0;
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-search-box {
        padding: 20px;
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #F1F7FF;
    border-top-color: #0B5ED7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .destination-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .destination-list-image {
        width: 100%;
        height: 200px;
    }
    
    .destination-list-item .text-end {
        border-left: none !important;
        border-top: 1px solid #E4EAF2;
        padding-left: 0 !important;
        padding-top: 15px;
        text-align: left !important;
    }
}
