.poid_avatud {
    display: flex !important;
    color: #fff;
    flex-direction: row; 
    gap: 30px;
    font-size: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.poid_avatud > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .poid_avatud {
        flex-direction: column;
        gap: 15px;
    }
}

#searchbox-map {
    width: 100%;
    height: 70vh;         /* Use 70% of the viewport height */
    max-height: 800px;
    min-height: 300px;
    position: relative;
    z-index: 0;
    opacity: 1;
    display: block ;
}

.elementor-widget-shortcode {
    overflow: visible !important;
}

.talud-search-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    #searchbox-map {
        height: 50vh;         /* Use 70% of the viewport height */
    }
    .talud-search-fields {
        grid-template-columns: 1fr;
    }
}

.talud-search-fields input,
.talud-search-fields select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.talud-results {
    width: 100%;
    color: var(--e-global-color-1904907);
}

form.talud-search-form {
    margin-bottom: 50px;
}

form.talud-search-form h3 {
    margin-bottom: 10px;
}

/* Heading and table header styling */
form.talud-search-form h3,
.talud-results thead tr th {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight) !important;
    line-height: var(--e-global-typography-secondary-line-height);
    color: var(--e-global-color-d55c775);
}

.leia_nimekirjast h3 {
    display: inline;
    margin-right: 10px;
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight) !important;
    line-height: var(--e-global-typography-secondary-line-height);
    color: var(--e-global-color-1904907);
}

.leia_nimekirjast a.show-talu-table-link {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight) !important;
    line-height: var(--e-global-typography-secondary-line-height);
    color: var(--e-global-color-d55c775);
}

.leia_nimekirjast a.show-talu-table-link:hover {
    color: var(--e-global-color-d55c775);
    text-decoration: underline;
}

#talud_tabel a,
#talud_tabel a:hover {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    line-height: var(--e-global-typography-secondary-line-height);
    color: var(--e-global-color-1904907);
}

#talud_tabel a:hover {
    text-decoration: underline;
}

.talud-results tbody td {
    border-top: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.talud-results thead {
    text-align: left;
}

.talud-results td {
    vertical-align: top;
    text-align: left;
}

.talud-results tbody tr {
    border-bottom: 1px solid #eee;
}

/* Shared styling for form fields  */
form#talu_search_form input[type="text"],
form#talu_search_form input[type="tel"],
form#talu_search_form input[type="email"],
form#talu_search_form select,
form#talu_search_form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
}

form#talu_search_form select {
    height: 2.6rem;
}

.ei_leitud{
    color: #fff;
}

/* Submit button style */
form#talu_search_form button[type="submit"] {
    background-color: rgb(208, 63, 58);
    font-family: "Open Sans", sans-serif;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Align submit button */
.talu-search-submit {
    display: flex;
    align-items: end;
    justify-content: flex-start;
}

/* Leaflet map popup styles */
.leaflet-popup-content-wrapper a h3 {
    color: var(--e-global-color-primary);
    margin-top: 0px;
    margin-bottom: 5px;
}


.leaflet-popup-content-wrapper .maakond,
.leaflet-popup-content-wrapper .vald {
    color: var(--e-global-color-7440b7c);
    display: block;
}

.leaflet-popup-content-wrapper .vald {
    margin-bottom: 10px;
}

@media (max-width: 767px) {
.leaflet-popup-content{
    max-width: 200px;
}
}

.leaflet-container {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
}

.leaflet-container a.leaflet-popup-close-button {
    top: 10px;
    right: 7px;
}

/* Table horizontal scroll wrapper */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    width: 100%;
    min-width: 700px; /* Set min width depending on column count */
    border-collapse: collapse;
}

/* Filter result notice styling */
.filter_vaste {
    color: var(--e-global-color-d55c775);
    margin-bottom: 10px;
    font-size: 14px;
}

/* valdkonna ikoonid*/
.valdkonna_ikoon {
    width: 25px;
    height: 25px !important;
    background-color: rgb(121, 158, 93);
    padding: 3px;
    border-radius: 5px !important;
    margin-right:5px;
}

/* tyhjenda filrid*/
.reset-filters{
color:#fff !important;
padding:10px;
font-weight: 400 !important;
}
