/* ============ RESET Y VARIABLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #3B82F6;
    --blue-dark: #2563EB;
    --green: #10B981;
    --yellow: #F59E0B;
    --red: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ============ MAPA A PANTALLA COMPLETA ============ */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* ============ BÚSQUEDA TIPO GOOGLE MAPS ============ */
.search-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 90%;
    max-width: 480px;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    padding-right: 4px;
}

.search-box:focus-within {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    font-size: 14px;
    z-index: 20;
}

#searchInput {
    flex: 1;
    padding: 14px 16px 14px 44px;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    outline: none;
    background: transparent;
    min-width: 0;
}

#searchInput::placeholder {
    color: #9CA3AF;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 40;
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #F3F4F6;
}

.search-result-item:first-child {
    border-radius: 12px 12px 0 0;
}

.search-result-item:last-child {
    border-radius: 0 0 12px 12px;
}

.search-result-icon {
    color: #6B7280;
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-address {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón de etiquetas en la búsqueda */
.search-tag-btn {
    background: #6B7280;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-right: 4px;
}

.search-tag-btn:hover {
    background: #4B5563;
    transform: scale(1.05);
}

/* ============ FILTROS Y DESPLEGABLE ============ */
.filters-bar {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    max-width: 95vw;
    padding: 4px;
    overflow: visible;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.filter-chip:hover {
    background: #F3F4F6;
}

.filter-chip.active {
    background: #3B82F6;
    color: white;
}

.filter-chip.active:hover {
    background: #2563EB;
}

/* Desplegable de grupos */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 40;
    margin-top: 4px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.dropdown-item:hover {
    background: #F3F4F6;
}

.dropdown-item .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dropdown-item .tag-check {
    margin-left: auto;
    color: #3B82F6;
    display: none;
}

.dropdown-item.selected .tag-check {
    display: block;
}

.dropdown-item.selected {
    background: #EFF6FF;
}

@media (max-width: 640px) {
    .filters-bar {
        top: 80px;
        gap: 4px;
        padding: 2px 4px;
    }
    
    .filter-chip {
        font-size: 10px;
        padding: 4px 10px;
        gap: 3px;
    }
    
    .filters-bar.fallback-wrap {
        flex-wrap: wrap;
    }
}

/* ============ PANEL INFERIOR (DRAWER) ============ */
.places-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    max-height: 70vh;
    transform: translateY(calc(100% - 60px));
}

.places-drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    padding: 12px 20px;
    cursor: pointer;
    user-select: none;
}

.handle-bar {
    width: 36px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 0 auto 8px;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.place-count {
    background: #3B82F6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.drawer-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.places-drawer.open .drawer-arrow {
    transform: rotate(180deg);
}

.drawer-content {
    overflow-y: auto;
    max-height: calc(80vh - 60px);
    padding: 0 20px 20px;
}

/* Grid de lugares */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.place-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
    align-items: center;
}

.place-card:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.place-card-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 20px;
}

.place-card-info {
    flex: 1;
    min-width: 0;
}

.place-card-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.place-card-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.status-visited {
    background: #D1FAE5;
    color: #065F46;
}

.status-want {
    background: #FEF3C7;
    color: #92400E;
}

.place-card-actions {
    display: flex;
    gap: 4px;
}

.place-card-actions button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-edit {
    background: #FEF3C7;
    color: #92400E;
}

.btn-delete {
    background: #FEE2E2;
    color: #991B1B;
}

/* ============ MODALES ============ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-dialog {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    margin: 20px auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.2s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #F3F4F6;
}

.modal-body {
    padding: 20px;
}

/* Campos de formulario */
.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #3B82F6;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Selector de tags */
.tags-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    min-height: 42px;
}

.tag-chip {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid #E5E7EB;
    transition: all 0.2s;
    user-select: none;
}

.tag-chip:hover {
    border-color: #3B82F6;
}

.tag-chip.selected {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* Foto */
.photo-area {
    cursor: pointer;
}

.photo-preview {
    height: 140px;
    border: 2px dashed #D1D5DB;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9CA3AF;
    transition: all 0.2s;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: #3B82F6;
    background: #F9FAFB;
}

.photo-preview.has-photo {
    border-style: solid;
    padding: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones de formulario */
.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-save {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #2563EB;
}

.btn-cancel {
    background: #F3F4F6;
    color: #374151;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #E5E7EB;
}

/* ============ GESTIÓN DE GRUPOS (TAGS) ============ */
.add-tag-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.add-tag-row input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
}

.add-tag-row input[type="color"] {
    width: 44px;
    height: 44px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    padding: 2px;
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #F9FAFB;
    border-radius: 10px;
}

.tag-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tag-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    color: #6B7280;
    transition: all 0.2s;
}

.tag-actions button:hover {
    background: #E5E7EB;
}

.tag-actions .btn-delete-tag:hover {
    background: #FEE2E2;
    color: #991B1B;
}

@media (max-width: 640px) {
    .add-tag-row {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .add-tag-row input[type="text"] {
        flex: 1;
        min-width: 100px;
    }
    
    .add-tag-row input[type="color"] {
        width: 40px;
        height: 40px;
    }
    
    .add-tag-row .btn-save {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ============ MODAL DE DETALLE ============ */
.modal-lg {
    max-width: 700px;
}

.detail-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-info-item {
    background: #F9FAFB;
    padding: 12px;
    border-radius: 8px;
}

.detail-info-item label {
    font-size: 11px;
    color: #6B7280;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.detail-info-item span {
    font-size: 14px;
    font-weight: 500;
}

.detail-description {
    background: #F9FAFB;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.detail-description h4 {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 4px;
}

.detail-description p {
    font-size: 14px;
    line-height: 1.6;
}

.detail-files {
    margin-top: 16px;
}

.detail-files h4 {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
}

.detail-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.detail-file-item:hover {
    background: #F3F4F6;
}

.detail-file-item i {
    color: #3B82F6;
    font-size: 20px;
}

.detail-file-item span {
    font-size: 13px;
    flex: 1;
}

.detail-file-item .file-size {
    font-size: 11px;
    color: #6B7280;
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-end;
}

.detail-actions-centered {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.detail-actions-centered .btn-cancel {
    background: #F3F4F6;
    color: #374151;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-actions-centered .btn-cancel:hover {
    background: #E5E7EB;
}

.detail-actions-centered .btn-edit-detail {
    background: #F59E0B;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-actions-centered .btn-edit-detail:hover {
    background: #D97706;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.detail-actions-centered .btn-save {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-actions-centered .btn-save:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

@media (max-width: 640px) {
    .detail-info {
        grid-template-columns: 1fr;
    }
    
    .detail-actions-centered {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-actions-centered .btn-cancel,
    .detail-actions-centered .btn-edit-detail,
    .detail-actions-centered .btn-save {
        width: 100%;
        justify-content: center;
    }
}

/* ============ LOGIN PAGE ============ */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: none; }
}

.login-card h1 {
    text-align: center;
    font-size: 1.5rem;
    color: #3B82F6;
    margin-bottom: 0.3rem;
}

.login-card p {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login-card .error-msg {
    background: #fff3f3;
    border: 1px solid #ffb3b3;
    border-radius: 10px;
    color: #c0392b;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-card .form-group label {
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.login-card .form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.login-card .form-group input:focus {
    border-color: #3B82F6;
}

.login-card .btn-primary {
    padding: 0.85rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.login-card .btn-primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============ MENÚ DE USUARIO (A LA DERECHA DE LA BARRA) ============ */
.search-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: auto;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    padding-right: 4px;
}

/* MENÚ DE USUARIO (fuera de la barra) */
.user-menu-container {
    flex-shrink: 0;
    position: relative;
    z-index: 40;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3B82F6;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.user-dropdown {
    position: absolute;
    top: 54px;
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px;
    display: none;
    animation: slideDown 0.2s ease;
    z-index: 40;
}

.user-dropdown.open {
    display: block;
}

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

.user-dropdown .user-name {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown .user-name .admin-badge {
    background: #FFD700;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #f3f4f6;
}

.user-dropdown .logout-link {
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    padding-top: 10px;
    background: #EF4444;
    color: white;
    border-radius: 10px 10px 10px 10px;
}

.user-dropdown .logout-link:hover {
    background: #DC2626;
}

/* Responsive móvil */
@media (max-width: 640px) {
    .search-container {
        gap: 6px;
        max-width: 95vw;
    }
    
    .search-box {
        min-width: 200px;
    }
    
    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .user-dropdown {
        min-width: 170px;
        right: 0;
    }
}

/* ============ RESPONSIVE GENERAL ============ */
@media (max-width: 700px) {
    .search-container {
        width: 95%;
    }
    
    .filters-bar {
        top: 90px;
    }
    
    .filter-chip {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .filter-dropdown .dropdown-menu {
        min-width: 160px;
        right: 0;
        left: auto;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Forzar limpieza del avatar */
.user-avatar {
    background: #3B82F6 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Eliminar cualquier sombra o pseudo-elemento extra */
.user-avatar::before,
.user-avatar::after {
    display: none !important;
    content: none !important;
}

/* Asegurar que no haya un segundo botón con la misma clase */
.user-avatar ~ .user-avatar {
    display: none !important;
}

/* ============ MODIFICACIONES FINALES PARA ESCRITORIO ============ */
@media (min-width: 700px) {
    /* Barra de búsqueda - más ancha */
    .search-container {
        max-width: 800px !important;
        width: 85% !important;
    }
    
    /* Input de búsqueda - más ancho */
    #searchInput {
        min-width: 500px !important;
        font-size: 16px !important;
    }

    
    /* Botones de filtro - más grandes */
    .filter-chip {
        padding: 10px 22px !important;
        font-size: 14px !important;
    }
}