html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url('../img/thinking_restaurants.webp');
    background-size: cover;
    background-position: center;
}

.center-container {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#address-input {
    border: none;
    color: #1e1e1e;
    outline: none;
    box-shadow: none;
}

#address-input:focus {
    color: #1e1e1e;
    box-shadow: none;
}

#address-input::placeholder {
    color: #2e2e2e;
}

.rounded-pill {
    border-radius: 1rem 1rem 1rem 1rem !important;
}

#autocomplete-wrapper {
    position: relative;
    overflow: visible;
}

#autocomplete-wrapper .rounded-pill {
    border-radius: 1rem 1rem 1rem 1rem;
}

#autocomplete-wrapper.is-open .rounded-pill {
    border-radius: 1rem 1rem 0 0 !important;
}

#autocomplete-wrapper.is-open #autocomplete-list {
    border: 1px solid #ccc;
}

#autocomplete-list {
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    max-height: 250px;
    overflow-y: auto;
}

#autocomplete-list .autocomplete-item{
    padding-left: 48px; /* Pad text past search icon */
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;    
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease-in-out;
}

.autocomplete-item:hover, .autocomplete-item.highlighted {
    background-color: #f5f5f5;
}

.autocomplete-item + .autocomplete-item {
    border-top: 1px solid #9aa0a6;
}

.main-text {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
}

.secondary-text {
    font-size: 13px;
    color: #5f6368;
    margin-top: 2px;
}

#price-dropdown,
#rating-dropdown,
#cuisine-dropdown,
#hours-dropdown,
#radius-dropdown {
    /* Fixed, equal width so the buttons never resize as selections change. */
    width: 150px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-align: left;
}

/* The label fills the middle and truncates with an ellipsis only when it's too
   long, so the emoji and the dropdown caret stay put no matter what's selected. */
#price-dropdown span,
#rating-dropdown span,
#cuisine-dropdown span,
#hours-dropdown span,
#radius-dropdown span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carousel-wrapper {
    margin-top: auto;
}

#photoCarousel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#photoCarousel .carousel-inner {
    flex-grow: 1;
}
#photoCarousel img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

#modal-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#modal-title .external-icon {
    font-size: 0.9em; /* scales with title size */
}

#modal-title > a.restaurant-title-link {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    transition: color 0.15s ease-in-out;
}

#modal-title > a.restaurant-title-link:hover {
    color: #1a73e8;
}

#modal-title > a.restaurant-title-link .external-icon {
    font-size: 0.85rem;
    margin-left: 6px;
    opacity: 0.7;
}

#modal-title > a.restaurant-title-link:hover .external-icon {
    opacity: 1;
}

.equal-row {
    display: flex;
    align-items: stretch;
}

.equal-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.map-image {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
