/* --- Global Styles --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background: #f0f2f5; 
    color: #333; 
    line-height: 1.6;
}

/* --- Navigation --- */
nav { 
    background: #1a1a1a; 
    color: white; 
    padding: 20px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { 
    font-size: 22px; 
    font-weight: bold; 
    letter-spacing: 1px; 
}

.yellow { color: #f1c40f; }

nav ul { 
    list-style: none; 
    display: flex; 
}

nav ul li { margin-left: 20px; }

nav ul li a { 
    color: white; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 500; 
    transition: 0.3s; 
}

nav ul li a:hover, nav ul li a.active { 
    color: #f1c40f; 
    border-bottom: 2px solid #f1c40f; 
    padding-bottom: 5px; 
}

/* --- Hero Section (Home) --- */
.hero { 
    height: 85vh; 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/frountpage.jpg') center/cover no-repeat; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
}

.hero h1 { 
    font-size: clamp(40px, 8vw, 65px); 
    font-weight: 800; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7); 
    text-transform: uppercase;
}

.hero p { 
    font-size: 22px; 
    margin-top: 15px; 
}

.btn-main { 
    display: inline-block; 
    margin-top: 30px; 
    padding: 15px 40px; 
    background: #f1c40f; 
    color: #000; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 50px; 
    transition: 0.3s; 
}

.btn-main:hover { 
    background: #fff; 
    transform: translateY(-3px); 
}

/* --- Tours Section Styles --- */
.tours-header {
    text-align: center;
    padding: 60px 5%;
    background: white;
}

.tours-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.tour-card-new {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.tour-card-new:hover { transform: translateY(-10px); }

.tour-image-box {
    position: relative;
    height: 220px;
}

.tour-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f1c40f;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
}

.tour-content-new { padding: 20px; flex-grow: 1; }

.tour-header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.price-tag {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.2rem;
}

.tour-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-btn {
    background: #1a1a1a;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

/* --- Contact & Booking Shared Heros --- */
.contact-hero, .booking-hero {
    background: #1a1a1a;
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.contact-hero h1, .booking-hero h1 { color: #f1c40f; font-size: 40px; }

/* --- Contact Page --- */
.contact-container { padding: 50px 5%; max-width: 1000px; margin: 0 auto; }

.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: -120px;
}

.contact-item {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item i { font-size: 40px; color: #f1c40f; margin-bottom: 20px; }

.social-links { text-align: center; margin: 50px 0; }
.social-links .icons a { font-size: 30px; color: #1a1a1a; margin: 0 15px; transition: 0.3s; }
.social-links .icons a:hover { color: #f1c40f; }

/* --- Booking Page --- */
.booking-container { padding: 40px 5%; max-width: 1100px; margin: 0 auto; }
.booking-wrapper { display: flex; flex-wrap: wrap; gap: 40px; }
.booking-info-text { flex: 1; min-width: 300px; }
.booking-info-text ul { list-style: none; margin-top: 20px; }
.booking-info-text li { margin-bottom: 15px; font-size: 18px; }
.booking-info-text i { color: #25d366; margin-right: 10px; }

.booking-form-card {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 16px;
}

.btn-whatsapp {
    width: 100%; padding: 15px; background: #25d366; color: white; border: none;
    border-radius: 10px; font-size: 18px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s;
}

.btn-whatsapp:hover { background: #128c7e; transform: scale(1.02); }

/* --- Footer & Common --- */
.welcome-text { padding: 80px 10%; text-align: center; background: white; }

footer { 
    background: #1a1a1a; 
    color: #888; 
    text-align: center; 
    padding: 40px; 
    font-size: 14px; 
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    nav ul li { margin: 0 10px; }
    .contact-card { margin-top: 20px; }
    .booking-wrapper { flex-direction: column; }
    .hero h1 { font-size: 40px; }
}

/* --- Reviews Section --- */
.reviews { padding: 60px 5%; background: #f9f9f9; text-align: center; }
.reviews h2 { margin-bottom: 40px; font-size: 32px; }
.reviews-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.review-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.stars { color: #f1c40f; margin-bottom: 15px; font-size: 20px; }
.review-card p { font-style: italic; color: #555; margin-bottom: 15px; }
.review-card h4 { color: #1a1a1a; }

/* --- Gallery Section --- */
.gallery { padding: 60px 5%; text-align: center; background: white; }
.gallery h2 { margin-bottom: 40px; font-size: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; max-width: 1200px; margin: 0 auto; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; transition: 0.3s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.05); }

/* --- FAQ Section --- */
.faq { padding: 60px 5%; background: #1a1a1a; color: white; text-align: center; }
.faq h2 { margin-bottom: 40px; color: #f1c40f; }
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.faq-item h3 { font-size: 20px; margin-bottom: 10px; color: #f1c40f; }
.faq-item p { color: #ccc; }

/* Mobile Adjustment */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Gallery Design --- */
.gallery {
    padding: 60px 5%;
    background: #ffffff;
    text-align: center;
}

.gallery h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* පින්තූරය නොඇදී කොටුවට සරිලන සේ සකසයි */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05); /* මවුස් එක උඩට ගෙනියන විට පින්තූරය විශාල වේ */
}

/* Mobile එකේදී පේළියට පින්තූර 2 බැගින් පෙන්වීමට */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-grid img {
        height: 150px;
    }
}