.map-view{
    height: calc(100vh - 80px);
    width: 100%;
}

.banner{
    width: 100%;
    height: 80px;
    background-color: #091d5a;
    position: relative;
}

.search {
    position: absolute;
    top: 20px;
    right: 20px;
}

.basemap-toggle {
    background-image: url(images/streetmap_thumb.jpg);
}

.nav-controls {
    position: absolute;
    top: 93px;
    left: 15px;
    z-index: 1;
    display: flex;
    gap: 10px;
}

.nav-controls .esri-widget {
    background-color: #fff;
    color: #323232;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-controls .esri-widget--button {
    background-color: transparent;
    border: none;
    color: #323232;
    cursor: pointer;
    font-size: 14px;
    height: 32px;
    width: 32px;
    padding: 0;
    margin: 0;
    transition: background-color 125ms ease-in-out;
}

.nav-controls .esri-widget--button:hover {
    background-color: #f3f3f3;
}

.nav-controls .esri-widget--button:active {
    background-color: #e2e2e2;
}

.nav-controls .esri-widget--button span[class^="esri-icon-"] {
    display: block;
    font-size: 16px;
    line-height: 32px;
}

.edit-btn-container{
    position: absolute;
    top: 190px;
}

.floating-edit-btn {
    position: absolute;
    left: 12px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #333;
}

.floating-edit-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: scale(1.05);
}

.floating-edit-btn.active {
    border-color: #0079c1;
    background: #e6f3ff;
    box-shadow: 0 4px 12px rgba(0,121,193,0.3);
}

#dropBtn {
    top: 110px;
}

#entranceBtn {
    top: 175px;
}

.marker-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.drop-marker {
    color: #00bcd4;
}

.entrance-marker {
    color: #ffc107;
}

.layer-sidebar {
    position: absolute;
    top: 139px;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
}

.sidebar-content {
    background: white;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    padding:10px 0px;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-content.open {
    width: 65px;
    padding: 10px;
}

.sidebar-toggle {
    width: 20px;
    height: 60px;
    background: white;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #000;
    padding: 0;
    margin-top: 20px;
}

.sidebar-toggle:hover {
    background: #f5f5f5;
}

.toggle-arrow {
    display: block;
    line-height: 1;
}

.sidebar-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.layer-toggle-item {
    margin: 0;
}

.layer-toggle-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layer-toggle-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.layer-toggle-btn.active {
    border-color: #0079c1;
    background: #e6f3ff;
}

.layer-toggle-btn.inactive {
    opacity: 0.4;
    background: #f9f9f9;
}

.layer-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.layer-label {
    display: none;
}

/* Loading state for buttons */
.floating-edit-btn.loading::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #0079c1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Bottom Panel */
.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    transition: height 0.3s ease;
}

.bottom-panel-toggle {
    width: 60px;
    height: 20px;
    background: white;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #000;
    padding: 0;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.bottom-panel-toggle:hover {
    background: #f5f5f5;
}

.toggle-arrow-vertical {
    display: block;
    line-height: 1;
    transition: transform 0.3s ease;
}

.bottom-panel-toggle.open .toggle-arrow-vertical {
    transform: rotate(180deg);
}

.bottom-panel-content {
    padding: 8px 20px;
    height: auto;
    max-height:10vh;
    overflow: hidden;
    transition: height 0.3s ease;
    
    overflow-y: auto;
}

.bottom-panel-content.open {
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
}

.panel-preview {
    font-size: 11px;
    line-height: 15px;
    color: #323232;
    font-weight: 500;
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
}

.bottom-panel-content.open .panel-preview {
    display: none;
}

.panel-full-content {
    display: none;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 15px;
    color: #323232;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

.bottom-panel-content.open .panel-full-content {
    display: block;
}

.panel-full-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #091d5a;
}

.panel-full-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #323232;
    line-height: 1.6;
}