html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #22C55E;
    --primary-hover: #16a34a;
    --secondary-color: #1e293b;
    --accent-lavender: #A78BFA;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 990;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-divider {
    width: 1px;
    height: 18px;
    background-color: #e2e8f0;
}

.logo-img {
    height: 32px;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

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

.header-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-contact-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.header-contact-pill svg {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.header-contact-pill.tg-pill:hover svg {
    color: #38bdf8;
}

.header-contact-pill.maks-pill:hover svg {
    color: #10b981;
}

.question-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.question-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-main);
}

.question-btn svg {
    color: var(--text-muted);
}

/* Hero Section with Beautiful Background Backdrop */
.hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    background-image: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.65)), url('/src/assets/images/spb_hero_1779785808094.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    min-height: 520px; /* Atmospheric, large background podlozhka */
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 60px 24px;
    margin-top: -20px;
    margin-bottom: 45px;
    box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.2);
}

.hero-section.detail-mode {
    min-height: 140px;
    height: auto;
    padding: 30px 24px;
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 4px 16px rgba(15, 23, 42, 0.6);
}

.hero-section .subtitle {
    font-size: clamp(14px, 2.2vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.6);
    max-width: 680px;
    line-height: 1.5;
}

/* Beautiful back link under hero */
.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-back-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.hero-back-link svg {
    stroke: currentColor;
}

/* Elegant, neat inline advantages directly on the photo block */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 28px;
    margin-top: 36px;
    max-width: 1000px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(15, 23, 42, 0.5);
}

.hero-feature-icon {
    color: var(--primary-color) !important;
    flex-shrink: 0;
}

.hero-feature-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 900px) {
    .hero-features {
        gap: 12px;
        margin-top: 28px;
        padding: 0;
        flex-direction: column;
        align-items: center;
        max-width: 320px;
    }
    .hero-feature-divider {
        display: none;
    }
    .hero-feature {
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

/* Search and Filters */
.search-section {
    background: transparent;
    border-radius: 0;
    padding: 16px 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.search-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

@media (max-width: 900px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
    .header-contacts-group, .contacts {
        display: none;
    }
}

.search-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.search-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

.input-group, .date-input-wrapper, .select-input-wrapper {
    position: relative;
    width: 100%;
}

.input-group input, .date-input-wrapper input, .select-input-wrapper select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-main);
    transition: 0.2s;
    outline: none;
}

.input-group input:focus, .date-input-wrapper input:focus, .select-input-wrapper select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.select-input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.search-btn-group {
    width: 100%;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    height: 48px;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Advantages Section is now integrated elegantly into the Hero section directly on the photo backdrop */

.filter-tab {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.date-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-input-wrapper {
    position: relative;
    max-width: 300px;
}

.date-input-wrapper input {
    width: 100%;
    padding: 16px 24px 16px 54px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
}

/* Excursions Table */
.table-container {
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow-x: auto !important;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

td {
    padding: 16px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.text-bold { 
    font-weight: 700;
    white-space: nowrap;
}
.text-orange { color: var(--primary-color); }

.excursion-name a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Detail Page */
.card-detail h3 {
    letter-spacing: -0.02em;
}

.sidebar-booking h3 {
    color: var(--secondary-color);
}

.sidebar-booking .form-group label {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .sidebar-booking {
        margin-top: 20px;
    }
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
}

.status-badge.sale { background: #dcfce7; color: #166534; }
.status-badge.closed { background: #f1f5f9; color: #64748b; }

.places-left {
    font-weight: 700;
}

.places-left.few { color: #f97316; }
.places-left.none { color: #94a3b8; }

.action-btn {
    min-width: 96px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}

.action-btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.disabled,
.action-btn:disabled {
    opacity: 0.5;
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 25px; right: 25px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:hover { background: var(--primary-hover); }

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 15px; }
    .hero-section { grid-template-columns: 1fr; }
    .hero-card { padding: 30px; min-height: 200px; }
    .table-container { overflow-x: auto; }
    table { min-width: auto; }
    .modal-content { padding: 25px; border-radius: 0; height: 100vh; max-height: 100vh; }
}

.time-slot {
    background: #f1f5f9;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
}

.time-slot:hover:not(.sold-out) {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.time-slot.sold-out {
    background: #f1f5f9;
    color: #cbd5e1;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Hybrid Schedule Styles */
.excursions-container {
    display: grid;
    gap: 24px;
    margin-top: 0;
}

.tour-card, .tour-compact-row {
    display: none;
}

/* DESKTOP: Variant 1 "Classic Tile" (Analog of example) */
@media (min-width: 769px) {
    .excursions-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .tour-card {
        background: #ffffff;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .tour-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

    .tour-image-box {
        position: relative;
        height: 200px;
        overflow: hidden;
    }

    .tour-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

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

    .tour-badge-combo {
        position: absolute;
        top: 12px;
        left: 12px;
        background: linear-gradient(90deg, #ff8a00, #ff5c00);
        color: white;
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 10;
    }

    .tour-img-badges-stack {
        position: absolute;
        bottom: 12px;
        left: 12px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        z-index: 10;
        pointer-events: none;
    }

    .tour-img-badge {
        background: rgba(15, 23, 42, 0.65);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: white;
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .tour-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .tour-name-link {
        text-decoration: none;
        color: #1e293b;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 12px;
        display: block;
        min-height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tour-name-link:hover {
        color: var(--primary-color);
    }

    .tour-times-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        font-size: 12px;
        color: #64748b;
    }

    .tour-footer {
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tour-price-box {
        display: flex;
        flex-direction: column;
    }

    .price-label {
        font-size: 11px;
        color: #94a3b8;
    }

    .price-value {
        font-size: 20px;
        font-weight: 800;
        color: var(--primary-color);
    }

    /* Hide mobile view items on desktop */
    .tour-compact-row { display: none; }
}

/* MOBILE: Variant 3 "Compact-Mobile" */
@media (max-width: 768px) {
    /* Limit overall page width on mobile */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container { 
        padding: 12px; 
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .header-container {
        padding: 8px 12px !important;
    }
    
    .logo a {
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .logo-divider {
        display: none !important;
    }
    
    .logo-img {
        height: 22px !important;
    }
    
    .logo-text {
        font-size: 11px !important;
        line-height: 1.2 !important;
        opacity: 0.8 !important;
        font-weight: 600 !important;
        white-space: nowrap;
        margin-left: 2px;
    }
    
    .header-contact-pill {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .question-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .hero-section {
        width: calc(100% + 24px) !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        left: auto !important;
        right: auto !important;
        border-radius: 0;
    }
    .excursions-container { 
        display: flex;
        flex-direction: column;
        gap: 16px; 
        width: 100%;
        max-width: 100%;
    }

    .tour-card { display: none; } /* Hide desktop card on mobile */

    .tour-compact-row {
        display: flex;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        align-items: stretch;
        gap: 12px;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .compact-img-box {
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
        background: #f1f5f9;
        position: relative;
    }

    .compact-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .compact-info {
        flex: 1;
        min-width: 0;
    }

    .compact-name-link {
        text-decoration: none;
        color: #1e293b;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 4px;
        display: block;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .compact-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .compact-time {
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
        background: #f1f5f9;
        padding: 4px 10px;
        border-radius: 6px;
        margin-right: 4px;
    }

    .compact-price {
        font-size: 15px;
        font-weight: 800;
        color: var(--primary-color);
    }

    .compact-action-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 12px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: background 0.2s;
    }
    .compact-action-btn:active {
        background: var(--primary-hover);
        transform: scale(0.98);
    }

    /* Excursion Detail Page Mobile Fixes */
    .detail-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .detail-title-block h1 {
        font-size: 22px;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .detail-main-col {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    /* Force mobile ordering */
    .detail-title-block { order: 1; }
    .detail-gallery-block { 
        order: 2; 
        max-width: 100%;
        overflow: hidden;
    }
    .detail-sidebar-col { 
        order: 3 !important; 
        width: 100%;
        margin-top: 0;
    }
    .detail-prices-block { order: 4; }
    .detail-description-block { order: 5; }
    .detail-meeting-block { order: 6; }
    .detail-schedule-block { order: 7; }
    .detail-take-with-block { order: 8; }
    .detail-faq-block { order: 9; }

    .main-photo-placeholder {
        height: 220px;
        width: 100%;
        border-radius: 12px;
    }
    
    /* Thumbnails container fix */
    .thumbnails-grid {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .thumbnails-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .thumb-item {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .detail-meta-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .meta-badge {
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap;
        background: #f1f5f9;
        border-radius: 8px;
    }

    /* Buy Ticket Sidebar Card fix */
    .buy-ticket-card {
        padding: 20px !important;
        margin: 0 !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }

    /* Schedule table for mobile */
    .headerless-table table {
        width: 100% !important;
        border-collapse: collapse;
        display: table !important; /* Back to normal table context */
    }
    
    .headerless-table table thead {
        display: table-header-group !important; /* Show headers but very small */
    }

    .headerless-table th {
        padding: 8px 4px !important;
        font-size: 10px !important;
        text-align: left;
        color: #94a3b8;
    }

    .headerless-table table tbody {
        display: table-row-group !important;
        width: 100% !important;
    }
    
    .detail-schedule-row {
        display: table-row !important;
        background: white;
    }
    
    .detail-schedule-row td {
        display: table-cell !important;
        padding: 10px 4px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        vertical-align: middle !important;
        font-size: 12px !important;
    }
    
    .detail-schedule-row td:nth-child(1) { /* Date */
        font-weight: 700;
        color: #1e293b;
        width: 60px;
    }
    
    .detail-schedule-row td:nth-child(2) { /* Time */
        color: var(--primary-color);
        font-weight: 700;
        width: 45px;
    }

    .detail-schedule-row td:nth-child(3) { /* Price */
        font-weight: 800;
        color: #1e293b;
        text-align: left;
        width: 60px;
        white-space: nowrap;
    }

    .detail-schedule-row td:nth-child(4) { /* Status */
        display: table-cell !important;
        text-align: center;
        width: 50px;
    }
    
    .detail-schedule-row td:nth-child(5) { /* Places */
        display: table-cell !important;
        text-align: right;
        font-size: 10px !important;
        color: #64748b;
        width: 40px;
    }

    .status-badge {
        padding: 2px 4px !important;
        font-size: 10px !important;
        white-space: nowrap;
    }

    /* Arrow icon for mobile table rows to indicate clickability */
    .detail-schedule-row::after {
        content: '›';
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        color: #cbd5e1;
        font-size: 20px;
        display: none; /* We'll use a cell instead or just padding */
    }

    /* Additional safety for detail page */
    .excursion-detail-page {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }
    
    .detail-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Spinner & Loading States */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px; /* Explicitly set size to match .spinner */
    height: 40px;
    margin-top: -20px; /* Center positioning via margins to avoid transform conflict */
    margin-left: -20px;
    z-index: 10000;
    pointer-events: none;
}

#loader.active {
    display: block;
}

.excursions-container.loading {
    opacity: 0.4;
    filter: grayscale(0.5);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Description Section */
.description-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.description-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.description-content {
    line-height: 1.8;
    color: var(--text-main);
    font-size: 15px;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Meeting Point Styles */
.excursion-meeting-point {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.meeting-point-label {
    font-weight: 600;
    margin-right: 8px;
    color: var(--secondary-color);
}

.meeting-point-value {
    color: var(--text-main);
}

/* Integrated Table Search Panel */
.table-search-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 24px !important;
    margin-bottom: 0 !important;
}

/* Quick Date Filters Container */
.quick-date-wrapper {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed var(--border-color);
    text-align: left;
}

.quick-date-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.quick-date-filters {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}
.quick-date-filters::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.date-pill {
    flex: 1;
    min-width: 95px;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-align: center;
}

.date-pill:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.date-pill.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.date-pill.active .date-weekday,
.date-pill.active .date-daynum,
.date-pill.active .date-price {
    color: #ffffff !important;
}

.date-weekday {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.date-daynum {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.date-price {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Weekend highlighting - lavender tint */
.date-pill.weekend {
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(167, 139, 250, 0.22);
}

.date-pill.weekend .date-weekday,
.date-pill.weekend .date-daynum {
    color: #8b5cf6; /* Lavender brand flavor */
}

.date-pill.weekend .date-price {
    color: var(--primary-color);
}

.date-pill.weekend:hover {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.4);
}

.date-pill.weekend.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.date-pill.weekend.active .date-weekday,
.date-pill.weekend.active .date-daynum,
.date-pill.weekend.active .date-price {
    color: #ffffff !important;
}

/* View Switcher */
.switcher-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    transition: all 0.2s ease;
}

.switcher-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.switcher-btn.active {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
    .view-toggle-wrapper {
        flex-direction: column;
        align-items: stretch !important;
    }
    .view-switcher {
        justify-content: center;
        margin-top: 10px;
    }
}

/* ==========================================================================
   Modern Clean Excursion Detail Styles (Global & Beautifully Frame-free)
   ========================================================================== */

.excursion-detail-page {
    margin-top: 15px;
}

.breadcrumbs {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
    border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span.sep {
    opacity: 0.5;
    margin: 0 2px;
}

#breadcrumbCurrent {
    color: var(--text-main);
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.detail-main-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-title-block h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.detail-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.meta-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none !important;
}

/* Light, clean cards WITH NO BORDER FRAMES */
.detail-card {
    background: transparent !important;
    padding: 0 0 36px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important; /* Subtle separator line */
}

.detail-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-gallery-block {
    background: transparent !important;
    padding: 0 0 36px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.main-photo-placeholder {
    width: 100%;
    height: 400px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: none !important;
}

.main-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* Style for JS-generated wrapper thumbs in app.js */
.thumb-wrapper {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent !important;
    border-radius: 8px !important;
}

.thumb-wrapper:hover {
    transform: scale(1.05);
}

.thumb-wrapper.active {
    border-color: var(--primary-color) !important;
}

/* Static mockup thumbs if any render */
.thumb-box {
    height: 55px;
    width: 75px;
    background: #e2e8f0;
    border-radius: 8px;
    border: 2px solid transparent !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.thumb-box:hover {
    opacity: 0.9;
}

.thumb-box.active {
    border-color: var(--primary-color) !important;
    opacity: 1;
}

/* Price category cards */
.detail-categories-prices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

#detailDescriptionText {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.7;
    white-space: pre-line;
}

.clean-list {
    margin: 0;
    padding-left: 0;
    list-style: none; /* Incredibly clean layout without default dots */
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #475569;
    font-size: 14.5px;
}

.clean-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.clean-list li strong {
    color: #1e293b;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.faq-item {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 16px 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9 !important;
}

.faq-item:hover summary {
    color: var(--primary-color);
}

.faq-item summary {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .faq-icon {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    cursor: default;
}

/* Sidebar & Sticky columns */
.detail-sidebar-col {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 992px) {
    .detail-sidebar-col {
        position: static;
    }
}

.booking-sticky-card {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.booking-sticky-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

/* Form fields styling wrapper for ultra-modern form */
#sidebarBookingFormContainer input,
#sidebarBookingFormContainer select {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

#sidebarBookingFormContainer input:focus,
#sidebarBookingFormContainer select:focus {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08) !important;
}

/* Category counter boxes updated to look like beautiful simple items, not chunky blocks */
.category-select-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
}

/* Table container details adjustment */
.detail-schedule-block {
    scroll-margin-top: 80px;
}

.detail-schedule-block .subtitle-text {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.headerless-table {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.headerless-table table th {
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.headerless-table table td {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
}

.detail-schedule-row {
    transition: background-color 0.2s ease;
}

.detail-schedule-row:hover {
    background-color: #f8fafc;
}

/* Site Footer Modern Styles */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px 0;
    font-family: var(--font-sans);
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-col {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 30px;
    filter: brightness(0) invert(1); /* Turns svg logo text/lines beautifully white */
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.footer-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #334155;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #cbd5e1;
}

.contact-item svg {
    color: #64748b;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item span {
    line-height: 1.4;
}

.contact-item.font-address span {
    color: #94a3b8;
    font-size: 13px;
}

/* Footer Bottom styles */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
}

.footer-legal-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.copyright {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

.requisites {
    font-size: 11px;
    color: #64748b;
}

/* Payment system badges styling */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    user-select: none;
    border: 1px solid #1e293b;
    background: #1e293b;
    text-transform: uppercase;
}

.payment-badge.mir {
    background: #111827;
    border-color: #22c55e;
    color: #22c55e;
}

.payment-badge.visa {
    background: #111827;
    border-color: #2563eb;
    color: #2563eb;
}

.payment-badge.mc {
    background: #111827;
    border-color: #ea580c;
    color: #ea580c;
}

.payment-badge.sbp {
    background: linear-gradient(135deg, #2563eb, #db2777);
    border: none;
    color: white;
}



