/* Hero Section */
.hero-destination {
    color: white;
    text-align: center;
    padding: 160px 20px 120px;
    position: relative;
    overflow: hidden;
}

.hero-destination::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    animation: slideDown 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 0.95;
    }
}

/* Filter Section */
.filter-section {
    padding: 40px 0 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.filter-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6b7280;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Destinations Section */
.destinations-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.destination-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    transform: translateY(0);
}

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

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-location {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fbbf24;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Sample destinations data */
.destinations-grid {
    animation: staggerFadeIn 0.6s ease-out;
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.destination-card:nth-child(1) {
    animation-delay: 0.1s;
}

.destination-card:nth-child(2) {
    animation-delay: 0.2s;
}

.destination-card:nth-child(3) {
    animation-delay: 0.3s;
}

.destination-card:nth-child(4) {
    animation-delay: 0.4s;
}

.destination-card:nth-child(5) {
    animation-delay: 0.5s;
}

.destination-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        border-radius: 20px;
    }

    .search-input {
        text-align: center;
    }
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 50px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Destinations List Section */
.destinations-section {
    padding: 40px 20px;
}

.destinations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* spacing between list items */
}

.destination-card-vertical {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    border-radius: 15px;
    background: var(--cultured);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.destination-card-vertical:hover {
    transform: translateY(-5px);
}

.destination-card-vertical .card-image {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
}

.destination-card-vertical .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-card-vertical .card-content {
    flex: 1;
}

.destination-card-vertical .card-title {
    font-size: var(--fs-3);
    font-weight: var(--fw-700);
    margin: 5px 0;
}

.destination-card-vertical .location {
    display: block;
    color: var(--bright-navy-blue);
    font-size: var(--fs-6);
    margin-bottom: 5px;
}

.destination-card-vertical .rating {
    margin-top: 10px;
    color: gold;
    font-size: 16px;
}

.hero-destination {
    background: var(--bright-navy-blue);
    color: var(--white);
    text-align: center;
    padding: 160px 20px 100px;
    /* pushes text below navbar */
    position: relative;
}

.hero-destination .hero-title {
    font-size: 42px;
    font-weight: var(--fw-800);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-destination .hero-subtitle {
    font-size: 18px;
    font-weight: var(--fw-500);
    opacity: 0.95;
}

.destination-gallery {
    margin: 20px 0;
}

.destination-gallery img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}