* {
    font-family: "Roboto", sans-serif;
    padding:0;
    margin:0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.gmnoprint {
    display: none;
}
.gm-style-mtc-bbw {
    display: none;
}
#map-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}
#sidebar {
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    background-color: #373939;
    padding: 10px;
    position: absolute;
    left: 0;
    z-index: 1;
    transition: transform 0.3s ease;
}
#sidebar.hidden {
    transform: translateX(-240px);
    transform: translateX(-300px);
}
#map {
    flex-grow: 1;
    height: 100vh;
    width: 100%;
}
#toggle-sidebar {
    position: absolute;
    top: 20px;
    left: 300px;
    z-index: 1000;
    background: #373939;
    border: none;
    border-radius: 0;
    padding: 10px;
    cursor: pointer;
    box-shadow: 2px 0 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 50px;
}
#toggle-sidebar:hover {
    background: #4a4c4c;
}
#toggle-sidebar svg {
    width: 20px;
    height: 20px;
    color: white;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
}
#sidebar.hidden + #toggle-sidebar {
    left: 60px;
    left: 0px;
}
#sidebar.hidden + #toggle-sidebar svg {
    transform: rotate(-90deg);
}
.category-header {
    padding: 10px;
    background: #fafafa;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    color: white;
    position: relative;
}

.category-header:hover {
    background: #d0d0d0;
}

.category-header .dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    color: white;
}

.category-header.expanded .dropdown-icon {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    margin-left: 10px;
}
.category-content.expanded {
    display: block;
}
.location-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}
.location-item:hover {
    background-color: #e9e9e9;
}
.location-name {
    font-weight: normal;
    margin-bottom: 0;
    color: white;
    flex: 1;
}
.location-address {
    color: #ccc;
    font-size: 0.9em;
    display: none;
}
.info-window-content {
    max-width: 300px;
    width: 300px;
    padding: 15px;
    font-family: "Roboto", sans-serif;
    position: relative;
}
.info-window-title {
    font-weight: bold;
    margin: 10px 0;
    font-size: 16px;
}
.info-window-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}
.info-window-address {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}
.info-window-link {
    color: #29bad9;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}
.info-window-link:hover {
    text-decoration: underline;
}
.gm-style-iw-c {
    padding: 0 !important;
    max-width: 300px !important;
    width: 300px !important;
}
.gm-style-iw-d {
    overflow: hidden !important;
    max-width: 300px !important;
    width: 300px !important;
}
.gm-style-iw {
    padding: 0 !important;
    max-width: 300px !important;
    width: 300px !important;
}
.gm-style-iw button {
    width: 10px !important;
    height: 10px !important;
    top: 7px !important;
    right: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: none !important;
    position: absolute !important;
    transform: none !important;
}
.gm-style-iw button img {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.micon, .aicon {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.category-header span:not(.micon):not(.aicon) {
    color: white;
}
.location-item img {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Category specific styles */
.category-header[data-category="museum"] {
    background-color: #29bad9;
    color: black;
}
.category-header[data-category="museum"]:hover {
    background-color:#1d93a8;
}
.category-content[data-category="museum"] .location-item {
    background-color: #29bad9;
    color: black;
}
.category-content[data-category="museum"] .location-item:hover {
    background-color: #1d93a8;
}

.category-header[data-category="attraction"] {
    background-color: #8adc9a;
    color: black;
}
.category-header[data-category="attraction"]:hover {
    background-color: #8adc9a;
}
.category-content[data-category="attraction"] .location-item {
    background-color: #8adc9a;
    color: black;
}
.category-content[data-category="attraction"] .location-item:hover {
    background-color: #9cfaaf;
}
.category-content[data-category="attraction"] .location-item img {
    filter: brightness(0) invert(1);
}

.category-header[data-category="historic"] {
    background-color: #9b6b9e;
    color: white;
}
.category-header[data-category="historic"]:hover {
    background-color: #7d4f80;
}
.category-content[data-category="historic"] .location-item {
    background-color: #9b6b9e;
    color: white;
}
.category-content[data-category="historic"] .location-item:hover {
    background-color: #7d4f80;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    #sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        height: auto;
        max-height: 30vh;
        left: 0;
        padding: 15px;
        padding-top: 35px;
        transform: translateY(0);
        transition: all 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    #sidebar.hidden {
        transform: translateY(80%);
    }

    #toggle-sidebar {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0;
        padding: 8px;
        z-index: 1002;
        background: #373939;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        width: 45px;
        height: 36px;
    }

    #toggle-sidebar svg {
        transform: rotate(0deg);
    }

    #sidebar.hidden #toggle-sidebar svg {
        transform: rotate(180deg);
    }

    #sidebar img {
   
    }

    .category-content {
        max-height: 20vh;
        overflow-y: auto;
    }

    .category-header {
        padding: 15px;
        font-size: 1.1em;
    }

    .location-item {
        padding: 12px;
    }

    .location-name {
        font-size: 1em;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    #sidebar {
        max-height: 30vh;
    }

    #toggle-sidebar {
        top: 0;
        z-index: 1002;
    }

    #sidebar.hidden #toggle-sidebar {
        top: 0;
    }

    .category-header {
        padding: 12px;
        font-size: 1em;
    }

    .location-item {
        padding: 10px;
    }

    .location-name {
        font-size: 0.9em;
    }
}

/* Custom Zoom Controls */
.zoom-controls {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zoom-button {
    background: white;
    border: none;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
}

.zoom-button:hover {
    background: #f5f5f5;
}

/* Hide zoom controls on mobile devices */
@media screen and (max-width: 768px) {
    .zoom-controls {
        display: none !important;
    }
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin: 20px 0;
    padding: 0 10px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.clear-icon {
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-icon:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Search Results Styles */
.search-results {
    margin: 10px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-results.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-result-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin-bottom: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.search-result-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.search-result-content {
    flex: 1;
}

.search-result-name {
    color: white;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 500;
}

.search-result-category {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: capitalize;
}

.search-result-address {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 4px;
}

.no-results {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Mobile Responsive Search */
@media screen and (max-width: 768px) {
    .search-container {
        margin: 15px 0;
        padding: 0 5px;
    }

    .search-input {
        padding: 10px 35px 10px 12px;
        font-size: 13px;
    }

    .search-icon {
        right: 20px;
        width: 14px;
        height: 14px;
    }

    .search-result-item {
        padding: 10px;
    }

    .search-result-name {
        font-size: 13px;
    }

    .search-result-category,
    .search-result-address {
        font-size: 11px;
    }
}