/* --- Global Styles & Variables (Synced with style.css) --- */
:root {
    --primary-gold: #D4AF37;
    --dark-charcoal: #222222;
    --off-white: #f4f4f4;
    --light-grey: #333333;
    --font-family: 'Montserrat', sans-serif;
}
body { margin: 0; font-family: var(--font-family); background-color: var(--off-white); color: var(--dark-charcoal); line-height: 1.6; }
main { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 600; }

/* --- Header & Navigation (EXACT COPY from style.css) --- */
header {
    background-color: var(--dark-charcoal);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

header .logo {
    z-index: 1001;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    background-color: var(--dark-charcoal);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--primary-gold);
}

header .logo:hover {
    transform: translateY(15px);
}

header .logo img {
    height: 65px;
    display: block;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
header nav ul li {
    margin-left: 25px;
}
header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-gold);
}

/* --- TOURS PAGE SPECIFIC STYLES START HERE --- */

/* --- Hero Slider --- */
#hero-slider { position: relative; width: 100%; height: 90vh; overflow: hidden; background-color: #333; }
.slides-wrapper { width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide.map-slide img { object-fit: contain; background-color: var(--dark-charcoal); }
.slide-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; text-align: center; padding: 40px; background: rgba(0, 0, 0, 0.6); border-radius: 10px; max-width: 80%; box-sizing: border-box; }
.slider-nav { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 10; }
.dot { width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease; }
.page-header-subtitle { font-size: 1.2rem; max-width: 700px; margin: 20px auto 0 auto; line-height: 1.7; }

/* --- Main Content Layout --- */
.page-content-wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: flex; align-items: flex-start; gap: 30px; }
#tour-filters { flex: 0 0 240px; position: sticky; top: 130px; padding: 20px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.1); }
.tour-nav { text-align: left; }
.tour-nav-btn { display: block; width: 100%; text-align: left; background-color: #f0f0f0; border: 2px solid transparent; color: var(--dark-charcoal); padding: 12px 15px; margin: 8px 0; border-radius: 5px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.tour-nav-btn:hover { background-color: #e0e0e0; border-color: var(--primary-gold); }
.tour-nav-btn.active { background-color: var(--primary-gold); color: var(--dark-charcoal); }

/* --- Tours Grid Section --- */
#tours.services-menu { flex: 1; padding: 0; }
.category-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr) !important; gap: 30px; }

/* --- Card Styles --- */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tour-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.4s ease;
}

.service-card:hover .tour-card-image {
    transform: scale(1.05);
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.service-card-content h3 {
    color: var(--primary-gold);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.service-card-content p {
    flex-grow: 0;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 90%;
}

.tour-price {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto 15px auto;
}

/* --- MODIFIED: Aggressively forcing the button text to be visible --- */
.view-details-btn {
    display: inline-block;
    margin-top: auto;
    background-color: var(--primary-gold);
    color: var(--dark-charcoal) !important; /* Force text color */
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    opacity: 1 !important;
    
    /* --- NEW LINES TO FIX HIDDEN TEXT --- */
    font-size: 14px !important;       /* Explicitly set font size */
    width: auto !important;           /* Ensure width is not constricted */
    height: auto !important;          /* Ensure height is not constricted */
    overflow: visible !important;     /* Ensure text is not hidden if button is small */
    text-indent: 0 !important;        /* Reset any text-hiding techniques */
}

.view-details-btn:hover {
    background-color: var(--primary-gold) !important;
    color: var(--dark-charcoal) !important;
}

/* --- Other Sections --- */
section { padding: 80px 0; }
.cta-section { background-color: var(--dark-charcoal); color: white; text-align: center; }
.cta-button { background-color: var(--primary-gold); color: var(--dark-charcoal) !important; padding: 12px 25px; text-decoration: none; font-weight: 700; border-radius: 5px; transition: background-color 0.3s ease; border: none; font-size: 1rem; cursor: pointer; }
.cta-button:hover { background-color: #c5a230; }
.about-content { background-color: #ffffff; padding: 80px 0; }
.accordion-item { background-color: #fff; margin-bottom: 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.accordion-toggle { width: 100%; background: none; border: none; text-align: left; padding: 20px; font-size: 1.2rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; }
.accordion-content p { padding-bottom: 20px; margin: 0; }

/* --- Footer, Modal & Utilities --- */
#back-to-top-btn { display: none; position: fixed; bottom: 70px; right: 20px; z-index: 100; background-color: var(--primary-gold); color: var(--dark-charcoal); border: none; cursor: pointer; padding: 15px; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
#hamburger-btn { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }
nav.nav-visible { display: block !important; }
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background-color: #fefefe; margin: auto; padding: 30px; border-radius: 8px; width: 90%; max-width: 800px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal-btn { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.chart-container { position: relative; width: 100%; max-width: 500px; margin: 1rem auto 0 auto; height: 200px; }
#modal-image { width: 100%; max-height: 250px; object-fit: cover; border-radius: 8px; }

#price-display-section {
    margin-top: 20px;
    text-align: center;
    background-color: var(--off-white);
    padding: 15px;
    border-radius: 8px;
}

/* --- Modal Buttons --- */
.modal-buttons-container { display: flex; gap: 10px; margin-top: 20px; }
.modal-buttons-container .cta-button,
.modal-buttons-container .cta-button-secondary { flex: 1; text-decoration: none; text-align: center; }
.cta-button-secondary { background: none; border: 2px solid var(--primary-gold); color: var(--primary-gold) !important; padding: 10px 25px; border-radius: 5px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; }
.cta-button-secondary:hover { background: var(--primary-gold); color: var(--dark-charcoal) !important; }

/* --- Multi-Booking Cart in Sidebar --- */
#multi-booking-cart { margin-top: 25px; border-top: 2px solid #eee; padding-top: 20px; }
#multi-booking-cart h4 { margin-top: 0; text-align: center; }
#multi-booking-cart p { text-align: center; font-size: 0.9rem; color: #777; }
#selected-tours-list { list-style: none; padding: 0; margin-bottom: 15px; }
#selected-tours-list li { background: #f9f9f9; padding: 8px 12px; margin-bottom: 5px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.remove-tour-btn { background: none; border: none; color: #cc0000; font-size: 1.2rem; cursor: pointer; font-weight: bold; padding: 0 5px; }
#book-selected-btn { width: 100%; }
#book-selected-btn:disabled { background-color: #ccc; cursor: not-allowed; }

/* --- Booking Form Styles --- */
#booking-modal .modal-content { max-width: 550px; }
#booking-form .form-group { margin-bottom: 15px; }
#booking-form label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
#booking-form input[type="text"], #booking-form input[type="email"], #booking-form input[type="tel"], #booking-form input[type="number"], #booking-form textarea { width: 100%; padding: 12px; box-sizing: border-box; font-family: var(--font-family); font-size: 1rem; background-color: #f7f7f7; border: 2px solid #ddd; border-radius: 8px; transition: border-color 0.3s ease; }
#booking-form input:focus, #booking-form textarea:focus { outline: none; border-color: var(--primary-gold); }
#booking-form input[readonly], #booking-form textarea[readonly] { background-color: #e9ecef; cursor: not-allowed; color: #555; }


/* --- Responsive Styles --- */

@media (max-width: 900px) {
    .page-content-wrapper { flex-direction: column; padding-top: 20px; }
    #tour-filters { position: static; width: 100%; box-sizing: border-box; padding: 15px; background: var(--off-white); backdrop-filter: none; top: auto; }
    .tour-nav { text-align: center; }
    .tour-nav-btn { display: inline-block; width: auto; padding: 8px 15px; margin: 4px; }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Hamburger Menu Activation */
    #hamburger-btn { display: block; }
    header nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--dark-charcoal); }
    header nav ul { flex-direction: column; width: 100%; }
    header nav ul li { margin: 0; text-align: center; }
    header nav ul li a { padding: 15px; display: block; border-bottom: 1px solid var(--light-grey); }

    header .container { height: auto; min-height: 0; padding-top: 5px; padding-bottom: 5px; }
    header .logo { transform: translateY(15px); padding: 10px; box-shadow: 0 6px 12px rgba(0,0,0,0.3); }
    header .logo img { height: 50px; }

    footer .container { flex-direction: column; gap: 15px; }
    #hero-slider { height: 70vh; }
    .slide-content h1 { font-size: 1.8rem; }
    .page-header-subtitle { font-size: 1rem; line-height: 1.5; }
    .slide-content { padding: 20px; }
    .slider-nav { bottom: 20px; }
    
    #tour-modal .modal-content h2, #booking-modal .modal-content h2 { font-size: 1.6rem; }
    .calculator-box h3, #chart-section h3 { font-size: 1.4rem; }

    .modal-buttons-container { flex-direction: column; }
}

@media (max-width: 600px) {
    .service-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .page-content-wrapper { padding: 20px 15px; }
    .service-card:hover { transform: none; }
    .cta-button, .cta-button-secondary { padding: 12px 20px; font-size: 0.9rem; }
    .modal-content { padding: 20px; }

    .slide-content { max-width: 90%; padding: 15px; }
    .slide-content h1 { font-size: 1.5rem; }

    .remove-tour-btn { font-size: 1.4rem; padding: 0 8px; }

    #booking-form label { font-size: 0.85rem; }

    .cta-section { padding: 60px 0; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-section p { font-size: 0.9rem; }
}

@media (min-width: 768px) { .modal-grid { grid-template-columns: 1fr 1fr; } }