/* ============================================================
   Elementor Finder Map – Frontend Styles
   ============================================================ */

.efm-widget {
    width: 100%;
}

/* ---- Map + overlay wrapper -------------------------------- */
.efm-map-wrap {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.efm-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ---- Info window ------------------------------------------ */
.efm-infowindow {
    max-width: 260px;
    font-family: inherit;
}

.efm-iw-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}

.efm-iw-subtitle {
    margin: 0 0 4px;
    font-size: 0.875rem;
    color: #555;
}

.efm-iw-address {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    color: #777;
}

.efm-iw-link:hover {
    text-decoration: underline;
}

/* ---- Finder overlay (sits on top of the map) -------------- */
.efm-finder-overlay {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    background: #fff;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    max-width: 340px;
    width: calc(100% - 2.5rem);
}

.efm-finder-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.efm-finder-description {
    margin: 0 0 0.9rem;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.efm-finder-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-end;
}

.efm-finder-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 120px;
}

.efm-finder-field label {
    font-size: 0.8125rem;
    font-weight: 500;
}

.efm-finder-field select,
.efm-finder-field input[type="text"] {
    padding: 0.4rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.efm-submit {
    padding: 0.45rem 1rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.efm-submit:hover {
    background: #005f8d;
}

/* ---- Results list ----------------------------------------- */
.efm-results {
    background: var(--secondary);
    padding: 25px;
}

.efm-loading,
.efm-error {
    font-size: 0.9rem;
    color: #555;
}

.efm-error {
    color: #c0392b;
}

.efm-result-list {
    list-style: none;
    margin: 0;
    padding: 25px;
    border-radius: 15px;;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: white;
}

.efm-result-list li:nth-child(even){
    background: #f1f1f1;
}

.efm-result-item {
    display: flex;
    padding: 15px 20px;
    flex-direction: row;
}

.efm-result-main {
    width: 50%;
}

.efm-result-title {
    font-weight: 700;
    color: var(--secondary);
}

.efm-result-distance {
    font-weight: 700
}


