/* Component Specific Styles */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px; /* Pill-shaped buttons */
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    /* Direct color for hover, as darken() is SASS/LESS function */
    background-color: #0056b3; /* A darker shade of #007bff */
    border-color: #0056b3;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    /* Direct color for hover */
    background-color: #5a6268; /* A darker shade of #6c757d */
    border-color: #5a6268;
    text-decoration: none;
}

.btn-light {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* Search Toggle Button */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.search-toggle img {
    width: 20px;
    height: 20px;
}

/* Hero Section Specific Overlays */
.hero-slide .overlay {
    background-color: var(--overlay-color);
}

/* --- Crucial Additions/Modifications for Hero Side Content --- */
.side-item {
    position: relative; /* Essential: Allows absolute positioning of children */
    overflow: hidden; /* Important: Hides parts of the image if it's larger than the container */
    display: flex; /* Use flexbox to center content */
    flex-direction: column; /* Stack text/content if any, though here it's just text */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    text-align: center;
    color: var(--white-color); /* Text color for side items */
    font-weight: 700;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.side-item:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Slight shadow increase */
}

.side-item .side-item-img {
    position: absolute; /* Position the image absolutely within its relative parent (.side-item) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the entire container, cropping as needed */
    z-index: 1; /* Ensure image is behind the overlay and text */
    transition: transform var(--transition-speed) ease; /* Optional: for hover effects */
}

.side-item:hover .side-item-img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.side-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color); /* Use your defined overlay color */
    z-index: 2; /* Place overlay over the image */
    display: flex; /* Use flex to center the text content */
    align-items: center;
    justify-content: center;
}

.side-item p {
    position: relative; /* Make text relative to itself, but it needs to be above the overlay */
    z-index: 3; /* Place text above the overlay */
    margin: 0; /* Remove default paragraph margin */
    padding: var(--padding-sm); /* Add some padding for text visibility */
    font-size: 1.5rem; /* Ensure the text is appropriately sized for readability */
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Optional: add text shadow for better contrast */
}
/* --- End of Hero Side Content Additions/Modifications --- */


/* USP Item Styling (for both 4-point and 8-point grids) */
.usp-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.usp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.usp-icon {
    width: 60px; /* Adjust size as needed */
    height: 60px;
    margin-bottom: 15px;
    color: var(--primary-color); /* If SVG, can be styled with CSS */
}

.usp-item h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.usp-item p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.5;
}

/* Tour Card Styling (for featured tours) */
.tour-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tour-card-img {
    width: 100%;
    height: 200px; /* Fixed height for consistent cards */
    object-fit: cover;
}

.tour-card-content {
    padding: var(--padding-md);
    flex-grow: 1; /* Allows content to expand */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.tour-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--margin-sm);
}

.tour-card-content .tour-duration,
.tour-card-content .tour-price {
    font-size: 0.95rem;
    color: var(--text-color-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.tour-card-content .tour-price {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: var(--margin-md); /* Space before button */
}

/* Stat Item Styling (for "Our Journey So Far...") */
.stat-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px; /* Adjust size as needed */
    height: 60px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stat-number {
    font-family: var(--font-playfair);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--font-montserrat);
    font-size: 1rem;
    color: var(--text-color-light);
    font-weight: 600;
}


/* Tour Type Card Styling (for "Find Your Perfect Tour Type") */
.type-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.type-icon {
    width: 60px; /* Adjust size as needed */
    height: 60px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.type-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.type-card h3 a {
    text-decoration: none;
    color: var(--text-color-dark);
    transition: color var(--transition-speed) ease;
}

.type-card h3 a:hover {
    color: var(--primary-color);
}

.type-card p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.5;
}


/* Feedback Section Carousel (New Single-Item Carousel) */
.feedback-carousel {
    position: relative;
    max-width: 800px; /* Adjust max-width for desired carousel size */
    margin: 0 auto;
    padding: 0 50px; /* Add padding for the navigation buttons */
}

.carousel-items-wrapper {
    overflow: hidden;
}

.carousel-item {
    display: none; /* Hide all items by default */
    animation: fadein 0.5s;
}

.carousel-item.active {
    display: block; /* Show only the active item */
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: #0056b3; /* A darker shade of primary-color */
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.feedback-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 250px; /* Ensure a consistent height for the cards */
}

.feedback-card .card-body {
    flex-grow: 1;
}

.feedback-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color-dark);
}

.feedback-card p.text-muted {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.feedback-card p.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-light);
}

.rating-stars {
    color: #ffc107; /* A nice yellow for the stars */
}


/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Consistent height for gallery images */
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: var(--white-color);
    padding: var(--padding-sm);
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Blog Post Card */
.blog-post-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-post-card picture img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: var(--padding-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--margin-sm);
}

.blog-content h3 a {
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: var(--margin-sm);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: var(--margin-md);
}

/* Guide Card */
.guide-card {
    background-color: var(--white-color);
    padding: var(--padding-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.guide-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--margin-sm);
    border: 4px solid var(--primary-color);
}

.guide-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.guide-card .guide-title {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--margin-sm);
}

.guide-card .guide-bio {
    font-size: 0.9rem;
    color: var(--text-color-light);
    line-height: 1.4;
}

/* FAQ Accordion */
.faq-accordions {
    max-width: 800px;
    margin: var(--margin-lg) auto 0;
}

.faq-item {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    background-color: var(--white-color);
    color: var(--text-color-dark);
    padding: var(--padding-md);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-question:hover {
    background-color: var(--light-grey-bg);
}

.faq-answer {
    padding: 0 var(--padding-md) var(--padding-md);
    background-color: #fcfcfc;
    border-top: 1px solid var(--border-color);
    display: none; /* Hidden by default, JavaScript will toggle */
    overflow: hidden; /* Ensures smooth collapse */
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 0; /* Remove default margin from last p */
}

/* Quick Inquiry Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: var(--padding-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 500px;
    width: 90%;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.modal-content h2 {
    text-align: center;
    margin-bottom: var(--margin-lg);
    color: var(--text-color-dark);
}

.modal-content .close-button {
    color: var(--text-color-dark);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close-button:hover,
.modal-content .close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-content .form-group {
    margin-bottom: var(--margin-md);
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color-dark);
}

.modal-content input[type="tel"],
.modal-content input[type="text"],
.modal-content input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-montserrat);
}

.modal-content .btn {
    width: 100%;
    margin-top: var(--margin-md);
}

.modal-content .form-message {
    text-align: center;
    margin-top: var(--margin-sm);
    font-size: 0.9rem;
    color: var(--accent-color); /* Green for success, red for error */
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 5px #888;
}

/* Helper Class for hiding (e.g. for JS toggles) */
.hidden {
    display: none !important;
}