/* ===== TOUR DETAIL PAGE ===== */

/* Hero / Breadcrumb */
.td-hero {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3c4d 0%, #234ea1 100%);
}
.td-hero-bg {
    position: absolute;
    inset: 0;
}
.td-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}
.td-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(39 83 166) 0%, rgb(133 221 198) 100%);
}
.td-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 24px;
}
.td-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.td-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.td-breadcrumb a:hover {
    color: #fff;
}
.td-breadcrumb i {
    font-size: 0.6rem;
    opacity: 0.5;
}
.td-breadcrumb span {
    color: #fff;
    font-weight: 600;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Layout */
.td-main {
    padding: 30px 0 50px;
    background: #f5f7fa;
}
.td-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Content Column */
.td-content {
    min-width: 0;
}

/* Image Card */
.td-image-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.td-main-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e9ecef;
}
.td-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Image Navigation */
.td-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
    opacity: 0;
}
.td-main-image:hover .td-img-nav {
    opacity: 1;
}
.td-img-nav:hover {
    background: rgba(0,0,0,0.7);
}
.td-img-prev { left: 14px; }
.td-img-next { right: 14px; }

.td-img-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 5;
    backdrop-filter: blur(4px);
}
.td-img-counter i {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Thumbnail Gallery */
.td-thumb-gallery {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #fff;
}
.td-thumb-gallery::-webkit-scrollbar { display: none; }
.td-thumb-item {
    flex: 0 0 100px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.55;
    transition: all 0.25s;
}
.td-thumb-item:hover {
    opacity: 0.85;
    transform: scale(1.03);
}
.td-thumb-item.active {
    border-color: #ff9800;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(255,152,0,0.3);
}
.td-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-img-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #234ea1;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.td-img-badge i {
    margin-right: 4px;
}
.td-img-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}
.td-img-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.td-img-btn:hover {
    background: #fff;
    transform: scale(1.08);
}
.td-img-btn.active,
.td-img-btn.active:hover {
    background: #ff9800;
    color: #fff;
}

/* Mobile Title (hidden on desktop) */
.td-title-mobile {
    display: none;
}

/* Quick Specs Bar */
.td-quick-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.td-qs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
}
.td-qs-item > i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f8f5;
    color: #234ea1;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.td-qs-label {
    display: block;
    font-size: 0.72rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.td-qs-value {
    display: block;
    font-size: 0.88rem;
    color: #333;
    font-weight: 600;
    margin-top: 1px;
}

/* Sections */
.td-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.td-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3c4d;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}
.td-section-title i {
    color: #234ea1;
    margin-right: 8px;
    font-size: 1rem;
}

/* Description */
.td-description {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #555;
}

/* Details Table */
.td-details-table {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.td-details-table table {
    width: 100%;
    border-collapse: collapse;
}
.td-details-table tr:nth-child(even) {
    background: #fafbfc;
}
.td-details-table td {
    padding: 14px 18px;
    font-size: 0.88rem;
    border-bottom: 1px solid #f0f0f0;
}
.td-details-table tr:last-child td {
    border-bottom: none;
}
.td-dt-label {
    color: #777;
    font-weight: 500;
    width: 42%;
    white-space: nowrap;
}
.td-dt-label i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #234ea1;
}
.td-dt-value {
    color: #333;
    font-weight: 600;
}
.td-dt-price {
    color: #234ea1;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Features */
.td-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.td-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0faf8;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #444;
    font-weight: 500;
}
.td-feature-item i {
    color: #234ea1;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Info Cards */
.td-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.td-info-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.td-info-card:hover {
    border-color: #234ea1;
    box-shadow: 0 4px 16px rgba(14,122,110,0.08);
}
.td-info-card > i {
    font-size: 1.3rem;
    color: #234ea1;
    margin-top: 2px;
    flex-shrink: 0;
}
.td-info-card strong {
    display: block;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 4px;
}
.td-info-card p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* ===== SIDEBAR ===== */
.td-sidebar {
    position: sticky;
    top: 90px;
}
.td-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

/* Price Card */
.td-tour-title-desktop {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3c4d;
    margin-bottom: 20px;
    line-height: 1.35;
}
.td-price-box {
    background: linear-gradient(135deg, #f0faf8 0%, #e8eaf8 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #0288d138;
}
.td-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.td-price-row + .td-price-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #c5e8e0;
}
.td-price-tag {
    font-size: 0.82rem;
    color: #666;
    font-weight: 500;
}
.td-price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #234ea1;
}
.td-price-child {
    font-size: 1.1rem;
    color: #ff9800;
}

/* Ticket Rows with Quantity */
.td-ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
}
.td-ticket-row + .td-ticket-row {
    border-top: 1px dashed #c5e8e0;
}
.td-ticket-info {
    flex: 1;
    min-width: 0;
}
.td-ticket-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
}
.td-ticket-unit {
    display: block;
    font-size: 0.72rem;
    color: #888;
    margin-top: 1px;
}
.td-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #d4efea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.td-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f0faf8;
    color: #234ea1;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.td-qty-btn:hover {
    background: #d4efea;
}
.td-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 0.92rem;
    font-weight: 700;
    color: #333;
    background: transparent;
    -moz-appearance: textfield;
}
.td-qty-input::-webkit-outer-spin-button,
.td-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.td-ticket-total {
    font-size: 0.92rem;
    font-weight: 700;
    color: #234ea1;
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}
.td-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 6px;
    border-top: 2px solid #234ea1;
    font-size: 1rem;
    font-weight: 800;
    color: #1a3c4d;
}
.td-grand-total span:last-child {
    font-size: 1.3rem;
    color: #234ea1;
}

.td-selected-date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0faf8;
    border: 1px solid #d0ece7;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #333;
}

.td-selected-date i {
    color: #0e7a6e;
    font-size: 1rem;
}

.td-selected-date strong {
    color: #0e7a6e;
    margin-left: auto;
}

/* Book Now (Add to Cart) */
.td-btn-addcart {
    background: #ff9800;
    color: #fff;
}
.td-btn-addcart:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,152,0,0.35);
}

/* WhatsApp Button (renamed from td-btn-book) */
.td-btn-whatsapp {
    background: #25d366;
    color: #fff;
}
.td-btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.td-btn-whatsapp i {
    font-size: 1.2rem;
}

/* Specs Mini */
.td-specs-mini {
    margin-bottom: 20px;
}
.td-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.84rem;
}
.td-spec-row:last-child {
    border-bottom: none;
}
.td-spec-label {
    color: #888;
    font-weight: 500;
}
.td-spec-val {
    color: #333;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Buttons */
.td-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    margin-bottom: 10px;
}
.td-btn-call {
    background: #1a3c4d;
    color: #fff;
}
.td-btn-call:hover {
    background: #143344;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,60,77,0.35);
}

/* Sidebar Actions */
.td-sidebar-actions {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.td-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    color: #777;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.td-action-btn i {
    font-size: 1rem;
}
.td-action-btn:hover {
    border-color: #234ea1;
    color: #234ea1;
    background: #f0faf8;
}
.td-action-btn.active {
    border-color: #ff9800;
    color: #ff9800;
    background: #fff8ee;
}

/* Contact Card */
.td-contact-card h3 {
    font-size: 1rem;
    color: #1a3c4d;
    margin-bottom: 10px;
}
.td-contact-card h3 i {
    color: #234ea1;
    margin-right: 6px;
}
.td-contact-card p {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 14px;
}
.td-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.td-contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.2s;
}
.td-contact-info a:hover {
    background: #e8f8f5;
    color: #234ea1;
}
.td-contact-info a i {
    color: #234ea1;
    width: 18px;
    text-align: center;
}

/* ===== RELATED TOURS ===== */
.td-related {
    padding: 50px 0 60px;
    background: #fff;
}
.td-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3c4d;
    text-align: center;
    margin-bottom: 6px;
}
.td-related-sub {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 30px;
}
.td-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.td-rel-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.td-rel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.td-rel-image {
    position: relative;
    aspect-ratio: 16/10;
    background: #e9ecef;
    overflow: hidden;
}
.td-rel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.td-rel-card:hover .td-rel-image img {
    transform: scale(1.06);
}
.td-rel-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(14,122,110,0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}
.td-rel-content {
    padding: 16px;
}
.td-rel-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a3c4d;
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.td-rel-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.td-rel-price-label {
    font-size: 0.75rem;
    color: #999;
}
.td-rel-price-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: #234ea1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .td-layout {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }
    .td-info-cards {
        grid-template-columns: 1fr;
    }
    .td-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .td-hero {
        height: 120px;
    }
    .td-hero .container {
        padding-bottom: 16px;
    }
    .td-main {
        padding: 16px 0 30px;
    }
    .td-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .td-title-mobile {
        display: block !important;
        padding: 20px;
    }
    .td-tour-name {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1a3c4d;
        margin-bottom: 10px;
    }
    .td-price-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .td-price-mobile .td-price-label {
        font-size: 0.82rem;
        color: #888;
    }
    .td-price-mobile .td-price-value {
        font-size: 1.3rem;
        font-weight: 800;
        color: #234ea1;
    }

    .td-tour-title-desktop {
        display: none;
    }

    .td-img-nav {
        width: 36px;
        height: 36px;
        opacity: 1;
        background: rgba(0,0,0,0.35);
    }
    .td-img-prev { left: 8px; }
    .td-img-next { right: 8px; }
    .td-thumb-item {
        flex: 0 0 72px;
        height: 54px;
    }
    .td-thumb-gallery {
        gap: 8px;
        padding: 10px 12px;
    }

    .td-sidebar {
        position: static;
    }
    .td-sidebar-card {
        border-radius: 14px;
    }

    .td-ticket-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .td-ticket-total {
        width: 100%;
        text-align: right;
        font-size: 0.85rem;
    }

    .td-section {
        padding: 20px;
        border-radius: 14px;
    }
    .td-features {
        grid-template-columns: 1fr;
    }
    .td-quick-specs {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 8px;
    }
    .td-qs-item > i {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .td-qs-label {
        font-size: 0.65rem;
    }
    .td-qs-value {
        font-size: 0.8rem;
    }

    .td-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .td-related-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .td-quick-specs {
        grid-template-columns: 1fr 1fr;
    }
    .td-related-grid {
        grid-template-columns: 1fr;
    }
    .td-breadcrumb span {
        max-width: 150px;
    }
}

/* Print */
@media print {
    .td-hero, .td-img-actions, .td-sidebar-actions,
    .td-btn-addcart, .td-btn-whatsapp, .td-btn-call, .td-contact-card,
    .td-related, .navbar, .footer-section, .td-fav-btn {
        display: none !important;
    }
    .td-layout {
        grid-template-columns: 1fr;
    }
    .td-sidebar {
        position: static;
    }
}
