/* ============================================
   offlead Search Page Styles (consolidated bundle)
   ============================================ */

body.search-page {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: #fbfbf8;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* SEO footer stays in HTML for crawlers; hidden from interactive search UI */
body.search-page > .seo-home-intro,
body.search-page > footer.site-footer {
  display: none !important;
}

body.search-page > .app-promo-strip,
body.search-page > .home-nav,
body.search-page > .search-header,
body.search-page > .active-filters {
  flex: 0 0 auto;
}

body.search-page > .search-layout {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.search-page .home-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  font-family: var(--font-sans);
}

.search-page .app-promo-strip {
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
}

/* Search Header */
.search-header {
    position: relative;
    top: auto;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(59, 124, 100, 0.08);
    border-bottom: 1px solid rgba(59, 124, 100, 0.12);
    padding: 14px 0;
    z-index: 60;
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.search-container {
    max-width: none;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: stretch;
}

/* Search Bar */
.search-bar-wrapper {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-grey);
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--spruce-green);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(59, 124, 100, 0.15);
}

.search-icon {
    color: var(--text-grey);
    margin-right: 12px;
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--dark-grey);
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-grey-light);
}

.clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
    transition: color 0.2s;
}

.clear-btn:hover {
    color: var(--dark-grey);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: min(400px, 50dvh);
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-group {
    padding: 8px 0;
}

.suggestion-group:not(:last-child) {
    border-bottom: 1px solid var(--border-grey);
}

.suggestion-group-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-grey);
    text-transform: uppercase;
    padding: 8px 16px;
}

.suggestion-item {
    padding: 12px 16px;
    min-height: 44px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: var(--light-grey);
}

.suggestion-icon {
    color: var(--spruce-green);
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    color: var(--dark-grey);
}

.suggestion-count {
    font-size: 12px;
    color: var(--text-grey);
}

/* Filter Button */
.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--border-grey);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    border-color: var(--spruce-green);
    color: var(--spruce-green);
}

.filter-btn.active {
    background: var(--spruce-green);
    border-color: var(--spruce-green);
    color: var(--white);
}

.clear-filters-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clear-filters-btn:not(:disabled):hover {
    border-color: var(--spruce-green-light);
    background: var(--spruce-green-lightest, #f0f7f4);
}

.location-badge-container {
    position: absolute;
    top: -32px;
    left: 0;
    height: 24px;
    z-index: 10;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--spruce-green);
    color: var(--white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(59, 124, 100, 0.3);
}

.filter-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--spruce-green);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--light-grey);
    border-radius: 12px;
    padding: 4px;
}

.view-toggle-btn {
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-grey);
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    color: var(--dark-grey);
}

.view-toggle-btn.active {
    background: var(--white);
    color: var(--spruce-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hide text labels on desktop (icons only) */
.view-toggle-label {
    display: none;
}

/* Active Filters */
.active-filters {
    background: var(--light-grey);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-grey);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 20px;
    font-size: 14px;
    color: var(--dark-grey);
}

.filter-pill-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--text-grey);
    transition: color 0.2s;
}

.filter-pill-remove:hover {
    color: var(--dark-grey);
}

/* Search Layout — list + map grid (desktop / tablet landscape) */
.search-layout {
    width: 100%;
    max-width: none;
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    padding: 18px 24px 24px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(380px, 0.42fr) minmax(0, 0.58fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    overflow: hidden;
}

.search-layout.view-list .map-view {
    display: none;
}

.search-layout.view-list .list-view {
    grid-column: 1 / -1;
}

.search-layout.view-map .list-view {
    display: none;
}

.search-layout.view-map .map-view {
    grid-column: 1 / -1;
}

/* List View */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
    background: var(--white);
    border: 1px solid rgba(59, 124, 100, 0.12);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--grey-200);
}

.results-info h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--grey-900);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-dropdown label {
    font-size: 14px;
    color: var(--text-grey);
    white-space: nowrap;
}

.sort-dropdown select {
    padding: 8px 12px;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark-grey);
    background: var(--white);
    cursor: pointer;
}

/* Field Cards */
.field-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 0;
    overflow-y: auto;
    max-height: none;
    min-height: 0;
    padding-right: 6px;
}

.field-cards::-webkit-scrollbar {
    width: 6px;
}

.field-cards::-webkit-scrollbar-track {
    background: var(--light-grey);
    border-radius: 3px;
}

.field-cards::-webkit-scrollbar-thumb {
    background: var(--text-grey-light);
    border-radius: 3px;
}

.field-cards::-webkit-scrollbar-thumb:hover {
    background: var(--text-grey);
}

.field-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
    flex-shrink: 0;
    min-height: 142px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(59, 124, 100, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.field-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 124, 100, 0.2);
}

.field-card-image {
    position: relative;
    width: 180px;
    height: 142px;
    flex-shrink: 0;
}

.field-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.distance-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-grey);
}

.field-card-content {
    flex: 1;
    min-width: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-grey);
    margin: 0;
}

.field-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.rating-stars {
    color: #FFA500;
}

.rating-number {
    font-weight: 600;
    color: var(--dark-grey);
}

.rating-count {
    color: var(--text-grey);
}

.field-card-location {
    font-size: 14px;
    color: var(--text-grey);
}

.field-card-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 4px 8px;
    background: var(--light-grey);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-grey);
}

.field-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: auto;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--spruce-green);
}

.price-unit {
    font-size: 14px;
    color: var(--text-grey);
}

/* Map View */
.map-view {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border: 1px solid rgba(59, 124, 100, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    z-index: 1; /* Lower than mini card */
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    z-index: 1; /* Lower than mini card */
}

.map-control {
    position: absolute;
    background: var(--white);
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.map-control:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.current-location-btn {
    bottom: 24px;
    right: 24px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-grey);
    border-top-color: var(--spruce-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
    text-align: center;
}

.empty-state svg {
    color: var(--text-grey-light);
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-grey);
    margin: 0;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-grey);
    margin: 0;
}

/* Filter Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
                0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-grey);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-grey);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    color: var(--text-grey);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--dark-grey);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.filter-section {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--grey-200);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.distance-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--grey-50);
    border: 2px solid var(--grey-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: var(--grey-100);
    border-color: var(--spruce-green-light);
    transform: translateY(-1px);
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--spruce-green);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--spruce-green);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--grey-50);
    border: 2px solid var(--grey-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 13px; /* Smaller font to prevent wrapping */
}

.feature-checkbox span {
    font-size: 13px; /* Ensure label text is smaller */
    line-height: 1.4;
}

.feature-checkbox:hover {
    background: var(--grey-100);
    border-color: var(--spruce-green-light);
    transform: translateY(-1px);
}

.feature-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--spruce-green);
}

.feature-checkbox.checked {
    background: var(--spruce-green-light);
    color: var(--white);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-grey);
}

.modal-footer .btn {
    flex: 1;
}

/* Mini card base — detailed layout in mobile overrides below */
.mini-card-popup {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 999999 !important;
    pointer-events: auto !important;
    display: none;
    opacity: 0;
    visibility: hidden;
}

.mini-card-popup.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: slideUp 0.3s ease-out;
}

[data-theme="dark"] .mini-card-popup {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.mini-card-close:hover {
    background: var(--white);
    transform: scale(1.1);
}

/* Mini card — structured bottom sheet */
.mini-card-popup {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: translateY(100%) !important;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    max-height: min(70dvh, 420px);
    overflow-y: auto;
}

.mini-card-popup.show {
    transform: translateY(0) !important;
}

.mini-card__media {
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    background: var(--grey-100);
}

.mini-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-card__body {
    padding: 16px 16px 20px;
}

.mini-card__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--grey-900);
}

.mini-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.mini-card__location {
    color: var(--grey-600);
    font-size: 14px;
    margin-bottom: 12px;
}

.mini-card__cta {
    width: 100%;
    min-height: 44px;
}

.mini-card-close {
    width: 44px;
    height: 44px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%) !important;
        opacity: 0;
    }
    to {
        transform: translateY(0) !important;
        opacity: 1;
    }
}

/* Desktop & tablet landscape — single-row toolbar + split grid */
@media (min-width: 769px) {
    .search-page .search-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        padding: 0 32px;
        gap: 12px;
    }

    .search-page .search-bar-wrapper {
        flex: 1 1 auto;
        max-width: 600px;
        grid-column: unset;
    }

    .search-page .clear-filters-btn,
    .search-page #filterBtn,
    .search-page .view-toggle {
        grid-column: unset;
        width: auto;
    }

    .search-page .search-layout {
        display: grid !important;
        grid-template-columns: minmax(380px, 0.42fr) minmax(0, 0.58fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        padding: 18px 24px 24px;
        gap: 18px;
    }

    .search-page .list-view,
    .search-page .map-view {
        min-width: 0;
        min-height: 0;
        height: 100%;
        max-height: 100%;
    }

    .search-page .list-view {
        display: flex;
        flex-direction: column;
    }

    .search-page .list-header {
        flex-shrink: 0;
    }

    .search-page .map-view #map,
    .search-page .map-view .map-container {
        min-height: 400px;
        height: 100%;
    }

    .search-page .field-cards {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow-y: auto;
    }

    .search-page .field-card {
        flex-shrink: 0;
        min-height: 142px;
    }

    .search-page .home-nav__links,
    .search-page .home-nav__links a {
        font-family: var(--font-sans);
    }

    .search-page .view-toggle-btn[data-view="split"] {
        display: inline-flex;
    }

    .search-page .search-layout.view-map .list-view {
        display: none;
    }

    .search-page .search-layout.view-list .map-view {
        display: none;
    }

    .search-page .search-layout.view-list .list-view,
    .search-page .search-layout.view-map .map-view {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .search-page .home-nav {
        height: 56px;
        min-height: 56px;
        padding: 0 12px;
        gap: 12px;
    }

    .search-page .home-nav__brand img {
        max-height: 36px;
        width: auto;
    }

    .search-header {
        top: auto;
        padding: 8px 0;
    }

    .search-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 0 12px;
        gap: 8px;
    }

    .search-bar-wrapper {
        grid-column: 1 / -1;
        max-width: none;
    }

    .search-input-group {
        padding: 11px 14px;
    }

    .clear-filters-btn {
        grid-column: 1;
        min-height: 44px;
        padding: 10px 12px;
    }

    #filterBtn.filter-btn,
    .filter-btn:not(.clear-filters-btn) {
        grid-column: 2;
        min-height: 44px;
        padding: 10px 12px;
    }

    .view-toggle {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: stretch;
        padding: 4px;
        margin-top: 0;
    }

    .view-toggle-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        min-height: 44px;
        font-size: 14px;
        font-weight: 600;
    }

    .view-toggle-btn .view-toggle-label {
        display: inline;
    }

    .view-toggle-btn[data-view="split"] {
        display: none;
    }

    .search-layout {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 10px 12px 12px;
        max-width: none;
    }

    .list-view {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 12px;
        border-radius: 18px;
    }

    .field-cards {
        flex: 1 1 0;
        min-height: 40vh;
        height: auto;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        flex-shrink: 0;
    }

    .field-card {
        display: grid;
        grid-template-columns: 124px minmax(0, 1fr);
        min-height: 124px;
    }

    .field-card-image {
        width: 124px;
        height: 124px;
        aspect-ratio: auto;
    }

    .field-card-content {
        width: 100%;
        min-width: 0;
    }

    .search-layout.view-map .list-view {
        display: none;
    }

    .search-layout.view-map .map-view {
        display: block;
        height: 100%;
        min-height: 0;
        min-width: 0;
    }

    .search-layout:not(.view-map) .map-view {
        display: none;
    }

    .map-view #map,
    .map-view .map-container {
        min-height: 0;
        height: 100%;
    }

    .modal-content.filter-modal-content {
        width: 100%;
        max-width: none;
        max-height: 92dvh;
        margin: 0;
        border-radius: 20px 20px 0 0;
        align-self: flex-end;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .suggestion-item {
        min-height: 48px;
    }
}


