.map-main{display:flex;gap:20px}

#google-map{
    border-radius:12px;
    min-height: 500px;
}

.mr-1 {
    margin-right: 10px;
}

.left{flex:0 0 55%;}
.right{flex:1; position: relative;}
.cards{
    display:grid;
    gap:10px; 
    overflow: auto;
    max-height: 600px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card{
    box-shadow:0 1px 3px rgba(0,0,0,.1);
    padding: 0;
	margin: 0;
    border-radius: 10px;
    box-sizing:border-box;
    width: 100%;
	background: #fff;
	display: flex;
    flex-direction: column;
}
.card h4 {
    color: #000 !important;
    font-weight: 700 !important;
    margin: 0 15px 15px;
}
.card .location,
.card .dates {
    color: #666;
    margin: 0 15px 15px;
    font-size: 14px;
}
.card .short-desc {
    color: #000;
    margin: 0 15px 15px;
    line-height: 1.2;
    font-size: 16px;
}
.card a.details-button {
    background: #2ed1d1;
    color: #020817;
    margin: 0 15px 15px;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 6px;
    line-height: 1.2;
    font-weight: 700;
    font-size: 16px;
}
.card button.show-on-map {
    color: #000;
    background: transparent;
    box-shadow: none;
    border: 0;
    text-decoration: underline;
    font-size: 16px;
    cursor: pointer;
	margin: 0 15px;
}
.pagination{margin-top:12px;text-align:center}
.legend {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 0;
    /* margin: auto; */
    width: fit-content;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    z-index: 9;
    display: flex;
    align-items: center;
	gap: 10px;
}
.gmnoprint .gm-style-mtc-bbw{
	display:none;
}
/*.legend-pin{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px}
.legend-shop{background:#d9534f}
.legend-class{background:#0275d8}
.legend-event{background:#f0ad4e}*/

.gallery {
    position: relative;
    overflow: hidden;
}

.gallery .slides {
    position: relative;
    width: 100%;
    height: auto;
}

.gallery .slide {
    display: none;
}

.gallery .slide.active {
    display: block;
}

.gallery img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

/* Prev/Next buttons */
.gallery button.prev,
.gallery button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.gallery button.prev { left: 10px; }
.gallery button.next { right: 10px; }

/* Show buttons only on hover */
.gallery:hover button.prev,
.gallery:hover button.next {
    opacity: 1;
}
.item-card .card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Buttons must be above the link */
.wishlist-btn,
.prev,
.next {
    position: relative;
    z-index: 2;
}
.item-card .type-and-map {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.item-card .type {
    background: #eaa810;
    width: fit-content;
    margin: 15px;
    color: #fff;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 7px;
    line-height: 1;
    font-size: 14px;
}
.item-card.class .type {
    background: #1976a4;
}
.item-card.shop .type {
    background: #bb5d70;
}
/* === FILTER BAR === */
.map-filters-wrap {
    display: flex;
    justify-content: center;
}

.map-filters {
    width:100%;
  max-width: 1200px;
  margin-bottom: 1rem;
	margin-top: 1rem;
  /*
   border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
	*/
  padding: 0.75rem;
  font-family: inherit;
}

/* First row (search + type + button) */
.map-filters .filter-row-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0;
}

#filter-search {
 	flex: 1 1 300px;
 	padding: 0.5rem;
 	border: 1px solid #fff;
  	border-radius: 6px;
	background: #ff;
    color: #fff;
}
#filter-search::placeholder {
	color: #444;
}

#filter-type {
  padding: 0.5rem;
  border: 1px solid #fff;
  border-radius: 6px;
      background: #fff;
    color: #000;
}

#filter-submit,
#filter-submit-hp {
    padding: 0 10px;
    height: 50px;
    background: #2ed1d1;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

#filter-submit:hover,
#filter-submit-hp:hover {
  background: #005f8d;
}

/* Second row (toggle) */
.map-filters .filter-row-2 {
  text-align: right;
}

#filter-toggle {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #020817;
    text-transform: uppercase;
}

#filter-toggle:hover {
  background: #ddd;
}

#pagination {
	margin-top: 0;
}
/* === ADVANCED FILTERS === */
#filter-advanced {
  margin-top: 0.75rem;
  border-top: 0;
  padding-top: 0;
  transition:height 0.4s ease-out;
    height:0;
    overflow:auto;
}


/* FILTER Tabs */
.filter-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid #ccc;
  justify-content: center;

}

.filter-tabs li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px 6px 0 0;
  background: #f0f0f0;
  font-weight: 600;
  transition: background 0.2s;
}

.filter-tabs li:hover {
  background: #e0e0e0;
}

.filter-tabs li.active {
  background: #0073aa;
  color: #fff;
}

/* Tab content */
.filter-tab-content {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  background: #fff;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: flex;
  justify-content: flex-start;
	align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    overflow: auto;
}

/* FORM Tabs */
.form-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid #ccc;
  justify-content: center;

}

.form-tabs li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px 6px 0 0;
  background: #f0f0f0;
  font-weight: 600;
  transition: background 0.2s;
}

.form-popup-card .tab-pane {
    overflow-y: scroll;
    flex: 1;
}

.form-tab-content {
    display: flex;
    overflow: hidden;
}

.form-tabs li:hover {
  background: #e0e0e0;
}

.form-tabs li.active {
  background: #0073aa;
  color: #fff;
}

/* Tab content */
.form-tab-content {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  background: #fff;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* each column min 250px wide */
  gap: 1rem;
  align-items: start;
}

/* Taxonomy groups */
.taxonomy-group {
  flex-basis: calc(25% - 10px);
    text-align: left;
	display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0 5px;
}

.taxonomy-group h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #333;
	width: 100%;
}

.taxonomy-group label {
  display: block;
  margin: 0.15rem 0;
  cursor: pointer;
	border: 1px solid #020817;
    border-radius: 40px;
    padding: 5px 7px;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}
.taxonomy-group label:hover {
	box-shadow: 0 0 2px #000;
	transition: .2s;
}
.taxonomy-group label:has(input:checked) {
    color: #fff;
    background: #020817;
    transition: .2s;
}
.taxonomy-group input[type="checkbox"] {
  margin-right: 0.5rem;
	display: none;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

.item-card .gallery img {
	aspect-ratio: 1;
	object-fit: cover;
}

/* Slider */
.item-slider .item-card {
    display: flex;
    flex-direction: column;
	background: #fff;
}
.item-slider .item-card .gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 0;
    padding-bottom: 100%;
    width: 100%;
}
.item-slider .item-card .content {
    display: flex;
    flex-direction: column;
    height: 100%;
	padding: 0;
}
.item-slider .item-card .content h4 {
    color: #000 !important;
    font-weight: 700 !important;
    margin: 0 15px 15px;
}
.item-slider .item-card .location,
.item-slider .item-card .dates {
    color: #666;
    margin: 0 15px 15px;
    font-size: 14px;
}
.item-slider .item-card .short-desc {
    color: #000;
    margin: 0 15px 15px;
    line-height: 1.2;
    font-size: 16px;
}
.item-slider .item-card a.details-btn {
    background: #2ed1d1;
    color: #020817;
    margin: 0 15px 15px;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 6px;
    line-height: 1.2;
    font-weight: 700;
    font-size: 16px;
    width: calc(100% - 30px);
    text-align: center;
}
.item-slider-wrapper .slider-prev, 
.item-slider-wrapper .slider-next {
	border: 1px solid #020817;
}
.item-slider-wrapper .slider-prev:hover, 
.item-slider-wrapper .slider-next:hover {
	background: #020817;
	color: #fff;
	transition: .2s;
}
.gallery button.prev, .gallery button.next {
    background: rgb(2 8 23 / 70%);
    width: 30px;
    height: 30px;
    border-radius: 30px;
    color: #fff;
}

#uds-edit-form-wrap {
    overflow-y: auto;
}

.selected-filters {
    padding-bottom: 10px;
}

.sf-label {
    margin-right: 10px;
    font-weight: bold;
}

.sf-pill {
    display: inline-block;
    background: #f1f1f1;
    padding: 6px 10px;
    border-radius: 20px;
    margin: 3px;
    position: relative;
    cursor: default;
}

.sf-taxonomy {
    cursor: pointer;
}

.sf-popup {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.sf-popup.show {
    display: block;
}

.sf-popup-item {
    padding: 4px 8px;
}
