/* =========================
   SEARCH PAGE
========================= */

/* SEARCH PANEL */
.search-panel {
    background: white;
    margin: -20px 24px 20px;
    padding: 24px;
    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.10),
        0 3px 10px rgba(0,0,0,0.04);
}

.search-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
    color: #102033;
}

/* SEARCH CONTROLS */
.search-controls {
    display: flex;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(160px, 1fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(160px, 0.8fr)
        auto
        auto;

    gap: 14px;

    align-items: center;

    margin-top: 18px;
}

.search-controls > * {
    width: 100%;
}

.search-controls input,
.search-controls select,
.search-controls button {
    height: 48px;
    padding: 0 14px;

    border: 1px solid #d5ddd8;
    border-radius: 12px;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-controls input:focus,
.search-controls select:focus {
    outline: none;
    border-color: #1f7a3f;
    box-shadow: 0 0 0 4px rgba(31,122,63,0.10);
}

/* BUTTONS */
.primary-btn {
    background: linear-gradient(135deg, #168447, #0f6a37);
    color: white;
    border: none !important;
    font-weight: 600;
}

.secondary-btn {
    background: #eef7ee;
    color: #1f7a3f;
    border: 1px solid #b8dfb8 !important;
    font-weight: 600;
    padding: 0 18px !important;
    min-width: 150px;
}

.clear-btn {
    background: #f3f4f6;
    font-weight: 600;
}

/* MAP */
#map {
    height: 520px;
    width: calc(100% - 48px);

    margin: 0 24px 20px;

    border: 1px solid #d5ddd8;
    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* RESULTS */
#results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* PROPERTY CARD */
.property-card {
    background: white;
    border: 1px solid #dfe6e1;

    padding: 16px;
    margin-bottom: 16px;

    border-radius: 16px;

    box-shadow: 0 4px 14px rgba(0,0,0,0.04);

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0,0,0,0.08);
}

.property-card.horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;

    background: white;

    border: 1px solid #dfe6e1;
    border-radius: 16px;

    padding: 18px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);

    overflow: hidden;
}

.property-snippet {
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
    font-size: 14px;
}
/* IMAGE */
.search-card-image,
.card-image {
    width: 100%;
    height: 190px;

    position: relative;

    overflow: hidden;

    border-radius: 14px;

    background: #f1f1f1;
}

.search-card-image img,
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LISTING BADGE */
.listing-badge {
    position: absolute;

    top: 10px;
    left: 10px;

    background: #1f7a3f;
    color: white;

    padding: 6px 12px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;
}

/* RIGHT CONTENT */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-content h3 {
    margin: 0 0 8px;

    font-size: 24px;

    color: #102033;
}

.card-content p {
    margin: 2px 0;
    color: #374151;
}

/* NO IMAGE */
.no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777;
}

/* ADVANCED FILTERS */
.advanced-filters {
    background: white;

    border: 1px solid #dfe6e1;

    padding: 20px;

    margin: 0 24px 16px;

    border-radius: 16px;
}

.filter-section {
    margin-bottom: 18px;
}

.filter-section h4 {
    margin-bottom: 12px;
    color: #102033;
}

.filter-section label {
    display: inline-block;

    margin-right: 18px;
    margin-bottom: 10px;
}

/* FILTER CHIPS */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 24px 16px;
}

.filter-chip {
    background: #eef7ee;

    border: 1px solid #b8dfb8;

    border-radius: 999px;

    padding: 8px 14px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 500;
}

.filter-chip span {
    margin-left: 8px;
    font-weight: bold;
}

/* LOCATION AUTOCOMPLETE */
.location-wrapper {
    position: relative;
}

.location-suggestions {
    position: absolute;

    top: 54px;
    left: 0;
    right: 0;

    background: white;

    border: 1px solid #d5ddd8;
    border-radius: 12px;

    z-index: 1000;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.12);

    overflow: hidden;
}

.location-suggestion {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
}

.location-suggestion:hover {
    background: #eef7ee;
}

/* PAYWALL */
.paywall-card {
    background:
        linear-gradient(135deg, #f7fff9, #eef7ee);

    border: 1px solid #b8dfb8;

    border-radius: 16px;

    padding: 22px;

    margin-bottom: 16px;
}

.paywall-card h3 {
    margin-top: 0;
    color: #1f7a3f;
}

.paywall-card button {
    background: #1f7a3f;
    color: white;

    border: none;

    padding: 12px 18px;

    border-radius: 10px;

    font-weight: 600;
}

/* MODE BAR */
.search-mode-bar {
    display: flex;
    align-items: center;
    gap: 14px;

    background: #f6f8f7;

    border: 1px solid #dfe6e1;

    border-radius: 16px;

    padding: 10px;

    margin-bottom: 18px;

    width: fit-content;
}

.mode-group {
    display: flex;
    gap: 8px;
}

.mode-btn {
    min-width: 140px;
    text-align: center;

    padding: 11px 18px;

    border-radius: 10px;

    background: white;

    border: 1px solid #dfe6e1;

    color: #102033;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

.mode-btn.active {
    background: #1f7a3f;
    color: white;
    border-color: #1f7a3f;
}

.mode-divider {
    width: 1px;
    height: 34px;
    background: #d5ddd8;
}

/* MOBILE */
@media (max-width: 800px) {

    .search-controls {
        grid-template-columns: 1fr;
    }

     .property-card.horizontal {
        grid-template-columns: 1fr;
    }

    .search-card-image,
    .card-image {
        width: 100%;
        height: 220px;
    }

    .search-mode-bar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .card-content h3 {
        font-size: 21px;
    }

    .mode-group {
        width: 100%;
    }

    .mode-btn {
        flex: 1;
    }

    .mode-divider {
        display: none;
    }
}

.custom-point-marker {
    background: transparent;
    border: none;
}

.point-marker-inner {
    width: 22px;
    height: 22px;

    background: #4fd17f;

    border: 3px solid white;
    border-radius: 50%;

    box-shadow: 0 0 0 3px rgba(79, 209, 127, 0.35);
}