:root {
    /* ABACO Colors */
    --color-lime-green: #D2DE38;
    --color-orange: #F58634;
    --color-green: #00A859;
    --color-grey: #5B5B5B;
    --color-white: #FFFFFF;
    --color-light-grey: #F5F5F5;
    
    /* Fonts */
    --font-main: 'Outfit', sans-serif; /* Using Outfit as a modern alternative */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-grey);
    background-color: var(--color-white);
    height: 100vh;
    overflow: hidden; /* Prevent body scroll, use inner scrolling */
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.main-header {
    background-color: var(--color-white);
    border-bottom: 4px solid var(--color-lime-green);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.brand-title {
    color: var(--color-orange);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
}

.brand-subtitle {
    color: var(--color-grey);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Main Content */
.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background-color: var(--color-light-grey);
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    z-index: 90;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 1.5rem;
    background-color: var(--color-green);
    color: white;
}

.sidebar-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

.reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.6rem;
    background-color: var(--color-white);
    color: var(--color-green);
    border: none;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reset-btn:hover {
    background-color: var(--color-light-grey);
    color: var(--color-orange);
    transform: translateY(-1px);
}

.reset-btn:active {
    transform: translateY(1px);
}

.bank-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.bank-item {
    background: white;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-lime-green);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left-color: var(--color-orange);
}

.bank-item.active {
    border-left-color: var(--color-orange);
    background-color: #fff8f0;
}

.bank-item h3 {
    font-size: 1rem;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
}

.bank-item .dept-tag {
    display: inline-block;
    font-size: 0.75rem;
    background-color: var(--color-green);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Map Section */
.map-section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0; /* Fallback */
    z-index: 10;
}

/* Info Panel Overlay */
.info-panel {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000; /* Above map */
    max-width: 500px;
    border-top: 4px solid var(--color-orange);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.info-panel.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.info-panel h3 {
    color: var(--color-orange);
    margin-bottom: 0.5rem;
}

.info-panel p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.dept-badge {
    background-color: var(--color-lime-green);
    color: var(--color-grey);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Scrollbar styling */
.bank-list::-webkit-scrollbar {
    width: 8px;
}
.bank-list::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.bank-list::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.bank-list::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

/* Custom Tooltip */
.custom-tooltip {
    background-color: var(--color-white);
    border: 2px solid var(--color-orange);
    color: var(--color-grey);
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 4px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.leaflet-tooltip-top:before {
    border-top-color: var(--color-orange);
}

/* Contact Section */
.contact-section,
.social-section,
.contact-person-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.contact-section h4,
.social-section h4,
.contact-person-section h4 {
    font-size: 0.85rem;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-label {
    color: #888;
    min-width: 50px;
}

.contact-item a {
    color: var(--color-orange);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Social Media */
.social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-light-grey);
    color: var(--color-grey);
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: var(--color-orange);
    color: white;
    transform: scale(1.1);
}

.social-icon i {
    font-size: 16px;
}

/* Contact Person */
.contact-person-name {
    font-weight: 600;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
}

.contact-person-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
