/* ================================================================
   BRAHIM TRAVEL MOROCCO - PREMIUM FOOTER DESIGN
   Modern, Professional Footer Styling
   ================================================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Footer Colors */
    --footer-bg-primary: #1a1a1a;
    --footer-bg-secondary: #2c2c2c;
   --footer-bg-gradient: linear-gradient(135deg, #f1f1f1 0%, #ffffff 100%);
        --footer-text-primary: #ffffff;
    --footer-text-secondary: #000000;
    --footer-text-muted: #888888;
    --footer-accent: #b0774b;
    --footer-accent-hover: #d4956f;
    --footer-border: #333333;
    
    /* Brand Colors */
    --brand-primary: #073260;
    --brand-secondary: #b0774b;
    --morocco-orange: #e67e22;
    --sahara-gold: #f39c12;
    
    /* Social Media Colors */
    --facebook: #1877f2;
    --instagram: #e4405f;
    --whatsapp: #25d366;
    --tripadvisor: #00af87;
    --twitter: #1da1f2;
    
    /* Spacing */
    --footer-padding: 4rem 0;
    --section-gap: 3rem;
    --item-gap: 1rem;
    
    /* Shadows */
    --footer-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --button-shadow: 0 4px 15px rgba(71, 159, 95, 0.3);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s ease;
}

/* Footer Base Styles */
.footer-bg {
    background: var(--footer-bg-gradient);
    position: relative;
    overflow: hidden;
    box-shadow: var(--footer-shadow);
}

.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="20" cy="60" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="80" cy="40" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.footer-bg * {
    position: relative;
    z-index: 2;
}



.pt-100 {
    padding-top: 6rem !important;
}

.pb-30 {
    padding-bottom: 2rem !important;
}

.mb-30 {
    margin-bottom: 2rem !important;
}

.mb-35 {
    margin-bottom: 2.5rem !important;
}

.mb-20 {
    margin-bottom: 1.5rem !important;
}

/* Container and Layout */
.footer-top {
    border-bottom: 1px solid var(--footer-border);
    padding-bottom: var(--section-gap);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.row.justify-content-between {
    justify-content: space-between;
}

[class*="col-"] {
    padding: 1rem;
}

.col-xl-6,
.col-lg-5 {
    flex: 0 0 45%;
    max-width: 45%;
}

.col-xl-3,
.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Footer Widget Styles */
.footer-widget {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
    height: fit-content;
}

.footer-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

/* Logo Section */
.logo img {
    max-width: 250px;
    height: auto;
    filter: brightness(1.1);
    transition: var(--transition-base);
}

.logo:hover img {
    filter: brightness(1.3);
    transform: scale(1.05);
}

/* Footer Text */
.footer-text p {
    color: var(--footer-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 1.5rem !important;
    font-weight: 400;
}

/* Newsletter Form */
#newsletter {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.input-group .form-control {
    flex: 1;
    border: none !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem;
    background: transparent !important;
    color: #333 !important;
    outline: none;
    border-radius: 50px 0 0 50px !important;
}

.input-group .form-control::placeholder {
    color: #666;
    font-weight: 400;
}

.input-group .form-control:focus {
    box-shadow: none !important;
    background: transparent !important;
}

.input-group-btn .btn {
    border: none !important;
    padding: 1rem 2rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #5bb372 100%) !important;
    color: var(--footer-text-primary) !important;
    box-shadow: var(--button-shadow);
}

.btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-base);
}

.btn.btn-primary:hover::before {
    left: 100%;
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, #5bb372 0%, var(--brand-primary) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 159, 95, 0.4);
}

/* Social Media Section */
.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.footer-social span {
    font-size: 1rem !important;
    color: #000 !important;
    font-weight: 600 !important;
    font-family: 'Playfair Display', serif !important;
    margin-right: 1.5rem !important;
    position: relative;
}

.footer-social span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-accent) 0%, var(--footer-accent-hover) 100%);
    border-radius: 1px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text-secondary) !important;
    font-size: 1.2rem !important;
    margin-right: 1rem !important;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition-base);
    z-index: -1;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-social a:hover::before {
    transform: scale(1);
}

/* Individual Social Media Colors */
.footer-social a[href*="facebook"]:hover,
.footer-social a[href*="facebook"]::before {
    background: var(--facebook);
}

.footer-social a[href*="instagram"]:hover,
.footer-social a[href*="instagram"]::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a[href*="whatsapp"]:hover,
.footer-social a[href*="whatsapp"]::before {
    background: var(--whatsapp);
}

.footer-social a[href*="tripadvisor"]:hover,
.footer-social a[href*="tripadvisor"]::before {
    background: var(--tripadvisor);
}

.footer-social a[href*="twitter"]:hover,
.footer-social a[href*="twitter"]::before {
    background: var(--twitter);
}

/* Widget Titles */
.f-widget-title h5 {
    color: #000 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    position: relative;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f-widget-title h5::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px !important;
    width: 60px !important;
    background: linear-gradient(90deg, var(--footer-accent) 0%, var(--footer-accent-hover) 100%) !important;
    border-radius: 2px;
}

.f-widget-title h5::after {
    content: '';
    position: absolute;
    left: 70px;
    bottom: 1px;
    height: 1px;
    width: 30px;
    background: var(--footer-border);
}

/* Footer Links */
.footer-link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link ul li {
    margin-bottom: 0.8rem !important;
    position: relative;
    padding-left: 1rem;
}

.footer-link ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--footer-accent);
    font-weight: bold;
    transition: var(--transition-base);
    opacity: 0;
    transform: translateX(-10px);
}

.footer-link ul li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-link ul li:last-child {
    margin-bottom: 0 !important;
}

.footer-link ul li a {
    color: var(--footer-text-secondary) !important;
    font-size: 14px !important;
    font-weight: 400;
    text-transform: capitalize !important;
    transition: var(--transition-base);
    position: relative;
    padding: 0.3rem 0;
}

.footer-link ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: var(--transition-base);
}

.footer-link ul li a:hover {
    padding-left: 0.5rem !important;
    color: var(--footer-accent-hover) !important;
    text-decoration: none;
}

.footer-link ul li a:hover::after {
    width: 100%;
}

/* Contact Information */
.footerP.info-extra {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-extra {
    display: flex !important;
    align-items: center;
    margin-bottom: 1.5rem !important;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: var(--transition-base);
}

.contact-extra:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-extra i {
    color: var(--footer-accent) !important;
    font-size: 1.2rem !important;
    margin-right: 1rem !important;
    margin-left: 0 !important;
    width: 20px;
    text-align: center;
}

.contact-extra p {
        color: var(--footer-text-secondary) !important;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.contact-extra a {
    color: var(--footer-text-secondary) !important;
    transition: var(--transition-base);
    text-decoration: none;
}

.contact-extra a:hover {
    color: var(--footer-accent-hover) !important;
}

/* ================================================================
   TRIPADVISOR PREMIUM BADGE SECTION
   Modern, Professional TripAdvisor Widget Styling
   ================================================================ */

.tripadvisor-badge {
    margin: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 175, 135, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 175, 135, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.tripadvisor-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1b365c 0%, #1b212d 100%) !important;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.tripadvisor-badge:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 175, 135, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.tripadvisor-badge h6 {
    color: #073260 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* TripAdvisor Widget Containers */
.tripadvisor-badge .row {
    align-items: center;
    justify-content: center;
    margin: 0;
}

.tripadvisor-badge .col-md-6,
.tripadvisor-badge .col-md-12 {
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* TripAdvisor Rating Widget */
.TA_cdsratingsonlynarrow {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 175, 135, 0.1);
}

.TA_cdsratingsonlynarrow:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 175, 135, 0.1);
}

/* Certificate of Excellence Widget */
.TA_certificateOfExcellence {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 175, 135, 0.1);
}

.TA_certificateOfExcellence:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 175, 135, 0.1);
}

/* Write Review Widget */
.TA_cdswritereviewlg {
    background: linear-gradient(135deg, #00af87 0%, #00c896 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 24px rgba(0, 175, 135, 0.2);
    transition: var(--transition-base);
    margin-top: 1rem;
}

.TA_cdswritereviewlg:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 175, 135, 0.3);
}

/* TripAdvisor Images */
.tripadvisor-badge img {
    max-width: 100%;
    height: auto;
    transition: var(--transition-base);
    filter: brightness(1.05) saturate(1.1);
}

.tripadvisor-badge img:hover {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.02);
}

/* Certificate of Excellence Image */
.widCOEImg {
    max-width: 120px !important;
    height: auto !important;
    margin: 0 auto;
    display: block !important;
}

/* TripAdvisor Links */
.TA_links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.TA_links li {
    margin: 0 !important;
    padding: 0 !important;
}

.TA_links a {
    display: block;
    text-decoration: none;
    transition: var(--transition-base);
}

.TA_links a:hover {
    opacity: 0.9;
}

/* Custom TripAdvisor Branding */
.tripadvisor-brand-text {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design for TripAdvisor Section */
@media (max-width: 768px) {
    .tripadvisor-badge {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .tripadvisor-badge h6 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tripadvisor-badge .col-md-6,
    .tripadvisor-badge .col-md-12 {
        padding: 0.5rem;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .TA_cdsratingsonlynarrow,
    .TA_certificateOfExcellence {
        margin-bottom: 1rem;
    }
    
    .widCOEImg {
        max-width: 100px !important;
    }
}

@media (max-width: 480px) {
    .tripadvisor-badge {
        padding: 1rem 0.75rem;
    }
    
    .tripadvisor-badge h6 {
        font-size: 0.9rem !important;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .widCOEImg {
        max-width: 80px !important;
    }
}

/* Legacy TripAdvisor Widget Support */
#TA_excellent348,
#TA_excellent348:hover {
    background: transparent !important;
    transform: none !important;
}

.flex {
    margin-top: 2rem;
    text-align: center;
}

/* Floating WhatsApp Icon */
.iconR {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 1000 !important;
}

.iconR ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.iconR ul li a {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.iconR ul li a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.iconR ul li a img {
    width: 32px !important;
    height: 32px !important;
    filter: brightness(1.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Copyright Section */
.copyright-wrap {
    background: rgb(7 50 96);
    border-top: 1px solid var(--footer-border);
    backdrop-filter: blur(10px);
}

.copyright-text {
    padding: 1.5rem 0 !important;
}

.copyright-text.text-center {
    text-align: center;
}

.copyright-text p {
    margin-bottom: 0 !important;
    color: var(--footer-text-muted) !important;
    font-size: 0.9rem;
    font-weight: 400;
}

.copyright-text p span {
    color: var(--footer-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .col-xl-6,
    .col-lg-5,
    .col-xl-3,
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .pt-100 {
        padding-top: 4rem !important;
    }
}

@media (max-width: 768px) {
    .col-xl-6,
    .col-lg-5,
    .col-xl-3,
    .col-lg-3,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
        text-align: center;
    }
    
    .footer-social span {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .input-group .form-control,
    .input-group-btn .btn {
        border-radius: 12px !important;
    }
    
    .input-group-btn {
        margin-top: 0.5rem;
    }
    
    .iconR {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .iconR ul li a {
        width: 50px;
        height: 50px;
    }
    
    .iconR ul li a img {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    
    
    .pt-100 {
        padding-top: 3rem !important;
    }
    
    .footer-widget {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .logo img {
        max-width: 200px;
    }
    
    .f-widget-title h5 {
        font-size: 1.2rem !important;
    }
    
    .contact-extra {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-extra i {
        margin-bottom: 0.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer-bg {
        background: #000000;
    }
    
    .footer-text p,
    .footer-link ul li a,
    .contact-extra p {
        color: #ffffff !important;
    }
    
    .footer-widget {
        border: 2px solid #ffffff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --footer-bg-primary: #0a0a0a;
        --footer-bg-secondary: #1a1a1a;
        --footer-text-secondary: #000000;
        --footer-border: #444444;
    }
}

/* Print styles */
@media print {
    .footer-bg,
    .iconR {
        display: none !important;
    }
}

/* ================================================================
   TRIPADVISOR WIDGET OVERRIDES
   Custom styling for embedded TripAdvisor widgets
   ================================================================ */

/* Remove default TripAdvisor widget styling */
#CDSWIDCOE {
    position: relative !important;
    font-family: 'Inter', sans-serif !important;
    color: #333 !important;
    background-color: transparent !important;
    overflow: visible !important;
    width: auto !important;
    margin: 0 !important;
    text-align: center !important;
    border: none !important;
    padding: 0 !important;
}

/* TripAdvisor Widget Text Styling */
.TA_cdsratingsonlynarrow *,
.TA_certificateOfExcellence *,
.TA_cdswritereviewlg * {
    font-family: 'Inter', sans-serif !important;
}

/* Custom TripAdvisor Rating Stars */
.TA_cdsratingsonlynarrow .rating-stars {
    color: #ffb400;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* TripAdvisor Widget Animation on Load */
.tripadvisor-badge [id^="TA_"] {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.tripadvisor-badge [id^="TA_"]:nth-child(1) { animation-delay: 0.2s; }
.tripadvisor-badge [id^="TA_"]:nth-child(2) { animation-delay: 0.4s; }
.tripadvisor-badge [id^="TA_"]:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TripAdvisor Brand Colors Enhancement */
.TA_cdswritereviewlg,
.TA_cdswritereviewlg:hover {
    background: linear-gradient(135deg, #1b365c 0%, #1b212d 100%)  !important;
}

/* Ensure all TripAdvisor widgets are properly contained */
.tripadvisor-badge [id^="TA_"] > * {
    max-width: 100%;
    overflow: hidden;
}

/* Custom loading state for TripAdvisor widgets */
.tripadvisor-badge [data-loadtrk="true"] {
    position: relative;
}

.tripadvisor-badge [data-loadtrk="true"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #00af87;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
}

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

/* Hide loading indicator once widgets are loaded */
.tripadvisor-badge [data-loadtrk="true"] iframe + ::before {
    display: none;
}
