* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo span {
    color: #3b82f6;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 16px;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    width: 150px;
    background: transparent;
}

.search-box i {
    color: #94a3b8;
}

.search-box:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.view-icons {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.view-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.view-btn:hover, .view-btn.active {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.filter-btn {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #f8fafc;
}

.filter-btn.active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 180px 20px 80px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 50%, #e0e7ff 100%);
    position: relative;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Section */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Card */
/* Card entrance animation */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInSlide 0.5s ease forwards;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-img-container:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.card-img-container:hover .play-overlay i {
    transform: scale(1);
}

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

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
}

.city-tag {
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.location-name {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
}

.view-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.view-link:hover {
    color: #2563eb;
}

.view-link i {
    transition: transform 0.2s;
}

.view-link:hover i {
    transform: translateX(4px);
}

/* List View Override */
.tours-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tours-grid.list-view .card {
    flex-direction: row;
    height: 120px;
    align-items: stretch;
}

.tours-grid.list-view .card-img-container {
    height: 100%;
    width: 240px;
    flex-shrink: 0;
}

.tours-grid.list-view .card-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.tours-grid.list-view .card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tours-grid.list-view .location-name {
    margin-bottom: 0;
    font-size: 22px;
}

.tours-grid.list-view .view-link {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .filters {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tours-grid.list-view .card {
        flex-direction: column;
        height: auto;
    }
    
    .tours-grid.list-view .card-img-container {
        width: 100%;
        height: 220px;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ef4444;
}

/* --- SKELETON LOADER --- */
.skeleton {
    pointer-events: none;
    animation: none;
    opacity: 1;
}

.skeleton-text {
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-tag { width: 40%; height: 12px; }
.skeleton-title { width: 80%; height: 24px; margin-top: 4px; }
.skeleton-link { width: 50%; height: 16px; margin-top: auto; }

/* Shimmer animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton-img, .skeleton-text {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%; 
    animation-duration: 1.5s;
    animation-fill-mode: forwards; 
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
}

/* CSS View Transitions Customization */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.4s;
}
