/* ================================================
   TOUR SINGLE TEMPLATE STYLES
   Matches the visual system used by single-jeep-tour.php
   Sections: Offer Hero -> Gallery -> Features -> Packages -> Reviews -> Inquiry Modal
   ================================================ */

.tour-single {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.tour-single *,
.tour-single *::before,
.tour-single *::after {
    box-sizing: border-box;
}

/* ================================================
   OFFER HERO
   ================================================ */

.tour-offer-hero {
    background: linear-gradient(135deg, #10304A 0%, #1a4060 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 44px 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}

.tour-offer-title {
    font-family: 'Alk Sanet', Georgia, 'Sylfaen', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 14px;
}

.tour-offer-body {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
}

.tour-offer-body p {
    margin: 0 0 10px;
}

.tour-offer-body p:last-child {
    margin-bottom: 0;
}

/* ================================================
   SPECIAL OFFER BOX (offer_title + offer_body)
   ================================================ */

.tour-offer-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.tour-offer-box {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #10304A;
    border-radius: 10px;
}

.tour-offer-box-tag {
    position: absolute;
    top: -13px;
    left: 18px;
    background: #10304A;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 14px;
    border-radius: 8px;
}

.tour-offer-box-text {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.6;
}

.tour-offer-box-text p {
    margin: 0 0 8px;
}

.tour-offer-box-text p:last-child {
    margin-bottom: 0;
}

/* ================================================
   GALLERY (4-per-view carousel)
   ================================================ */

.tour-gallery {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.tour-gallery-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tour-gallery-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 12px;
}

.tour-gallery-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.tour-gallery-slide {
    flex: 0 0 25%;
    padding: 0 8px;
}

.tour-gallery-slide img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f1f2;
}

.tour-gallery-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #10304A;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.tour-gallery-arrow:hover:not(:disabled) {
    background: #0a1f30;
    transform: scale(1.06);
}

.tour-gallery-arrow:disabled,
.tour-gallery-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.tour-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.tour-gallery-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #dee2e6;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tour-gallery-dot:hover {
    background: #adb5bd;
}

.tour-gallery-dot.active {
    background: #10304A;
    width: 22px;
    border-radius: 5px;
}

/* ================================================
   FEATURES
   ================================================ */

.tour-features {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.tour-features-title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-family: 'Alk Sanet', Georgia, 'Sylfaen', sans-serif;
}

.tour-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.tour-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tour-feature-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.tour-feature-icon {
    flex-shrink: 0;
    width: 32px;
    font-size: 22px;
    text-align: center;
    color: #10304A;
}

.tour-feature-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ================================================
   PACKAGES
   ================================================ */

.tour-packages {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.tour-packages-title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-family: 'Alk Sanet', Georgia, 'Sylfaen', sans-serif;
}

.tour-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tour-package-card {
    cursor: pointer;
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 26px 22px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.tour-package-card:hover,
.tour-package-card:focus-visible {
    background: #ffffff;
    border-color: #10304A;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(16, 48, 74, 0.2);
    outline: none;
}

.tour-package-name {
    font-family: 'Alk Sanet', Georgia, 'Sylfaen', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.tour-package-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 16px;
    flex-grow: 1;
}

.tour-package-price {
    font-family: 'Alk Sanet', Georgia, 'Sylfaen', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #10304A;
    margin-bottom: 18px;
}

.tour-package-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #10304A 0%, #1a4060 100%);
    transition: all 0.3s ease;
    pointer-events: none; /* the whole card is the click target */
}

.tour-package-card:hover .tour-package-cta {
    background: linear-gradient(135deg, #0a1f30 0%, #10304A 100%);
}

/* ================================================
   REVIEWS
   ================================================ */

.tour-reviews-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.tour-reviews-section .reviews-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviews-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-family: 'Alk Sanet', Georgia, 'Sylfaen', sans-serif;
    font-weight: 600;
}

.reviews-header h2 i {
    color: #f39c12;
    margin-right: 8px;
}

.review-count {
    color: #6c757d;
    font-weight: normal;
    font-size: 1rem;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.avg-stars {
    color: #f39c12;
}

.avg-stars i {
    font-size: 1.2rem;
    margin: 0 1px;
}

.avg-number {
    font-weight: 600;
    color: #1a1a1a;
}

/* Reviews List */
.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    background: #f8f9fa;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.review-date {
    color: #888;
    font-size: 0.85rem;
}

.review-stars {
    color: #f39c12;
    font-size: 1.05rem;
}

.review-stars i {
    margin: 0 1px;
}

.review-message {
    margin-top: 10px;
    color: #444;
    line-height: 1.6;
    font-size: 0.92rem;
}

.no-reviews {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 30px 0;
    font-size: 1rem;
}

/* Review Form */
.review-form-wrapper {
    background: #f8f9fa;
    padding: 26px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.review-form-wrapper h3 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    color: #1a1a1a;
    font-family: 'Alk Sanet', Georgia, 'Sylfaen', sans-serif;
    font-weight: 600;
}

.comment-form-author,
.comment-form-rating,
.comment-form-comment {
    margin-bottom: 18px;
}

.comment-form-author label,
.comment-form-rating label,
.comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.comment-form-author input,
#review_stars,
#comment {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
}

.comment-form-author input:focus,
#comment:focus {
    outline: none;
    border-color: #10304A;
    box-shadow: 0 0 0 4px rgba(16, 48, 74, 0.1);
}

#review_stars {
    padding: 10px;
}

.submit-review-btn {
    background: linear-gradient(135deg, #10304A 0%, #1a4060 100%);
    color: white;
    border: none;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-review-btn:hover {
    background: linear-gradient(135deg, #0a1f30 0%, #10304A 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 48, 74, 0.25);
}

.required {
    color: #e74c3c;
}

.optional {
    color: #888;
    font-weight: normal;
}

/* Star Rating Input */
.comment-form-rating-stars {
    margin-bottom: 20px;
}

.comment-form-rating-stars > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 2rem;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #f39c12;
    transform: scale(1.1);
}

.star-rating-input input[type="radio"]:checked ~ label {
    color: #f39c12;
}

.star-rating-input label i {
    display: block;
}

/* Pagination */
.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
}

.page-numbers.current {
    background: #10304A;
    color: white;
    border-color: #10304A;
}

.page-numbers:hover:not(.current) {
    background: #e9ecef;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   INQUIRY MODAL
   ================================================ */

.tour-inquiry-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 30, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.tour-inquiry-overlay.active {
    display: flex;
}

.tour-inquiry-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: tourModalIn 0.25s ease;
}

@keyframes tourModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tour-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    color: #495057;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.tour-modal-close:hover {
    background: #e9ecef;
    color: #dc3545;
}

.tour-modal-header {
    background: linear-gradient(135deg, #10304A 0%, #1a4060 100%);
    color: #ffffff;
    padding: 26px 30px;
    border-radius: 16px 16px 0 0;
}

.tour-modal-title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-modal-selected-package {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.tour-modal-selected-package strong {
    font-size: 16px;
    color: #ffffff;
}

.tour-modal-body {
    padding: 30px;
}

/* ---------- Shared form control styles ---------- */

.form-group {
    margin-bottom: 20px;
}

.form-group > label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group > label i {
    color: #10304A;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    color: #1a1a1a;
}

.form-control:focus {
    outline: none;
    border-color: #10304A;
    box-shadow: 0 0 0 4px rgba(16, 48, 74, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ---------- Radio Group (Preferred Language) ---------- */

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    margin: 0;
    flex: 1;
    justify-content: center;
}

.radio-option:hover {
    border-color: #10304A;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    accent-color: #10304A;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.radio-option:has(input:checked) {
    border-color: #10304A;
    background: #f8f9fa;
    color: #10304A;
    font-weight: 600;
}

/* ---------- Optional Contact Toggles (WhatsApp / Telegram) ---------- */

.optional-contact-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.add-contact-btn {
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed #dee2e6;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    font-family: inherit;
}

.add-contact-btn:hover {
    border-color: #10304A;
    background: #eef2f6;
    color: #10304A;
    transform: translateY(-2px);
}

.remove-contact-btn {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 13px;
    line-height: 1;
    transition: color 0.2s ease;
}

.remove-contact-btn:hover {
    color: #dc3545;
}

/* ---------- Submit ---------- */

.booking-actions {
    margin-bottom: 4px;
}

.btn-book-now {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #10304A 0%, #1a4060 100%);
    color: #ffffff;
}

.btn-book-now:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a1f30 0%, #10304A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 48, 74, 0.3);
}

.btn-book-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Message ---------- */

.booking-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

.booking-message.success {
    display: flex;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-message.error {
    display: flex;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.booking-message i {
    font-size: 16px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1024px) {
    .tour-offer-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tour-single {
        padding: 20px 15px;
    }

    .tour-offer-hero {
        padding: 30px 22px;
    }

    .tour-offer-section,
    .tour-gallery,
    .tour-features,
    .tour-packages,
    .tour-reviews-section {
        padding: 22px;
    }

    .tour-offer-title {
        font-size: 1.75rem;
    }

    .tour-gallery-slide img {
        height: 180px;
    }

    .tour-gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .tour-modal-header,
    .tour-modal-body {
        padding: 22px;
    }

    .add-contact-btn {
        min-width: 100%;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-form-wrapper {
        padding: 20px;
    }

    .star-rating-input {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .tour-offer-title {
        font-size: 1.5rem;
    }

    .tour-packages-grid {
        grid-template-columns: 1fr;
    }

    .tour-package-price {
        font-size: 22px;
    }

    .tour-gallery-slide img {
        height: 150px;
    }

    .tour-modal-title {
        font-size: 1.1rem;
    }
}