/* Removed Playfair Display import for simpler typography */

/* ========================================
   TOUR PAGE HERO
======================================== */
.tour-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('../images/BG-2.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.tour-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.30)
    );
    z-index: 1;
}

.tour-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.tour-hero-content h1 {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 10px;
}

.tour-hero-content p {
    font-size: 17px;
    opacity: 0.95;
    line-height: 1.6;
}

.tour-hero,
.tour-hero-overlay {
    pointer-events: none;
}

.tour-hero-content {
    pointer-events: auto;
}

.mobile-filter-overlay {
    pointer-events: none;
}

.mobile-filter-overlay.active {
    pointer-events: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 16px;
    position: relative;
}

.mouse::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 8px;
    animation: scrollWheel 1.4s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%,0); }
    100% { opacity: 0; transform: translate(-50%,12px); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tour-hero {
        height: 60vh;
    }

    .tour-hero-content h1 {
        font-size: 32px;
    }

    .tour-hero-content p {
        font-size: 14px;
    }
}


/* ========================================
   TOUR PAGE - MODERN REDESIGN
======================================== */

.tour-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 80px 0 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
}

.breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

.breadcrumb span {
    color: #475569;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 30px;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* Search Box */
.search-container {
    flex: 1;
    max-width: 600px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 8px 8px 20px;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-wrapper i {
    color: #94a3b8;
    margin-right: 12px;
}

.search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
    background: transparent;
}

.search-btn {
    background: #000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #222;
}

/* Filter Toggle Button */
.filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.filter-count {
    background: #000;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* Main Layout */
.tour-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    position: relative;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
    padding: 30px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-filters {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.clear-section {
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-section:hover {
    color: #000;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
}

.filter-option input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.checkmark.checkbox {
    border-radius: 4px;
}

.filter-option input:checked + .checkmark {
    border-color: #000;
    background: #000;
}

.filter-option input:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.filter-option input:checked + .checkmark.checkbox::after {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: white;
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.option-text {
    flex: 1;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-count {
    margin-left: auto;
    color: #94a3b8;
    font-size: 13px;
}

/* Price Range Slider */
.price-display {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.range-slider {
    position: relative;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 25px 0;
}

.range-slider input {
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
}

.range-slider input::-webkit-slider-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
    cursor: pointer;
    -webkit-appearance: none;
}

.slider-track {
    position: absolute;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    color: #64748b;
}

.input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    max-width: 5rem;
}

.input-group span {
    color: #64748b;
    font-size: 14px;
}

/* Difficulty Options */
.difficulty-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.difficulty-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.difficulty-option:hover {
    background: #f8fafc;
}

.difficulty-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.difficulty-option.easy .difficulty-dot {
    background: #10b981;
}

.difficulty-option.moderate .difficulty-dot {
    background: #f59e0b;
}

.difficulty-option.challenging .difficulty-dot {
    background: #ef4444;
}

/* Filter Actions */
.filter-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apply-filters {
    background: #000;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.apply-filters:hover {
    background: #222;
}

.reset-filters {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.reset-filters:hover {
    background: #f8fafc;
}

/* Tour Content */
.tour-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-info h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.results-count {
    color: #64748b;
    font-size: 14px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: #64748b;
    font-size: 14px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.active-filter {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-filter {
    background: none;
    border: none;
    color: #0369a1;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Tour Card - Modern Minimalist Reset */
.tour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none !important; /* Zero shadows per ref */
    border: 1px solid #eef2f6; /* Clean, crisp border */
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    border-color: #cbd5e1;
    background: #fdfdfd;
}

.card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0,0,0,0.05);
}

.badge.best-seller {
    background: #fffbeb;
    color: #92400e;
}

.badge.recommended {
    background: #f8fafc;
    color: #475569;
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

/* Card Content */
.card-content {
    padding: 25px 25px 15px;
    flex-grow: 1;
}

.tour-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tour-rating {
    color: #f59e0b;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-count {
    color: #94a3b8;
    font-weight: 400;
}

.tour-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.feature i {
    color: #334155;
    font-size: 14px;
}

/* Card Footer - Minimalist & Unique Price Highlight */
.card-footer {
    padding: 20px 25px 25px;
    border-top: 1px solid #f1f5f9;
}

.price-info {
    display: inline-flex;
    flex-direction: column;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12px;
}

.price-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-family: sans-serif;
    letter-spacing: 0.5px;
}

.price-amount {
    font-family: sans-serif;
    font-size: 1.25rem !important; /* Size for RM */
    font-weight: 800;
    color: #64748b !important; /* Subtle RM */
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 5px 0;
}

.numeric-val {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2.2rem !important; /* Fixed Size */
    font-weight: 700 !important;
    color: #000 !important;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.price-per {
    font-family: sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 400;
}

.btn-details {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: black;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    border: 2px solid #000;
    transition: all 0.3s;
    position: relative;
    z-index: 100 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    justify-content: center;
}

.btn-details:active {
    background: #f1f5f9;
    transform: scale(0.97);
}

.btn-book:hover {
    background: #222;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #475569;
    margin-bottom: 10px;
}

.no-results p {
    color: #94a3b8;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #222;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    border-color: #000;
    color: #000;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    color: #64748b;
    font-size: 14px;
}

.page-current {
    font-weight: 600;
    color: #1e293b;
}

/* Mobile Filter Overlay */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ========================================
   CONSOLIDATED RESPONSIVE OPTIMIZATIONS
   ======================================== */

@media (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .tour-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        border-radius: 0;
        padding-top: 60px;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .mobile-filter-overlay.active {
        display: block;
    }
    
    .close-filters {
        display: block;
    }
    
    .filter-toggle {
        display: flex;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .sort-options {
        align-self: flex-end;
    }
}

@media (max-width: 640px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    /* STACKED SEARCH UI */
    .tour-search-box {
        width: 100%;
    }

    .search-wrapper {
        width: 100% !important;
        padding: 10px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 20px !important;
        background: white !important;
        gap: 0 !important;
        border: 2px solid #e2e8f0 !important;
    }

    .search-wrapper input {
        padding: 12px 0 !important;
        font-size: 15px !important;
        width: 100% !important;
        border-bottom: 2px solid #f1f5f9 !important;
        margin-bottom: 12px !important;
    }

    .search-btn {
        width: 100% !important;
        margin-top: 5px !important;
        padding: 14px !important;
        border-radius: 30px !important;
        background: #000 !important;
        color: white !important;
        justify-content: center !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border: none !important;
    }
}

@media (max-width: 500px) {
    /* STACKED CARD FOOTER */
    .card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 20px !important;
    }
    
    .price-info {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .price-amount {
        margin: 8px 0 !important;
    }

    .numeric-val {
        font-size: 2.2rem !important;
        letter-spacing: -1px !important;
    }

    .card-actions {
        width: 100% !important;
    }
    
    .btn-details {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        margin-top: 5px !important;
        background: white !important;
        color: black !important;
        border: 2px solid #000 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        position: relative !important;
        z-index: 100 !important;
    }
}

/* Card Overlay Link */
.card-overlay-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 15 !important;
    cursor: pointer !important;
    display: block !important;
    background: transparent !important;
}
