/* ... estilos existentes ... */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

/* Menú superior */
#top-menu {
    height: 40px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    margin-right: 8px;
}

.menu-item:hover {
    background-color: #d0d0d0;
}

/* Menú con submenú */
.menu-with-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 1000;
    display: none;
    padding: 4px 0;
}

.menu-with-submenu:hover .submenu {
    display: block;
}

.submenu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
}

.submenu-item:hover {
    background-color: #f0f0f0;
}

.submenu-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Layout principal */
#main-layout {
    display: flex;
    height: calc(100vh - 40px);
    position: relative;
}

/* Paneles */
.panel {
    background-color: white;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#left-panel {
    width: 260px;
    min-width: 180px;
    max-width: 500px;
}

#right-panel {
    width: 300px;
    min-width: 220px;
    max-width: 600px;
}

/* Panel oculto */
#right-panel.hidden {
    display: none !important;
}

#main-layout.no-right-panel #right-resizer {
    display: none;
}

/* Contenido de paneles */
.panel h3 {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Capas */
.layer-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.layer-item:hover {
    background-color: #f8f8f8;
}

.layer-item input[type="checkbox"] {
    margin-right: 8px;
}

.layer-item label {
    font-size: 13px;
    color: #555;
    user-select: none;
}

/* Divisores */
.resizer {
    width: 6px;
    background-color: transparent;
    cursor: col-resize;
    position: relative;
}

.resizer:hover {
    background-color: #ccc;
}

.resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background-color: #999;
}

/* Mapa */
#map-container {
    flex: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

/* Propiedades */
#properties-content {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

#properties-content p {
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

.properties-grid {
    display: grid;
    gap: 8px;
}

.property-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.property-label {
    font-weight: bold;
    color: #555;
    font-size: 12px;
}

.property-value {
    color: #333;
    font-size: 12px;
    word-break: break-word;
}

/* Scroll personalizado */
.panel {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.panel::-webkit-scrollbar {
    width: 8px;
}

.panel::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.panel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* Botones */
.btn-primary {
    background: #3388ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

.btn-primary:hover {
    background: #0066cc;
}

/* Panel inferior para EDANs */
.bottom-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid #3388ff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-panel.hidden {
    display: none !important;
}

.bottom-panel .panel-header {
    background: linear-gradient(135deg, #3388ff, #0066cc);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-panel .panel-header h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.bottom-panel .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.bottom-panel .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bottom-panel .panel-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* Tabla de EDANs */
.edans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.edans-table th,
.edans-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.edans-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #555;
}

.edans-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Scroll personalizado para panel inferior */
.bottom-panel .panel-content::-webkit-scrollbar {
    width: 6px;
}

.bottom-panel .panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bottom-panel .panel-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.bottom-panel .panel-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ... (mismo CSS que creamos anteriormente) ...
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

/* Menú superior * /
#top-menu {
    height: 40px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    margin-right: 8px;
}

.menu-item:hover {
    background-color: #d0d0d0;
}

/* Menú con submenú * /
.menu-with-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 1000;
    display: none;
    padding: 4px 0;
}

.menu-with-submenu:hover .submenu {
    display: block;
}

.submenu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
}

.submenu-item:hover {
    background-color: #f0f0f0;
}

.submenu-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Layout principal * /
#main-layout {
    display: flex;
    height: calc(100vh - 40px);
    position: relative;
}

/* Paneles * /
.panel {
    background-color: white;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#left-panel {
    width: 260px;
    min-width: 180px;
    max-width: 500px;
}

#right-panel {
    width: 300px;
    min-width: 220px;
    max-width: 600px;
}

/* Panel oculto * /
#right-panel.hidden {
    display: none !important;
}

#main-layout.no-right-panel #right-resizer {
    display: none;
}

/* Contenido de paneles * /
.panel h3 {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Capas * /
.layer-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.layer-item:hover {
    background-color: #f8f8f8;
}

.layer-item input[type="checkbox"] {
    margin-right: 8px;
}

.layer-item label {
    font-size: 13px;
    color: #555;
    user-select: none;
}

/* Divisores * /
.resizer {
    width: 6px;
    background-color: transparent;
    cursor: col-resize;
    position: relative;
}

.resizer:hover {
    background-color: #ccc;
}

.resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background-color: #999;
}

/* Mapa * /
#map-container {
    flex: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

/* Propiedades * /
#properties-content {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

#properties-content p {
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

.properties-grid {
    display: grid;
    gap: 8px;
}

.property-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.property-label {
    font-weight: bold;
    color: #555;
    font-size: 12px;
}

.property-value {
    color: #333;
    font-size: 12px;
    word-break: break-word;
}

/* Scroll personalizado * /
.panel {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.panel::-webkit-scrollbar {
    width: 8px;
}

.panel::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.panel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* ... estilos existentes ... * /
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

/* Menú superior * /
#top-menu {
    height: 40px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    margin-right: 8px;
}

.menu-item:hover {
    background-color: #d0d0d0;
}

/* Menú con submenú * /
.menu-with-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 1000;
    display: none;
    padding: 4px 0;
}

.menu-with-submenu:hover .submenu {
    display: block;
}

.submenu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
}

.submenu-item:hover {
    background-color: #f0f0f0;
}

.submenu-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Layout principal * /
#main-layout {
    display: flex;
    height: calc(100vh - 40px);
    position: relative;
}

/* Paneles * /
.panel {
    background-color: white;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#left-panel {
    width: 260px;
    min-width: 180px;
    max-width: 500px;
}

#right-panel {
    width: 300px;
    min-width: 220px;
    max-width: 600px;
}

/* Panel oculto * /
#right-panel.hidden {
    display: none !important;
}

#main-layout.no-right-panel #right-resizer {
    display: none;
}

/* Contenido de paneles * /
.panel h3 {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Capas * /
.layer-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.layer-item:hover {
    background-color: #f8f8f8;
}

.layer-item input[type="checkbox"] {
    margin-right: 8px;
}

.layer-item label {
    font-size: 13px;
    color: #555;
    user-select: none;
}

/* Divisores * /
.resizer {
    width: 6px;
    background-color: transparent;
    cursor: col-resize;
    position: relative;
}

.resizer:hover {
    background-color: #ccc;
}

.resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background-color: #999;
}

/* Mapa * / 
#map-container {
    flex: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

/* Propiedades * /
#properties-content {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

#properties-content p {
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

.properties-grid {
    display: grid;
    gap: 8px;
}

.property-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.property-label {
    font-weight: bold;
    color: #555;
    font-size: 12px;
}

.property-value {
    color: #333;
    font-size: 12px;
    word-break: break-word;
}

/* Scroll personalizado * /
.panel {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.panel::-webkit-scrollbar {
    width: 8px;
}

.panel::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.panel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* Botones * /
.btn-primary {
    background: #3388ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

.btn-primary:hover {
    background: #0066cc;
} */