/* Travely Flights Comparator Premium Stylesheet */

.tv-comparator-master-container {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1A202C;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Search Bar (Pill Shape) */
.tv-dest-search-container {
    max-width: 550px;
    margin: 1.5rem auto;
    position: relative;
    box-sizing: border-box;
}

.tv-search-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.tv-search-icon {
    position: absolute;
    left: 1.25rem;
    color: #94A3B8;
    pointer-events: none;
}

#tv-dest-search-input {
    width: 100%;
    padding: 0.9rem 1.25rem 0.9rem 3.25rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    font-weight: 500;
    color: #1E293B;
    outline: none;
    transition: all 0.3s ease;
}

#tv-dest-search-input:focus {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.08);
}

/* Region Tabs (eSIM Style) */
.tv-region-tabs-container {
    margin: 1.5rem 0 2rem 0;
}

.tv-region-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tv-region-tab {
    background: #F1F5F9;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tv-region-tab:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.tv-region-tab.active {
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

/* Destination Pills */
.tv-destination-pills {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tv-dest-pill {
    background: #F8FAFC;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tv-dest-pill img {
    width: 1.15rem !important;
    height: auto;
    border-radius: 2px;
    margin-right: 2px;
}

.tv-dest-pill:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #1E293B;
}

.tv-dest-pill.active {
    background: #FF6B35;
    color: #FFFFFF;
    border-color: #FF6B35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.22);
}

/* Grid Layout */
.tv-comparator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Comparison Cards */
.tv-comparator-card {
    background: #FFFFFF;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.tv-comparator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
}

/* Provider Branding Logos */
.tv-provider-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tv-provider-booking .tv-provider-logo {
    color: #003580; /* Booking Blue */
}

.tv-provider-kiwi .tv-provider-logo {
    color: #00AE90; /* Kiwi Green/Teal */
}

.tv-provider-trip .tv-provider-logo {
    color: #0F294D; /* Trip Dark Blue */
}

/* Price Indicators */
.tv-provider-price {
    font-size: 3rem;
    font-weight: 800;
    color: #0F172A;
    margin: 1.5rem 0 0.25rem 0;
    line-height: 1;
}

.tv-provider-price .currency {
    font-size: 1.75rem;
    vertical-align: super;
    font-weight: 600;
    color: #64748B;
    margin-right: 2px;
}

.tv-provider-meta {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 2rem;
}

/* Action Button Inside Card */
.tv-provider-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    margin-top: auto;
}

.tv-provider-booking .tv-provider-btn {
    background: #003580;
    color: #FFFFFF;
}

.tv-provider-booking .tv-provider-btn:hover {
    background: #00224F;
}

.tv-provider-kiwi .tv-provider-btn {
    background: #00AE90;
    color: #FFFFFF;
}

.tv-provider-kiwi .tv-provider-btn:hover {
    background: #008770;
}

.tv-provider-trip .tv-provider-btn {
    background: #0F294D;
    color: #FFFFFF;
}

.tv-provider-trip .tv-provider-btn:hover {
    background: #06162B;
}

/* CHEAPEST HIGHLIGHT EFFECT */
.tv-comparator-card.cheapest {
    border-color: #10B981; /* Green border */
    background: linear-gradient(to bottom, #FFFFFF, #F0FDF4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.tv-comparator-card.cheapest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #10B981;
}

/* Glowing Best Price Badge */
.tv-provider-cheapest-label {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 1px;
    animation: tv-pulse-glow 2s infinite;
}

.tv-comparator-card.cheapest .tv-provider-cheapest-label {
    display: block;
}

/* Master/Main Action Button Wrapper */
.tv-comparator-main-cta-wrap {
    text-align: center;
    margin-top: 3rem;
}

.tv-comparator-master-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35 0%, #FF5216 100%);
    color: #FFFFFF !important;
    padding: 1.2rem 3rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
    transition: all 0.25s ease;
}

.tv-comparator-master-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.45);
}

.tv-comparator-master-btn .dest-name {
    margin-left: 0.35rem;
}

/* Animations */
@keyframes tv-pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .tv-comparator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tv-comparator-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .tv-comparator-grid {
        grid-template-columns: 1fr;
    }
    .tv-comparator-master-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        box-sizing: border-box;
    }
}

/* Category Selector Tabs (Segmented Control style) */
.tv-category-tabs-container {
    margin: 1.5rem 0 2rem 0;
    text-align: center;
    box-sizing: border-box;
}

.tv-category-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    background: #F1F5F9;
    padding: 0.35rem;
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tv-category-tab {
    background: transparent;
    border: none;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.tv-category-tab:hover {
    color: #0F172A;
    background: rgba(0, 0, 0, 0.03);
}

.tv-category-tab.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Klook Search Widget Premium Styles */
.tv-klook-widget-outer {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.tv-klook-search-form-wrap {
    max-width: 650px;
    margin: 1.5rem auto 2.5rem auto;
    box-sizing: border-box;
}

.tv-klook-search-form {
    display: flex;
    gap: 0.5rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-radius: 999px;
    padding: 0.35rem;
    align-items: center;
    box-sizing: border-box;
}

.tv-klook-search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.tv-klook-search-icon {
    position: absolute;
    left: 1.25rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.tv-klook-search-input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 3.25rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1E293B;
    outline: none;
    box-sizing: border-box;
}

.tv-klook-search-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF5216 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.25);
    outline: none;
    white-space: nowrap;
}

.tv-klook-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.35);
}

.tv-klook-search-btn:active {
    transform: translateY(0);
}

.tv-klook-tags-wrap {
    margin-top: 1.15rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.tv-klook-tags-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94A3B8;
    margin-right: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tv-klook-tag {
    background: #F1F5F9;
    border: none;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-decoration: none;
    display: inline-block;
}

.tv-klook-tag:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.tv-klook-tag:active {
    transform: scale(0.97);
}

/* Mobile Responsiveness for Klook search form */
@media (max-width: 550px) {
    .tv-klook-search-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.75rem;
        border-radius: 0;
    }
    .tv-klook-search-input-wrap {
        width: 100%;
        background: #FFFFFF;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        border-radius: 999px;
        height: auto;
    }
    .tv-klook-search-btn {
        width: 100%;
        padding: 0.95rem 2rem;
    }
}

/* Klook Dynamic Showcase Tag Styles */
.tv-klook-dynamic-tag {
    background: #F1F5F9;
    border: 1px solid transparent;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.tv-klook-dynamic-tag:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.tv-klook-dynamic-tag.active {
    background: #FF6B35;
    color: #FFFFFF;
    border-color: #FF6B35;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.22);
}

.tv-klook-dynamic-tag:active {
    transform: scale(0.97);
}

/* Klook Showcase Container Styles */
.tv-klook-showcase-wrapper {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: -2.25rem !important; /* Pull the subsequent comparator tabs section closer */
    transition: all 0.3s ease;
    overflow: hidden;
}

.tv-klook-showcase-wrapper iframe {
    border: none !important;
    outline: none !important;
    border-radius: 12px;
    overflow: hidden;
    width: 100% !important;
    height: 350px !important; /* Crop the "See more" and "Powered by Klook" branding on desktop */
}

@media (max-width: 768px) {
    .tv-klook-showcase-wrapper iframe {
        height: 370px !important; /* Adjust height to fit 3 stacked cards on mobile without Klook footer */
    }
}

