/* =========================================================
   XPLORE MOTORCYCLES — MADRID-RENTALS
   Page-specific styles. Shared layout lives in base.css.
   ========================================================= */

/* CRITICAL RESET: Garante as fontes oficiais da marca sem interferência do WordPress */
.xplore-madrid-rentals-wrapper,
.xplore-madrid-rentals-wrapper * {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
}

.xplore-madrid-rentals-wrapper {
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
}

/* FLEET GRID & CARD DESIGN (3 COLUMNS) */
.madrid-fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.madrid-fleet-card-new {
    background-color: #F7F7F5;
    border: 1px solid #EBEBE8;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    box-sizing: border-box;
    position: relative;
}

.madrid-fleet-card-new:hover {
    border-color: #A38A5F;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

/* O div sem classe entre o card e o conteúdo também precisa ser coluna
       flexível; sem isso o bloco de preço não desce e os botões ficam
       desalinhados entre cards de alturas diferentes. */
.madrid-fleet-card-new > div {
    display: flex; flex-direction: column; flex: 1;
}

/* INNER CAROUSEL FOR MOTORCYCLE PHOTOS */
.inner-bike-carousel {
    position: relative; height: 230px; width: 100%; overflow: hidden; background-color: #F7F7F5;
}

.inner-carousel-track {
    display: flex; height: 100%; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.inner-carousel-slide {
    min-width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-color: #FFFFFF; background-position: center; background-origin: content-box; padding: 12px 16px; box-sizing: border-box; cursor: pointer; transition: opacity 0.2s ease;
}

.inner-carousel-slide:hover {
    opacity: 0.92;
}

.inner-car-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background-color: rgba(17,17,17,0.7); color: #FFFFFF; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s; z-index: 5; font-size: 14px; opacity: 0; pointer-events: none;
}

.inner-bike-carousel:hover .inner-car-btn {
    opacity: 1; pointer-events: auto;
}

.inner-car-btn:hover {
    background-color: #A38A5F;
}

.inner-car-prev {
    left: 10px;
}

.inner-car-next {
    right: 10px;
}

.card-body-box {
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    box-sizing: border-box;
}

.card-category-tag {
    display: inline-block;
    background-color: #D2EE53; /* Highlight green badge */
    color: #111111;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.card-bike-title {
    font-size: 20px;
    font-weight: 800;
    color: #111111 !important;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-bike-desc {
    font-size: 13.5px;
    color: #555555 !important;
    line-height: 1.6;
    margin: 0 0 10px 0;
    font-weight: 500;
    font-family: 'Inter', sans-serif !important;
}

/* FILTRO DA FROTA */
.fleet-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 45px auto;
}

.fleet-filter-field span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #A38A5F !important;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif !important;
}

.fleet-filter-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #111111;
    border-radius: 0;
    background-color: #FFFFFF;
    color: #111111;
    font-size: 13px;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
}

.fleet-filter-empty {
    text-align: center;
    color: #666666 !important;
    font-size: 15px;
    margin: 0 0 40px 0;
}

@media (max-width: 767px) {
    .fleet-filter-bar {
        grid-template-columns: 1fr; gap: 14px;
    }
}

/* Notas alinhadas à esquerda numa coluna centrada; os asteriscos ficam
       numa margem própria para o texto de todas começar na mesma vertical. */
.fleet-rate-footnote {
    text-align: left;
    padding: 4px 8px 4px 3.2em;
    text-indent: -2.4em;
    color: #666666 !important;
    font-size: 13px;
    line-height: 1.6;
    max-width: 760px;
    margin: 45px auto 0 auto;
}

.fleet-rate-footnote + .fleet-rate-footnote {
    margin-top: 10px;
}

.fn-mark {
    display: inline-block; width: 2.4em; text-indent: 0;
}

/* o cabeçalho é fixo: a nota não pode parar escondida atrás dele */
.fleet-rate-footnote {
    scroll-margin-top: 140px; transition: background-color 0.6s ease;
}

.fleet-rate-footnote:target {
    background-color: #F3F8D2;
}

.fleet-note-link {
    color: inherit !important; text-decoration: none; padding: 0 2px; cursor: pointer;
}

.fleet-note-link:hover {
    color: #A38A5F !important;
}

/* CARD PRICE STYLING */
.card-price-highlight {
    font-size: 13.5px;
    font-weight: 800;
    color: #111111 !important;
    margin-top: 25px;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif !important;
}

/* Variante da mesma moto (DCT, ASA...) e a diferença na diária */
.card-price-note {
    font-size: 12px;
    color: #666666 !important;
    margin-top: -12px;
    margin-bottom: 18px;
}

.fleet-cta-btn {
    background-color: #111111;
    color: #FFFFFF;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.fleet-cta-btn:hover {
    background-color: #A38A5F; color: #FFFFFF;
}

/* LIGHTBOX OVERLAY STYLES */
.madrid-lightbox-overlay {
    display: none; position: fixed; z-index: 2147483001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.madrid-lightbox-img-element {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; width: min(85vw, 760px); height: auto; max-height: 80vh; object-fit: contain; background-color: #FFFFFF; box-shadow: 0 20px 50px rgba(0,0,0,0.8); border: 1px solid #333333;
}

.madrid-lightbox-close-trigger {
    position: absolute; top: 20px; right: 35px; color: #FFFFFF; font-size: 40px; font-weight: 300; cursor: pointer; transition: color 0.2s;
}

.madrid-lightbox-close-trigger:hover {
    color: #A38A5F;
}

/* REVIEWS CAROUSEL SLIDE WIDTHS */
.review-slide {
    flex: 0 0 calc(50% - 15px); width: calc(50% - 15px);
}

/* MAP LINK HOVER STYLES */
.map-link-btn {
    color: #111111 !important;
    text-decoration: none !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.map-link-btn:hover {
    color: #A38A5F !important;
}

@media (max-width: 1100px) {
    .madrid-fleet-grid {
        grid-template-columns: repeat(2, 1fr) !important; gap: 25px !important;
    }
}

@media (max-width: 991px) {
    .madrid-req-grid,
    .madrid-address-grid {
        grid-template-columns: 1fr !important; gap: 30px !important;
    }

    .review-slide {
        flex: 0 0 100%; width: 100%;
    }

    #prevBtn,
    #nextBtn {
        display: none;
    }

    .inner-car-btn {
        opacity: 1; pointer-events: auto;
    }
}

@media (max-width: 650px) {
    .madrid-fleet-grid {
        grid-template-columns: 1fr !important; gap: 25px !important;
    }
}
