/*
Theme Name: Traveler Child - SharmStation
Theme URI: https://sharmstation.com/
Description: Child theme for Traveler theme with custom tour modifications: PDF download, HTML content support, single review criteria, and UI cleanup.
Author: SharmStation
Author URI: https://sharmstation.com/
Template: traveler
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traveler
*/

/* ==========================================================================
   1. Hide "About this tour" / "Overview" section title on tour pages
   ========================================================================== */
.single-st_tours .st-overview .st-section-title,
.single-st_tours .st-description#st-description > .st-heading-section {
    display: none !important;
}

/* ==========================================================================
   2. Download PDF button styling in tour info bar
   ========================================================================== */
.st-tour-feature .st-download-pdf .btn-download-pdf,
.st-service-feature .st-download-pdf .btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--main-color, #5191FA);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: 1.4;
}

.st-tour-feature .st-download-pdf .btn-download-pdf:hover,
.st-service-feature .st-download-pdf .btn-download-pdf:hover {
    background-color: #3a7be0;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.st-tour-feature .st-download-pdf .btn-download-pdf:active,
.st-service-feature .st-download-pdf .btn-download-pdf:active {
    transform: translateY(0);
}

/* SVG icon removed from button */

.st-tour-feature .st-download-pdf .btn-download-pdf .spinner,
.st-service-feature .st-download-pdf .btn-download-pdf .spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tc-spin 0.6s linear infinite;
}

.st-tour-feature .st-download-pdf .btn-download-pdf.loading .spinner,
.st-service-feature .st-download-pdf .btn-download-pdf.loading .spinner {
    display: inline-block;
}

/* SVG icon removed from button */

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

/* ==========================================================================
   3. HTML content in highlights / includes / excludes
   ========================================================================== */
.st-highlight ul li,
.st-include ul li,
.st-inexclude ul li {
    line-height: 1.6;
}

.st-highlight ul li p,
.st-include ul li p,
.st-inexclude ul li p {
    margin: 0;
    display: inline;
}

/* ==========================================================================
   5. Mobile tour gallery: keep desktop collage/masonry look
   ========================================================================== */
@media (max-width: 991px) {
    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(120px, auto));
        gap: 8px;
        overflow: hidden;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        float: none !important;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery:nth-child(3) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .single-st_tours .st-gallery.style-masonry .st-list-item-gallery .item-gallery:nth-child(n+6) {
        display: none !important;
    }
}

/* ==========================================================================
   4. Review criteria — single "Experience Quality" styling
   ========================================================================== */
.review-items .item {
    margin-bottom: 10px;
}

.review-items .item label {
    font-weight: 500;
}

/* ==========================================================================
   6. Elementor tour loop: legacy marketing labels (cleaned)
   ========================================================================== */
.tc-tour-extra-text {
    margin-top: 5px;
}

.tc-tour-extra-title {
    color: #ED8332;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.tc-tour-extra-subtitle {
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

/* ==========================================================================
   7. Sidebar Trust Widget — "Why book with us" + Contact
   ========================================================================== */
.tc-trust-widget {
    background: #FFF7ED;
    border: 1px solid #FDBA74;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* On mobile, ensure proper spacing when moved to main content */
@media (max-width: 991px) {
    .tc-trust-widget {
        margin-bottom: 30px;
    }
    
    /* Fix book now button touch events on mobile */
    .btn-book-now,
    .st-btn-book-tour,
    .btn-book,
    .st-fixed-form-booking .btn,
    .st-service-feature .btn-book-now {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Ensure sticky booking bar is clickable */
    .st-fixed-form-booking {
        pointer-events: auto !important;
        z-index: 999 !important;
    }
    
    /* Fix any overlay issues */
    .st-fixed-form-booking * {
        pointer-events: auto !important;
    }
}

.tc-trust-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tc-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #1e293b;
}

.tc-trust-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ED8332;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-top: 2px;
}

.tc-trust-text strong {
    text-decoration: underline;
    font-weight: 700;
}

.tc-trust-contact {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.tc-trust-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.tc-trust-buttons {
    display: flex;
    gap: 10px;
}

.tc-trust-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    flex: 1;
    justify-content: center;
}

.tc-trust-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none;
}

.tc-trust-btn--wa {
    background: #25D366;
    color: #fff;
}

.tc-trust-btn--wa:hover {
    color: #fff !important;
    cursor: pointer;
}

.tc-trust-btn--email {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.tc-trust-btn--email:hover {
    color: #1e293b;
    background: #e2e8f0;
}

@media (max-width: 575px) {
    .tc-trust-buttons {
        flex-direction: column;
    }
}

/* ==========================================================================
   8. Google Reviews section on tour single
   ========================================================================== */
.tc-google-reviews-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ==========================================================================
   9. Attraction archive page
   ========================================================================== */
.tc-attraction-archive .tc-attraction-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 48px 0 40px;
    color: #fff;
    margin-bottom: 32px;
}

.tc-attraction-hero__inner {
    max-width: 720px;
}

.tc-attraction-hero__title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
}

.tc-attraction-hero__desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.tc-attraction-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.tc-attraction-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(237,131,50,0.15);
    color: #ED8332;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.tc-attraction-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.tc-attraction-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.tc-attraction-section-header .tc-attraction-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.tc-attraction-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.tc-attraction-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tc-attraction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
}

.tc-attraction-card__image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}

.tc-attraction-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.tc-attraction-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
}

.tc-attraction-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.tc-attraction-card__count {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.tc-attraction-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.tc-attraction-empty i {
    color: #ED8332;
    margin-bottom: 16px;
}

.tc-attraction-breadcrumb {
    font-size: 13px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.6);
}

.tc-attraction-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.tc-attraction-breadcrumb a:hover {
    color: #fff;
}

.tc-attraction-breadcrumb .tc-sep {
    margin: 0 6px;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   10. Single Criterion Review UI
   ========================================================================== */
.tc-single-criterion-info {
    padding: 20px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 10px;
}

.tc-single-criterion-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
