/*
 * Search page (list + map view) and warehouse detail: additions to the original styles
 * (main.css) needed by the server-rendered markup and the Leaflet maps.
 */

/* ---- search form: native selects look like the form's text fields ---- */
.orangeMegaForm select { display: block; width: 100%; height: 40px; padding: 0 28px 0 8px; margin-bottom: 20px; border: 0; border-radius: 5px; background: #fff; color: #000; font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.orangeMegaForm .select-item { position: relative; }
.orangeMegaForm .select-item::after { content: '\f107'; font-family: 'FontAwesome'; position: absolute; right: 12px; bottom: 32px; line-height: 1; color: #000; pointer-events: none; }
.orangeMegaForm .zrusfiltr a { color: #fff; }

/* ---- filter check boxes are links ---- */
.loptions a.item { display: block; color: inherit; text-decoration: none; cursor: pointer; }

/* ---- result cards ---- */
#resultsCol .twoCols .col .img img,
#gup .stockList .twoCols .col .img img { display: block; width: 100%; aspect-ratio: 419 / 280; object-fit: cover; }
#resultsCol .bottominfo .twoCols .col.card-left { width: 60%; }
#resultsCol .bottominfo .twoCols .col.card-right { width: 38%; }
.bottominfo .card-show-price { display: inline-block; color: #ff4e1b; text-decoration: underline; cursor: pointer; }
#resultsCol .pager-nav { clear: both; }
#resultsCol .rtitle .sort span.pridat20doporovnavace:focus-visible { outline: 2px solid #ff4e1b; outline-offset: 2px; }

/* ---- map view ---- */
#gup[hidden] { display: none; }
#gup .topOW select { display: block; width: 100%; height: 40px; padding: 0 6px; border: 0; border-radius: 5px; background: #fff; color: #666; font-size: 12px; cursor: pointer; }
#gup .mapWA .search-map-canvas { position: relative; z-index: 1; width: 100%; height: 100%; }
#gup .mapWA a.draw, #gup .mapWA a.circle, #gup .mapWA a.cancel, #zmensioknomapy, #zvetsioknomapy { z-index: 5; }
#gup .mapWA a.cancel[hidden] { display: none; }
#gup .topOW .sevenCols > .col:nth-child(7):focus-within > #dalsiv { display: block; }
#draw .infotxtbox, #circle .infotxtbox { z-index: 10; }
#gup .stockList .twoCols > .map-message { display: block; padding: 10px 0; }
#gup .stockList .twoCols a.col.active { background: #edf7f8; box-shadow: 0 0 6px rgba(255, 78, 27, 0.7); }

/* The panel styles every link and image inside .mapWA; give Leaflet's own back. */
#gup .mapWA .leaflet-container a { position: static; display: inline; color: #0078a8; }
#gup .mapWA .leaflet-bar a { display: block; color: #000; }
#gup .mapWA .leaflet-container a.leaflet-popup-close-button { position: absolute; display: block; color: #757575; }
#gup .mapWA .leaflet-container img.leaflet-marker-icon,
#gup .mapWA .leaflet-container img.leaflet-marker-shadow { max-height: none; vertical-align: baseline; }

/* card in a marker's popup */
.map-card { width: 220px; font-size: 12px; color: #222; }
#gup .mapWA .leaflet-container .map-card a.map-card-photo { display: block; position: relative; margin-bottom: 8px; text-decoration: none; }
#gup .mapWA .leaflet-container .map-card img { display: block; width: 100%; height: auto; aspect-ratio: 419 / 280; object-fit: cover; }
.map-card .more { position: absolute; left: 50%; top: 50%; width: 170px; height: 34px; margin: -17px 0 0 -85px; border-radius: 5px; border-bottom: 2px solid #6d9612; background: #86b817; color: #fff; font-weight: 700; line-height: 34px; text-align: center; text-transform: uppercase; }
.map-card .title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.map-card .place { color: #999; margin-bottom: 6px; }
.map-card .orange { color: #ff4e1b; font-weight: 700; }
.map-card .price { margin-top: 4px; color: #666; }
.leaflet-tooltip.map-radius-label { border: 0; background: rgba(255, 255, 255, 0.85); box-shadow: none; font-weight: 700; }

/* ---- detail: gallery (photos are cropped to one size, as the original image service did) ---- */
.fotky-detail .slide[hidden] { display: none; }
.fotky-detail .slide img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sevenCols.subimages .col img { display: block; width: 100%; aspect-ratio: 95 / 65; object-fit: cover; cursor: pointer; }
.masterImage .nav:focus-visible, #detailCol .dcrighttop .infobtns > div:focus-visible { outline: 2px solid #ff4e1b; outline-offset: 2px; }
.dvaradkyvdetailu .twoCols .col .img img { object-fit: cover; }

/* ---- detail: map, description ---- */
.detail-map { position: relative; z-index: 1; width: 100%; height: 230px; }
#detailCol .tabs1 .detail-description { margin-bottom: 1em; overflow-wrap: break-word; }
#detailCol .tabs1 .video { max-width: 100%; height: auto; }

/* ---- detail: inquiry form ---- */
#detailCol .megaForm .doSearch { cursor: pointer; border-top: 0; border-left: 0; border-right: 0; }
#detailCol .megaForm .doSearch[hidden], #detailCol .megaForm .bottomPx1[hidden] { display: none; }
#detailCol .megaForm .topPx1 .form-errors { margin-bottom: 20px; }
#detailCol .megaForm .topPx1 .field-error { margin: 4px 0 0; }
#detailCol .megaForm .bottomPx1 .forms .field-error { clear: both; margin: -10px 0 12px 22%; }
