/* =========================
   GLOBAL POLISH
========================= */
body {
    background: #f6f8fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    color: #1f2937;
}

h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

h4 {
    font-weight: 400;
    color: #4b5563;
}

h5 {
    margin-top: 25px;
    font-weight: 600;
}

/* =========================
   LEFT CONTENT PANEL
========================= */
#screen-shot {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.custom-ul {
    padding-left: 0;
    list-style: none;
}

.custom-ul li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.quote-card {
    margin-top: 25px;
    padding: 20px;
    background: #f9fafb;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
}

/* =========================
   FORM CARD
========================= */
#search-container {
    width: 100%;
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* =========================
   INPUT GROUPS
========================= */
#search-container .row {
    margin-bottom: 14px;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group-text {
    background: #f3f4f6;
    border: none;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.form-control {
    border: none;
    background: #f9fafb;
    padding: 12px 14px;
    font-size: 14px;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.25);
}

/* =========================
   PRIMARY SEARCH BAR
========================= */
#search-input {
    font-size: 16px;
    padding: 14px;
}

/* =========================
   BUTTONS
========================= */
.btn-theme-matcher {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-theme-matcher:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.btn-theme-matcher:active {
    transform: translateY(0);
}

#searchSettings {
    background: transparent;
    border: none;
    font-size: 13px;
    padding: 0;
}

/* =========================
   ADVANCED FIELDS
========================= */
.row.advanced {
    background: #f9fafb;
    padding: 12px;
    border-radius: 12px;
}

/* =========================
   TYPEAHEAD / AUTOCOMPLETE
========================= */
.tt-menu {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 5px 0;
}

.tt-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}

.tt-suggestion:hover {
    background: #f3f4f6;
}

/* =========================
   MAP
========================= */
#map {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    background: #e5e7eb;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
    #search-container {
        margin-top: 25px;
    }
}



/* =========================================
   NUCLEAR FIX — KILL BOOTSTRAP INPUT-GROUP
========================================= */

/* Replace Bootstrap flex with grid */
#search-container .input-group {
    display: grid !important;
    grid-template-columns: 1fr auto;
    width: 100%;
    align-items: stretch;
}

/* Rows with multiple labels + inputs */
#search-container .row.advanced .input-group {
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px;
}

/* Nested input-groups must span full width */
#search-container .input-group .input-group {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: 1fr auto;
}

/* Inputs ALWAYS expand */
#search-container .form-control,
#search-container .typeahead {
    width: 100%;
    min-width: 0;
}

/* Buttons & labels stay compact */
#search-container .btn,
#search-container .input-group-text {
    white-space: nowrap;
}

/* Kill Bootstrap interference */
#search-container .input-group-prepend,
#search-container .input-group-append {
    display: contents;
}


/* =========================================
   INPUT BORDERS & VISUAL STRUCTURE
========================================= */

/* Base input border */
#search-container .form-control {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Placeholder tone */
#search-container .form-control::placeholder {
    color: #9ca3af;
}

/* Focus state (important for UX) */
#search-container .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* =========================
   INPUT GROUP BORDERS
========================= */
#search-container .input-group {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px;
    background: #ffffff;
}

/* Prevent double borders inside groups */
#search-container .input-group .form-control {
    border: none;
    border-radius: 8px;
}

/* =========================
   INPUT GROUP TEXT (labels)
========================= */
#search-container .input-group-text {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* =========================
   BUTTONS IN INPUT GROUPS
========================= */
#search-container .input-group .btn {
    border-radius: 10px;
}

/* =========================
   ADVANCED SECTIONS
========================= */
#search-container .row.advanced {
    border: 1px dashed #e5e7eb;
    background: #f9fafb;
    padding: 14px;
    border-radius: 14px;
}

/* Advanced inputs slightly muted */
#search-container .row.advanced .form-control {
    background: #fefefe;
}

/* =========================
   TYPEAHEAD / AUTOCOMPLETE
========================= */
#search-container .tt-menu {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

#search-container .tt-suggestion {
    border-bottom: 1px solid #f3f4f6;
}

#search-container .tt-suggestion:last-child {
    border-bottom: none;
}

/* =========================
   MAP BORDER
========================= */
#map {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f3f4f6;
}


/* =========================================
   TYPEAHEAD DROPDOWN FIX
========================================= */

/* Allow dropdown to escape input-group/card */
#search-container,
#search-container .row,
#search-container .input-group {
    overflow: visible !important;
}

/* Proper dropdown container */
#search-container .tt-menu {
    position: absolute !important;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 9999;
}

/* Each option */
#search-container .tt-suggestion {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    background: #ffffff;
}

/* Hover / active state */
#search-container .tt-suggestion:hover,
#search-container .tt-suggestion.tt-cursor {
    background: #f3f4f6;
}

/* Remove weird inline width injected by typeahead */
#search-container .tt-menu * {
    box-sizing: border-box;
}

