@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

html,
body {
    margin: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    height: 100vh;
}

#map {
    width: 75%;
    height: 100%;
}

.sidebar {
    width: 25%;
    background: #f4f4f4;
    padding: 20px;
    overflow-y: auto;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.lang-btn {
    background: #eee;
    border: 1px solid #ccc;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

.lang-btn.active {
    background: #f26522;
    color: white;
    border-color: #f26522;
}

.tabs {
    display: flex;
    margin-bottom: 10px;
}

.tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    background: #ccc;
    border: 1px solid #979797;
}

.tabs .active {
    background: #f26522;
    color: white;
}

input,
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

input:focus,
select:focus {
    border-color: rgba(242, 101, 34, .55);
    box-shadow: 0 0 0 4px rgba(242, 101, 34, .12);
}

.btn-geo {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #f26522;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.1s;
}

.gm-svpc {
    display: none;
}

.btn-geo:hover {
    background-color: #d95416;
}

.btn-geo:active {
    transform: scale(0.98);
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.filter-row select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.resultado {
    background: white;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #f26522;
    border-radius: 0 6px 6px 0;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    position: relative;
    padding-top: 35px;
    /* Espacio para la etiqueta de tipo */
    display: flex;
    flex-direction: column;
}

.info-line {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.card-footer {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.card-link {
    color: #f26522;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: opacity 0.2s;
}

.card-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.tipo-tag {
    position: absolute;
    top: 0;
    left: -4px;
    /* Para alinear encima del borde izquierdo naranja */
    background-color: #f26522;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
}

.tipo-tag-retailer {
    background-color: #999 !important;
}

.resultado-clickable {
    cursor: pointer;
}

.resultado-clickable:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.resultado-active {
    border-left-color: #d95416;
    background: #fff8f4;
    box-shadow: 0 2px 12px rgba(242, 101, 34, .15);
}

.pais-tag {
    display: inline-block;
    background: rgba(242, 101, 34, .1);
    color: #d95416;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 4px;
    margin-right: 6px;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 30px 10px;
    font-size: 14px;
}

* {
    font-family: 'Montserrat', sans-serif !important;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    #map {
        width: 100%;
        height: 35vh;
        order: 1;
        /* Asegura que el mapa esté arriba */
    }

    .sidebar {
        width: 100%;
        height: 65vh;
        padding: 15px;
        box-sizing: border-box;
        order: 2;
        /* Asegura que la barra lateral esté abajo */
    }
}