/* CONECT-R REFINED INDEX STYLES */

/* Original Swiper/Global overrides from index.php */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary, #2563eb);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
    border: none;
}
#back-to-top:hover {
    background: var(--primary-dark, #1d4ed8);
    transform: translateY(-5px);
}

.home-swiper-next, .home-swiper-prev {
    background: var(--branco, #fff) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    top: 40% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
}
.home-swiper-next:after, .home-swiper-prev:after {
    display: none !important;
    content: "" !important;
}
.home-swiper-next span, .home-swiper-prev span {
    display: block;
    transform: translateY(-1px);
    pointer-events: none;
}
.home-swiper-next { right: -10px !important; }
.home-swiper-prev { left: -10px !important; }

@media (max-width: 768px) {
    .home-swiper-next, .home-swiper-prev { display: none !important; }
}

/* Event Modal Styles (Extracted from html/index.html) */
.event-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(10px);
}
.event-modal-content {
    background: white !important; border-radius: 32px; max-width: 1100px; width: 100%;
    display: flex !important; overflow: hidden; position: relative; height: 85vh;
    box-shadow: 0 35px 70px -15px rgba(0,0,0,0.6);
}
.event-modal-left {
    width: 60% !important; background: #000; position: relative;
    display: flex !important; align-items: center; justify-content: center;
    border-right: 1px solid #f1f5f9;
}
.event-modal-right {
    width: 40% !important; padding: 45px 35px; overflow-y: auto;
    display: flex !important; flex-direction: column; gap: 20px;
    background: white !important; position: relative; z-index: 2;
}
.event-swiper-container { width: 100%; height: 100%; position: relative; overflow: hidden; }
.event-swiper { width: 100%; height: 100%; }
.event-swiper .swiper-wrapper { display: flex !important; flex-direction: row !important; height: 100% !important; }
.event-swiper .swiper-slide { width: 100% !important; height: 100% !important; flex-shrink: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; position: relative !important; }
.event-swiper img, .event-swiper video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.home-modal-next, .home-modal-prev {
    position: absolute !important; color: white !important; background: rgba(255,255,255,0.2) !important;
    width: 48px !important; height: 48px !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(8px); transition: all 0.3s ease; z-index: 20; top: 50% !important; transform: translateY(-50%) !important;
    cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 0 !important;
}
.home-modal-next { right: 20px !important; }
.home-modal-prev { left: 20px !important; }
.home-modal-next:hover, .home-modal-prev:hover { background: rgba(255,255,255,0.4) !important; transform: translateY(-50%) scale(1.1) !important; }
.home-modal-next::after, .home-modal-prev::after { display: none !important; }
.home-modal-next, .home-modal-prev { font-size: 1.5rem !important; color: white !important; }

.event-swiper-container .swiper-pagination { bottom: 20px !important; z-index: 10 !important; }
.event-swiper-container .swiper-pagination-bullet { background: white !important; opacity: 0.6; }
.event-swiper-container .swiper-pagination-bullet-active { background: white !important; opacity: 1; }

.btn-close-event {
    position: absolute; top: 20px; right: 20px; border: none; background: #f1f5f9;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
    z-index: 100; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; color: #0f172a;
}
.btn-close-event:hover { background: #ef4444; color: white; transform: rotate(90deg); }

@media (max-width: 900px) {
    .event-modal-content { flex-direction: column !important; height: 95vh !important; }
    .event-modal-left { width: 100% !important; height: 45% !important; }
    .event-modal-right { width: 100% !important; height: 55% !important; padding: 30px 20px !important; }
}

/* CUSTOM VIDEO PLAYER CONTROLS */
.video-wrapper { position: relative; width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen,
.video-wrapper.is-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}
.video-wrapper:fullscreen video,
.video-wrapper:-webkit-full-screen video,
.video-wrapper.is-fullscreen video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
}
.video-overlay-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 5rem; color: white; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 10; }
.custom-player-controls { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity 0.3s; z-index: 20; }
.video-wrapper:hover .custom-player-controls,
.video-wrapper:fullscreen .custom-player-controls,
.video-wrapper:-webkit-full-screen .custom-player-controls,
.video-wrapper.is-fullscreen .custom-player-controls { opacity: 1; }
.video-wrapper video::-webkit-media-controls,
.video-wrapper video::-webkit-media-controls-enclosure {
    display: none !important;
}
.video-progress { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 10px; cursor: pointer; position: relative; transition: height 0.1s; }
.video-progress:hover { height: 10px; }
.video-progress-fill { height: 100%; width: 0%; background: #2563eb; border-radius: 10px; position: relative; pointer-events: none; }
.video-btns-row { display: flex; align-items: center; gap: 15px; color: #fff; }
.video-btns-row button { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; transition: 0.2s; }
.video-btns-row button:hover { transform: scale(1.2); color: #2563eb; }
.video-btns-row span { font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Smart recommendations */
.smart-home-reason {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.card-content .tag-pill {
    display: inline-flex;
    margin-top: 8px;
}
