*{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

.app {
    display: grid;

    grid-template-columns: 100%;

    width: 100vw;
    height: 100vh;
}

.content {

    display: grid;

    grid-template-rows:
        5%
        95%;
}

.topbar {

    display: flex;
    align-items: center;

    padding: 0 20px;

    border-bottom: 1px solid #ddd;

    gap:12px;
}


.search-box{
    display:flex;
    flex-direction:column;
}

.map-container {
    position: relative;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

.search-box{
    position:relative;
    width:350px;
}

#city-search{
    width:100%;
}

#suggestions{
    position:absolute;
    top:100%;
    left:0;
    right:0;

    background:white;

    border:1px solid #ddd;
    border-top:none;

    display:none;

    max-height:250px;
    overflow-y:auto;

    z-index:1000;
}

.suggestion{
    padding:10px;
    cursor:pointer;
    transition: 0.15s;
}

.suggestion:hover {
    background: #f0f0f0;
}
.suggestion.selected {
    background: #dbeafe;
}

.map-marker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.map-marker-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.map-marker-title {
    display: none;

    background: rgba(255,255,255,.95);
    padding: 2px 6px;
    border-radius: 4px;

    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;

    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.map-marker-tooltip {
    position: absolute;
    left: 0;
    bottom: 36px;

    display: none;

    background: #222;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;

    white-space: nowrap;
    font-size: 12px;
}



input,
select,
button{
    font:inherit;
}

input,
select{
    width:100%;
    height:42px;

    padding:0 14px;

    border:1px solid #d8d8d8;
    border-radius:8px;

    background:#fff;
    color:#222;

    outline:none;

    transition:
        border-color .15s,
        box-shadow .15s,
        background .15s;
}

input:focus,
select:focus{
    border-color:#444;
    box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

input::placeholder{
    color:#9b9b9b;
}

/* ---------- Buttons ---------- */

button{
    height:42px;

    padding:0 18px;

    border:none;
    border-radius:8px;

    background:#222;
    color:#fff;

    cursor:pointer;

    transition:
        background .15s,
        transform .08s;
}

button:hover{
    background:#111;
}

button:active{
    transform:scale(.98);
}

.add-btn{
    width:100%;
}

#search-btn{
    flex-shrink:0;
}

.category{
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
}

.category-btn{
    display: flex;
    justify-content: center;
    align-items: center;

    max-width: 150px; 
    min-height: 42px;

    box-sizing: border-box;
}