* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    background: #ffffff;
    color: #111111;
}

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

.title-bar {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.title-section h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.controls-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.stats-group {
    display: flex;
    gap: 20px;
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 100px;
}

.stat-box span {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2px;
}

.stat-box label {
    font-size: 12px;
    opacity: 0.9;
}

.filters-group {
    display: flex;
    gap: 15px;
    position: relative;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #111111;
    background: white;
    min-width: 220px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-select:hover {
    border-color: #999999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Custom dropdown arrow */
.filters-group::after {
    content: '▼';
    font-size: 12px;
    color: #666666;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.8;
}

/* Style the options */
.filter-select option {
    background: white;
    color: #111111;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

.filter-select option:hover {
    background: #f5f5f5;
}

.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

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

.place-list-container {
    position: absolute;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.place-list-container.active {
    right: 0;
}

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

.place-list-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.close-list {
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.place-list {
    height: calc(100% - 60px);
    overflow-y: auto;
    padding: 20px;
}

.place-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

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

.place-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.place-card .location {
    color: #888;
    font-style: italic;
    font-size: 14px;
}

.place-card .category {
    font-size: 12px;
    color: #2196F3;
    margin-top: 8px;
}

.place-card .cluster-info {
    font-size: 12px;
    color: #4CAF50;
    margin-top: 5px;
}

.toggle-list-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.toggle-list-btn .list-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Map controls styling */
.leaflet-control-layers {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-layers-toggle {
    width: 36px !important;
    height: 36px !important;
    background-size: 20px 20px !important;
}

.leaflet-control-layers-expanded {
    padding: 10px !important;
    background: white !important;
    border-radius: 8px !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
}

.popup-content {
    padding: 15px;
}

.popup-content h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.popup-content p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

/* Cluster styling */
.marker-cluster {
    background: rgba(33, 150, 243, 0.6);
    border: 2px solid #2196F3;
    border-radius: 50%;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.marker-cluster div {
    background-color: rgba(33, 150, 243, 0.6);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-small {
    background-color: rgba(33, 150, 243, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(255, 152, 0, 0.6);
    border-color: #FF9800;
}

.marker-cluster-large {
    background-color: rgba(244, 67, 54, 0.6);
    border-color: #F44336;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Home page styles */
.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 0 24px;
}

.home-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: #111111;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#bmc-wbtn {
    transform: scale(0.8);
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.nav-link {
    color: #111111;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
}

.home-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 64px 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.explore-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fafafa;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.select-group {
    text-align: left;
}

.select-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '↓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    pointer-events: none;
}

.home-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #333333;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-select:hover {
    border-color: #999999;
}

.home-select:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.explore-button {
    width: 100%;
    padding: 16px 32px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.explore-button:hover {
    background: #333333;
    transform: translateY(-1px);
}

.button-icon {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.explore-button:hover .button-icon {
    transform: translateX(4px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.feature-card {
    padding: 32px;
    background: #fafafa;
    border-radius: 16px;
    text-align: left;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111111;
}

.feature-card p {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.6;
}

.home-footer {
    text-align: center;
    padding: 24px 0;
    color: #666666;
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .explore-form {
        padding: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Map page styles */
.map-page {
    overflow: hidden;
}

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

.map-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #f5f5f5;
    color: #333;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: #eee;
}

.location-info h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.location-info .subtitle {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stats-group {
    display: flex;
    gap: 16px;
}

.stat-box {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.stat-box span {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 2px;
}

.stat-box label {
    font-size: 0.75rem;
    color: #666;
}

.map-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

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

.place-list-container {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.place-list-container.active {
    right: 0;
}

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

.header-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.place-count {
    font-size: 0.875rem;
    color: #666;
}

.close-list {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-list:hover {
    background: #f5f5f5;
    color: #333;
}

.close-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.search-bar {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #333;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.place-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.place-card {
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.place-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.place-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 4px 0;
}

.place-card .location {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 8px;
}

.place-card .category {
    font-size: 0.75rem;
    color: #2196F3;
    margin-bottom: 4px;
}

.place-card .cluster-info {
    font-size: 0.75rem;
    color: #4CAF50;
}

.toggle-list-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 1px solid #eee;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.toggle-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.toggle-list-btn .list-count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.toggle-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.toggle-list-btn:hover .toggle-icon {
    transform: translateX(4px);
}

/* Map customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 0;
    padding: 16px;
}

.popup-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px 0;
}

.popup-content p {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 4px 0;
}

.leaflet-control-layers {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-layers-toggle {
    border-radius: 8px !important;
}

.leaflet-control-layers-expanded {
    padding: 16px !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
}

/* Responsive design for map page */
@media (max-width: 768px) {
    .map-nav {
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .stats-group {
        width: 100%;
        justify-content: space-between;
    }

    .place-list-container {
        width: 100%;
        right: -100%;
    }

    .toggle-list-btn {
        bottom: 16px;
        right: 16px;
    }
}

.about-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 48px;
    background: #fafafa;
    border-radius: 16px;
    text-align: left;
}

.about-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 24px;
}

.about-section p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: #1976D2;
    text-decoration: underline;
}

/* Responsive design for about section */
@media (max-width: 768px) {
    .about-section {
        margin: 48px auto;
        padding: 32px;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }
}