/**
 * GlobalRoute - Estilos CSS para el Frontend
 * Versión: 1.0.0
 */

/* Contenedor principal */
.globalroute-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.globalroute-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Elementos con animación al scroll */
.globalroute-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.globalroute-animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mensajes */
.globalroute-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.globalroute-message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.4;
    animation: slideInRight 0.3s ease-out;
}

.globalroute-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.globalroute-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.globalroute-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.globalroute-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Animaciones */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Nuevas animaciones para efectos de tarjetas */
@keyframes cardSlideInUp {
    from {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardSlideOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
    }
}

@keyframes cardBounceIn {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    70% {
        transform: translateY(0) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

@keyframes cardFlipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg) translateY(100%);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg) translateY(0);
    }
}

@keyframes cardFlipOut {
    from {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg) translateY(0);
    }
    to {
        opacity: 0;
        transform: perspective(400px) rotateX(-90deg) translateY(100%);
    }
}

@keyframes cardElasticIn {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.1);
    }
    80% {
        transform: translateY(4px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardElasticOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    20% {
        transform: translateY(-4px) scale(1.05);
    }
    40% {
        transform: translateY(8px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translateY(100%) scale(0.5);
    }
}

/* Clases para aplicar las animaciones */
.globalroute-card-opening {
    animation: cardBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.globalroute-card-closing {
    animation: cardElasticOut 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.globalroute-card-smooth-in {
    animation: cardFadeInScale 0.4s ease-out;
}

.globalroute-card-smooth-out {
    animation: cardFadeOutScale 0.3s ease-in;
}

.globalroute-card-flip-in {
    animation: cardFlipIn 0.5s ease-out;
}

.globalroute-card-flip-out {
    animation: cardFlipOut 0.4s ease-in;
}

/* Efectos de hover mejorados para la barra de la tarjeta */
.globalroute-poi-card-bar {
    width: 56px;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin: 12px auto 8px auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.globalroute-poi-card-bar:hover {
    background: #d5d5d5;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.globalroute-poi-card-bar:hover::before {
    left: 100%;
}

.globalroute-poi-card-bar:active {
    transform: scale(0.95);
}

/* Efectos de transición para el contenido de la tarjeta */
.globalroute-poi-card-content {
    padding: 0 24px;
    transition: all 0.3s ease;
}

.globalroute-poi-card-content.animate-in {
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

/* Efectos para los botones de la tarjeta */
.globalroute-poi-card-btn-outline,
.globalroute-poi-card-btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-btn-outline::before,
.globalroute-poi-card-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.globalroute-poi-card-btn-outline:hover::before,
.globalroute-poi-card-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.globalroute-poi-card-btn-outline:hover {
    background: #f3f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.2);
}

.globalroute-poi-card-btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.3);
}

.globalroute-poi-card-btn-outline:active,
.globalroute-poi-card-btn-primary:active {
    transform: translateY(0);
    transition: all 0.1s;
}

/* Utilidades */
.globalroute-text-center {
    text-align: center;
}

.globalroute-text-left {
    text-align: left;
}

.globalroute-text-right {
    text-align: right;
}

.globalroute-mt-20 {
    margin-top: 20px;
}

.globalroute-mb-20 {
    margin-bottom: 20px;
}

.globalroute-ml-20 {
    margin-left: 20px;
}

.globalroute-mr-20 {
    margin-right: 20px;
}

.globalroute-p-20 {
    padding: 20px;
}

.globalroute-rounded {
    border-radius: 8px;
}

.globalroute-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.globalroute-border {
    border: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .globalroute-content {
        padding: 15px;
    }
    
    .globalroute-messages {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .globalroute-message {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .globalroute-content {
        padding: 10px;
    }
    
    .globalroute-message {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Estados de carga */
.globalroute-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.globalroute-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Modo oscuro (si el tema lo soporta) */
@media (prefers-color-scheme: dark) {
    .globalroute-content {
        color: #e0e0e0;
    }
    
    .globalroute-message {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .globalroute-message.success {
        background: #22543d;
        color: #9ae6b4;
        border-left-color: #48bb78;
    }
    
    .globalroute-message.error {
        background: #742a2a;
        color: #feb2b2;
        border-left-color: #f56565;
    }
    
    .globalroute-message.warning {
        background: #744210;
        color: #faf089;
        border-left-color: #ed8936;
    }
    
    .globalroute-message.info {
        background: #2a4365;
        color: #90cdf4;
        border-left-color: #4299e1;
    }
}

/* =========================
   Estilos base (Mobile First)
   ========================= */
.globalroute-search-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.globalroute-header-flex.globalroute-header-centered,
.globalroute-search-bar-centered,
.globalroute-category-row {
    flex-shrink: 0;
}

.globalroute-header-flex.globalroute-header-centered {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 24px 0 16px 0;
    position: relative;
}

.globalroute-back-btn-flex {
    position: absolute;
    left: 16px; 
    top: 50%;
    transform: translateY(-50%);
    width: 48.128px;
    height: 48px;
    min-width: 48.128px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 10;
}

.globalroute-back-btn-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.globalroute-back-btn-flex:hover {
    background-color: rgba(0, 94, 254, 0.1);
    transform: scale(1.05);
}

.globalroute-back-btn-flex:hover .globalroute-back-btn-icon {
    transform: scale(1.1);
}

.globalroute-back-btn-flex:active {
    transform: scale(0.95);
}

.globalroute-back-btn-flex:active .globalroute-back-btn-icon {
    transform: scale(0.9);
}

.globalroute-header-title {
    flex: 1;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #005EFE;
    width: 100%;
    padding: 0 64px; 
    box-sizing: border-box;
}

.globalroute-search-bar-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.globalroute-search-input-container-centered {
    position: relative;
    width: 92%;
    height: 48px;
    background: #fff;
    border: 0.5px solid #1B1B1B;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
}

.globalroute-search-icon-centered {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 24px;
    height: 24px;
}

.globalroute-search-input-centered {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #1B1B1B;
    padding-left: 36px;
}

.globalroute-search-input-centered::placeholder {
    color: #E1E1E1;
    font-size: 16px;
    font-weight: 500;
}

/* Botón de limpiar búsqueda */
.globalroute-clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.globalroute-clear-search-btn:hover {
    background-color: #f0f0f0;
}

.globalroute-clear-search-btn:active {
    background-color: #e0e0e0;
}

.globalroute-clear-search-btn svg {
    width: 16px;
    height: 16px;
}

.globalroute-category-row {
    width: 92%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.globalroute-category-row > .globalroute-category-btn2.globalroute-category-clean,
.globalroute-category-row > .globalroute-category-btn2.globalroute-category-parking {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2 {
    font-size: 18px;
    line-height: 24px;
    padding: 12px 24px 12px 16px;
    border-radius: 24px;
    width: auto !important;
    height: 48px !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 0% !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-icon2 {
    width: 42px;
    height: 50px;
    margin-right: 16px;
    margin-left: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globalroute-category-icon2 img {
    width: 42px;
    height: 50px;
    object-fit: contain;
}

.globalroute-category-label2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 122%;
    letter-spacing: 0%;
    text-align: justify;
}

.globalroute-category-parking {
    background: #005EFE;
    color: #fff;
    border: none;
    box-shadow: none;
}

.globalroute-category-parking .globalroute-category-label2 {
    color: #fff;
}

.globalroute-category-parking .globalroute-category-icon2 svg text {
    fill: #005EFE;
}

.globalroute-category-clean {
    background: #fff;
    color: #1B1B1B;
    border: 1.2px solid #1B1B1B;
}

.globalroute-category-clean .globalroute-category-label2 {
    color: #1B1B1B;
}

/* Estados de los botones de categorías */
.globalroute-category-btn2.active {
    background: #005EFE !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2.active .globalroute-category-label2 {
    color: #fff !important;
}

.globalroute-category-btn2.inactive {
    background: #fff !important;
    color: #1B1B1B !important;
    border: 1.2px solid #1B1B1B !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2.inactive .globalroute-category-label2 {
    color: #1B1B1B !important;
}

/* Estilos para POIs no seleccionados en móvil */
@media (max-width: 599px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    .globalroute-poi-card-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-card-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }
    
    .globalroute-poi-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    /* Botón de estacionamientos para móviles */
    .globalroute-category-btn2.globalroute-category-parking {
        width: 150px !important;
        height: 36px !important;
        border-radius: 18px !important;
        border: 0.50px solid #1B1B1B !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 {
        width: 20px !important;
        height: 18px !important;
        background: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 img {
        width: 20px !important;
        height: 18px !important;
        object-fit: contain !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-label2 {
        width: 109px !important;
        height: 15px !important;
        text-align: justify !important;
        color: #1B1B1B !important;
        font-size: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 500 !important;
        line-height: 14.64px !important;
        word-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active {
        background: #005EFE !important;
        color: #FFFFFF !important;
        border: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-label2 {
        color: #FFFFFF !important;
    }

    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-icon2 {
        background: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.inactive {
        background: transparent !important;
        color: #1B1B1B !important;
        border: 0.50px solid #1B1B1B !important;
    }
}

/* Estilos para POIs no seleccionados en tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
}

/* Estilos específicos para móviles del botón de estacionamientos */
@media (max-width: 599px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    .globalroute-poi-card-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-card-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }
    
    .globalroute-poi-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    /* Botón de estacionamientos para móviles */
    .globalroute-category-btn2.globalroute-category-parking {
        width: 150px !important;
        height: 36px !important;
        border-radius: 18px !important;
        border: 0.50px solid #1B1B1B !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 {
        width: 20px !important;
        height: 18px !important;
        background: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 img {
        width: 20px !important;
        height: 18px !important;
        object-fit: contain !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-label2 {
        width: 109px !important;
        height: 15px !important;
        text-align: justify !important;
        color: #1B1B1B !important;
        font-size: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 500 !important;
        line-height: 14.64px !important;
        word-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active {
        background: #005EFE !important;
        color: #FFFFFF !important;
        border: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-label2 {
        color: #FFFFFF !important;
    }

    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-icon2 {
        background: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.inactive {
        background: transparent !important;
        color: #1B1B1B !important;
        border: 0.50px solid #1B1B1B !important;
    }
}

/* Estilos para POIs no seleccionados en desktop */
@media (min-width: 1024px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
}

/* Estilos para POIs seleccionados */
/* POIs de limpieza seleccionados */
img[src*="wash_2.png"] {
    width: var(--dynamic-poi-width, 36px) !important;
    height: var(--dynamic-poi-height, 43px) !important;
}

/* POIs de estacionamiento seleccionados */
img[src*="parking_2.png"] {
    width: var(--dynamic-poi-width, 36px) !important;
    height: var(--dynamic-poi-height, 43px) !important;
}

/* Estilos para POIs seleccionados en tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    /* POIs de limpieza seleccionados */
    img[src*="wash_2.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
    
    /* POIs de estacionamiento seleccionados */
    img[src*="parking_2.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
}

/* Estilos para POIs seleccionados en desktop */
@media (min-width: 1024px) {
    /* POIs de limpieza seleccionados */
    img[src*="wash_2.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
    
    /* POIs de estacionamiento seleccionados */
    img[src*="parking_2.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
}

/* =========================
   Tablet (≥ 600px)
   ========================= */
@media (min-width: 600px) {
    .globalroute-search-container {
        max-width: 600px;
        min-height: 700px;
        padding: 0 0 40px 0;
    }
    .globalroute-header-flex.globalroute-header-centered {
        padding: 36px 0 24px 0;
    }
    .globalroute-back-btn-flex {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
        left: 24px;
    }
    .globalroute-header-title {
        font-size: 28px;
        line-height: 34px;
        padding: 0 88px;
    }
    .globalroute-search-input-container-centered {
        height: 64px;
        border-radius: 32px;
        padding: 0 20px;
    }
    .globalroute-search-icon-centered {
        left: 18px;
        width: 24px;
        height: 24px;
    }
    .globalroute-search-input-centered {
        font-size: 20px;
        line-height: 28px;
        padding-left: 48px;
    }
    .globalroute-search-input-centered::placeholder {
        font-size: 18px;
    }
    .globalroute-clear-search-btn {
        right: 16px;
        padding: 6px;
    }
    .globalroute-clear-search-btn svg {
        width: 18px;
        height: 18px;
    }
    .globalroute-category-row {
        flex-direction: row;
        gap: 20px;
        margin-top: 32px;
        margin-bottom: 16px;
        padding-left: 24px;
        padding-right: 24px;
        justify-content: center;
        align-items: center;
    }
    .globalroute-category-btn2 {
        font-size: 18px;
        line-height: 24px;
        padding: 12px 24px 12px 16px;
        border-radius: 24px;
        width: auto !important;
        height: 48px !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        flex: 1 1 0% !important;
        flex-shrink: 1 !important;
        flex-grow: 1 !important;
        flex-basis: 0% !important;
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .globalroute-category-icon2 img {
        width: 42px;
        height: 50px;
        object-fit: contain;
    }
    .globalroute-category-label2 {
        font-size: 18px;
    }
}

/* =========================
   Desktop (≥ 1024px)
   ========================= */
@media (min-width: 1024px) {
    .globalroute-search-container {
        max-width: 100%;
        min-height: 830px;
        padding: 0 0 56px 0;
    }
    .globalroute-header-flex.globalroute-header-centered {
        padding: 48px 0 40px 0;
    }
    .globalroute-back-btn-flex {
        width: 96px;
        height: 96px;
        min-width: 96px;
        min-height: 96px;
        left: 32px;
    }
    .globalroute-header-title {
        font-size: 36px;
        line-height: 44px;
        padding: 0 112px;
    }
    .globalroute-search-input-container-centered {
        height: 80px;
        border-radius: 40px;
        padding: 0 32px;
    }
    .globalroute-search-icon-centered {
        left: 24px;
        width: 24px;
        height: 24px;
    }
    .globalroute-search-input-centered {
        font-size: 20px;
        line-height: 28px;
        padding-left: 56px;
    }
    .globalroute-search-input-centered::placeholder {
        font-size: 20px;
    }
    .globalroute-clear-search-btn {
        right: 20px;
        padding: 8px;
    }
    .globalroute-clear-search-btn svg {
        width: 20px;
        height: 20px;
    }
    .globalroute-category-row {
        gap: 28px;
        margin-top: 40px;
        margin-bottom: 20px;
        padding-left: 32px;
        padding-right: 32px;
        justify-content: center;
        align-items: center;
    }
    .globalroute-category-btn2 {
        font-size: 22px;
        line-height: 28px;
        padding: 16px 32px 16px 20px;
        border-radius: 30px;
        width: auto !important;
        height: 60px !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        flex: 1 1 0% !important;
        flex-shrink: 1 !important;
        flex-grow: 1 !important;
        flex-basis: 0% !important;
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .globalroute-category-icon2 img {
        width: 42px;
        height: 50px;
        object-fit: contain;
    }
    .globalroute-category-label2 {
        font-size: 22px;
    }
}

#globalroute-map {
    flex: 1 1 0%;
    width: 100%;
    min-height: 0;
    min-width: 0;
    position: relative;
    left: 0;
    right: 0;
    transform: none;
    z-index: 1;
}

@media (min-width: 600px) {
    #globalroute-map {
        height: calc(100vh - 700px);
    }
}
@media (min-width: 1024px) {
    #globalroute-map {
        height: calc(100vh - 830px);
    }
}

.globalroute-category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    width: 181px;
    height: 36px;
    flex-shrink: 0;
}

/* Botón de estacionamientos específico */
.globalroute-category-button:last-child {
    width: 150px;
}

/* Estilos específicos para tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .globalroute-category-button {
        width: 241px; /* 181px * 1.33 */
        height: 48px; /* 36px * 1.33 */
        font-size: 18px; /* 14px * 1.33 */
        padding: 11px 21px; /* 8px * 1.33, 16px * 1.33 */
        gap: 11px; /* 8px * 1.33 */
    }
    
    .globalroute-category-button:last-child {
        width: 200px; /* 150px * 1.33 */
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
    }
}

/* Estilos específicos para desktop (1024px+) */
@media (min-width: 1024px) {
    .globalroute-category-button {
        width: 271px; /* 181px * 1.5 */
        height: 54px; /* 36px * 1.5 */
        font-size: 21px; /* 14px * 1.5 */
        padding: 12px 24px; /* 8px * 1.5, 16px * 1.5 */
        gap: 12px; /* 8px * 1.5 */
    }
    
    .globalroute-category-button:last-child {
        width: 225px; /* 150px * 1.5 */
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
    }
}

/* Tarjeta personalizada POI GlobalRoute */
.globalroute-poi-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    margin: 0 auto;
    max-width: 480px;
    min-width: 320px;
    padding: 0 0 20px 0;
    animation: slideInUp 0.3s;
}

.globalroute-poi-card-bar {
    width: 56px;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin: 12px auto 8px auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.globalroute-poi-card-bar:hover {
    background: #d5d5d5;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.globalroute-poi-card-bar:hover::before {
    left: 100%;
}

.globalroute-poi-card-bar:active {
    transform: scale(0.95);
}

.globalroute-poi-card-content {
    padding: 0 24px;
    transition: all 0.3s ease;
}

.globalroute-poi-card-content.animate-in {
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.globalroute-poi-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.globalroute-poi-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.globalroute-poi-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.globalroute-poi-card-title-group {
    flex: 1;
    min-width: 0;
}

.globalroute-poi-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    margin-bottom: 0;
    word-break: break-word;
}

.globalroute-poi-card-address {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
    margin-top: 4px;
    word-break: break-word;
    font-weight: 400;
}

.globalroute-poi-card-distance {
    background: var(--Gris-Botn, #F2F2F2);
    padding: 4px 14px;
    border-radius: 18px;
    color: var(--Negro, #1B1B1B);
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 121.991%; /* 15.859px */
}

.globalroute-poi-card-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 52px;
}

.globalroute-poi-card-rating-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
}

.globalroute-poi-card-rating-stars,
.globalroute-poi-rating .rating-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.globalroute-poi-card-rating-stars .star-filled,
.globalroute-poi-rating .rating-stars .star-filled {
    color: #f7b500;
}

.globalroute-poi-card-rating-stars .star-half,
.globalroute-poi-rating .rating-stars .star-half {
    background: linear-gradient(90deg, #f7b500 50%, #dcdcdc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f7b500;
}

.globalroute-poi-card-rating-stars .star-empty,
.globalroute-poi-rating .rating-stars .star-empty {
    color: #dcdcdc;
}

.globalroute-poi-card-rating-count {
    font-size: 1.1rem;
    color: #888888;
    margin-left: 0;
}

.globalroute-poi-card-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    margin-left: 52px;
}

.globalroute-poi-card-btn-outline {
    flex: 1;
    background: #fff;
    color: #1566d8;
    border: 2px solid #1566d8;
    border-radius: 100px;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.globalroute-poi-card-btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

.globalroute-poi-card-btn-outline:hover {
    background: #f3f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.2);
}

.globalroute-poi-card-btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.3);
}

.globalroute-poi-card-btn-outline:active,
.globalroute-poi-card-btn-primary:active {
    transform: translateY(0);
    transition: all 0.1s;
}

/* Utilidades */
.globalroute-text-center {
    text-align: center;
}

.globalroute-text-left {
    text-align: left;
}

.globalroute-text-right {
    text-align: right;
}

.globalroute-mt-20 {
    margin-top: 20px;
}

.globalroute-mb-20 {
    margin-bottom: 20px;
}

.globalroute-ml-20 {
    margin-left: 20px;
}

.globalroute-mr-20 {
    margin-right: 20px;
}

.globalroute-p-20 {
    padding: 20px;
}

.globalroute-rounded {
    border-radius: 8px;
}

.globalroute-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.globalroute-border {
    border: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .globalroute-content {
        padding: 15px;
    }
    
    .globalroute-messages {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .globalroute-message {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .globalroute-content {
        padding: 10px;
    }
    
    .globalroute-message {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Estados de carga */
.globalroute-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.globalroute-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Modo oscuro (si el tema lo soporta) */
@media (prefers-color-scheme: dark) {
    .globalroute-content {
        color: #e0e0e0;
    }
    
    .globalroute-message {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .globalroute-message.success {
        background: #22543d;
        color: #9ae6b4;
        border-left-color: #48bb78;
    }
    
    .globalroute-message.error {
        background: #742a2a;
        color: #feb2b2;
        border-left-color: #f56565;
    }
    
    .globalroute-message.warning {
        background: #744210;
        color: #faf089;
        border-left-color: #ed8936;
    }
    
    .globalroute-message.info {
        background: #2a4365;
        color: #90cdf4;
        border-left-color: #4299e1;
    }
}

/* =========================
   Estilos base (Mobile First)
   ========================= */
.globalroute-search-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.globalroute-header-flex.globalroute-header-centered,
.globalroute-search-bar-centered,
.globalroute-category-row {
    flex-shrink: 0;
}

.globalroute-header-flex.globalroute-header-centered {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 24px 0 16px 0;
    position: relative;
}

.globalroute-back-btn-flex {
    position: absolute;
    left: 16px; 
    top: 50%;
    transform: translateY(-50%);
    width: 48.128px;
    height: 48px;
    min-width: 48.128px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 10;
}

.globalroute-back-btn-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.globalroute-back-btn-flex:hover {
    background-color: rgba(0, 94, 254, 0.1);
    transform: scale(1.05);
}

.globalroute-back-btn-flex:hover .globalroute-back-btn-icon {
    transform: scale(1.1);
}

.globalroute-back-btn-flex:active {
    transform: scale(0.95);
}

.globalroute-back-btn-flex:active .globalroute-back-btn-icon {
    transform: scale(0.9);
}

.globalroute-header-title {
    flex: 1;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #005EFE;
    width: 100%;
    padding: 0 64px; 
    box-sizing: border-box;
}

.globalroute-search-bar-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.globalroute-search-input-container-centered {
    position: relative;
    width: 92%;
    height: 48px;
    background: #fff;
    border: 1.2px solid #1B1B1B;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
}

.globalroute-search-icon-centered {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 24px;
    height: 24px;
}

.globalroute-search-input-centered {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #1B1B1B;
    padding-left: 36px;
}

.globalroute-search-input-centered::placeholder {
    color: #E1E1E1;
    font-size: 16px;
    font-weight: 500;
}

/* Botón de limpiar búsqueda */
.globalroute-clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.globalroute-clear-search-btn:hover {
    background-color: #f0f0f0;
}

.globalroute-clear-search-btn:active {
    background-color: #e0e0e0;
}

.globalroute-clear-search-btn svg {
    width: 16px;
    height: 16px;
}

.globalroute-category-row {
    width: 92%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.globalroute-category-row > .globalroute-category-btn2.globalroute-category-clean,
.globalroute-category-row > .globalroute-category-btn2.globalroute-category-parking {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2 {
    font-size: 18px;
    line-height: 24px;
    padding: 12px 24px 12px 16px;
    border-radius: 24px;
    width: auto !important;
    height: 48px !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 0% !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-icon2 {
    width: 42px;
    height: 50px;
    margin-right: 16px;
    margin-left: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globalroute-category-icon2 img {
    width: 42px;
    height: 50px;
    object-fit: contain;
}

.globalroute-category-label2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 122%;
    letter-spacing: 0%;
    text-align: justify;
}

.globalroute-category-parking {
    background: #005EFE;
    color: #fff;
    border: none;
    box-shadow: none;
}

.globalroute-category-parking .globalroute-category-label2 {
    color: #fff;
}

.globalroute-category-parking .globalroute-category-icon2 svg text {
    fill: #005EFE;
}

.globalroute-category-clean {
    background: #fff;
    color: #1B1B1B;
    border: 1.2px solid #1B1B1B;
}

.globalroute-category-clean .globalroute-category-label2 {
    color: #1B1B1B;
}

/* Estados de los botones de categorías */
.globalroute-category-btn2.active {
    background: #005EFE !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2.active .globalroute-category-label2 {
    color: #fff !important;
}

.globalroute-category-btn2.inactive {
    background: #fff !important;
    color: #1B1B1B !important;
    border: 1.2px solid #1B1B1B !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2.inactive .globalroute-category-label2 {
    color: #1B1B1B !important;
}

/* Estilos para POIs no seleccionados en móvil */
@media (max-width: 599px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    .globalroute-poi-card-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-card-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }
    
    .globalroute-poi-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    /* Botón de estacionamientos para móviles */
    .globalroute-category-btn2.globalroute-category-parking {
        width: 150px !important;
        height: 36px !important;
        border-radius: 18px !important;
        border: 0.50px solid #1B1B1B !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 {
        width: 20px !important;
        height: 18px !important;
        background: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 img {
        width: 20px !important;
        height: 18px !important;
        object-fit: contain !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-label2 {
        width: 109px !important;
        height: 15px !important;
        text-align: justify !important;
        color: #1B1B1B !important;
        font-size: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 500 !important;
        line-height: 14.64px !important;
        word-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active {
        background: #005EFE !important;
        color: #FFFFFF !important;
        border: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-label2 {
        color: #FFFFFF !important;
    }

    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-icon2 {
        background: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.inactive {
        background: transparent !important;
        color: #1B1B1B !important;
        border: 0.50px solid #1B1B1B !important;
    }
}

/* Estilos para POIs no seleccionados en tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
}

/* Estilos específicos para móviles del botón de estacionamientos */
@media (max-width: 599px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    .globalroute-poi-card-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-card-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }
    
    .globalroute-poi-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    /* Botón de estacionamientos para móviles */
    .globalroute-category-btn2.globalroute-category-parking {
        width: 150px !important;
        height: 36px !important;
        border-radius: 18px !important;
        border: 0.50px solid #1B1B1B !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 {
        width: 20px !important;
        height: 18px !important;
        background: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 img {
        width: 20px !important;
        height: 18px !important;
        object-fit: contain !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-label2 {
        width: 109px !important;
        height: 15px !important;
        text-align: justify !important;
        color: #1B1B1B !important;
        font-size: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 500 !important;
        line-height: 14.64px !important;
        word-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active {
        background: #005EFE !important;
        color: #FFFFFF !important;
        border: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-label2 {
        color: #FFFFFF !important;
    }

    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-icon2 {
        background: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.inactive {
        background: transparent !important;
        color: #1B1B1B !important;
        border: 0.50px solid #1B1B1B !important;
    }
}

/* Estilos para POIs no seleccionados en desktop */
@media (min-width: 1024px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
}

/* Estilos para POIs seleccionados */
/* POIs de limpieza seleccionados */
img[src*="wash_2.png"] {
    width: var(--dynamic-poi-width, 36px) !important;
    height: var(--dynamic-poi-height, 43px) !important;
}

/* POIs de estacionamiento seleccionados */
img[src*="parking_2.png"] {
    width: var(--dynamic-poi-width, 36px) !important;
    height: var(--dynamic-poi-height, 43px) !important;
}

/* Estilos para POIs seleccionados en tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    /* POIs de limpieza seleccionados */
    img[src*="wash_2.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
    
    /* POIs de estacionamiento seleccionados */
    img[src*="parking_2.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
}

/* Estilos para POIs seleccionados en desktop */
@media (min-width: 1024px) {
    /* POIs de limpieza seleccionados */
    img[src*="wash_2.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
    
    /* POIs de estacionamiento seleccionados */
    img[src*="parking_2.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
}

/* =========================
   Tablet (≥ 600px)
   ========================= */
@media (min-width: 600px) {
    .globalroute-search-container {
        max-width: 600px;
        min-height: 700px;
        padding: 0 0 40px 0;
    }
    .globalroute-header-flex.globalroute-header-centered {
        padding: 36px 0 24px 0;
    }
    .globalroute-back-btn-flex {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
        left: 24px;
    }
    .globalroute-header-title {
        font-size: 28px;
        line-height: 34px;
        padding: 0 88px;
    }
    .globalroute-search-input-container-centered {
        height: 64px;
        border-radius: 32px;
        padding: 0 20px;
    }
    .globalroute-search-icon-centered {
        left: 18px;
        width: 24px;
        height: 24px;
    }
    .globalroute-search-input-centered {
        font-size: 20px;
        line-height: 28px;
        padding-left: 48px;
    }
    .globalroute-search-input-centered::placeholder {
        font-size: 18px;
    }
    .globalroute-clear-search-btn {
        right: 16px;
        padding: 6px;
    }
    .globalroute-clear-search-btn svg {
        width: 18px;
        height: 18px;
    }
    .globalroute-category-row {
        flex-direction: row;
        gap: 20px;
        margin-top: 32px;
        margin-bottom: 16px;
        padding-left: 24px;
        padding-right: 24px;
        justify-content: center;
        align-items: center;
    }
    .globalroute-category-btn2 {
        font-size: 18px;
        line-height: 24px;
        padding: 12px 24px 12px 16px;
        border-radius: 24px;
        width: auto !important;
        height: 48px !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        flex: 1 1 0% !important;
        flex-shrink: 1 !important;
        flex-grow: 1 !important;
        flex-basis: 0% !important;
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .globalroute-category-icon2 img {
        width: 42px;
        height: 50px;
        object-fit: contain;
    }
    .globalroute-category-label2 {
        font-size: 18px;
    }
}

/* =========================
   Desktop (≥ 1024px)
   ========================= */
@media (min-width: 1024px) {
    .globalroute-search-container {
        max-width: 100%;
        min-height: 830px;
        padding: 0 0 56px 0;
    }
    .globalroute-header-flex.globalroute-header-centered {
        padding: 48px 0 40px 0;
    }
    .globalroute-back-btn-flex {
        width: 96px;
        height: 96px;
        min-width: 96px;
        min-height: 96px;
        left: 32px;
    }
    .globalroute-header-title {
        font-size: 36px;
        line-height: 44px;
        padding: 0 112px;
    }
    .globalroute-search-input-container-centered {
        height: 80px;
        border-radius: 40px;
        padding: 0 32px;
    }
    .globalroute-search-icon-centered {
        left: 24px;
        width: 24px;
        height: 24px;
    }
    .globalroute-search-input-centered {
        font-size: 20px;
        line-height: 28px;
        padding-left: 56px;
    }
    .globalroute-search-input-centered::placeholder {
        font-size: 20px;
    }
    .globalroute-clear-search-btn {
        right: 20px;
        padding: 8px;
    }
    .globalroute-clear-search-btn svg {
        width: 20px;
        height: 20px;
    }
    .globalroute-category-row {
        gap: 28px;
        margin-top: 40px;
        margin-bottom: 20px;
        padding-left: 32px;
        padding-right: 32px;
        justify-content: center;
        align-items: center;
    }
    .globalroute-category-btn2 {
        font-size: 22px;
        line-height: 28px;
        padding: 16px 32px 16px 20px;
        border-radius: 30px;
        width: auto !important;
        height: 60px !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        flex: 1 1 0% !important;
        flex-shrink: 1 !important;
        flex-grow: 1 !important;
        flex-basis: 0% !important;
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .globalroute-category-icon2 img {
        width: 42px;
        height: 50px;
        object-fit: contain;
    }
    .globalroute-category-label2 {
        font-size: 22px;
    }
}

#globalroute-map {
    flex: 1 1 0%;
    width: 100%;
    min-height: 0;
    min-width: 0;
    position: relative;
    left: 0;
    right: 0;
    transform: none;
    z-index: 1;
}

@media (min-width: 600px) {
    #globalroute-map {
        height: calc(100vh - 700px);
    }
}
@media (min-width: 1024px) {
    #globalroute-map {
        height: calc(100vh - 830px);
    }
}

.globalroute-category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    width: 181px;
    height: 36px;
    flex-shrink: 0;
}

/* Botón de estacionamientos específico */
.globalroute-category-button:last-child {
    width: 150px;
}

/* Estilos específicos para tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .globalroute-category-button {
        width: 241px; /* 181px * 1.33 */
        height: 48px; /* 36px * 1.33 */
        font-size: 18px; /* 14px * 1.33 */
        padding: 11px 21px; /* 8px * 1.33, 16px * 1.33 */
        gap: 11px; /* 8px * 1.33 */
    }
    
    .globalroute-category-button:last-child {
        width: 200px; /* 150px * 1.33 */
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
    }
}

/* Estilos específicos para desktop (1024px+) */
@media (min-width: 1024px) {
    .globalroute-category-button {
        width: 271px; /* 181px * 1.5 */
        height: 54px; /* 36px * 1.5 */
        font-size: 21px; /* 14px * 1.5 */
        padding: 12px 24px; /* 8px * 1.5, 16px * 1.5 */
        gap: 12px; /* 8px * 1.5 */
    }
    
    .globalroute-category-button:last-child {
        width: 225px; /* 150px * 1.5 */
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
    }
}

/* Tarjeta personalizada POI GlobalRoute */
.globalroute-poi-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    margin: 0 auto;
    max-width: 480px;
    min-width: 320px;
    padding: 0 0 20px 0;
    animation: slideInUp 0.3s;
}

.globalroute-poi-card-bar {
    width: 56px;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin: 12px auto 8px auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.globalroute-poi-card-bar:hover {
    background: #d5d5d5;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.globalroute-poi-card-bar:hover::before {
    left: 100%;
}

.globalroute-poi-card-bar:active {
    transform: scale(0.95);
}

.globalroute-poi-card-content {
    padding: 0 24px;
    transition: all 0.3s ease;
}

.globalroute-poi-card-content.animate-in {
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.globalroute-poi-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.globalroute-poi-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.globalroute-poi-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.globalroute-poi-card-title-group {
    flex: 1;
    min-width: 0;
}

.globalroute-poi-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    margin-bottom: 0;
    word-break: break-word;
}

.globalroute-poi-card-address {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
    margin-top: 4px;
    word-break: break-word;
    font-weight: 400;
}

.globalroute-poi-card-distance {
    background: var(--Gris-Botn, #F2F2F2);
    padding: 4px 14px;
    border-radius: 18px;
    color: var(--Negro, #1B1B1B);
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 121.991%; /* 15.859px */
}

.globalroute-poi-card-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 52px;
}

.globalroute-poi-card-rating-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
}

.globalroute-poi-card-rating-stars,
.globalroute-poi-rating .rating-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.globalroute-poi-card-rating-stars .star-filled,
.globalroute-poi-rating .rating-stars .star-filled {
    color: #f7b500;
}

.globalroute-poi-card-rating-stars .star-half,
.globalroute-poi-rating .rating-stars .star-half {
    background: linear-gradient(90deg, #f7b500 50%, #dcdcdc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f7b500;
}

.globalroute-poi-card-rating-stars .star-empty,
.globalroute-poi-rating .rating-stars .star-empty {
    color: #dcdcdc;
}

.globalroute-poi-card-rating-count {
    font-size: 1.1rem;
    color: #888888;
    margin-left: 0;
}

.globalroute-poi-card-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    margin-left: 52px;
}

.globalroute-poi-card-btn-outline {
    flex: 1;
    background: #fff;
    color: #1566d8;
    border: 2px solid #1566d8;
    border-radius: 100px;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.globalroute-poi-card-btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

.globalroute-poi-card-btn-outline:hover {
    background: #f3f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.2);
}

.globalroute-poi-card-btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.3);
}

.globalroute-poi-card-btn-outline:active,
.globalroute-poi-card-btn-primary:active {
    transform: translateY(0);
    transition: all 0.1s;
}

/* Utilidades */
.globalroute-text-center {
    text-align: center;
}

.globalroute-text-left {
    text-align: left;
}

.globalroute-text-right {
    text-align: right;
}

.globalroute-mt-20 {
    margin-top: 20px;
}

.globalroute-mb-20 {
    margin-bottom: 20px;
}

.globalroute-ml-20 {
    margin-left: 20px;
}

.globalroute-mr-20 {
    margin-right: 20px;
}

.globalroute-p-20 {
    padding: 20px;
}

.globalroute-rounded {
    border-radius: 8px;
}

.globalroute-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.globalroute-border {
    border: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .globalroute-content {
        padding: 15px;
    }
    
    .globalroute-messages {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .globalroute-message {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .globalroute-content {
        padding: 10px;
    }
    
    .globalroute-message {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Estados de carga */
.globalroute-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.globalroute-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Modo oscuro (si el tema lo soporta) */
@media (prefers-color-scheme: dark) {
    .globalroute-content {
        color: #e0e0e0;
    }
    
    .globalroute-message {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .globalroute-message.success {
        background: #22543d;
        color: #9ae6b4;
        border-left-color: #48bb78;
    }
    
    .globalroute-message.error {
        background: #742a2a;
        color: #feb2b2;
        border-left-color: #f56565;
    }
    
    .globalroute-message.warning {
        background: #744210;
        color: #faf089;
        border-left-color: #ed8936;
    }
    
    .globalroute-message.info {
        background: #2a4365;
        color: #90cdf4;
        border-left-color: #4299e1;
    }
}

/* =========================
   Estilos base (Mobile First)
   ========================= */
.globalroute-search-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.globalroute-header-flex.globalroute-header-centered,
.globalroute-search-bar-centered,
.globalroute-category-row {
    flex-shrink: 0;
}

.globalroute-header-flex.globalroute-header-centered {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 24px 0 16px 0;
    position: relative;
}

.globalroute-back-btn-flex {
    position: absolute;
    left: 16px; 
    top: 50%;
    transform: translateY(-50%);
    width: 48.128px;
    height: 48px;
    min-width: 48.128px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 10;
}

.globalroute-back-btn-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.globalroute-back-btn-flex:hover {
    background-color: rgba(0, 94, 254, 0.1);
    transform: scale(1.05);
}

.globalroute-back-btn-flex:hover .globalroute-back-btn-icon {
    transform: scale(1.1);
}

.globalroute-back-btn-flex:active {
    transform: scale(0.95);
}

.globalroute-back-btn-flex:active .globalroute-back-btn-icon {
    transform: scale(0.9);
}

.globalroute-header-title {
    flex: 1;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #005EFE;
    width: 100%;
    padding: 0 64px; 
    box-sizing: border-box;
}

.globalroute-search-bar-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.globalroute-search-input-container-centered {
    position: relative;
    width: 92%;
    height: 48px;
    background: #fff;
    border: 1.2px solid #1B1B1B;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
}

.globalroute-search-icon-centered {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 24px;
    height: 24px;
}

.globalroute-search-input-centered {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #1B1B1B;
    padding-left: 36px;
}

.globalroute-search-input-centered::placeholder {
    color: #E1E1E1;
    font-size: 16px;
    font-weight: 500;
}

/* Botón de limpiar búsqueda */
.globalroute-clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.globalroute-clear-search-btn:hover {
    background-color: #f0f0f0;
}

.globalroute-clear-search-btn:active {
    background-color: #e0e0e0;
}

.globalroute-clear-search-btn svg {
    width: 16px;
    height: 16px;
}

.globalroute-category-row {
    width: 92%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.globalroute-category-row > .globalroute-category-btn2.globalroute-category-clean,
.globalroute-category-row > .globalroute-category-btn2.globalroute-category-parking {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2 {
    font-size: 18px;
    line-height: 24px;
    padding: 12px 24px 12px 16px;
    border-radius: 24px;
    width: auto !important;
    height: 48px !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 0% !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-icon2 {
    width: 42px;
    height: 50px;
    margin-right: 16px;
    margin-left: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globalroute-category-icon2 img {
    width: 42px;
    height: 50px;
    object-fit: contain;
}

.globalroute-category-label2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 122%;
    letter-spacing: 0%;
    text-align: justify;
}

.globalroute-category-parking {
    background: #005EFE;
    color: #fff;
    border: none;
    box-shadow: none;
}

.globalroute-category-parking .globalroute-category-label2 {
    color: #fff;
}

.globalroute-category-parking .globalroute-category-icon2 svg text {
    fill: #005EFE;
}

.globalroute-category-clean {
    background: #fff;
    color: #1B1B1B;
    border: 1.2px solid #1B1B1B;
}

.globalroute-category-clean .globalroute-category-label2 {
    color: #1B1B1B;
}

/* Estados de los botones de categorías */
.globalroute-category-btn2.active {
    background: #005EFE !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2.active .globalroute-category-label2 {
    color: #fff !important;
}

.globalroute-category-btn2.inactive {
    background: #fff !important;
    color: #1B1B1B !important;
    border: 1.2px solid #1B1B1B !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    flex-basis: 0% !important;
}

.globalroute-category-btn2.inactive .globalroute-category-label2 {
    color: #1B1B1B !important;
}

/* Estilos para POIs no seleccionados en móvil */
@media (max-width: 599px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    .globalroute-poi-card-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-card-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }
    
    .globalroute-poi-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    /* Botón de estacionamientos para móviles */
    .globalroute-category-btn2.globalroute-category-parking {
        width: 150px !important;
        height: 36px !important;
        border-radius: 18px !important;
        border: 0.50px solid #1B1B1B !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 {
        width: 20px !important;
        height: 18px !important;
        background: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 img {
        width: 20px !important;
        height: 18px !important;
        object-fit: contain !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-label2 {
        width: 109px !important;
        height: 15px !important;
        text-align: justify !important;
        color: #1B1B1B !important;
        font-size: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 500 !important;
        line-height: 14.64px !important;
        word-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active {
        background: #005EFE !important;
        color: #FFFFFF !important;
        border: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-label2 {
        color: #FFFFFF !important;
    }

    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-icon2 {
        background: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.inactive {
        background: transparent !important;
        color: #1B1B1B !important;
        border: 0.50px solid #1B1B1B !important;
    }
}

/* Estilos para POIs no seleccionados en tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
}

/* Estilos específicos para móviles del botón de estacionamientos */
@media (max-width: 599px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 36px) !important;
        height: var(--dynamic-poi-height, 43px) !important;
    }
    
    .globalroute-poi-card-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-card-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }
    
    .globalroute-poi-icon {
        width: 42px !important;
        height: 50px !important;
    }
    
    .globalroute-poi-icon img {
        width: 42px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    /* Botón de estacionamientos para móviles */
    .globalroute-category-btn2.globalroute-category-parking {
        width: 150px !important;
        height: 36px !important;
        border-radius: 18px !important;
        border: 0.50px solid #1B1B1B !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 {
        width: 20px !important;
        height: 18px !important;
        background: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-icon2 img {
        width: 20px !important;
        height: 18px !important;
        object-fit: contain !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking .globalroute-category-label2 {
        width: 109px !important;
        height: 15px !important;
        text-align: justify !important;
        color: #1B1B1B !important;
        font-size: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 500 !important;
        line-height: 14.64px !important;
        word-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active {
        background: #005EFE !important;
        color: #FFFFFF !important;
        border: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-label2 {
        color: #FFFFFF !important;
    }

    .globalroute-category-btn2.globalroute-category-parking.active .globalroute-category-icon2 {
        background: none !important;
    }
    
    .globalroute-category-btn2.globalroute-category-parking.inactive {
        background: transparent !important;
        color: #1B1B1B !important;
        border: 0.50px solid #1B1B1B !important;
    }
}

/* Estilos para POIs no seleccionados en desktop */
@media (min-width: 1024px) {
    /* POIs de limpieza no seleccionados */
    img[src*="wash_1.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
    
    /* POIs de estacionamiento no seleccionados */
    img[src*="parking_1.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
}

/* Estilos para POIs seleccionados */
/* POIs de limpieza seleccionados */
img[src*="wash_2.png"] {
    width: var(--dynamic-poi-width, 36px) !important;
    height: var(--dynamic-poi-height, 43px) !important;
}

/* POIs de estacionamiento seleccionados */
img[src*="parking_2.png"] {
    width: var(--dynamic-poi-width, 36px) !important;
    height: var(--dynamic-poi-height, 43px) !important;
}

/* Estilos para POIs seleccionados en tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    /* POIs de limpieza seleccionados */
    img[src*="wash_2.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
    
    /* POIs de estacionamiento seleccionados */
    img[src*="parking_2.png"] {
        width: var(--dynamic-poi-width, 48px) !important;
        height: var(--dynamic-poi-height, 57px) !important;
    }
}

/* Estilos para POIs seleccionados en desktop */
@media (min-width: 1024px) {
    /* POIs de limpieza seleccionados */
    img[src*="wash_2.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
    
    /* POIs de estacionamiento seleccionados */
    img[src*="parking_2.png"] {
        width: var(--dynamic-poi-width, 60px) !important;
        height: var(--dynamic-poi-height, 72px) !important;
    }
}

/* =========================
   Tablet (≥ 600px)
   ========================= */
@media (min-width: 600px) {
    .globalroute-search-container {
        max-width: 600px;
        min-height: 700px;
        padding: 0 0 40px 0;
    }
    .globalroute-header-flex.globalroute-header-centered {
        padding: 36px 0 24px 0;
    }
    .globalroute-back-btn-flex {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
        left: 24px;
    }
    .globalroute-header-title {
        font-size: 28px;
        line-height: 34px;
        padding: 0 88px;
    }
    .globalroute-search-input-container-centered {
        height: 64px;
        border-radius: 32px;
        padding: 0 20px;
    }
    .globalroute-search-icon-centered {
        left: 18px;
        width: 24px;
        height: 24px;
    }
    .globalroute-search-input-centered {
        font-size: 20px;
        line-height: 28px;
        padding-left: 48px;
    }
    .globalroute-search-input-centered::placeholder {
        font-size: 18px;
    }
    .globalroute-clear-search-btn {
        right: 16px;
        padding: 6px;
    }
    .globalroute-clear-search-btn svg {
        width: 18px;
        height: 18px;
    }
    .globalroute-category-row {
        flex-direction: row;
        gap: 20px;
        margin-top: 32px;
        margin-bottom: 16px;
        padding-left: 24px;
        padding-right: 24px;
        justify-content: center;
        align-items: center;
    }
    .globalroute-category-btn2 {
        font-size: 18px;
        line-height: 24px;
        padding: 12px 24px 12px 16px;
        border-radius: 24px;
        width: auto !important;
        height: 48px !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        flex: 1 1 0% !important;
        flex-shrink: 1 !important;
        flex-grow: 1 !important;
        flex-basis: 0% !important;
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .globalroute-category-icon2 img {
        width: 42px;
        height: 50px;
        object-fit: contain;
    }
    .globalroute-category-label2 {
        font-size: 18px;
    }
}

/* =========================
   Desktop (≥ 1024px)
   ========================= */
@media (min-width: 1024px) {
    .globalroute-search-container {
        max-width: 100%;
        min-height: 830px;
        padding: 0 0 56px 0;
    }
    .globalroute-header-flex.globalroute-header-centered {
        padding: 48px 0 40px 0;
    }
    .globalroute-back-btn-flex {
        width: 96px;
        height: 96px;
        min-width: 96px;
        min-height: 96px;
        left: 32px;
    }
    .globalroute-header-title {
        font-size: 36px;
        line-height: 44px;
        padding: 0 112px;
    }
    .globalroute-search-input-container-centered {
        height: 80px;
        border-radius: 40px;
        padding: 0 32px;
    }
    .globalroute-search-icon-centered {
        left: 24px;
        width: 24px;
        height: 24px;
    }
    .globalroute-search-input-centered {
        font-size: 20px;
        line-height: 28px;
        padding-left: 56px;
    }
    .globalroute-search-input-centered::placeholder {
        font-size: 20px;
    }
    .globalroute-clear-search-btn {
        right: 20px;
        padding: 8px;
    }
    .globalroute-clear-search-btn svg {
        width: 20px;
        height: 20px;
    }
    .globalroute-category-row {
        gap: 28px;
        margin-top: 40px;
        margin-bottom: 20px;
        padding-left: 32px;
        padding-right: 32px;
        justify-content: center;
        align-items: center;
    }
    .globalroute-category-btn2 {
        font-size: 22px;
        line-height: 28px;
        padding: 16px 32px 16px 20px;
        border-radius: 30px;
        width: auto !important;
        height: 60px !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        flex: 1 1 0% !important;
        flex-shrink: 1 !important;
        flex-grow: 1 !important;
        flex-basis: 0% !important;
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .globalroute-category-icon2 img {
        width: 42px;
        height: 50px;
        object-fit: contain;
    }
    .globalroute-category-label2 {
        font-size: 22px;
    }
}

#globalroute-map {
    flex: 1 1 0%;
    width: 100%;
    min-height: 0;
    min-width: 0;
    position: relative;
    left: 0;
    right: 0;
    transform: none;
    z-index: 1;
}

@media (min-width: 600px) {
    #globalroute-map {
        height: calc(100vh - 700px);
    }
}
@media (min-width: 1024px) {
    #globalroute-map {
        height: calc(100vh - 830px);
    }
}

.globalroute-category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    width: 181px;
    height: 36px;
    flex-shrink: 0;
}

/* Botón de estacionamientos específico */
.globalroute-category-button:last-child {
    width: 150px;
}

/* Estilos específicos para tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .globalroute-category-button {
        width: 241px; /* 181px * 1.33 */
        height: 48px; /* 36px * 1.33 */
        font-size: 18px; /* 14px * 1.33 */
        padding: 11px 21px; /* 8px * 1.33, 16px * 1.33 */
        gap: 11px; /* 8px * 1.33 */
    }
    
    .globalroute-category-button:last-child {
        width: 200px; /* 150px * 1.33 */
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
    }
}

/* Estilos específicos para desktop (1024px+) */
@media (min-width: 1024px) {
    .globalroute-category-button {
        width: 271px; /* 181px * 1.5 */
        height: 54px; /* 36px * 1.5 */
        font-size: 21px; /* 14px * 1.5 */
        padding: 12px 24px; /* 8px * 1.5, 16px * 1.5 */
        gap: 12px; /* 8px * 1.5 */
    }
    
    .globalroute-category-button:last-child {
        width: 225px; /* 150px * 1.5 */
    }
    .globalroute-category-icon2 {
        width: 42px;
        height: 50px;
        margin-right: 16px;
        margin-left: 13px;
    }
}

/* Tarjeta personalizada POI GlobalRoute */
.globalroute-poi-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    margin: 0 auto;
    max-width: 480px;
    min-width: 320px;
    padding: 0 0 20px 0;
    animation: slideInUp 0.3s;
}

.globalroute-poi-card-bar {
    width: 56px;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin: 12px auto 8px auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.globalroute-poi-card-bar:hover {
    background: #d5d5d5;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.globalroute-poi-card-bar:hover::before {
    left: 100%;
}

.globalroute-poi-card-bar:active {
    transform: scale(0.95);
}

.globalroute-poi-card-content {
    padding: 0 24px;
    transition: all 0.3s ease;
}

.globalroute-poi-card-content.animate-in {
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.globalroute-poi-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.globalroute-poi-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.globalroute-poi-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.globalroute-poi-card-title-group {
    flex: 1;
    min-width: 0;
}

.globalroute-poi-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    margin-bottom: 0;
    word-break: break-word;
}

.globalroute-poi-card-address {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
    margin-top: 4px;
    word-break: break-word;
    font-weight: 400;
}

.globalroute-poi-card-distance {
    background: var(--Gris-Botn, #F2F2F2);
    padding: 4px 14px;
    border-radius: 18px;
    color: var(--Negro, #1B1B1B);
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 121.991%; /* 15.859px */
}

.globalroute-poi-card-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 52px;
}

.globalroute-poi-card-rating-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
}

.globalroute-poi-card-rating-stars,
.globalroute-poi-rating .rating-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.globalroute-poi-card-rating-stars .star-filled,
.globalroute-poi-rating .rating-stars .star-filled {
    color: #f7b500;
}

.globalroute-poi-card-rating-stars .star-half,
.globalroute-poi-rating .rating-stars .star-half {
    background: linear-gradient(90deg, #f7b500 50%, #dcdcdc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f7b500;
}

.globalroute-poi-card-rating-stars .star-empty,
.globalroute-poi-rating .rating-stars .star-empty {
    color: #dcdcdc;
}

.globalroute-poi-card-rating-count {
    font-size: 1.1rem;
    color: #888888;
    margin-left: 0;
}

.globalroute-poi-card-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    margin-left: 52px;
}

.globalroute-poi-card-btn-outline {
    flex: 1;
    background: #fff;
    color: #1566d8;
    border: 2px solid #1566d8;
    border-radius: 100px;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.globalroute-poi-card-btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

.globalroute-poi-card-btn-outline:hover {
    background: #f3f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.2);
}

.globalroute-poi-card-btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.3);
}

.globalroute-poi-card-btn-outline:active,
.globalroute-poi-card-btn-primary:active {
    transform: translateY(0);
    transition: all 0.1s;
}

.globalroute-poi-card-btn-primary {
    flex: 1;
    background: #1566d8;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.globalroute-poi-card-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.globalroute-poi-card-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.globalroute-poi-card-btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.3);
}

.globalroute-poi-card-btn-primary:active {
    transform: translateY(0);
    transition: all 0.1s;
}

.globalroute-poi-card-btn-primary svg {
    flex-shrink: 0;
}

/* Nueva tarjeta de detalles del POI que ocupa todo el ancho y alto */
.globalroute-poi-details-card {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #fff;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s;
    overflow-y: auto;
}

.globalroute-poi-details-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.globalroute-poi-details-back-btn {
    background: none;
    border: none;
    color: #1566d8;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    margin-right: 16px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globalroute-poi-details-back-btn:hover {
    background: #f3f8ff;
}

.globalroute-poi-details-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    flex: 1;
}

.globalroute-poi-details-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.globalroute-poi-details-section {
    margin-bottom: 32px;
}

.globalroute-poi-details-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.globalroute-poi-details-info,
.globalroute-poi-details-google-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.globalroute-poi-details-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1566d8;
}

.globalroute-poi-details-item strong {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.globalroute-poi-details-item span {
    color: #666;
    font-size: 1rem;
    word-break: break-word;
}

.globalroute-poi-details-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.globalroute-poi-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.globalroute-poi-details-btn-primary {
    background: #1566d8;
    color: #fff;
}

.globalroute-poi-details-btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.3);
}

.globalroute-poi-details-btn-secondary {
    background: #fff;
    color: #1566d8;
    border: 2px solid #1566d8;
}

.globalroute-poi-details-btn-secondary:hover {
    background: #f3f8ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 102, 216, 0.2);
}

@media (max-width: 600px) {
    .globalroute-poi-card {
        max-width: 100vw;
        min-width: 0;
        border-radius: 16px 16px 0 0;
        padding-bottom: 10px;
    }
    .globalroute-poi-card-content {
        padding: 0 12px;
    }
    .globalroute-poi-card-row {
        margin-bottom: 6px;
    }
    .globalroute-poi-card-rating-row, .globalroute-poi-card-buttons {
        margin-left: 44px;
    }
    
    /* Responsive para la tarjeta de detalles */
    .globalroute-poi-details-header {
        padding: 16px 20px;
    }
    
    .globalroute-poi-details-title {
        font-size: 1.25rem;
    }
    
    .globalroute-poi-details-content {
        padding: 20px;
    }
    
    .globalroute-poi-details-section {
        margin-bottom: 24px;
    }
    
    .globalroute-poi-details-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .globalroute-poi-details-item {
        padding: 10px;
    }
    
    .globalroute-poi-details-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .globalroute-poi-details-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .globalroute-poi-details-actions {
        flex-direction: row;
        gap: 16px;
    }
    
    .globalroute-poi-details-btn {
        flex: 1;
    }
}

/* Estilos para el marcador de destino */
.globalroute-destination-marker {
    /* El marcador se crea dinámicamente con SVG, pero podemos agregar estilos para la info window */
}

/* Estilos para la info window del destino */
.globalroute-destination-info {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 300px;
    padding: 0;
    line-height: 1.4;
}

.globalroute-destination-info h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.globalroute-destination-info strong {
    font-weight: 600;
    color: #333;
}

.globalroute-destination-info a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.globalroute-destination-info a:hover {
    color: #1976D2;
    text-decoration: underline;
}

.globalroute-destination-info button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 8px;
}

.globalroute-destination-info button:hover {
    background: #1976D2;
}

.globalroute-destination-info button:active {
    background: #1565C0;
    transform: translateY(1px);
}

/* Estilos para calificaciones */
.globalroute-rating-stars {
    color: #FFD700;
    font-size: 14px;
    letter-spacing: 1px;
}

.globalroute-rating-text {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* Estilos para estado del negocio */
.globalroute-business-status {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.globalroute-business-status.open {
    background: #E8F5E8;
    color: #2E7D32;
}

.globalroute-business-status.closed {
    background: #FFEBEE;
    color: #C62828;
}

/* Estilos para horarios */
.globalroute-hours {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.globalroute-hours strong {
    color: #333;
    font-size: 12px;
}

/* Estilos para información de contacto */
.globalroute-contact-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.globalroute-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
}

.globalroute-contact-item strong {
    margin-right: 6px;
    min-width: 20px;
}

/* Responsive para info windows */
@media (max-width: 480px) {
    .globalroute-destination-info {
        max-width: 250px;
        font-size: 13px;
    }
    
    .globalroute-destination-info h3 {
        font-size: 15px;
    }
    
    .globalroute-destination-info button {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Animación para info windows */
.globalroute-destination-info {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Animación para el marcador de destino */
@keyframes destinationPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Aplicar animación al marcador de destino cuando se crea */
.globalroute-destination-marker-created {
    animation: destinationPulse 2s ease-in-out infinite;
}

/* Estilos hover específicos para tablet */
@media (min-width: 600px) {
    .globalroute-back-btn-flex:hover {
        background-color: rgba(0, 94, 254, 0.1);
        transform: scale(1.05);
    }
    
    .globalroute-back-btn-icon {
        width: 36px;
        height: 36px;
    }
}

/* Estilos hover específicos para desktop */
@media (min-width: 1024px) {
    .globalroute-back-btn-flex:hover {
        background-color: rgba(0, 94, 254, 0.1);
        transform: scale(1.05);
    }
    
    .globalroute-back-btn-icon {
        width: 48px;
        height: 48px;
    }
}

/* Estilos para información adicional en tarjetas POI */
.globalroute-poi-card-additional-info {
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    line-height: 1.4;
}

.globalroute-poi-card-business-status {
    margin-bottom: 6px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    font-size: 11px;
}

.globalroute-poi-card-business-status.open {
    background: #E8F5E8;
    color: #2E7D32;
}

.globalroute-poi-card-business-status.closed {
    background: #FFEBEE;
    color: #C62828;
}

.globalroute-poi-card-price-level {
    margin-bottom: 6px;
    color: #666;
    font-size: 11px;
}

.globalroute-poi-card-hours {
    margin-bottom: 6px;
    color: #666;
    font-size: 11px;
}

.globalroute-poi-card-hours strong {
    color: #333;
    font-size: 12px;
}

.globalroute-poi-card-contact {
    margin-bottom: 6px;
    font-size: 11px;
}

.globalroute-poi-card-contact a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.globalroute-poi-card-contact a:hover {
    text-decoration: underline;
}

.globalroute-poi-card-website {
    margin-bottom: 6px;
    font-size: 11px;
}

.globalroute-poi-card-website a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.globalroute-poi-card-website a:hover {
    text-decoration: underline;
}

/* Nuevos estilos para información adicional */
.globalroute-poi-card-types {
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
}

.globalroute-poi-card-types strong {
    color: #333;
    font-size: 12px;
}

.globalroute-poi-card-summary {
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
    font-style: italic;
    line-height: 1.3;
}

.globalroute-poi-card-summary strong {
    color: #333;
    font-size: 12px;
    font-style: normal;
}

.globalroute-poi-card-review {
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
    font-style: italic;
    line-height: 1.3;
    background: #f9f9f9;
    padding: 4px 6px;
    border-radius: 3px;
    border-left: 3px solid #2196F3;
}

.globalroute-poi-card-review strong {
    color: #333;
    font-size: 12px;
    font-style: normal;
}

.globalroute-poi-card-google-maps {
    margin-bottom: 6px;
    font-size: 11px;
}

.globalroute-poi-card-google-maps a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.globalroute-poi-card-google-maps a:hover {
    text-decoration: underline;
}

.globalroute-poi-card-google-maps strong {
    color: #333;
    font-size: 12px;
}

/* Estilos para información adicional específica */
.globalroute-poi-card-accessibility {
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
}

.globalroute-poi-card-accessibility strong {
    color: #333;
    font-size: 12px;
}

.globalroute-poi-card-services {
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
}

.globalroute-poi-card-services strong {
    color: #333;
    font-size: 12px;
}

.globalroute-poi-card-meal-services {
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
}

.globalroute-poi-card-meal-services strong {
    color: #333;
    font-size: 12px;
}

.globalroute-poi-card-drink-services {
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
}

.globalroute-poi-card-drink-services strong {
    color: #333;
    font-size: 12px;
}

/* Responsive para información adicional */
@media (max-width: 600px) {
    .globalroute-poi-card-additional-info {
        margin: 6px 0;
        padding: 6px 0;
        font-size: 11px;
    }
    
    .globalroute-poi-card-business-status {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .globalroute-poi-card-price-level,
    .globalroute-poi-card-hours,
    .globalroute-poi-card-contact,
    .globalroute-poi-card-website {
        font-size: 10px;
        margin-bottom: 4px;
    }
}

/* Estilos para información adicional de Google Maps */
.globalroute-poi-card-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
}

.globalroute-poi-card-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.globalroute-poi-card-info-icon {
    margin-right: 8px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.globalroute-poi-card-info-label {
    font-weight: 600;
    color: #333;
    margin-right: 6px;
    min-width: 80px;
}

.globalroute-poi-card-info-value {
    color: #666;
    flex: 1;
}

.globalroute-poi-card-info-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.globalroute-poi-card-info-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Estilos para información detallada (horarios, etc.) */
.globalroute-poi-card-info-details {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.globalroute-poi-card-info-details:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.globalroute-poi-card-info-details-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.globalroute-poi-card-info-details-content {
    margin-left: 28px; /* Alinear con el contenido de otros elementos */
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.globalroute-poi-card-info-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.globalroute-poi-card-info-details-list li {
    padding: 2px 0;
    border-bottom: 1px solid #f8f8f8;
}

.globalroute-poi-card-info-details-list li:last-child {
    border-bottom: none;
}

/* Estilos responsivos para información adicional */
@media (max-width: 480px) {
    .globalroute-poi-card-info-item {
        font-size: 13px;
        padding: 5px 0;
    }
    
    .globalroute-poi-card-info-icon {
        font-size: 14px;
        min-width: 18px;
    }
    
    .globalroute-poi-card-info-label {
        min-width: 70px;
        font-size: 12px;
    }
    
    .globalroute-poi-card-info-value {
        font-size: 12px;
    }
    
    .globalroute-poi-card-info-details {
        margin-bottom: 10px;
        padding: 6px 0;
    }
    
    .globalroute-poi-card-info-details-header {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .globalroute-poi-card-info-details-content {
        margin-left: 26px;
        font-size: 12px;
    }
    
    .globalroute-poi-card-info-details-list li {
        padding: 1px 0;
    }
}

/* Animación para mostrar información adicional */
.globalroute-poi-card-additional-info {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Ajustes 2025-06 para globalroute-poi-card === */
.globalroute-poi-card-distance {
    background: var(--Gris-Botn, #F2F2F2);
    padding: 4px 14px;
    border-radius: 18px;
    color: var(--Negro, #1B1B1B);
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 121.991%; /* 15.859px */
}

/* Espaciado vertical más acorde al mock-up */
.globalroute-poi-card-row {
    margin-bottom: 12px;
}
.globalroute-poi-card-rating-row {
    margin-bottom: 16px;
}

/* Botones con forma de píldora completa */
.globalroute-poi-card-btn-outline,
.globalroute-poi-card-btn-primary {
    border-radius: 100px;
}

/* Anchos máximos mayores para tablet y desktop */
@media (min-width: 600px) {
    .globalroute-poi-card {
        max-width: 600px;
    }
}
@media (min-width: 1024px) {
    .globalroute-poi-card {
        max-width: 640px;
    }
}

/* ==== Cabecera "Volver al mapa" & Botón Atrás (mobile first) ==== */
.globalroute-opinions-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #0066FF;
    color: white;
    position: relative;
    z-index: 1;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.globalroute-opinions-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding-left: 8px;
    color: white;
}

.globalroute-opinions-back-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.globalroute-opinions-back-btn::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url('../icons/atras.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.globalroute-opinions-back-btn:hover {
    opacity: 0.8;
}

.globalroute-opinions-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0px -4px 20px 0px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease-out;
    overflow: hidden;
}

.globalroute-opinions-content {
    padding: 0 0 1rem 0;
    overflow-y: auto;
    flex-grow: 1;
    width: 100%;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (min-width: 600px) {
    .globalroute-opinions-card {
        max-width: 600px;
        margin: 0 auto;
        right: 1rem;
        left: 1rem;
    }
}

@media (min-width: 1024px) {
    .globalroute-opinions-card {
        max-width: 800px;
    }
}

/* Estilos para la información del POI en la tarjeta de opiniones */
.globalroute-poi-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

.globalroute-poi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globalroute-poi-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.globalroute-poi-details {
    flex: 1;
}

.globalroute-poi-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #000;
}

.globalroute-poi-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.globalroute-poi-rating .rating-value {
    font-weight: 600;
    color: #000;
}

.globalroute-poi-rating .rating-stars {
    color: inherit;
}

.globalroute-poi-rating .rating-count {
    color: #666;
}

.poi-distance {
    margin-left: auto;
    background: var(--Gris-Botn, #F2F2F2);
    padding: 4px 14px;
    border-radius: 18px;
    color: var(--Negro, #1B1B1B);
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 121.991%; /* 15.859px */
}

/* Estilos para la sección de compartir opinión */
.globalroute-share-opinion {
    background: #F8F9FA;
    padding: 1.5rem 1rem 1.5rem 1.5rem;
    border-radius: 8px;
    margin: 0 1.5rem 2rem;
}

.globalroute-share-opinion h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 16px;
    color: #000;
}

.globalroute-rating-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.globalroute-rating-input .rating-stars {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.globalroute-rating-input .star {
    font-size: 2rem;
    color: #E1E1E1;
    cursor: pointer;
    transition: color 0.2s;
}

.globalroute-rating-input .star.active,
.globalroute-rating-input .star:hover {
    color: #FFB800;
}

.globalroute-rating-input textarea {
    width: 100%;
    height: 100px;
    padding: 1rem;
    border: 1px solid #000;
    border-radius: 8px;
    resize: none;
    color: #000;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 121.991%; /* 14.639px */
    box-sizing: border-box;
}

.globalroute-rating-input textarea::placeholder {
    color: #000;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 121.991%; /* 14.639px */
}

.globalroute-rating-input .character-count {
    text-align: right;
    color: #666;
    font-size: 0.875rem;
}

.globalroute-share-button {
    width: 100%;
    padding: 1rem;
    background: #0066FF;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globalroute-share-button:hover {
    background: #0052CC;
}

/* Línea horizontal después de la sección de compartir opinión */
.globalroute-share-opinion-separator {
    width: 100%;
    height: 1px;
    background: #F5F5F5;
    border: none;
    margin: 25px 0 0 0; /* 25px arriba, 0 laterales, 0 abajo */
}

/* Estilos para la lista de opiniones */
.globalroute-opinions-list {
    padding: 0 1rem;
}

.globalroute-opinions-list h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #000;
}

.opinion-item {
    border-bottom: 1px solid #EAEAEA;
    padding: 24px 0;
}

.opinion-item:last-child {
    border-bottom: none;
}

.opinion-main-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.opinion-details {
    flex-grow: 1;
}

.opinion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.user-name {
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 600;
    color: #1B1B1B;
}

.opinion-time {
    font-family: Montserrat;
    font-size: 14px;
    color: #888888;
}

.opinion-rating {
    display: flex;
}

.opinion-rating span {
    color: #FFB800; /* Estrella llena */
    font-size: 16px;
}

.opinion-rating .star-empty {
    color: #dcdcdc; /* Estrella vacía */
}

.opinion-rating .star-half {
    background: linear-gradient(90deg, #FFB800 50%, #dcdcdc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.opinion-text {
    font-family: Montserrat;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    margin: 0;
}

.opinions-list {
    display: flex;
    flex-direction: column;
}

/* Estados de carga y error */
.loading-opinions {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.loading-opinions::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.error-loading {
    text-align: center;
    padding: 20px;
    color: #f44336;
    background: #ffebee;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    margin: 10px 0;
}

.no-opinions {
    text-align: center;
    padding: 40px 20px;
    color: var(--Gris-Estrellas, #E1E1E1);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 121.991%; /* 19.519px */
}

.no-opinions p {
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 121.991%; /* 19.519px */
    color: var(--Gris-Estrellas, #E1E1E1);
    margin: 0;
}

/* Scrollbar personalizado para el contenedor */
.globalroute-opinions-container::-webkit-scrollbar {
    width: 6px;
}

.globalroute-opinions-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.globalroute-opinions-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.globalroute-opinions-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive para opiniones */
@media (max-width: 480px) {
    .opinions-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .opinion-item {
        padding: 12px;
    }
    
    .opinion-user {
        gap: 8px;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .opinion-text {
        font-size: 13px;
    }
    
    .globalroute-opinions-container {
        max-height: 350px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .opinions-stats {
        padding: 12px;
    }
    
    .opinion-item {
        padding: 14px;
    }
    
    .globalroute-opinions-container {
        max-height: 380px;
    }
}

@media (min-width: 769px) {
    .globalroute-opinions-container {
        max-height: 450px;
    }
    
    .opinion-item {
        padding: 18px;
    }
}

.globalroute-opinions-container {
    padding: 10px 0;
} 

/* Soporte para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .globalroute-card-opening,
    .globalroute-card-closing,
    .globalroute-card-smooth-in,
    .globalroute-card-smooth-out,
    .globalroute-card-flip-in,
    .globalroute-card-flip-out {
        animation: none !important;
        transition: none !important;
    }
    
    .globalroute-poi-card-bar,
    .globalroute-poi-card-btn-outline,
    .globalroute-poi-card-btn-primary {
        transition: none !important;
    }
    
    .globalroute-poi-card-bar:hover,
    .globalroute-poi-card-btn-outline:hover,
    .globalroute-poi-card-btn-primary:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .globalroute-poi-card-bar::before,
    .globalroute-poi-card-btn-outline::before,
    .globalroute-poi-card-btn-primary::before {
        display: none !important;
    }
}

/* Optimización de rendimiento para animaciones */
.globalroute-card-opening,
.globalroute-card-closing,
.globalroute-card-smooth-in,
.globalroute-card-smooth-out,
.globalroute-card-flip-in,
.globalroute-card-flip-out {
    will-change: transform, opacity;
}

/* Efectos de hover mejorados para la barra de la tarjeta */
.globalroute-category-btn2.inactive .globalroute-category-label2 {
    color: #999;
}

/* Botón de ubicación del usuario */
.globalroute-location-button-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    padding: 0 20px;
}

.globalroute-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    text-decoration: none;
    outline: none;
}

.globalroute-location-btn:hover {
    background: linear-gradient(135deg, #3367D6 0%, #2E8B47 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.globalroute-location-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
}

.globalroute-location-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.globalroute-location-btn span {
    white-space: nowrap;
}

/* Estados de carga para el botón de ubicación */
.globalroute-location-btn.loading {
    background: linear-gradient(135deg, #9AA0A6 0%, #9AA0A6 100%);
    cursor: not-allowed;
    pointer-events: none;
}

.globalroute-location-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Responsive para el botón de ubicación */
@media (max-width: 599px) {
    .globalroute-location-button-container {
        margin: 12px 0;
        padding: 0 16px;
    }
    
    .globalroute-location-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .globalroute-location-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 600px) {
    .globalroute-location-button-container {
        margin: 20px 0;
        padding: 0 24px;
    }
    
    .globalroute-location-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .globalroute-location-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 1024px) {
    .globalroute-location-button-container {
        margin: 24px 0;
        padding: 0 32px;
    }
    
    .globalroute-location-btn {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .globalroute-location-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Icono flotante de geolocalización */
#globalroute-geo-btn {
    position: absolute;
    right: 10px;
    bottom: 120px;
    z-index: 999;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    pointer-events: auto;
}
#globalroute-geo-btn:hover {
    box-shadow: 0 4px 16px rgba(66,133,244,0.25);
    transform: scale(1.08);
}
#globalroute-geo-btn img {
    width: 28px;
    height: 28px;
    pointer-events: none;
}
#globalroute-geo-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Ajuste para el contenedor del mapa para que el icono se posicione bien */
#globalroute-map {
    position: relative;
    min-height: 400px;
}

@media (max-width: 600px) {
    #globalroute-geo-btn {
        right: 8px;
        bottom: 100px;
        width: 40px;
        height: 40px;
    }
    #globalroute-geo-btn img {
        width: 22px;
        height: 22px;
    }
}

/* Ocultar el control nativo "Usar mi ubicación" de Google Maps */
.gm-style-cc > div > div > div[role="button"],
[aria-label="Usar mi ubicación"],
[title="Usar mi ubicación"] {
    display: none !important;
    visibility: hidden !important;
}

/* Estilos para las opiniones individuales */
.globalroute-opinion-item {
    background: none;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.globalroute-opinion-item:last-child {
    border-bottom: none;
}

.globalroute-opinion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px; /* Añade espacio entre el usuario y la fecha */
    margin-bottom: 8px;
}

.globalroute-opinion-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1; /* Permite que ocupe el espacio disponible */
}

.globalroute-opinion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
}

.globalroute-opinion-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.globalroute-opinion-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.globalroute-opinion-user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.globalroute-opinion-date {
    color: #6c757d;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0; /* Evita que la fecha se encoja */
}

.globalroute-opinion-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.globalroute-opinion-stars {
    display: flex;
    gap: 2px;
}

.globalroute-opinion-star {
    color: #ddd;
    font-size: 14px;
}

.globalroute-opinion-star.filled {
    color: #ffd700;
}

.globalroute-opinion-rating-value {
    display: none;
}

.globalroute-opinion-content {
    padding-left: 52px;
}

.globalroute-opinion-text {
    color: #333;
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .globalroute-opinion-header {
        align-items: center;
    }
    .globalroute-opinion-content {
        padding-left: 0;
    }
}

/* Estilos para las notificaciones de opiniones */
.globalroute-opinion-message {
    padding: 1rem;
    margin: 1rem 1.5rem;
    border-radius: 8px;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
        text-align: center;
    animation: slideInDown 0.3s ease-out;
    position: relative;
    z-index: 10;
}

.globalroute-opinion-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.globalroute-opinion-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.globalroute-opinion-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.globalroute-opinion-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Estilos para el botón deshabilitado */
.globalroute-share-button:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

.globalroute-share-button:disabled:hover {
    background: #cccccc;
}

/* Mejoras en las estrellas de rating */
.globalroute-rating-input .star {
    transition: all 0.2s ease;
    cursor: pointer;
}

.globalroute-rating-input .star:hover {
    transform: scale(1.1);
}

.globalroute-rating-input .star.active {
    transform: scale(1.05);
}

/* Responsive para notificaciones */
@media (max-width: 480px) {
    .globalroute-opinion-message {
        margin: 0.5rem 1rem;
        padding: 0.75rem;
        font-size: 13px;
    }
}

/* Estilos para POIs no seleccionados en desktop */
@media (min-width: 1024px) {
    .globalroute-category-btn2.globalroute-category-clean {
        width: 180px !important;
        height: 36px !important;
        border-radius: 18px !important;
        border: 0.50px solid #1B1B1B !important;
        background: transparent !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .globalroute-category-btn2.globalroute-category-clean .globalroute-category-icon2 {
        width: auto !important;
        height: auto !important;
        background: none !important;
        margin: 0 !important;
    }

    .globalroute-category-btn2.globalroute-category-clean .globalroute-category-icon2 img {
        width: 20px !important;
        height: 18px !important;
        object-fit: contain !important;
    }

    .globalroute-category-btn2.globalroute-category-clean .globalroute-category-label2 {
        width: auto !important;
        height: auto !important;
        text-align: justify !important;
        color: #1B1B1B !important;
        font-size: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 500 !important;
        line-height: 14.64px !important;
        word-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Forzar fondo blanco en la tarjeta POI para desktop y tablet */
@media (min-width: 768px) {
    .globalroute-poi-card {
        background-color: #FFFFFF !important;
    }
}

.globalroute-opinion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px; /* Añade espacio entre el usuario y la fecha */
    margin-bottom: 8px;
}

.globalroute-opinion-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1; /* Permite que ocupe el espacio disponible */
}

.globalroute-opinion-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Evita que se encoja */
}

.globalroute-opinion-delete-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #dc3545;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    /* Estilo temporal para debug */
    border: 1px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.globalroute-opinion-delete-btn:hover {
    background-color: #dc3545;
    color: white;
    opacity: 1;
}

.globalroute-opinion-delete-btn:active {
    transform: scale(0.95);
}

/* Responsive para el botón de eliminar */
@media (max-width: 768px) {
    .globalroute-opinion-delete-btn {
        padding: 6px;
    }
    
    .globalroute-opinion-delete-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .globalroute-opinion-header-right {
        gap: 6px;
    }
}

/* Animación para la eliminación de opiniones */
.globalroute-opinion-item {
    transition: all 0.3s ease;
}

.globalroute-opinion-item.deleting {
    transform: translateX(-100%);
    opacity: 0;
}

/* Estilos para los títulos de las secciones de opiniones */
.globalroute-opinions-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 16px 0 1rem 16px;
    color: #000;
}

.globalroute-share-opinion h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 16px;
    color: #000;
}

/* Overlay con desenfoque para tarjetas POI */
.globalroute-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.globalroute-blur-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Asegurar que la tarjeta esté por encima del overlay */
.globalroute-poi-card {
    z-index: 999999 !important;
}

/* Asegurar que la tarjeta de opiniones esté por encima del overlay */
.globalroute-opinions-card {
    z-index: 999999 !important;
}