 :root {
    --brand-blue: #003a8f;
    --brand-red: #e60023;
    --brand-yellow: #ffcc00;
    --text-dark: #222;
}

#tours {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(to bottom, #f3f6ff, #ffffff);
    text-align: center;
    overflow: hidden;
}

/* Background floating particles */
.grid-bg-particles span {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--size);
    height: var(--size);
    background: rgba(255, 204, 0, 0.15);
    border-radius: 50%;
    animation: floatBg 12s var(--delay) infinite ease-in-out;
}
@keyframes floatBg {
    0% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-60px) scale(1.2); opacity: 0.5; }
    100% { transform: translateY(0) scale(1); opacity: 0.3; }
}

/* Floating light overlay */
.grid-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
    z-index: 0;
}
.grid-overlay span {
    position: absolute; top: var(--y); left: var(--x);
    width: var(--size); height: var(--size);
    background: rgba(255,255,255,0.15);
    border-radius: 50%; filter: blur(3px);
    animation: floatOverlay 12s var(--delay) infinite ease-in-out;
}
@keyframes floatOverlay {
    0% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-50px) scale(1.2); opacity: 0.6; }
    100% { transform: translateY(0) scale(1); opacity: 0.3; }
}

/* Heading */
#tours h2 {
    font-size: 38px; color: var(--brand-blue); margin-bottom: 60px; position: relative;
}
#tours h2::after {
    content: ''; display: block; width: 60px; height: 4px; background: var(--brand-red);
    margin: 15px auto 0; border-radius: 2px;
}

/* Grid */
#tours .grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
    max-width: 1200px; margin: auto; position: relative; z-index: 1;
}

/* Card */
#tours .card {
    position: relative; background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#tours .card:hover {
    transform: translateY(-12px); box-shadow: 0 45px 90px rgba(0,0,0,0.12);
}

/* Card Image */
.card-img { position: relative; width: 100%; height: 250px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.2), transparent); pointer-events: none; }

/* Badge */
.card-img .badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--brand-yellow); color: var(--brand-blue);
    font-weight: 600; padding: 5px 12px; border-radius: 12px; font-size: 12px; z-index: 2;
}

/* Particle on card */
.card-img .particle {
    position: absolute; top: var(--y); left: var(--x);
    width: var(--size); height: var(--size);
    background: rgba(255,204,0,0.7); border-radius: 50%;
    animation: floatUp 4s var(--delay) infinite ease-in-out;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

/* Card content */
.card-content { padding: 25px 20px; text-align: left; }
.card-content h3 { color: var(--brand-blue); font-size: 22px; margin-bottom: 12px; }
.card-content .rating {
    color: var(--brand-yellow); font-size: 16px; margin-bottom: 12px; display: inline-block;
    position: relative;
}
.card-content .rating::after {
    content: '★'; position: absolute; right: -20px; top: 0;
    color: var(--brand-yellow); opacity: 0.5; animation: starGlow 1.5s infinite alternate;
}
@keyframes starGlow {
    0% { text-shadow: 0 0 2px #fff, 0 0 4px #ffd700; opacity: 0.5; }
    100% { text-shadow: 0 0 6px #fff, 0 0 12px #ffd700; opacity: 1; }
}
.card-content p { color: var(--text-dark); font-size: 15px; margin-bottom: 8px; }
.card-content p strong { color: var(--brand-red); }

/* Button */
.card-content .btn {
    display: inline-block; padding: 12px 25px;
    background: var(--brand-red); color: #fff; border-radius: 5px;
    text-decoration: none; transition: all 0.3s ease;
}
.card-content .btn:hover {
    transform: scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Mobile: 1 card per row */
@media (max-width: 900px) {
    #tours .grid { grid-template-columns: 1fr; gap: 30px; }
    #tours .card-img { height: 220px; }
    #tours h2 { font-size: 30px; }
}
