nav.navbar {
    display: none;
}

body {  /* 99% of the time we have content and a scrollbar, but when 0 results there's less content and no scrollbar, which creates a jumpy effect when scrolling does happen; so make there be a scroll bar all the time */
    overflow-y: scroll;
}

#Map {
    background-color: white;
}

#Map {
    height: 650px;
    width: 100%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
    border-radius: 5px;
}


/* add a nice white circle to the icons */
#Map .leaflet-marker-icon {
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
}

/* farm details popups */
#Map div.farm-details-popup {
    font-size: 15px;
    font-family: "Roboto";
}

#Map div.farm-details-popup-leftright {
    display: grid;
    grid-template-columns: 1fr 3fr;  /* match to size of thumb_square image size */
    grid-gap: 10px;
}
#Map div.farm-details-popup-leftside {
}
#Map div.farm-details-popup-rightside {
}

#Map div.farm-details-popup img.farm-details-popup-logo {
}

#Map div.farm-details-popup-leftside {
    position: relative;
}
#Map div.farm-details-popup div.farm-details-popup-s4wflags {
    position: absolute;
    top: 6px;
    right: 4px;
}

#Map div.farm-details-popup h1 {
    color: #000000;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 0;
}
#Map div.farm-details-popup p {
    font-size: 16px;
    line-height: 19px;
    color: #4D4D4D;
    margin: 0 0 5px 0;;
}
#Map div.farm-details-popup p.farm-details-popup-subtitle {
}
#Map div.farm-details-popup p.farm-details-popup-description {
    font-size: 14px;
}
#Map div.farm-details-popup a.farm-details-popup-readmore {
    font-size: 14px;
}
#Map div.farm-details-popup a.farm-details-popup-readmore:active,
#Map div.farm-details-popup a.farm-details-popup-readmore:focus,
#Map div.farm-details-popup a.farm-details-popup-readmore:hover {
    color: #001489;
}


/* leaflet popups, no padding for tight border */
.leaflet-popup-content {
    margin: 0;
    line-height: 1;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    text-align: left;
    border-radius: 0;
}


/* results listing and cards */
#Results {
    background-color: #F8F8F8;
}

@media screen and (min-width: 400px) {  /* put the header & pagination side by side if wide enough */
.ResultCountAndPagination {
    display: grid;
    grid-template-columns: 175px 1fr;
}
}

.ResultCount {
    display: grid;
    grid-template-columns: 25px 100px 25px;
    grid-gap: 10px;

    line-height: 30px;
    font-size: 16px;
}

.ResultCount a {
}

.ResultCount span {
}

#ResultCards {
}

#ResultCards div.result-card-wrap {
    float: left;
}

#ResultCards a.result-card {
    background-color: #001489;
    color: white !important;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none !important;

    padding: 0 10%;

    background-size: 100% 100%;
}
@media screen and (max-width: 524px) {
    #ResultCards a.result-card {
        width: 91vw;
        height: 91vw;
    }
}
@media screen and (min-width: 525px) and (max-width: 767px) {
    #ResultCards a.result-card {
        width: 46vw;
        height: 46vw;
    }
}
@media screen and (min-width: 768px) and (max-width: 1048px) {
    #ResultCards a.result-card {
        width: 31vw;
        height: 31vw;
    }
}
@media screen and (min-width: 1049px) {
    #ResultCards a.result-card {
        width: 24vw;
        height: 24vw;
        max-width: 500px;
        max-height: 500px;
    }
}

#ResultCards a.result-card > div {
    text-align: center;
}

#ResultCards a.result-card h3 {
    color: white;
    font-size: 20px;
    line-height: 24px;
}

#ResultCards a.result-card h4 {
    color: white;
    font-size: 15px;
    text-transform: uppercase;
}

#ResultCards a.result-card {
    position: relative;
}
#ResultCards a.result-card .result-card-s4wflags {
    position: absolute;
    top: 5px;
    right: 5px;
}


/* the modal for showing a farm's details */
#FarmDetailsModal {
}

#FarmDetailsModal.modal {
    overflow-y: hidden; /* prevent scrollbar of the page itself when we give margin; see initFarmDetailsModal() */
}

#FarmDetailsModal a[data-bs-dismiss="modal"] {
    font-weight: bold;
    color: #333333 !important;
    font-size: 20px !important;
    text-decoration: none;
}

#FarmDetailsModal div.leftright {
    display: grid;
    grid-template-columns: 1fr 3fr;  /* match to size of thumb_square image size */
    grid-gap: 10px;
}
#FarmDetailsModal div.leftright div.leftside {
}
#FarmDetailsModal div.leftright div.rightside {
}

#FarmDetailsModal {
    font-size: 16px;
    color: #4D4D4D;
    line-height: 1.5;
}

#FarmDetailsModal h1 {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 0;
    color: #000000;
    font-weight: bold;
}

/*
#FarmDetailsModal a:not(.btn) {
    color: #4D4D4D;
}
#FarmDetailsModal a:not(.btn):active,
#FarmDetailsModal a:not(.btn):focus,
#FarmDetailsModal a:not(.btn):hover {
    color: #001489;
}
*/

#FarmDetailsModal div.rightside a span.fa,
#FarmDetailsModal div.rightside a span.fas,
#FarmDetailsModal div.rightside a span.far,
#FarmDetailsModal div.rightside a span.fab {
    color: #001489 !important;
}


/* custom map attribution, and hiding the real one */
#Map div.leaflet-control.leaflet-control-attribution {
    display: none;
}
#MapAttribution {
    text-align: right;
    font-size: xx-small;
    line-height: 1;
    padding-top: 1em;
}


/* the badges for S4W members, stories, Armed to Farm members, ...*/
span.s4w-badge.s4w-badge-s4w_member {
    background-color: #001489;
    border: 1px solid white;
    border-radius: 50%;
    padding: 4px;
    font-size: 12px;
}
span.s4w-badge.s4w-badge-s4w_member span {
    color: white;
}

span.s4w-badge.s4w-badge-s4w_storyurl {
    background-color: #001489;
    border: 1px solid white;
    border-radius: 50%;
    padding: 4px;
    font-size: 12px;
}
span.s4w-badge.s4w-badge-s4w_storyurl span {
    color: white;
}

span.s4w-badge.s4w-badge-armedtofarm {
    padding: 0 2px;
}
span.s4w-badge.s4w-badge-armedtofarm img {
    height: 20px;
}


/* mobile-only minimal keyword search, a X to clear it same as the full-size map control */

#MobileKeywordSearch div.keyword-section div.input-group {
    position: relative;
}
#MobileKeywordSearch button.keyword-clear {
    position: absolute;
    top: 1px;
    right: 40px;
    z-index: 5;

    border: 0 none transparent;
    background: none;
}
#MobileKeywordSearch button.keyword-clear.keyword-clear-empty {
    display: none;
}
