/* Estilos para páginas públicas */

/* ========================================
   FUENTES PERSONALIZADAS
   ======================================== */

/* TODO: Añadir fuente Argentum Sans cuando esté disponible
@font-face {
    font-family: 'Argentum Sans';
    src: url('../fonts/argentum-sans/ArgentumSans-Regular.woff2') format('woff2'),
         url('../fonts/argentum-sans/ArgentumSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Argentum Sans';
    src: url('../fonts/argentum-sans/ArgentumSans-SemiBold.woff2') format('woff2'),
         url('../fonts/argentum-sans/ArgentumSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
*/

/* ========================================
   HEADER PÚBLICO
   ======================================== */

/* Topbar con redes sociales */
.header-public .topbar {
    font-size: 0.9rem;
}

.header-public .social-links-top a {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header-public .social-links-top a:hover {
    color: #7ab51d !important;
}

/* Navbar principal */
.header-public .navbar {
    transition: all 0.3s ease;
}

.header-public .navbar-brand img {
    transition: all 0.3s ease;
}

.header-public .navbar .nav-link {
    text-align: left;
    font: normal normal normal 16px/21px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: 0px;
    color: #000000;
    opacity: 1;
}

/* Botón de contacto */
.header-public .btn-contacto {
    width: 132px;
    background: #81B925 0% 0% no-repeat padding-box;
    border-radius: 10px;
    opacity: 1;
    font: normal normal normal 16px/21px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: 0px;
    color: white;
    border: none;
    text-align: center;
}

/* Responsive para header */
@media (max-width: 991.98px) {
    .header-public .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .header-public .navbar-nav {
        padding-top: 1rem;
    }
    
    .header-public .btn-contacto {
        width: 100% !important;
    }
}

/* ========================================
   MAPAS
   ======================================== */

/* Contenedor del mapa */
.map-container {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.map-container * {
    mix-blend-mode: normal !important;
}

/* Loader del mapa */
.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease-out;
}

.map-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-loader .loader-content {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.map-loader .loader-content p {
    opacity: 1;
    font-weight: 500;
}

/* Estilos unificados para botones del buscador de contenedores */
#btnGeolocalizar,
#btnGeolocalizacion,
#btnBuscarContenedores,
#btnLimpiarBusqueda,
#filtroTiposBtn,
.btn-geolocation {
    border: 1px solid #81B925 !important;
    background-color: transparent !important;
    color: #81B925 !important;
    border-radius: 10px !important;
}

/* SVG icons en botones */
#btnGeolocalizar svg,
#btnGeolocalizacion svg,
#btnBuscarContenedores svg,
#btnLimpiarBusqueda svg,
#filtroTiposBtn svg,
.btn-geolocation svg {
    fill: #81B925 !important;
    color: #81B925 !important;
}

/* Icono de reciclaje en el botón de filtros - forzar color verde */
#filtroTiposBtn img {
    filter: brightness(0) saturate(100%) invert(64%) sepia(34%) saturate(622%) hue-rotate(37deg) brightness(97%) contrast(87%) !important;
}

/* Flecha del dropdown del filtro de tipos */
#filtroTiposBtn::after,
#filtroTiposBtn.dropdown-toggle::after {
    border-top-color: #81B925 !important;
}

/* Hover states */
#btnGeolocalizar:hover,
#btnGeolocalizacion:hover,
#btnBuscarContenedores:hover,
#btnLimpiarBusqueda:hover,
#filtroTiposBtn:hover,
.btn-geolocation:hover {
    background-color: rgba(129, 185, 37, 0.1) !important;
    border-color: #81B925 !important;
    color: #81B925 !important;
}

/* Active states */
#btnGeolocalizar:active,
#btnGeolocalizacion:active,
#btnBuscarContenedores:active,
#btnLimpiarBusqueda:active,
#filtroTiposBtn:active,
.btn-geolocation:active {
    background-color: rgba(129, 185, 37, 0.2) !important;
    border-color: #81B925 !important;
    color: #81B925 !important;
}

/* Checkboxes del filtro de tipos de contenedores */
#filtroTiposDropdown .form-check-input {
    border-color: #81B925 !important;
}

#filtroTiposDropdown .form-check-input:checked {
    background-color: #81B925 !important;
    border-color: #81B925 !important;
}

#filtroTiposDropdown .form-check-input:focus {
    border-color: #81B925 !important;
    box-shadow: 0 0 0 0.25rem rgba(129, 185, 37, 0.25) !important;
}

/* Estilos para elementos del InfoWindow de clusters */
.cluster-tipo-item {
    cursor: pointer !important;
}

.cluster-tipo-item:hover {
    background-color: rgba(129, 185, 37, 0.1) !important;
}

.cluster-tipo-item .badge,
.cluster-tipo-item div[style*="background: #007bff"] {
    background-color: #81B925 !important;
}

.cluster-tipo-item div[style*="color: #007bff"] {
    color: #81B925 !important;
}

/* Botones de zoom en InfoWindows */
.btn-zoom-contenedor,
button[data-zoom-lat],
.info-window-zoom-btn {
    background-color: #81B925 !important;
    border-color: #81B925 !important;
    color: white !important;
}

.btn-zoom-contenedor:hover,
button[data-zoom-lat]:hover,
.info-window-zoom-btn:hover {
    background-color: #6a9920 !important;
    border-color: #6a9920 !important;
}

/* Spinners - color verde unificado */
.spinner-border,
.spinner-grow,
.map-loader .spinner-border {
    color: #81B925 !important;
    border-color: #81B925 transparent #81B925 transparent !important;
}

.spinner-border-sm {
    color: #81B925 !important;
    border-color: #81B925 transparent #81B925 transparent !important;
}

/* Botón Scroll to Top de Metronic */
#kt_scrolltop,
.scrolltop,
[data-kt-scrolltop="true"] {
    background-color: #81B925 !important;
    border-color: #81B925 !important;
}

#kt_scrolltop:hover,
.scrolltop:hover,
[data-kt-scrolltop="true"]:hover {
    background-color: #6a9920 !important;
    border-color: #6a9920 !important;
}

#kt_scrolltop svg,
#kt_scrolltop i,
.scrolltop svg,
.scrolltop i,
[data-kt-scrolltop="true"] svg,
[data-kt-scrolltop="true"] i {
    color: white !important;
    fill: white !important;
}

/* Tooltips de Google Maps - redondeados */
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw {
    border-radius: 10px !important;
}

.gm-style .gm-style-iw-d {
    border-radius: 10px !important;
}

.gm-style .gm-style-iw-tc {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Asegurar que el mapa ocupe todo el espacio disponible */
.card-body > div {
    height: 100% !important;
}

[data-controller*="symfony--ux-google-map--map"] {
    height: 100% !important;
    width: 100% !important;
    display: block !important;
}

/* Estilos para los InfoWindows */
.gm-style-iw {
    border-radius: 8px;
}

/* Card title con icono */
.card-title-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%);
}

/* Toolbar de búsqueda */
.search-select-wrapper {
    min-width: 300px;
}

.precision-input-wrapper {
    width: 150px;
}

/* Dropdown de filtros */
.filter-dropdown-menu,
#filtroTiposDropdown,
.dropdown-menu.filter-dropdown-menu {
    min-width: 280px !important;
    z-index: 9999 !important;
    position: absolute !important;
    background: #ffffff solid !important;
    opacity: 1 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.filter-dropdown-menu *,
#filtroTiposDropdown * {
    opacity: 1 !important;
}

.maps-section .dropdown {
    position: relative;
    z-index: 9999;
}

.maps-section .card-toolbar {
    position: relative;
    z-index: 9999;
}

.filter-icon {
    width: 16px;
    height: 16px;
}

/* Badges de tipo de contenedor */
.tipo-badge {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tipo-badge-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

/* Badges de contador en footer */
.contador-badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contador-badge-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Badges de leyenda */
.badge {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Estilos para card del mapa */
.maps-section .card {
    border: none !important;
    box-shadow: none !important;
    height: 864px;
    display: flex;
    flex-direction: column;
}

.maps-section .card-header {
    border: none !important;
    background: #F7F8F9 0% 0% no-repeat padding-box;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
    isolation: isolate;
    flex-shrink: 0;
}

.maps-section .card-title {
    display: block;
    text-align: left;
    font-family: 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0px;
    color: #27292C;
    opacity: 1;
    margin: 0;
    width: 100%;
    max-width: 1320px;
    padding: 0 15px;
}

.maps-section .card-body {
    padding: 0;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: hidden;
}

.maps-section .card-footer {
    border: none !important;
    background: #F7F8F9 !important;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0px;
    color: #27292C;
}

/* ========================================
   PÁGINA MAPA - GENERAL
   ======================================== */

.maps-page-root {
    background-color: #FFFFFF;
}

.maps-content {
    margin-top: 0;
}

/* ========================================
   BANNER HERO
   ======================================== */

.hero-banner {
    height: 748px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-subtitle {
    text-align: left;
    font: normal normal normal 18px/70px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    text-transform: uppercase;
    opacity: 1;
    margin: 0;
}

.hero-title {
    text-align: left;
    font: normal normal 600 62px/70px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: -1.75px;
    color: #FFFFFF;
    opacity: 1;
    margin: 0;
}

.hero-content {
    width: 788px;
    margin-bottom: 22%;
}

.hero-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 749px;
    height: 240px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-radius: 30px 0px 0px 0px;
    opacity: 1;
    transform: translateY(25%);
    padding-right: 142px;
}

.hero-box-title {
    text-align: left;
    font: normal normal 600 44px/53px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: -1.25px;
    color: #27292C;
    opacity: 1;
    margin: 25px 0 0 70px;
}

.hero-box-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 70px;
    margin-top: 18px;
}

.hero-box-text {
    text-align: left;
    font: normal normal 500 15px/24px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: 0px;
    color: #27292C;
    opacity: 1;
    margin: 0;
    max-width: 355px;
}

.hero-box-button {
    width: 160px;
    height: 43px;
    border: 1px solid #81B925;
    border-radius: 10px;
    opacity: 1;
    background: transparent;
    text-align: center;
    font: normal normal normal 16px/21px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: 0px;
    color: #81B925;
    cursor: pointer;
    flex-shrink: 0;
}

/* ========================================
   FOOTER PÚBLICO
   ======================================== */

.footer-public {
    width: 100%;
}

.footer-top {
    height: 288px;
    background: #FFFFFF no-repeat padding-box;
    opacity: 1;
    padding-top: 50px;
}

.footer-bottom {
    height: 65px;
    background: #000000 no-repeat padding-box;
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    font: normal normal normal 16px/28px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: 0px;
    color: #FFFFFF;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.footer-social-links a:hover {
    opacity: 0.8;
}

.footer-text {
    text-align: left;
    font: normal normal normal 16px/28px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: 0px;
    color: #000000;
    opacity: 1;
    margin-bottom: 0;
}

.footer-link {
    text-align: left;
    font: normal normal 600 16px/28px 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    letter-spacing: 0px;
    color: #000000;
    opacity: 1;
    text-decoration: underline;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Responsive - Hero Banner */
@media (max-width: 991px) {
    .hero-banner {
        height: 600px;
    }
    
    .hero-content {
        width: 100%;
        margin-bottom: 15%;
    }
    
    .hero-title {
        font-size: 50px;
        line-height: 60px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        line-height: 60px;
    }
    
    .hero-box {
        position: relative;
        width: 100%;
        height: auto;
        transform: none;
        border-radius: 30px 30px 0px 0px;
        padding: 30px 20px;
    }
    
    .hero-box-title {
        font-size: 36px;
        line-height: 44px;
        margin: 0 0 15px 0;
    }
    
    .hero-box-content {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        margin-top: 0;
        gap: 15px;
    }
    
    .hero-box-text {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-banner {
        height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 44px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 50px;
    }
    
    .hero-box-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .hero-box-button {
        width: 100%;
    }
}

/* ========================================
   SECCIÓN INFO
   ======================================== */

.info-section {
    background: #FFFFFF;
    height: 600px;
    width: 100%;
    margin-top: 68px;
}

.info-text {
    max-width: 752px;
    text-align: left;
}

.info-text p {
    font-family: 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0px;
    color: #27292C;
    opacity: 1;
    margin: 0;
}

.info-title {
    text-align: left;
    font-family: 'Argentum Sans', 'Red Hat Display', 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 58px;
    letter-spacing: -1.2px;
    color: #27292C;
    margin: 0 0 20px 0;
}

.info-image {
    max-width: 100%;
}

.info-image img {
    width: 100%;
    height: auto;
}

/* Responsive - Info Section */
@media (max-width: 991px) {
    .info-section {
        margin-top: 40px;
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }
    
    .info-text {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    .info-section {
        margin-top: 240px;
        padding: 30px 0;
        height: auto;
        min-height: auto;
    }
    
    .info-text {
        padding: 0 20px;
    }
    
    .info-text p {
        font-size: 14px;
        line-height: 24px;
    }
}
