#map {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#search-container {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1003;
    width: 95%;
    max-width: 480px;
    font-family: inherit;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-right-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    align-items: flex-end;
}

#list-view-toggle-btn {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 1004;
    /* The transition property is consolidated in components/list-view.css to avoid cascade overrides. */
}

#list-view-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 100%;
    z-index: 1003;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.add-place-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    /* Initially hidden and positioned for slide-up animation */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.instruction-banner {
    position: absolute;
    top: -50px; /* Initial position for animation */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    opacity: 0; /* Initial state for animation */
    pointer-events: none; /* Initial state */
}

#no-results-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    opacity: 0; /* Initial state for animation */
    visibility: hidden; /* Initial state */
    pointer-events: none; /* Initial state */
}

.home-link-desktop {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1005; /* Higher than other controls */
    background-color: #fff;
    border: 1px solid #b8b8b8;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-link-desktop img,
.home-link-mobile img {
    width: 28px;
    height: 28px;
    display: block;
}

.home-link-mobile {
    display: none;
}
