:root {
    /* Color Theme: Green Globe On Moss */
    --primary-color: #9FC131;
    /* Lime Green - Buttons/Actions */
    --secondary-color: #005C53;
    /* Deep Teal - Headings/Icons */
    --accent-color: #DBF227;
    /* Bright Yellow-Green - Highlights/Hovers */
    --dark-color: #042940;
    /* Dark Blue/Navy - Text/Footer */
    --light-color: #f4f9f4;
    /* Very Light Green Tint - Backgrounds */
    --white: #fff;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Fredoka', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--secondary-color);
    /* Deep Teal for text highlights to be readable */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    border-radius: 5px;
    /* Boxed button as requested */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    /* White text on Lime Green */
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    /* Dark text on Bright Yellow-Green */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(159, 193, 49, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-text {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
    color: var(--primary-color);
}

/* Highlighted Nav Button */
.nav-btn-highlight {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(159, 193, 49, 0.4);
    display: inline-block;
    margin-left: 10px;
}

.nav-btn-highlight:hover {
    background-color: var(--accent-color) !important;
    color: var(--dark-color) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(159, 193, 49, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px auto;
    transition: var(--transition);
}

/* Page Header (For subpages) */
.page-header {
    background: linear-gradient(135deg, rgba(4, 41, 64, 0.9), rgba(0, 92, 83, 0.8)), url('https://images.unsplash.com/photo-1513366834032-475471441a46?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-header h1 .highlight {
    color: var(--accent-color);
    /* Bright Yellow-Green */
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Dark overlay using the theme specific dark blue */
    background: linear-gradient(135deg, rgba(4, 41, 64, 0.8), rgba(0, 92, 83, 0.6)), url('https://images.unsplash.com/photo-1513366834032-475471441a46?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    width: 50%;
    padding-left: 10%;
    color: var(--white);
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--accent-color);
    /* Bright Yellow-Green pop on dark background */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
}

.hero-image-container {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding-right: 5%;
}

.hero-tuk-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    object-fit: cover;
}

.hero-tuk-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--light-color);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Services */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Detailed Tour Rows (New Design) */
.detailed-tours .tour-row {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detailed-tours .tour-row.reverse {
    flex-direction: row-reverse;
}

.tour-image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tour-details {
    flex: 1.2;
}

.tour-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tour-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tour-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #666;
    background: #f4f9f4;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.tour-meta i {
    color: var(--primary-color);
}

.tour-desc {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.tour-highlights {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.tour-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.tour-highlights i {
    color: var(--primary-color);
    margin-top: 5px;
}

.tour-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pay-btn {
    border-color: var(--dark-color);
    color: var(--dark-color);
}

.pay-btn:hover {
    background-color: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

@media (max-width: 900px) {

    .detailed-tours .tour-row,
    .detailed-tours .tour-row.reverse {
        flex-direction: column;
    }

    .tour-image {
        width: 100%;
        height: 300px;
    }
}

.service-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background: var(--white);
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Specific Tour Images */
.detailed-tours .town-run {
    background-image: url('assets/images/Alfama.jpg');
}

.detailed-tours .beach-tour {
    background-image: url('assets/images/Belem.jpg');
}

.detailed-tours .sunset-cruise {
    background-image: url('assets/images/Sunset.jpg');
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.price {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Gallery */
.gallery {
    padding: 80px 0;
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Responsive grid */
    gap: 15px;
    padding-bottom: 50px;
}

.gallery-item {
    height: 250px;
    /* Fixed height for uniformity */
    background-color: #ddd;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.item-1 {
    grid-column: span 2;
    /* Main feature image */
    grid-row: span 2;
    height: 515px;
    /* Adjust based on gap */
}

@media (max-width: 768px) {
    .item-1 {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

/* Contact */
.contact {
    padding: 100px 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), var(--secondary-color);
    color: var(--white);
}

.contact-box {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: var(--dark-color);
}

.contact-info {
    flex: 1;
    padding: 50px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-list {
    margin: 30px 0;
}

.info-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
}

.booking-form {
    flex: 1.5;
    padding: 50px;
}

.booking-form h3 {
    margin-bottom: 30px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.location-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.location-link:hover {
    color: var(--secondary-color);
}

.mini-map-container {
    margin-top: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
}

.booking-form .btn-block {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
}

.booking-form .btn-block:hover {
    background-color: var(--secondary-color);
}

/* Scrolling Reviews */
.reviews-section {
    background: var(--light-color);
    padding: 60px 0;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.review-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-stars {
    color: #FFD700;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 10px;
    color: #555;
}

.review-author {
    font-weight: bold;
    color: var(--secondary-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Google Reviews Section (Book Page) */
.google-reviews {
    padding: 60px 0;
    background: #fff;
}

.reviews-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.review-summary {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: #fff;
    padding: 20px;
    /* No border/shadow for summary to match clean look, or minimal */
}

.brand-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mini-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-row h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.stars-gold {
    color: #FFD700;
    /* Google Gold */
    font-size: 1rem;
    margin-bottom: 5px;
}

.google-btn {
    width: 100%;
    text-align: center;
    border: 1px solid #ddd;
    color: #444;
    font-weight: 500;
}

.review-cards-scroll {
    flex: 3;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.g-review-card {
    min-width: 280px;
    max-width: 300px;
    background: #f8f9fa;
    /* Light grey background like Google */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

.user-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info h5 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.75rem;
    color: #777;
}

.g-icon {
    width: 20px;
    height: 20px;
    margin-left: auto;
    font-size: 1.2rem;
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.review-body {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-top: 10px;
}

/* Payment Methods */
.payment-methods {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.payment-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.payment-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.payment-badge {
    height: 48px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.payment-badge:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Responsive */
@media (max-width: 900px) {

    .grid-3,
    .contact-box {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1,
    .hero-content p {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        width: 100%;
        padding: 0 20px;
        margin-top: 40px;
    }

    .hero-tuk-image {
        max-width: 100%;
        border-radius: 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 25px;
    }

    .item-1 {
        grid-column: 1 / 3;
    }

    .item-4 {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100%;
        justify-content: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 25px 0;
    }

    /* Mobile Text Adjustments */
    .hero h1 {
        font-size: 2.5rem;
        /* Smaller hero text */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Reviews Section Mobile Optimization */
    .reviews-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .review-summary {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .brand-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mini-logo {
        width: 80px;
        height: 80px;
    }

    .review-cards-scroll {
        width: 100%;
        padding: 0 10px;
        gap: 15px;
    }

    .g-review-card {
        min-width: 260px;
        max-width: 280px;
    }

    .google-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .container {
        padding: 0 15px;
        /* Ensure padding on small screens */
    }

    /* Better Mobile Menu Links */
    .nav-link {
        font-size: 1.2rem;
        display: block;
        margin: 15px 0;
    }

    /* Make Book Now stand out in mobile menu */
    .nav-menu .btn-primary {
        margin-top: 10px;
        display: inline-block;
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: center;
    justify-content: flex-start;
    margin-left: 20px;
    /* Shift left to align better with buttons */
}

.badge-item {
    height: 140px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    object-fit: contain;
}

.badge-item.tripadvisor {
    height: 120px;
    /* Smaller than GetYourGuide */
}

.badge-item:hover {
    transform: translateY(-15px) scale(1.1);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
}

@media (max-width: 900px) {
    .trust-badges {
        justify-content: center;
        margin-top: 30px;
        flex-wrap: wrap;
        gap: 20px;
        margin-left: 0;
    }

    .badge-item {
        height: 110px;
    }

    .badge-item.tripadvisor {
        height: 100px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: var(--dark-color);
    color: var(--white);
    padding: 20px 0;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    font-size: 0.95rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner p {
        margin-bottom: 15px;
    }
}