/* ==========================================================================
   1. GLOBAL & ROOT VARIABLES (MERGED)
   ========================================================================== */
 :root {
        --primary-teal: #004040;
        --accent-gold: #c5a059;
        --bg-soft: #f8fafb;
        --text-dark: #1a1a1a;
        --text-light: #64748b;
        --white: #ffffff;
        --shadow: 0 10px 30px rgba(0, 64, 64, 0.08);
    }
     :root {
    --primary-color: <?= htmlspecialchars($primary_color) ?>;
    --secondary-color: <?= htmlspecialchars($secondary_color) ?>;
}
body body {
    background-color: #f1f4f8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0 !important;
}

.section-title { 
    font-weight: 800; 
    font-size: calc(1.5rem + 1.5vw); 
    line-height: 1.1; 
    color: #000; 
    margin-bottom: 30px;
}

/* ==========================================================================
   2. HERO SLIDER & VIDEO (DYNAMIC MATRIX WITH DATABASE VALUES FIXED)
   ========================================================================== */
.hero-wrapper-section {
    height: 75vh;
    min-height: 650px;
    max-height: 900px;
}

#heroSlider { 
    width: 100%;
    height: 100% !important;
}

.carousel-inner, .carousel-item {
    height: 100% !important;
}

.slider-img { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
}

.video-foreground {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100vw;
    height: 56.25vw;

    min-width: 177.77vh;
    min-height: 100%;

    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}
@media (max-width:991px){

    .hero-wrapper-section{
        height:650px;
        min-height:650px;
    }

    .video-foreground iframe {
        width: 300vw;
        height: 168.75vw;

        min-width: 100%;
        min-height: 100%;
    }
}

/*  MASTER LAYER OVERLAY: Single container centered on video screen */
.search-overlay-center-matrix {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    z-index: 15 !important;
}

.custom-search-layout-container {
    max-width: 1140px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* ðŸš€ Dynamic Title Design with safe spacing */
.graphic-hero-title {
    font-size: 2.8rem !important;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    margin-bottom: 35px !important; /* Push search card down cleanly */
    text-transform: uppercase;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2;
    display: block;
    width: 100%;
    text-align: center;
    position: relative !important;
}

/* Fixed: Clean, non-stretched search card container */
.search-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    width: 100% !important;
    max-width: 1140px !important;
    position: relative !important;
}

/* Responsive stacked layout handles smaller viewports smoothly */
@media (max-width: 991px) {

    .hero-wrapper-section {
        height: 650px !important;
        min-height: 650px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .search-overlay-center-matrix {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 20 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .graphic-hero-title {
        color: #fff !important;
        text-shadow: 0 3px 10px rgba(0,0,0,.8) !important;
        font-size: 1.5rem !important;
    }
}
/* ==========================================================================
   3. ACTIVITY CARDS (EXP-CARD)
   ========================================================================== */
.exp-card { 
    border-radius: 20px; 
    overflow: hidden; 
    position: relative; 
    background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease; 
    margin-bottom: 24px; 
    border: 1px solid #eee; 
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

/* --- 1. Photo Section (Supports Auto-Slider) --- */
.img-section { 
    position: relative; 
    height: 220px; 
    overflow: hidden; 
}

.img-section .carousel, 
.img-section .carousel-inner, 
.img-section .carousel-item {
    height: 100%;
    width: 100%;
}

.exp-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 1 !important; 
    transition: 0.5s ease; 
}

/* Zoom effect only on single images (Non-carousel) */
.exp-card:hover .exp-img:not(.carousel-item img) {
    transform: scale(1.08);
}

/* --- 2. Text Content Section --- */
.content-section { 
    padding: 20px; 
    background: #fff; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-section h2 { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #1e293b; 
    margin-bottom: 8px; 
    min-height: 44px; 
    line-height: 1.4;
}

.meta-line { 
    font-size: 12px; 
    font-weight: 600; 
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
    color: #64748b;
}

/* --- 3. Pricing Section --- */
.price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 8px;
}

.price-now { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #000; 
}

.price-was { 
    text-decoration: line-through; 
    opacity: 0.5; 
    font-size: 0.9rem; 
}

.pct-off-tag { 
    background: #fff; 
    color: #dc3545; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-size: 10px; 
    font-weight: 800; 
    border: 1px solid #dc3545; 
}

/* --- 4. Buttons & Actions --- */
.btn-modern { 
    background: #f8fafc; 
    color: #000; 
    font-weight: 800; 
    border-radius: 12px; 
    padding: 10px 15px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%; 
    text-decoration: none;
    border: 1px solid #e2e8f0; 
    transition: 0.2s; 
    font-size: 13px;
    margin-top: auto; 
}

.btn-modern:hover { 
    background: #000; 
    color: #fff; 
    border-color: #000;
}

.instant-book-label {
    font-size: 10px;
    font-weight: 800;
    color: #16a34a;
    text-transform: uppercase;
}

/* Glass Rating Badge on Top of Image */
.rating-badge-glass {
    position: absolute; 
    top: 12px; 
    left: 12px; 
    z-index: 15; 
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px; 
    border-radius: 8px; 
    color: #fff; 
    font-size: 11px; 
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   4. BOAT JOURNEY DESIGN (SENSITIVE AREA - ALIGNMENT FIXED)
   ========================================================================== */
.boat-trip-card { background: #fff; border-radius: 20px; display: flex; flex-direction: row; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #f1f5f9; }
.trip-main { flex: 3; padding: 30px; position: relative; border-right: 1px solid #f1f5f9; }
.trip-side { flex: 1.1; padding: 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; background: #fcfdfd; min-width: 180px; }
.badge-custom { font-size: 10px; font-weight: 800; padding: 5px 12px; border-radius: 6px; text-transform: uppercase; margin-right: 8px; display: inline-block; }

.journey-timeline { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; position: relative; padding: 0 10px; }
.journey-track { position: absolute; top: 35px; left: 40px; right: 40px; height: 1px; border-top: 1px dashed #e2e8f0; z-index: 1; }

.journey-node { 
    text-align: center; 
    flex: 1; 
    z-index: 2; 
    position: relative; 
    min-width: 120px; 
}

.journey-node h4 { 
    margin: 0; 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: var(--primary-teal); 
    background: #fff; 
    display: inline-block; 
    padding: 0 15px; 
    position: relative; 
    z-index: 2; 
}

.journey-node .loc { font-size: 12px; font-weight: 700; color: #1a1a1a; margin-top: 5px; display: block; }
.journey-node .status { font-size: 10px; font-weight: 600; color: #64748b; text-transform: uppercase; display: block; margin-bottom: 5px; }
/* ðŸŽ¯ Fixed CSS Selectors with Correct Class Mappings */
.price-value { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary-teal, #008080); /* Fallback added */
    margin-bottom: 10px; 
}

.btn-book { 
    background: var(--primary-teal, #008080); 
    color: var(--white, #ffffff); 
    border-radius: 8px; 
    padding: 12px; 
    font-weight: 700; 
    text-decoration: none; 
    width: 100%; 
    display: block; 
    transition: 0.3s; 
    border: none; 
}
.moving-ferry { position: absolute; top: 25px; left: 0; color: var(--accent-gold); font-size: 18px; z-index: 3; animation: smoothSailing 10s linear infinite; pointer-events: none; }

@keyframes smoothSailing {
    0% { left: 10%; opacity: 0; transform: scaleX(1); }
    10% { opacity: 1; }
    90% { left: 85%; opacity: 1; transform: scaleX(1); }
    100% { left: 90%; opacity: 0; transform: scaleX(1); }
}

.animated-lowest { animation: blinker 1.5s linear infinite; color: #16a34a; font-weight: 700; font-size: 0.85rem; }

.blinking-lowest {
    animation: blinker 1.5s linear infinite;
    color: #fdb913;
    font-weight: 700;
    font-size: 0.85rem;
}
@keyframes blinker {
    50% { opacity: 0; }
}

.carousel-control-prev, .carousel-control-next { width: 5%; filter: invert(1); }
/* ==========================================================================
   5. PREMIUM TRENDING SECTION - FIXED ASSETS CONFIGURATION
   ========================================================================== */
.premium-trending-hero { 
    position: relative; 
    padding: 10px 0 40px; 
    overflow: hidden; 
}

.trending-pill-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #eaf2ff; color: #3b82f6; font-size: 11px; font-weight: 800;
    padding: 8px 18px; border-radius: 50px; margin-bottom: 25px;
    text-transform: uppercase; letter-spacing: 0.5px;
    flex-shrink: 0; 
}

.title-flex-container {
    display: flex;
    gap: 25px;
    align-items: flex-start; 
}

.vertical-accent-line {
    width: 5px;
    height: 185px; 
    background: #3b82f6;
    border-radius: 50px;
    flex-shrink: 0;
    margin-top: 8px;
}

/* âœ… CRUCIAL 2.8rem LOCK: Sharp executive headlines to prevent overlapping */
.hero-main-title {
    font-size: 2.8rem !important; 
    line-height: 1.1;
    font-weight: 800;
    color: #071133;
    letter-spacing: -1.5px; 
    margin: 0;
    white-space: nowrap; 
    text-rendering: geometricPrecision; 
}

.blue-highlight { color: #3b82f6; display: inline-block; position: relative; }

.wave-decoration-svg {
    position: relative;
    top: -6px;
    display: inline-flex;
    flex-direction: column;
    width: 125px; 
    height: 22px; 
    margin-left: 12px;
    vertical-align: middle;
}

/* âœ… MIDDLE INLINE GRAPHIC CONTROLS (FOR INDEPENDENT VECTOR SCALING) */
.kayak-icon-middle-inline {
    display: inline-block;
    vertical-align: middle;
    width: 60px !important;
    height: 60px !important;
    margin-left: 15px;
}
.kayak-icon-middle-inline svg {
    width: 100% !important;
    height: 100% !important;
    fill: #3b82f6 !important;
}

/* BOTTOM DOTTED TRAIL PATH SYSTEM */
.kayak-path-trail {
    position: relative;
    width: 300px;
    height: 40px;
    margin-top: 15px;
    margin-left: 240px; 
}
.dotted-line { width: 100%; height: 100%; }

/* âœ… TRAIL SMALL WAVE ICON FIXED SIZE BOUNDARIES */
.kayak-icon-small {
    position: absolute; 
    right: 0; 
    bottom: -5px;
    width: 38px !important;  
    height: 38px !important; 
    display: block !important;
}
.kayak-icon-small svg {
    width: 100% !important;
    height: 100% !important;
    fill: #3b82f6 !important;
    transform: rotate(-10deg);
}

/* RIGHT DESCRIPTION BADGE ISOLATION FRAMEWORK */
.premium-info-area {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 480px;
    margin-left: auto; 
    margin-top: 25px; 
    background: transparent;
}

.pill-icon-circle {
    width: 80px; height: 80px;
    background: #f0f7ff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* âœ… CIRCLE INNER SCUBA DIVER STABLE CONSTRAINT SIZE */
.pill-icon-circle svg {
    width: 44px !important;   
    height: 44px !important;  
    fill: #3b82f6 !important;
    display: block !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-info-area:hover .pill-icon-circle svg {
    transform: scale(1.1);
}

.pill-divider-line {
    width: 1px; height: 65px;
    background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
    margin: 0 30px;
    position: relative;
}

.premium-info-area::after {
    content: ''; position: absolute; right: -30px; top: 50%;
    transform: translateY(-50%); width: 8px; height: 8px;
    background: #3b82f6; border-radius: 50%;
}

.pill-description {
    font-size: 1.05rem; line-height: 1.6; font-weight: 500;
    color: #64748b; margin: 0; max-width: 290px;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
    .hero-main-title { 
        white-space: normal; 
        font-size: 2.0rem !important; /* Mobile adaptive sweet size lock */
        letter-spacing: -0.5px; 
    }
    .title-flex-container { gap: 18px; }
    .vertical-accent-line { height: 120px; }
    .wave-decoration-svg, .kayak-path-trail, .kayak-icon-middle-inline, .premium-info-area::after { display: none; }
    .premium-info-area { margin-left: 0; margin-top: 20px; max-width: 100%; }
}
@media (max-width: 768px) {
    #heroSlider, .slider-img { height: 300px !important; }
    .video-foreground iframe { width: 300%; height: 100%; left: -100%; transform: translate(0, -50%); }
    .boat-trip-card { flex-direction: column; }
    .trip-main { border-right: none; border-bottom: 1px solid #f1f5f9; padding: 20px; }
    .trip-side { padding: 20px; }
    .journey-track { left: 20px; right: 20px; }
}
/* ==========================================================================
   NEW ATTACHMENT AREA: GOOGLE TRUST BADGE COMPONENT
   ========================================================================== */
.trust-badge-hero-wrapper {
    padding: 20px 10px 5px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    max-width: 1100px;
}

.google-reviews-pill-box {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.inline-google-g-logo {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.google-review-text-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.badge-brand-title {
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
}

.badge-sub-stars {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
}

.stars-gold-flex {
    display: flex;
    gap: 2px;
    font-size: 12px;
}

/* #Top Rated Tour Operator Text */
.attachment-top-headline {
    font-size: 1.55rem;
    font-weight: 800;
    color: #004040; /* Matching your --primary-teal template branding */
    letter-spacing: -0.5px;
}

/* Sub-caption layout */
.attachment-sub-caption-text {
    font-size: 0.95rem;
    color: #475569;
    max-width: 850px;
    margin: 8px auto 0;
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive Scaling Overrides for Head Content */
@media (max-width: 768px) {
    .attachment-top-headline {
        font-size: 1.2rem;
        text-align: center;
    }
    .attachment-sub-caption-text {
        font-size: 0.85rem;
        padding: 0 15px;
    }
    .trust-badge-hero-wrapper .d-flex {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* ==========================================================================
   7. PREMIUM GLOSSY ACTION BUTTON (VIEW MORE STYLING FIXED)
   ========================================================================== */
.premium-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #071133; /* Deep premium midnight theme */
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(7, 17, 51, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Luxury Sliding Gloss Layer */
.premium-view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* Dynamic aquatic ocean shift */
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50px;
}

/* Custom Micro Arrow Circle Holder */
.btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.btn-icon-wrapper i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* HOVER MICRO-ANIMATION INTERACTIONS */
.premium-view-all-btn:hover {
    color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    transform: translateY(-3px); /* Elegant gentle lift up */
}

.premium-view-all-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.premium-view-all-btn:hover .btn-icon-wrapper {
    background: #ffffff;
    color: #1d4ed8; /* Dynamic color inverse shift */
}

.premium-view-all-btn:hover .btn-icon-wrapper i {
    transform: translateX(3px) scale(1.1); /* Micro sliding arrow kick forward */
}

/* Active Pressed Dynamic State */
.premium-view-all-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}
/* search Box in dropdown list */
    /* Force persistent standard left alignment and remove any layout transformations */
    .custom-option-item {
        background-color: transparent !important;
        color: #000000 !important;
        display: block;
        width: 100%;
        text-decoration: none;
    }

    /* 🎯 THE ULTIMATE IMAGE MATCHER: Crisp Blue highlight row, flat native color transition */
    .custom-option-item:hover {
        background-color: #3b82f6 !important; /* Premium classic highlight blue matching your snapshot */
        color: #ffffff !important; /* Force high contrast white text overlay */
    }

    /* Selected state retention layout style matching the node logic */
    .custom-option-item.selected-active {
        background-color: #e2e8f0 !important;
        color: #000000 !important;
        font-weight: bold;
    }

    /* Custom thin clean vertical scrollbar layer track configuration */
    #customOptionsList::-webkit-scrollbar {
        width: 5px;
    }
    #customOptionsList::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    #customOptionsList::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
    #customOptionsList::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
    
