.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.wp-hike-filter-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Fallback for older browsers */
    min-height: 100dvh;
}

.wp-hike-filter-map-container {
    position: relative;
    height: 450px;
    width: 100%;
    flex: 0 0 auto;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 10;
}

.notice-error {
    padding: 1rem;
    background: #fee2e2;
    color: #b91c1c;
}

/* noUiSlider overrides */
.noUi-connect {
    background: #C20061;
}

.noUi-handle {
    border-radius: 50%;
    background: #fff;
    border: 2px solid #C20061;
    box-shadow: none;
}

.noUi-tooltip {
    display: none;
    background: #C20061;
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    bottom: 120%;
}


/* Google Maps infowindow adjustments */
.gm-style-iw {
    overflow: auto !important;
}

.gm-style-iw a {
    color: #fff !important;
}

/* Make the InfoWindow close button smaller */
.gm-ui-hover-effect > img {
    /* Shrink close button to roughly one third of the default size */
    width: 8px !important;
    height: 8px !important;
}

/* Utility class for clamping text to two lines */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
}

/* Desktop styles */
@media (min-width: 1024px) {
    .wp-hike-filter-wrapper {
        flex-direction: column;
    }

    #wp-hike-filter-results {
        position: static;
        width: 100%;
        flex-shrink: 0;
        overflow-y: auto;
    }

    #wp-hike-filter-results-list {
        max-height: none;
    }
}

/* Filter drawer layout */
#filter-drawer {
    position: static;
    transform: none !important;
    width: 100%;
    flex-shrink: 0;
    border-radius: 0;
    overflow-y: visible;
}

/* Ensure results have a little padding so shadows aren't clipped */
#wp-hike-filter-results-list {
    padding: 5px;
}

/* Prevent underline on hike links */
#wp-hike-filter-results-list a,
#wp-hike-filter-results-list a:hover {
    text-decoration: none;
}
