/*
 * Destination picker (js/city-picker.js), shared by the One Click Trip form and the /plan page:
 * country suggestions, picked-city chips, the searchable city list and the OpenStreetMap lookup.
 * Its own colours are One Click Trip's; plan-start.css recolours it for the /plan page.
 */

.oct-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.oct-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3ebfb;
    color: #553c9a;
    border-radius: 16px;
    padding: 5px 6px 5px 12px;
    font-size: 14px;
}
.oct-chip button {
    border: none;
    background: rgba(85, 60, 154, 0.12);
    color: #553c9a;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.oct-city-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.oct-city-list button {
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: #2d3748;
}
.oct-city-list button:hover:not([disabled]) { border-color: #764ba2; color: #764ba2; }
.oct-city-list button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* A city that isn't on the list, looked up on OpenStreetMap. */
.oct-osm { margin-top: 10px; }
.oct-osm-search {
    border: none;
    background: none;
    padding: 0;
    color: #764ba2;
    font-family: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
.oct-osm-box {
    border: 1.5px dashed #cbd5e0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #f7fafc;
}
.oct-osm-box p { margin: 0 0 8px; font-size: 14px; color: #2d3748; }
.oct-osm-box .oct-hint { margin: 8px 0 0; }
.oct-osm-results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.oct-osm-results button {
    width: 100%;
    text-align: left;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
}
.oct-osm-results button:hover:not([disabled]) { border-color: #764ba2; }
.oct-osm-results button[disabled] { opacity: 0.6; cursor: progress; }
.oct-osm-results .oct-osm-where { display: block; color: #718096; font-size: 12px; margin-top: 2px; }
.oct-osm-error { color: #822727; }

.oct-autocomplete { position: relative; }
.oct-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: 100%;
    margin: 4px 0 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow-y: auto;
}
.oct-suggestions button {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: #2d3748;
}
.oct-suggestions button:hover { background: #f7f8fc; }

/* Suggestion lists: the option picked with the arrow keys. */
.oct-suggestions li.active button { background: #edf2f7; }

/* City picker: the first city is the main one (the stay, hotels, airports). */
.oct-chip-main { background: #764ba2; color: #fff; }
.oct-chip-main button { color: #fff; }
.oct-main-badge { background: #fff; color: #764ba2; border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.oct-make-main { border: none; background: none; cursor: pointer; font-size: 15px; padding: 0 2px; color: #764ba2; }
.oct-make-main:hover { color: #d69e2e; }
