/* ==========================================================================
   FOOTER AFFILIATIONS & PARTNERS & REARRANGED FOOTER STYLES
   Seamlessly Merged Direct Background (No Extra Boxed Background Layers)
   ========================================================================== */

/* Remove legacy CTA cheap rental dark navy bar completely */
.cta-cheap-rental-section {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Seamless Bottom Directory links - merged into body background */
.yatri-bottom-directory {
    background: transparent !important;
    background-color: transparent !important;
}

.footer-section {
    position: relative;
    padding-top: 45px;
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%) !important;
}

/* --- Top Trust Showcase (Affiliations & Partners) Seamlessly Merged in Background --- */
.footer-trust-showcase {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    padding: 0 0 30px 0 !important;
    margin-bottom: 35px !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.trust-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.trust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 18px;
    background: transparent !important;
}

.trust-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.3px;
    margin: 0;
    display: flex;
    align-items: center;
}

.trust-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 20px;
    background: transparent !important;
    color: #a7f3d0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Strictly 3 In A Row Grid on Both Desktop and Mobile - Directly on Background */
.trust-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
    background: transparent !important;
}

.trust-card-item {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 6px 4px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    box-shadow: none !important;
    transition: transform 0.25s ease, opacity 0.25s ease;
    text-decoration: none !important;
}

.trust-card-item:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateY(-3px);
}

.trust-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    background: transparent !important;
}

.trust-logo-box {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 6px;
    background: transparent !important;
}

.trust-logo-img {
    max-height: 42px;
    max-width: 92%;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
    background: transparent !important;
}

.trust-card-item:hover .trust-logo-img {
    transform: scale(1.08);
    filter: brightness(1.15) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.trust-item-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
}

.trust-item-name {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.trust-item-subtitle {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #a7f3d0 !important;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    margin-top: 2px;
}

.trust-card-item:hover .trust-item-name {
    color: #6ee7b7 !important;
}

/* --- Seamless Rearranged Main Footer Columns --- */
.footer-brand-widget {
    padding-right: 15px;
}

.footer-brand-logo {
    max-height: 55px;
    width: auto;
    margin-bottom: 16px;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline-block;
}

.footer-tagline {
    font-size: 13.5px;
    line-height: 1.6;
    color: #e2e8f0 !important;
    margin-bottom: 20px;
}

.footer-social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-pill a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 14px;
    transition: all 0.25s ease;
}

.footer-social-pill a:hover {
    background: #ffffff !important;
    color: #047857 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.footer-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: #34d399;
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list li a {
    color: #e2e8f0 !important;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-nav-list li a i {
    font-size: 10px;
    color: #34d399 !important;
    margin-right: 2px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.footer-nav-list li a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

.footer-nav-list li a:hover i {
    transform: translateX(2px);
}

/* Contact Info items */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: #e2e8f0 !important;
}

.footer-contact-list li i {
    font-size: 15px;
    color: #34d399 !important;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-list li a {
    color: #e2e8f0 !important;
    transition: color 0.2s ease;
}

.footer-contact-list li a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-map-box {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 10px;
}

.footer-map-box iframe {
    display: block;
    width: 100%;
    height: 140px;
    border: 0;
}

/* --- Seamless Footer Bottom Bar --- */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
    margin-top: 35px;
    background: transparent !important;
}

.footer-bottom-text {
    font-size: 13px;
    color: #cbd5e1 !important;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-links li a {
    font-size: 12.5px;
    color: #cbd5e1 !important;
    transition: color 0.2s ease;
}

.footer-bottom-links li a:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   MOBILE & TABLET OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991px) {
    .trust-column-left {
        margin-bottom: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 575px) {
    /* STRICT 3 IN A ROW ON MOBILE PHONES */
    .trust-grid-3 {
        gap: 6px;
    }
    
    .trust-card-item {
        padding: 4px 2px !important;
        min-height: 64px;
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    
    .trust-logo-box {
        height: 32px;
        margin-bottom: 2px;
    }
    
    .trust-logo-img {
        max-height: 30px;
        max-width: 94%;
    }
    
    .trust-item-name {
        font-size: 9.5px;
    }
    
    .trust-item-subtitle {
        display: none; /* Hide subtitle on small phones to avoid vertical overflow */
    }
    
    .trust-title {
        font-size: 0.95rem;
    }
    
    .trust-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 10px;
    }
    
    .footer-bottom-text {
        text-align: center;
    }
}
