html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex; 
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 16px;
    text-align: center;
}

#map-container {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
}

.warning {
    color: red;
    position: absolute;
    top: 50px;
    display: none;
}

.controls {
    display: flex; 
    gap: 10px;
    padding: 20px;
    margin-top: 20px;
    height: 32px;
    background-color: #f3f3f3;
    border-radius: 20px;
    position: absolute;
    top: 10px;
    left: 50%;
    margin-left: -260px;
}

.search-button {
    background-color: #4b4b4b;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80px;
}

.query-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    flex-grow: 1;
    padding: 10px;
    width: 400px;
}

.list-container {
    display: flex;
    justify-content: center;
    position: relative;
}

gmp-place-search {
     width: 100%;
     margin: 10px;
     min-height: 414px;
     display: none;
     border: none;
}

gmp-place-details-compact {
    width: 350px;
    max-height: 800px;
    margin-right: 20px;
    display: none;
    border: none;
}

gmp-place-details-compact::after {
    content: '';
    position: absolute;
     bottom: -13px; 
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: white;
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.2);
    z-index: 1; 
    clip-path: polygon(0% 30%, 100% 30%, 55% 85%, 45% 85%);
    transform-origin: center center;
}

@media (prefers-color-scheme: dark) {
    /* Style for Dark mode */
    gmp-place-details-compact::after {
        background-color: #131314;
    }
}
