/* Estilos para el botón de mapa */
#mapBtn {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    background: var(--card-background) !important;
    color: #fff;
    border: 1px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-top: 5px !important;
}

#mapBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: #333 !important;
}

#mapBtn i {
    font-size: 18px !important;
}

#mapBtn i.fa-map {
    display: inline-block;
}

#mapBtn i.fa-arrow-left {
    display: none;
}

#mapBtn.active i.fa-map {
    display: none;
}

#mapBtn.active i.fa-arrow-left {
    display: inline-block;
}

/* Estilos para el modal */
#mapModal {
    display: none;
    position: fixed;
    z-index: 1000;
    background: none;
    color: #fff;
    width: 320px;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    border: 1px solid #888;
    top: 250px;
    left: 374px;
}

#mapModal.visible {
    display: block;
}

#mapModal .map-container {
    background-color: rgba(255,255,255,0.2);
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    gap: 8px;
}

.map-drag-bar {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: move;
    user-select: none;
    background: rgba(255,255,255,0.2);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 0 8px;
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Estilos para las opciones */
.map-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 4px;
    padding-right: 20px;
}

.option-item span {
    color: #000;
    font-weight: bold;
}

/* Estilos para los interruptores */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Estilos para el botón de cerrar */
.map-buttons {
    display: flex;
    justify-content: flex-end;
}

#mapClose {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

#mapClose:hover {
    color: #333;
}

/* Estilos para el selector de países */
.country-selector {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.country-selector-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.country-selector-header span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.country-selector-content {
    display: flex;
    gap: 6px;
    align-items: center;
}

.country-select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255,107,53,0.2);
}

.country-select option {
    background: #2c313a;
    color: #fff;
    padding: 4px;
}

.country-buttons {
    display: flex;
    gap: 4px;
}

.country-buttons button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255,107,53,0.8) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.country-buttons button:hover {
    background: rgba(255,107,53,1) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.country-buttons button:last-child {
    background: rgba(255,69,0,0.8) !important;
}

.country-buttons button:last-child:hover {
    background: rgba(255,69,0,1) !important;
}

.country-buttons button i {
    font-size: 12px !important;
}

/* Estilos para elementos deshabilitados */
.option-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.option-item.disabled .switch {
    opacity: 0.5;
    pointer-events: none;
}

.option-item.disabled span {
    color: #666 !important;
}

/* Estilos para el switch deshabilitado */
.switch input:disabled + .slider {
    background-color: #ccc;
    cursor: not-allowed;
}

.switch input:disabled + .slider:before {
    background-color: #999;
} 