/* ==========================================================================
   FIFA HOTELS CAROUSEL - Kick Off Santa Cruz 2026
   ==========================================================================
   Created: October 30, 2025
   Purpose: Lodging partner carousel for FIFA landing page
   Design: Figma - FIFA 2026 Microsite
   ========================================================================== */

/* Section Container - just the slider now */
.fifa-hotels-section {
    width: 100%;
    position: relative;
}

/* Arrows wrapper - positioned absolutely outside carousel overflow */
.fifa-hotels-arrows-wrapper {
    position: relative;
    max-width: 1402px;
    margin: 0 auto;
    height: 0;
    z-index: 100;
    pointer-events: none;
}

.fifa-hotels-arrows-wrapper > * {
    pointer-events: auto;
}

/* Carousel Wrapper with Navigation */
.fifa-hotels-carousel-wrapper {
    position: relative;
    padding: 50px 60px 30px 60px;
}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Desktop: Optimize for 1282px total width at 1440px screen */
@media (min-width: 1280px) {
    .fifa-hotels-carousel-wrapper {
        max-width: 1402px; /* 1282px cards + 120px for arrows (60px each side) */
        margin: 0 auto;
    }
    
    .fifaHotelsSwiper {
        max-width: 1282px;
        margin: 0 auto;
    }

}

/* Navigation Arrows - Override Swiper defaults and create clean circles */
.fifa-hotels-prev,
.fifa-hotels-next {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 345px;
    z-index: 100;
    background-color: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    transition: none;
    margin: 0;
    box-shadow: none !important;
    outline: none !important;
}

.fifa-hotels-prev:focus,
.fifa-hotels-next:focus,
.fifa-hotels-prev:active,
.fifa-hotels-next:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove the ::before pseudo-element and any shadows */
.fifa-hotels-prev::before,
.fifa-hotels-next::before,
.fifa-hotels-prev::after::before,
.fifa-hotels-next::after::before {
    display: none !important;
    box-shadow: none !important;
}

.fifa-hotels-prev {
    left: 60px;
}

.fifa-hotels-next {
    right: 60px;
}

@media (min-width: 1280px) {
    .fifa-hotels-prev {
        left: -25px;
    }

    .fifa-hotels-next {
        right: -25px;
    }
}

.fifa-hotels-prev:hover::after,
.fifa-hotels-next:hover::after {
    filter: brightness(0.95);
}

/* Override Swiper SVG with clean version (no stroke) */
.fifa-hotels-prev::after,
.swiper-button-prev.fifa-hotels-prev::after {
    content: url('data:image/svg+xml,<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="21" cy="21" r="21" fill="white"/><path d="M17.6667 27L18.8417 25.7662L14.1917 20.875L31 20.875L31 19.125L14.1917 19.125L18.85 14.2425L17.6667 13L11 20L17.6667 27Z" fill="%23828282"/></svg>') !important;
    transition: filter 0.3s ease;
}

.fifa-hotels-next::after,
.swiper-button-next.fifa-hotels-next::after {
    content: url('data:image/svg+xml,<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="21" cy="21" r="21" fill="white"/><path d="M24.3333 13L23.1583 14.2337L27.8083 19.125L11 19.125L11 20.875L27.8083 20.875L23.15 25.7575L24.3333 27L31 20L24.3333 13Z" fill="%23828282"/></svg>') !important;
    transition: filter 0.3s ease;
}

/* Hotel Card - Desktop: 295x593px, Mobile: flexible */
.fifa-hotel-card {
    background-color: #37474F;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 593px;
    box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.25);
    position: relative;
}

.fifa-hotel-card:hover {
    background-color: #000000;
}

/* Desktop: Fixed card width */
@media (min-width: 1280px) {
    .fifa-hotel-card {
        width: 295px;
        height: 593px;
    }
}

/* Tablet/Mobile: Flexible width */
@media (max-width: 1279px) {
    .fifa-hotel-card {
        width: 100%;
        min-height: 500px;
    }
}

/* Image Wrapper with Hover Effect */
.fifa-hotel-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: visible;
    border-radius: 5px 5px 0 0;
}

/* Wave divider between image and content */
.fifa-hotel-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 25px;
    z-index: 10;
    display: block;
}

.fifa-hotel-wave path {
    fill: #37474F;
}

.fifa-hotel-card:hover .fifa-hotel-wave path {
    fill: #000000;
}

.fifa-hotel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.fifa-hotel-image.hover-image {
    opacity: 0;
}

.fifa-hotel-card:hover .fifa-hotel-image.default-image {
    opacity: 0;
}

.fifa-hotel-card:hover .fifa-hotel-image.hover-image {
    opacity: 1;
}

/* Hotel Content */
.fifa-hotel-content {
    padding: 30px 24px 100px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    min-height: 0;
}

/* Text container - centered with 236px width on desktop */
.fifa-hotel-title,
.fifa-hotel-card h5,
.fifa-hotel-description {
    width: 100%;
    max-width: 236px;
    align-self: center;
}


.fifa-hotel-title,
.fifa-hotel-card h5 {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0px;
    color: #EEF3F6;
    text-align: left;
    margin: 0 0 12px 0;
}

.fifa-hotel-description {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 15px !important;
    font-weight: 300 !important;
    line-height: 19px !important;
    letter-spacing: 0px;
    color: #ffffff;
    text-align: left;
    margin: 0;
}

/* Learn More Link - positioned at bottom */
.fifa-hotel-learn-more {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    display: block;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 89px;
    left: calc(50% - 113px);
}

.fifa-hotel-learn-more:hover {
    color: #C4E6E1;
}

/* Book Now Button */
.fifa-hotel-book-btn {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background-color: #D25640;
    border: 1px solid #ffffff;
    border-radius: 4px;
    width: 113px;
    height: 40px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: absolute;
    bottom: 25px;
    left: calc(50% - 113px);
}

.fifa-hotel-book-btn:hover {
    background-color: #606E85;
    color: #ffffff;
}

/* Pagination Dots - Match Figma design */
.fifa-hotels-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 30px;
    position: relative !important;
    bottom: auto !important;
}

.fifa-hotels-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border: none;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
}

.fifa-hotels-pagination .swiper-pagination-bullet-active {
    background-color: #ffffff;
}

.fifa-hotels-pagination .swiper-pagination-bullet-active::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #D25640;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* View All Button */
.fifa-hotels-view-all {
    text-align: center;
    margin-top: 40px;
}

.fifa-view-all-btn {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.fifa-view-all-btn:hover {
    background-color: #f0f0f0;
    color: #000000;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .fifa-hotels-section {
        padding: 0 20px;
    }
    
    .fifa-hotels-carousel-wrapper {
        padding: 30px 50px;
        max-width: 397px;
        margin: 0 auto;
    }
    
    .fifaHotelsSwiper {
        max-width: 277px;
        margin: 0 auto;
    }
    
    /* Mobile card size: 277x497px */
    .fifa-hotel-card {
        width: 277px !important;
        height: 497px !important;
        min-height: 497px;
    }
    
    /* Navigation arrows on sides of card - positioned relative to card height */
    .fifa-hotels-prev,
    .fifa-hotels-next {
        top: calc(30px + 248px);
    }
    
    .fifa-hotels-prev {
        left: 10px !important;
    }
    
    .fifa-hotels-next {
        right: 10px !important;
    }
    
    /* Content padding adjusted for smaller card */
    .fifa-hotel-content {
        padding: 20px 20px 100px 20px;
    }
    
    /* Text stays LEFT aligned, same as desktop */
    .fifa-hotel-title,
    .fifa-hotel-card h5 {
        font-size: 22px;
        line-height: 26px;
        text-align: left;
    }
    
    .fifa-hotel-description {
        font-size: 14px;
        line-height: 19px;
        text-align: left;
    }
    
    /* Buttons positioned relative to card, left-aligned within 236px container */
    .fifa-hotel-learn-more {
        bottom: 75px;
        left: calc(50% - 118px);
        text-align: left;
    }
    
    .fifa-hotel-book-btn {
        bottom: 30px;
        left: calc(50% - 118px);
    }
    
    /* Text containers maintain 236px width, centered in card */
    .fifa-hotel-title,
    .fifa-hotel-card h5,
    .fifa-hotel-description {
        max-width: 236px;
        width: 100%;
    }
    
    /* Adjust arrows wrapper for mobile */
    .fifa-hotels-arrows-wrapper {
        max-width: 397px;
        margin: 0 auto;
        position: relative;
        left: 0;
        right: 0;
    }
    
    /* Ensure section doesn't add extra width */
    .fifa-hotels-section {
        padding: 0;
        overflow-x: hidden;
    }
}

/* Loading State */
.fifaHotelsSwiper:not(.swiper-loaded) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fifaHotelsSwiper.swiper-loaded {
    opacity: 1;
}

/* Card transitions removed - flat design per Figma */

/* Image loading optimization */
.fifa-hotel-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus styles for accessibility */
.fifa-hotel-learn-more:focus,
.fifa-hotel-book-btn:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.fifa-hotels-prev:focus,
.fifa-hotels-next:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fifa-hotel-card,
    .fifa-hotel-image,
    .fifa-hotel-book-btn,
    .fifa-hotel-learn-more,
    .fifa-hotels-pagination .swiper-pagination-bullet,
    .fifa-hotels-prev,
    .fifa-hotels-next {
        transition: none;
    }
    
    .fifa-hotel-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .fifa-hotels-prev,
    .fifa-hotels-next,
    .fifa-hotels-pagination {
        display: none;
    }
    
    .fifa-hotel-card {
        break-inside: avoid;
    }
}

/* ==========================================================================
   End FIFA Hotels Carousel
   ========================================================================== */

