/* Mi Ocaña 2027: resultados primero, con mapa auxiliar. */
@media (min-width: 1201px) {
	.mio-interior .cts-explore.finder-two-columns .fc-one-column {
		width: 63% !important;
	}
	.mio-interior .cts-explore.finder-two-columns .fc-one-column ~ .finder-map {
		width: 37% !important;
	}
	.mio-interior .cts-explore.finder-two-columns .fc-one-column .finder-listings,
	.mio-interior .cts-explore.finder-two-columns .fc-one-column .finder-search {
		width: 100% !important;
	}
	.mio-interior .cts-explore.finder-two-columns .results-view .col-md-12 {
		width: 50%;
	}
}

@media (min-width: 1360px) {
	.mio-interior .cts-explore.finder-two-columns .search-filters .filter-wrapper {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 10px;
	}
	.mio-interior .cts-explore.finder-two-columns .search-filters .filter-wrapper > .form-group {
		width: auto !important;
		margin: 0 !important;
		float: none;
		min-width: 0;
	}
	.mio-interior .cts-explore.finder-two-columns .search-filters .filter-wrapper > .form-group-tags {
		grid-column: 1 / -1;
	}
	.mio-interior .cts-explore.finder-two-columns .search-filters .filter-wrapper > .proximity-filter[style*="display: none"] {
		display: none !important;
	}
	.mio-interior .cts-explore.finder-two-columns .search-filters .fc-search {
		display: flex;
		align-items: end;
		gap: 10px;
		padding: 0 !important;
		background: transparent;
	}
	.mio-interior .cts-explore.finder-two-columns .search-filters .fc-search > a:not(.close-filters-27) {
		width: auto !important;
		min-height: 44px;
		padding: 10px 14px;
		border-radius: 8px;
		font-size: 13px;
		white-space: nowrap;
	}
	.mio-interior .cts-explore.finder-two-columns .search-filters .fc-search .c27-explore-search-button {
		background: #08372d;
		color: #fffdf7;
	}
	.mio-interior .cts-explore.finder-two-columns .search-filters .fc-search .reset-results-27 {
		background: #fffdf7;
		color: #08372d;
	}
}

.mio-interior .finder-map .mio-map-all {
	position: absolute;
	z-index: 8;
	right: 16px;
	bottom: 38px;
	min-height: 44px;
	padding: 8px 15px;
	border: 1px solid #d9d4c4;
	border-radius: 999px;
	background: #fffdf7;
	color: #08372d;
	box-shadow: 0 4px 18px #0b302426;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
}
.mio-interior .finder-map .mio-map-all:hover,
.mio-interior .finder-map .mio-map-all:focus-visible {
	background: #08372d;
	color: #fffdf7;
}
.mio-interior .finder-map .mio-map-all:focus-visible {
	outline: 3px solid #e1c63a;
	outline-offset: 2px;
}
.mio-interior .finder-map .mio-map-focus {
	display: block;
	width: 22px;
	height: 22px;
	border: 3px solid #fffdf7;
	border-radius: 50%;
	background: #e1c63a;
	box-shadow: 0 0 0 3px #08372d, 0 3px 12px #08372d66;
}

@media (max-width: 1200px) {
	.mio-interior .finder-container .show-map a,
	.mio-interior .finder-container .show-results a {
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Approved discovery catalog. Scope is only the native Explore page. */
.mio-discovery { background:#f8f3e8; }
.mio-discovery .mio-interior-title { background:#f8f3e8; border:0; padding:30px 0 16px; }
.mio-discovery .mio-interior-title h1 { color:#123c2e; font:clamp(30px,3.1vw,48px)/1.12 Georgia,serif; max-width:1500px; }
.mio-discovery #c27-explore-listings { position:relative!important; top:auto!important; height:auto!important; min-height:65vh; max-width:1500px; margin:auto; padding:0 28px 45px; background:#f8f3e8; overflow:visible!important; display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.mio-discovery #c27-explore-listings[data-mio-map="true"] { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
.mio-discovery #c27-explore-listings .fc-one-column { width:100%!important; height:auto!important; position:static!important; overflow:visible!important; min-width:0; float:none; }
.mio-discovery #c27-explore-listings :is(.finder-search,.finder-listings) { width:100%!important; height:auto!important; max-height:none!important; position:relative!important; display:block!important; float:none; overflow:visible!important; padding:0!important; background:transparent; }
.mio-discovery #c27-explore-listings :is(.finder-title,.sidebar-tabs,.mobile-explore-head-top,.explore-mobile-nav,.close-filters-27,.ssr-loading) { display:none!important; }
.mio-discovery #c27-explore-listings .finder-tabs { float:none; width:100%; padding:0; }
.mio-discovery #c27-explore-listings .search-filters { padding:16px 18px 10px; background:#fffdf8; border:1px solid #e4dfd1; border-radius:12px; }
.mio-discovery #c27-explore-listings .filter-wrapper { display:grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(140px,.65fr); gap:12px 20px; }
.mio-discovery #c27-explore-listings .filter-wrapper>.form-group { float:none; width:auto!important; min-width:0; margin:0!important; }
.mio-discovery #c27-explore-listings:not([data-mio-filters="true"]) .filter-wrapper>.form-group:not(.wp-search-filter):not(.cts-term-hierarchy):not(.dropdown-filter-multiselect):not(.orderby-filter) { display:none!important; }
.mio-discovery #c27-explore-listings .filter-wrapper>.form-group-tags { grid-column:1/-1; }
.mio-discovery #c27-explore-listings .filter-wrapper .proximity-filter[style*="display: none"] { display:none!important; }
.mio-discovery #c27-explore-listings .fc-search { display:flex; gap:18px; align-items:center; padding:8px 0 0!important; margin:0; background:transparent; }
.mio-discovery #c27-explore-listings .fc-search>a { width:auto!important; min-height:40px; font-size:13px; padding:9px 15px; margin:0; }
.mio-discovery #c27-explore-listings .c27-explore-search-button { background:#123c2e; border-radius:7px; color:#fffdf8; }
.mio-discovery .mio-discovery-tools { grid-column:1/-1; display:flex; gap:12px; justify-content:flex-end; }
.mio-discovery .mio-discovery-tools button { border:1px solid #184630; background:#fffdf8; color:#184630; border-radius:30px; min-height:44px; padding:9px 20px; font-size:13px; }
.mio-discovery .mio-discovery-tools button[aria-expanded="true"] { background:#123c2e; color:#fffdf8; }
.mio-discovery .mio-discovery-tools button:disabled { opacity:.5; }
.mio-discovery #c27-explore-listings .fl-head { padding:20px 0 12px; border:0; }
.mio-discovery #c27-explore-listings .results-view { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; height:auto!important; margin:0!important; }
.mio-discovery #c27-explore-listings[data-mio-map="true"] .results-view { grid-template-columns:repeat(2,minmax(0,1fr)); }
.mio-discovery #c27-explore-listings .results-view>.grid-item { width:auto!important; padding:0!important; float:none; position:relative!important; left:auto!important; top:auto!important; transform:none!important; min-width:0; }
.mio-discovery #c27-explore-listings .finder-map { display:none!important; width:100%!important; height: min(740px,80vh)!important; min-height:420px; position:sticky!important; top:18px!important; align-self:start; overflow:hidden; border-radius:14px; }
.mio-discovery #c27-explore-listings[data-mio-map="true"] .finder-map { display:block!important; }
.mio-discovery #c27-explore-listings .finder-map .map { height:100%!important; width:100%!important; }
.mio-discovery #c27-explore-listings .mio-discovery-card { height:100%; margin:0!important; background:#fffdf8; border:1px solid #e4dfd1; border-radius:12px; overflow:hidden; display:flex; flex-direction:column; box-shadow:none; }
.mio-discovery-photo { display:block; aspect-ratio:4/3; background:#edeadf; flex-shrink:0; overflow:hidden; }
.mio-discovery-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.mio-discovery-photo.is-portrait img { object-fit:contain; }
.mio-discovery-empty { height:100%; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:15px; background:#e9eddf; color:#3f614c; border-bottom:3px solid #c9b449; }
.mio-discovery-empty>span:first-child { letter-spacing:4px; font-size:11px; }
.mio-discovery-empty>span:last-child { font:27px Georgia,serif; }
.mio-discovery-body { padding:18px 20px 12px; display:flex; flex-direction:column; flex:1; }
.mio-discovery-category { font-size:10px; text-transform:uppercase; letter-spacing:1.5px; color:#7a6c3c; margin:0 0 8px; }
.mio-discovery-body h2 { font:26px/1.13 Georgia,serif; margin:0 0 10px; color:#123c2e; overflow-wrap:anywhere; }
.mio-discovery-body h2 a { color:inherit; }
.mio-discovery-description { font-size:13px; line-height:1.55; color:#59655c; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0 0 8px; }
.mio-discovery-location { font-size:12px; color:#687467; margin:0 0 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mio-discovery-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; border-top:1px solid #e9e4d9; padding-top:8px; margin-top:auto; min-height:48px; }
.mio-discovery-actions a { font-size:12px; font-weight:600; color:#173d2d; }
.mio-discovery-actions a span { color:#8c762c; margin-left:7px; }
.mio-discovery-locate { border:0; background:transparent; color:#385a43; font-size:12px; min-height:44px; padding:8px; }
.mio-discovery-locate[hidden] { display:none!important; }
.mio-discovery #c27-explore-listings .pagination { float:none; padding:25px 0; margin:0; }
.mio-discovery #c27-explore-listings .no-results-wrapper { padding:35px 15px; }
.mio-discovery #c27-explore-listings .results-view[style*="display: none"] { display:none!important; }
@media(min-width:1700px) { .mio-discovery #c27-explore-listings { max-width:1660px; } }
@media(max-width:1200px) { .mio-discovery #c27-explore-listings .results-view { grid-template-columns:repeat(2,minmax(0,1fr)); } .mio-discovery #c27-explore-listings[data-mio-map="true"] .filter-wrapper { grid-template-columns:1fr 1fr; } }
@media(max-width:900px) {
 .mio-discovery #c27-explore-listings[data-mio-map="true"] { grid-template-columns:1fr; }
 .mio-discovery #c27-explore-listings[data-mio-map="true"] .finder-listings { display:none!important; }
 .mio-discovery #c27-explore-listings[data-mio-map="true"] .finder-map { position:relative!important; height:65vh!important; top:0!important; }
 .mio-discovery #c27-explore-listings .filter-wrapper { grid-template-columns:1fr 1fr; }
}
@media(max-width:600px) {
 .mio-discovery .mio-interior-title { padding:24px 0 14px; }
 .mio-discovery .mio-interior-title h1 { font-size:32px; padding:0 18px; }
 .mio-discovery #c27-explore-listings { padding:0 16px 30px; gap:12px; }
 .mio-discovery .mio-discovery-tools { justify-content:space-between; }
 .mio-discovery #c27-explore-listings .search-filters { padding:10px 12px; }
 .mio-discovery #c27-explore-listings .filter-wrapper { grid-template-columns:1fr; gap:8px; }
 .mio-discovery #c27-explore-listings .orderby-filter { max-width:100%; }
 .mio-discovery #c27-explore-listings .results-view { grid-template-columns:1fr; gap:16px; }
 .mio-discovery-photo { aspect-ratio:16/9; }
 .mio-discovery-body { padding:14px 16px 8px; }
 .mio-discovery-body h2 { font-size:24px; margin-bottom:8px; }
 .mio-discovery-description { font-size:13px; }
 .mio-discovery #c27-explore-listings[data-mio-map="true"] .filter-wrapper { grid-template-columns:1fr; }
}
.mio-discovery #c27-explore-listings { padding-left:clamp(18px,5vw,72px); padding-right:clamp(18px,5vw,72px); }
.mio-discovery #c27-explore-listings .finder-tabs>.tab-content { margin:0!important; }
.mio-discovery #c27-explore-listings .fc-search { position:static!important; float:none!important; clear:both; width:100%!important; height:auto!important; }
.mio-discovery #c27-explore-listings .fl-head { margin:0; background:transparent; }
.mio-discovery #c27-explore-listings .search-filters { display:flow-root; height:auto!important; }
.mio-discovery-photo { max-height:270px; }
@media(max-width:600px) { .mio-discovery #c27-explore-listings { padding-left:16px; padding-right:16px; } }

.mio-discovery #c27-explore-listings .results-view { background:transparent!important; }
@media(max-width:600px) {
 .mio-discovery #c27-explore-listings .filter-wrapper,
 .mio-discovery #c27-explore-listings[data-mio-map="true"] .filter-wrapper { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .mio-discovery #c27-explore-listings .filter-wrapper>:is(.wp-search-filter,.location-filter,.proximity-filter) { grid-column:1/-1; }
 .mio-discovery #c27-explore-listings .select2-selection__rendered { font-size:12px; }
}
.mio-discovery #c27-explore-listings :is(.finder-search,.finder-listings) { min-height:0!important; background:transparent!important; box-shadow:none!important; }
.mio-discovery #c27-explore-listings :is(.finder-tabs-wrapper,.fc-one-column,.finder-tabs>.tab-content) { margin-top:0!important; background:transparent!important; box-shadow:none!important; }

.mio-discovery #c27-explore-listings .dropdown-filter-multiselect .select2-selection { max-height:110px; overflow:auto; }
.mio-discovery-badge { align-self:flex-start; font-size:10px; color:#4b451b; background:#f4eab8; padding:3px 8px; border-radius:4px; margin-bottom:9px; }
/* Compact business identity when no approved cover exists. */
.mio-discovery .mio-discovery-card.is-without-photo .mio-discovery-photo { aspect-ratio:auto; height:132px; max-height:none; background:#e9eddf; }
.mio-discovery .mio-discovery-card .mio-discovery-empty { flex-direction:row; justify-content:flex-start; gap:15px; padding:16px 20px; border-bottom:3px solid #c9b449; }
.mio-discovery .mio-discovery-empty img { width:76px; height:76px; object-fit:contain; flex:none; border-radius:8px; background:#fffdf8; }
.mio-discovery .mio-discovery-empty-copy { min-width:0; }
.mio-discovery .mio-discovery-empty-copy small { display:block; font:10px/1.3 Arial,sans-serif; text-transform:uppercase; letter-spacing:1.4px; color:#6c693f; }
.mio-discovery .mio-discovery-empty-copy h2 { font:26px/1.15 Georgia,serif; margin:8px 0 0; color:#163d2f; overflow-wrap:anywhere; }
.mio-discovery .mio-discovery-card.is-without-photo .mio-discovery-body { padding-top:15px; }
@media(max-width:600px) {
 .mio-discovery .mio-discovery-card.is-without-photo .mio-discovery-photo { height:108px; }
 .mio-discovery .mio-discovery-card .mio-discovery-empty { padding:12px 16px; gap:12px; }
 .mio-discovery .mio-discovery-empty img { width:60px; height:60px; }
 .mio-discovery .mio-discovery-empty-copy h2 { font-size:22px; }
}
.mio-discovery #c27-explore-listings:not([data-mio-has-filters="true"]) .reset-results-27 { display:none!important; }
@media(max-width:600px) {
 .mio-discovery #c27-explore-listings:not([data-mio-filters="true"]) .filter-wrapper>:is(.cts-term-hierarchy,.orderby-filter) { display:none!important; }
 .mio-discovery #c27-explore-listings .search-filters { padding:9px 12px; }
 .mio-discovery #c27-explore-listings .filter-wrapper { gap:0; }
 .mio-discovery #c27-explore-listings .fc-search { justify-content:flex-end; padding-top:0!important; }
 .mio-discovery #c27-explore-listings .fl-head { padding:10px 0 8px; }
}

/* Final search form: explicit labels and predictable Select2 dimensions. */
.mio-discovery #c27-explore-listings .search-filters { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px 16px; padding:16px 18px; overflow:visible; }
.mio-discovery #c27-explore-listings .filter-wrapper { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(160px,.7fr); gap:12px 16px; align-items:start; }
.mio-discovery #c27-explore-listings .filter-wrapper>.md-group { display:flex; flex-direction:column-reverse; justify-content:flex-end; min-height:0; }
.mio-discovery #c27-explore-listings .filter-wrapper>.md-group>label { position:static!important; display:block!important; transform:none!important; top:auto!important; left:auto!important; width:auto!important; height:auto!important; margin:0 0 6px!important; padding:0!important; opacity:1!important; font:600 12px/1.25 Arial,sans-serif!important; color:#355645!important; pointer-events:auto!important; }
.mio-discovery #c27-explore-listings .dropdown-filter-multiselect .main-term { display:flex; flex-direction:column-reverse; align-items:stretch; min-width:0; }
.mio-discovery #c27-explore-listings .dropdown-filter-multiselect .main-term>label { position:static!important; display:block!important; transform:none!important; top:auto!important; left:auto!important; margin:0 0 6px!important; padding:0!important; opacity:1!important; font:600 12px/1.25 Arial,sans-serif!important; color:#355645!important; pointer-events:auto!important; }
.mio-discovery #c27-explore-listings .wp-search-filter>input { box-sizing:border-box; width:100%; height:46px!important; min-height:46px; padding:10px 13px!important; margin:0!important; border:1px solid #cfcfc0!important; border-radius:7px!important; background:#fffdf8!important; box-shadow:none!important; font-size:15px!important; line-height:1.4!important; }
.mio-discovery #c27-explore-listings .filter-wrapper .select2-container { width:100%!important; min-width:0; }
.mio-discovery #c27-explore-listings .filter-wrapper .select2-selection { box-sizing:border-box; min-height:46px!important; height:auto!important; border:1px solid #cfcfc0!important; border-radius:7px!important; background:#fffdf8!important; box-shadow:none!important; }
.mio-discovery #c27-explore-listings .filter-wrapper .select2-selection--single { display:flex; align-items:center; padding:0 27px 0 10px; }
.mio-discovery #c27-explore-listings .filter-wrapper .select2-selection--multiple .select2-selection__rendered { display:flex!important; flex-wrap:wrap; align-items:center; gap:4px; box-sizing:border-box; min-height:44px; max-height:104px!important; overflow-y:auto!important; padding:5px 9px!important; white-space:normal!important; }
.mio-discovery #c27-explore-listings .filter-wrapper .select2-selection__choice { float:none!important; max-width:100%; margin:0!important; white-space:normal; }
.mio-discovery #c27-explore-listings .filter-wrapper .select2-search--inline { float:none!important; flex:1 0 75px; min-width:75px; margin:0!important; }
.mio-discovery #c27-explore-listings .filter-wrapper .select2-search__field { width:100%!important; min-height:26px; margin:0!important; }
.mio-discovery #c27-explore-listings .fc-search { display:flex; align-items:flex-end; justify-content:flex-end; padding:0!important; gap:8px; }
.mio-discovery #c27-explore-listings .fc-search>a { min-height:46px; display:inline-flex; align-items:center; justify-content:center; }
.select2-container--open .select2-dropdown { z-index:100001; max-height:min(50vh,360px); overflow-y:auto; }
.select2-container--open .select2-results__options { max-height:min(42vh,300px)!important; overflow-y:auto!important; }
@media(max-width:800px) {
 .mio-discovery #c27-explore-listings .search-filters { grid-template-columns:minmax(0,1fr); gap:8px; padding:11px 12px; }
 .mio-discovery #c27-explore-listings .filter-wrapper { grid-template-columns:minmax(0,1fr); gap:10px; }
 .mio-discovery #c27-explore-listings .fc-search { justify-content:flex-start; }
 .mio-discovery #c27-explore-listings .filter-wrapper>.md-group>label { font-size:11px!important; margin-bottom:4px!important; }
}
