/* Base Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

#main-container {
    display: flex;
    height: 100%;
    background-color: #ffffff;
}

#map-container {
    flex: 1;
    height: 100%;
    position: relative;
    background-color: #e8ebee;
}

#map { 
    height: 100%;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #e8f4f8;
}

/* Popup Styles */
.custom-popup { 
    max-width: 300px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
}

.custom-popup h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.custom-popup ul {
    padding-left: 20px;
}

.custom-popup li {
    margin-bottom: 8px;
}

.custom-popup a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-popup a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Split View Styles */
#split-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

#split-container {
    display: flex;
    height: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

.split-panel {
    flex: 1;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2b2d42;
}

.panel-header i {
    color: #4361ee;
}

.panel-content {
    flex: 1;
    padding: 15px;
    overflow: auto;
}

/* Wikipedia Panel */
.wikipedia-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Map Panel */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

/* Options Panel */
.option-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2b2d42;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-btn i {
    font-size: 1.1rem;
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-btn.transport {
    background: #e9f5ff;
    border-left: 4px solid #4361ee;
}

.option-btn.hotels {
    background: #fff0f6;
    border-left: 4px solid #f72585;
}

.option-btn.restaurants {
    background: #fff9e6;
    border-left: 4px solid #f77f00;
}

.place-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.place-details h4 {
    margin: 0 0 10px 0;
    color: #2b2d42;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.close-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    #split-container {
        flex-direction: column;
    }
    
    .split-panel {
        min-height: 300px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}