/* ============================================
   asemahaftom3 — Tour detail / show page
   ============================================ */

.tour-detail-page {
    padding-bottom: var(--section-gap);
    background: #f0f3f8;
}

/* ---- Hero ---- */
.tour-detail-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(135deg, rgba(18, 35, 64, 0.92) 0%, rgba(18, 35, 64, 0.65) 55%, rgba(18, 35, 64, 0.4) 100%),
        var(--tour-detail-hero-image) center / cover no-repeat;
    color: var(--text-inverse);
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}

.tour-detail-hero__inner {
    position: relative;
    z-index: 1;
}

.tour-detail-hero__type {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-accent);
    background: rgba(242, 101, 34, 0.18);
    border: 1px solid rgba(242, 101, 34, 0.4);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.65rem;
}

.tour-detail-hero__title {
    font-size: clamp(1.35rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text-inverse);
    margin: 0 0 0.85rem;
    line-height: 1.35;
    max-width: 52rem;
}

.tour-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.tour-detail-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-inverse);
}

.tour-detail-hero__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.tour-detail-hero__price strong {
    font-size: 1.35rem;
    color: var(--brand-accent);
}

.tour-detail-status {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
}

.tour-detail-status--open {
    background: #198754;
    color: #fff;
}

.tour-detail-status--inprocess {
    background: var(--brand-accent);
    color: #fff;
}

.tour-detail-status--closed {
    background: #6c757d;
    color: #fff;
}

/* ---- Topbar ---- */
.tour-detail-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0 0.5rem;
}

.tour-detail-topbar .breadcrumb {
    margin: 0;
}

/* ---- Body layout ---- */
.tour-detail-body {
    padding: 0 0 2rem;
}

.tour-detail-container {
    max-width: 1320px;
}

/* ---- Section nav tabs ---- */
.tour-detail-nav {
    position: sticky;
    top: calc(var(--nav-height) + 0.5rem);
    z-index: 90;
    margin: 1rem 0 1.5rem;
}

.tour-detail-nav__track {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tour-detail-nav__track::-webkit-scrollbar {
    display: none;
}

.tour-detail-nav__link {
    flex: 1 1 0;
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.tour-detail-nav__link:hover {
    color: var(--brand-primary);
    background: var(--surface-muted);
}

.tour-detail-nav__link.is-active {
    color: var(--text-inverse);
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1a3358 100%);
    box-shadow: 0 4px 12px rgba(18, 35, 64, 0.2);
}

.tour-detail-nav__link.is-active:hover {
    color: var(--text-inverse);
    background: linear-gradient(135deg, var(--brand-primary) 0%, #243f6b 100%);
}

.tour-detail-page #List-package,
.tour-detail-page #Expelor-Tour,
.tour-detail-page #Service-Tour,
.tour-detail-page #Program_Tour,
.tour-detail-page #Furniture_Tour {
    scroll-margin-top: calc(var(--nav-height) + 5rem);
}

/* ---- Sidebar ---- */
.tour-detail-page .packege-box {
    order: 0;
}

.tour-detail-page .packege-box .widget.card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: sticky;
    top: calc(var(--nav-height) + 5rem);
}

.tour-detail-page .packege-box .card-body > span.text-runy-sormehei {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-accent-light);
    margin-bottom: 0.5rem;
}

.tour-detail-page .packege-box .list-group-item {
    border: none;
    padding: 0.65rem 0;
    background: transparent;
    font-size: 0.88rem;
    line-height: 1.6;
}

.tour-detail-page .packege-box .text-runy-Gray {
    color: var(--text-muted) !important;
    font-weight: 600;
}

.tour-detail-page .packege-box .text-runy-sormehei {
    color: var(--brand-primary) !important;
    font-weight: 600;
}

.tour-detail-page .packege-box .btn.bg-runy-sormehei {
    background: var(--brand-primary) !important;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    transition: background var(--transition-base);
}

.tour-detail-page .packege-box .btn.bg-runy-sormehei:hover:not(:disabled) {
    background: var(--brand-accent) !important;
}

.tour-detail-page .packege-box .btn:disabled {
    opacity: 0.65;
}

/* ---- Quick reserve modal (teleported to body) ---- */
.tour-detail-modal {
    z-index: 2005 !important;
}

.tour-detail-modal .modal-dialog {
    z-index: 2010;
}

.tour-detail-page ~ .modal-backdrop.show,
body > .modal-backdrop.show {
    z-index: 2000 !important;
}

.tour-detail-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.tour-detail-modal .modal-header {
    background: linear-gradient(90deg, var(--brand-primary), #1a3358);
    color: var(--text-inverse);
    border: none;
    padding: 1rem 1.25rem;
}

.tour-detail-modal .modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.tour-detail-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.tour-detail-modal .modal-body {
    padding: 1.25rem;
}

.tour-detail-modal .modal-body .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.tour-detail-modal .modal-body .form-control,
.tour-detail-modal .modal-body .form-select {
    border-radius: var(--radius-md);
    border-color: var(--border-soft);
}

.tour-detail-modal .modal-footer {
    border-top: 1px solid var(--border-soft);
    padding: 0.85rem 1.25rem;
}

.tour-detail-modal .btn.bg-runy-sormehei {
    background: var(--brand-primary) !important;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.tour-detail-modal .btn.bg-runy-sormehei:hover {
    background: var(--brand-accent) !important;
}

/* ---- Gallery & contact ---- */
.tour-detail-page .tour-detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
}

.tour-detail-page .tour-detail-gallery .carousel-item img,
.tour-detail-page .tour-detail-gallery > img {
    border-radius: var(--radius-lg);
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.tour-detail-page .tour-detail-contact {
    background: var(--surface);
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card);
    height: 100%;
}

.tour-detail-page .tour-detail-contact .cadr-icon {
    background: var(--brand-accent-light);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
}

.tour-detail-page .tour-detail-contact a {
    color: var(--brand-primary);
    font-weight: 600;
}

.tour-detail-page .tour-detail-contact a:hover {
    color: var(--brand-accent);
}

/* ---- Price table ---- */
.tour-detail-page .table-for-desktop {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.tour-detail-page .table-for-desktop table {
    margin: 0;
}

.tour-detail-page .table-for-desktop thead tr {
    background: linear-gradient(90deg, var(--brand-primary), #1a3358) !important;
}

.tour-detail-page .table-for-desktop thead th {
    border: none;
    padding: 0.85rem 1rem;
    font-weight: 600;
}

.tour-detail-page .table-for-desktop tbody td,
.tour-detail-page .table-for-desktop tbody th {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-color: var(--border-soft);
    color: var(--text-primary);
}

.tour-detail-page .table-for-desktop tbody tr:hover {
    background: var(--surface-muted);
}

.tour-detail-page .table-for-mobile {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-card);
}

.tour-detail-page .table-for-mobile h3 {
    color: var(--brand-primary);
    font-weight: 700;
}

.tour-detail-page .card-show-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tour-detail-page .card-show-mobile small {
    color: var(--text-muted);
    font-weight: 600;
}

.tour-detail-page .card-show-mobile span {
    color: var(--brand-primary);
    font-weight: 700;
}

/* ---- Content sections ---- */
.tour-detail-page .tour-detail-sections {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.tour-detail-page .details_tour-info {
    background: transparent;
    padding: 0;
    margin-top: 1.5rem;
}

.tour-detail-page .details_tour-info h3 {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--brand-primary);
    font-size: var(--text-h2);
    font-weight: 700;
    margin: 0 0 1rem;
    padding-right: 0.75rem;
    border-right: 4px solid var(--brand-accent);
    border-radius: 0;
    justify-content: flex-start;
}

.tour-detail-page .details_tour-info .card {
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin: 0 0 1.25rem !important;
}

.tour-detail-page .details_tour-info .card > .border-bottom h6 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-soft) !important;
}

.tour-detail-page .details_tour-info .card-body {
    padding: 1.25rem 1.5rem;
}

.tour-detail-page .details_tour-info .textBody {
    line-height: 1.9;
    color: var(--text-primary);
}

.tour-detail-page .details_tour-info .textBody img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.tour-detail-page .accordion-button {
    font-weight: 600;
    color: var(--brand-primary);
}

.tour-detail-page .accordion-button:not(.collapsed) {
    background: var(--brand-accent-light);
    color: var(--brand-accent);
}

.tour-detail-page .tour-detail-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.tour-detail-page .tour-detail-services li {
    padding: 0.55rem 0.85rem;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--brand-accent);
    font-size: 0.9rem;
}

/* ---- Comments ---- */
.tour-detail-page .tour-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tour-detail-page .tour-comments__item {
    padding: 0.9rem 1rem;
    background: var(--surface-muted, #f5f7fb);
    border-radius: var(--radius-sm, 8px);
    border-right: 3px solid var(--brand-accent, #f26522);
}

.tour-detail-page .tour-comments__item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.45rem;
}

.tour-detail-page .tour-comments__author {
    color: #14244b;
    font-size: 0.95rem;
}

.tour-detail-page .tour-comments__date {
    font-size: 0.78rem;
    margin-inline-start: auto;
}

.tour-detail-page .tour-comments__text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #334155;
    white-space: pre-wrap;
}

.tour-detail-page .tour-comments__replies {
    margin-top: 0.75rem;
    padding-right: 0.75rem;
    border-right: 2px solid rgba(20, 36, 75, 0.15);
}

.tour-detail-page .tour-comments__reply {
    padding: 0.5rem 0.65rem;
    background: #fff;
    border-radius: 6px;
    margin-top: 0.4rem;
    font-size: 0.88rem;
}

.tour-detail-page .tour-comments__form-wrap {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(20, 36, 75, 0.08);
}

.tour-detail-page .tour-comments__form-title {
    font-weight: 700;
    color: #14244b;
    margin-bottom: 1rem;
}

.tour-detail-page .tour-comments__rate-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tour-detail-page .tour-comments__rate-option {
    cursor: pointer;
    margin: 0;
}

.tour-detail-page .tour-comments__rate-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tour-detail-page .tour-comments__rate-option span {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 36, 75, 0.15);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #14244b;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tour-detail-page .tour-comments__rate-option input:checked + span {
    background: #14244b;
    border-color: #14244b;
    color: #fff;
}

.tour-detail-page .tour-comments__submit {
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-weight: 700;
}

.tour-detail-page .tour-comments__alert {
    border-radius: 8px;
}

.tour-detail-page .tour-comments__empty {
    padding: 0.75rem 0;
}

/* ---- Mobile reserve bar ---- */
.tour-detail-mobile-cta {
    display: none;
}

@media (max-width: 991.98px) {
    .tour-detail-page .packege-box .widget.card {
        position: static;
        margin-bottom: 1rem;
    }

    .tour-detail-nav {
        top: calc(var(--nav-height) + 0.25rem);
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .tour-detail-nav__track {
        border-radius: var(--radius-md);
        padding: 0.3rem;
    }

    .tour-detail-nav__link {
        flex: 0 0 auto;
        padding: 0.6rem 0.9rem;
        font-size: 0.82rem;
    }

    .tour-detail-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        padding: 0.75rem 1rem;
        background: var(--surface);
        border-top: 1px solid var(--border-soft);
        box-shadow: 0 -8px 24px rgba(18, 35, 64, 0.12);
        gap: 0.75rem;
        align-items: center;
    }

    .tour-detail-mobile-cta__price {
        flex: 1;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .tour-detail-mobile-cta__price strong {
        display: block;
        font-size: 1.05rem;
        color: var(--brand-accent);
    }

    .tour-detail-mobile-cta .btn {
        border-radius: var(--radius-pill);
        font-weight: 700;
        padding: 0.65rem 1.25rem;
        background: var(--brand-primary);
        color: #fff;
        border: none;
    }

    .tour-detail-page {
        padding-bottom: 5rem;
    }
}

@media (max-width: 767.98px) {
    .tour-detail-hero {
        min-height: 240px;
    }
}
