/* Tour detail page, shared by /en, /ru and /tr. Loaded after style.css. */

/* Solid Header background for Tour Details */
#main-header {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 0 !important;
}
/* Ensure logo text and nav links are white on solid dark background */
#main-header .logo-text, 
#main-header .nav-link {
    color: var(--white) !important;
}
/* Push content down to clear fixed navbar */
.section-padding {
    padding-top: 150px !important;
    padding-bottom: 100px !important;
}

/* Detail Page Grid */
.tour-detail-container {
    display: grid;
    grid-template-columns: 2.09fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .tour-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .section-padding {
        padding-top: 120px !important;
    }
}

/* Breadcrumbs styling */
.breadcrumbs {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumbs a:hover {
    color: var(--primary-accent);
}

/* Hero block header */
.tour-header-block {
    margin-bottom: 24px;
}
.tour-header-cat {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-accent);
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.tour-header-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}
.tour-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
}
.tour-header-meta .stars {
    color: var(--primary-accent);
    font-weight: 700;
}

/* Gallery Slider */
.tour-gallery-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #062a2b;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    aspect-ratio: 16 / 9;
}
.gallery-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition-fast);
    z-index: 10;
}
.gallery-nav-btn:hover {
    background-color: var(--primary-accent);
    color: var(--white);
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

/* Gallery Thumbnails Strip Below Big Image */
.gallery-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}
.gallery-thumb-item {
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    opacity: 0.75;
}
.gallery-thumb-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.gallery-thumb-item.active {
    border-color: var(--primary-accent);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(254, 106, 0, 0.25);
}
.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-thumb-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-thumbs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .gallery-thumb-item {
        height: 80px;
        border-radius: 12px;
        border-width: 2px;
    }
}
@media (max-width: 480px) {
    .gallery-thumb-item {
        height: 65px;
    }
}

/* Fast Facts Cards */
.fast-facts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
@media (max-width: 575px) {
    .fast-facts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.fact-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.fact-card-lbl {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.fact-card-val {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Dynamic Tabs styling */
.tour-tabs-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}
.tour-tabs-nav {
    display: flex;
    gap: 24px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tour-tabs-nav::-webkit-scrollbar {
    display: none;
}
.tab-btn {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 4px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.tab-btn:hover {
    color: var(--primary-accent);
}
.tab-btn.active {
    color: var(--primary-dark);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-accent);
    border-radius: 2px;
}

.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Content */
.tab-pane > h2,
.tab-pane > h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}
.tab-pane p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* Itinerary steps timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 24px;
}
.itinerary-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 11px;
    width: 2px;
    background-color: var(--border-color);
}
.itinerary-step {
    position: relative;
    margin-bottom: 30px;
}
.itinerary-step:last-child {
    margin-bottom: 0;
}
.step-badge {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--white);
}
.step-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.step-heading span {
    color: var(--primary-accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 8px;
    text-transform: uppercase;
}
.step-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Included/Not Included Columns */
.inc-exc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 575px) {
    .inc-exc-grid {
        grid-template-columns: 1fr;
    }
}
.inc-column, .exc-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.inc-item, .exc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
}
.inc-item svg {
    color: var(--whatsapp-green);
    flex-shrink: 0;
    margin-top: 4px;
}
.exc-item svg {
    color: #d60101;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Reviews Box styling */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.review-box {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.review-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.review-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}
.review-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}
.review-meta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.review-stars {
    color: var(--primary-accent);
    font-size: 0.9rem;
}
.review-body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Review submission form */
.review-form-box {
    background-color: var(--light-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}
.review-form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}
.stars-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.star-radio-lbl {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition-fast);
}
.star-radio-lbl:hover,
.star-radio-lbl.selected {
    color: var(--primary-accent);
}

/* Spec list detail widget */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.spec-lbl {
    color: var(--text-muted);
    font-weight: 500;
}
.spec-val {
    color: var(--primary-dark);
    font-weight: 700;
    text-align: right;
}

/* Sticky Booking Card */
.booking-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0 0 24px 24px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
    z-index: 10;
}
.booking-feat-badge {
    display: flex;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--whatsapp-green);
    font-weight: 700;
    margin-bottom: 20px;
}
.booking-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.booking-input-wrapper {
    margin-bottom: 20px;
}
.booking-date-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--light-bg);
    cursor: pointer;
    transition: var(--transition-fast);
}
.booking-date-input:focus {
    border-color: var(--primary-accent);
}

.travellers-counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
    background-color: var(--light-bg);
    margin-bottom: 20px;
}
.travellers-counter-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}
.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}
.counter-btn:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}
.counter-val {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 20px;
    text-align: center;
}

.booking-price-calc {
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    margin-bottom: 20px;
}
.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.calc-usd {
    font-weight: 700;
}
.calc-egp-row {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: right;
    margin-bottom: 12px;
}
.calc-fee-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-booking-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-accent);
    color: var(--white);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(254,106,0,0.3);
}
.btn-booking-submit:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
}
.btn-whatsapp-inquiry {
    width: 100%;
    padding: 16px;
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.btn-whatsapp-inquiry:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.booking-card-footer {
    margin-top: 16px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modal custom sizing */
        .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 42, 43, 0.75);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.show {
    display: flex;
}
.modal-content {
    background-color: var(--white);
    border-radius: 28px;
    width: 100%;
    max-width: 540px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f1f5f9;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}
.modal-close:hover {
    background-color: #e2e8f0;
    color: var(--primary-accent);
    transform: scale(1.05);
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.form-group {
    margin-bottom: 20px;
    font-family: var(--font-body);
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--font-body);
    background-color: #f8fafc;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: var(--primary-dark);
}
.form-control:focus {
    border-color: var(--primary-accent);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(224, 112, 64, 0.1);
}