/* Dialog Base & Reset */
dialog.custom-dialog {
    border: none;
    padding: 0;
    background: #18191c;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: fixed;
    box-sizing: border-box;
}

/* Backdrop */
dialog.custom-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.selectLocation{position:relative;
    width:100%;max-height:400px;
    overflow-y: auto;
}

.selectLocation > span{
    display: block;
    padding: 10px;
    border-bottom: 1px solid #2a2b30;
}
.selectLocation > span:hover{
    border-radius:5px;;
    background-color:#333433;
    cursor:pointer;
}
.selectLocation > span.current {
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 5px;
    background-color: var(--brand);
    color: #000;
    font-weight: bold;
}

/*
.selectLocation{
    width:100%;max-height:400px;
    display:flex;gap:10px;flex-wrap: wrap;
}
    .selectLocation > span{
    display: inline-block;
    padding:3px 10px;
    color:#aaaaaa;
    border: 1px solid #2a2b30;
    border-radius:5px;;
}
.selectLocation > span:hover{
    color:var(--brand);
    border-color: var(--brand);
    cursor:pointer;
}
.selectLocation > span.current{
    color:#000;
    background-color: var(--brand);
}
*/
.selectLocation {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    /* Estándar CSS */
    scrollbar-width: thin;
    scrollbar-color: var(--brand) #18191c;
}

/* Personalización del Scrollbar para navegadores WebKit */
.selectLocation::-webkit-scrollbar {
    width: 6px;
}

.selectLocation::-webkit-scrollbar-track {
    background: #18191c;
    border-radius: 4px;
}

.selectLocation::-webkit-scrollbar-thumb {
    background-color: var(--brand);
    border-radius: 4px;
}
button:focus-visible{
    outline: none;
}


/* Mobile Styles: Slide up from bottom (Bottom Sheet) */
@media (max-width: 599px) {
    dialog.custom-dialog {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* Desktop Styles: Centered */
@media (min-width: 600px) {
    dialog.custom-dialog {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 90%;
        max-width: 480px;
        max-height: 85vh;
        border-radius: 12px;
        animation: fadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* Dialog Internal Layout */
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2b30;
}

.dialog-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
}

.dialog-close {
    background: transparent;
    border: none;
    color: #aaaaaa;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.dialog-close:hover {
    color: #ffffff;
    background: #2a2b30;
}

.dialog-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #dddddd;
    max-height: 60vh;
    overflow-y: auto;
}

.dialog-body p {
    margin-bottom: 12px;
}

.dialog-body p:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
