/* Canarify B-08: shared presentation. No content visibility or query decisions. */
.cf-discovery {padding-block:1.5rem 2rem}
.cf-discovery__intro {margin:0 0 1rem;font-weight:700;color:var(--cf-ink);font-size:1rem}
.cf-discovery__links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0;padding:0;list-style:none}
.cf-category {display:flex;align-items:center;gap:.6rem;min-height:52px;padding:.65rem .8rem;border:1px solid transparent;border-radius:12px;background:var(--cf-category-bg,#FDFAF4);color:var(--cf-category-ink,#0F0E0B);font-weight:650;font-size:.875rem;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.cf-category span {font-size:1.3rem;flex:none}
.cf-category:hover {border-color:currentColor;text-decoration:underline;text-underline-offset:.2em}
.cf-category:focus-visible {outline:3px solid var(--cf-focus);outline-offset:3px}
[data-cf-category=playa],[data-cf-category=piscina_natural] {--cf-category-bg:#DFF2FA;--cf-category-ink:#174C61}
[data-cf-category=sendero] {--cf-category-bg:#EFE5D0;--cf-category-ink:#65502A}
[data-cf-category=lugar_natural],[data-cf-category=mirador],[data-cf-category=area_recreativa] {--cf-category-bg:#E2EFDB;--cf-category-ink:#34512B}
[data-cf-category=patrimonio] {--cf-category-bg:#F9EDCF;--cf-category-ink:#654306}
[data-cf-category=evento] {--cf-category-bg:#EDE3FA;--cf-category-ink:#54416E}
[data-cf-category=territorio] {--cf-category-bg:#FFE6DB;--cf-category-ink:#733E2A}
.d5-card[data-cf-category] .d5-card__categoria {align-self:flex-start;display:inline-block;background:var(--cf-category-bg,#FDFAF4);color:var(--cf-category-ink,#0F0E0B);padding:.25rem .55rem;border-radius:6px;font-size:.75rem;letter-spacing:.035em}
.cf-collection {grid-template-columns:minmax(0,1fr);gap:1.25rem}
.d5-card--featured {border-top:4px solid var(--cf-brand);box-shadow:none}
.d5-card--featured .d5-card__title {font-size:clamp(1.25rem,2.1vw,1.85rem);max-width:32ch}
.d5-card--featured .d5-card__body {padding:.25rem 0}
.d5-card--horizontal {padding:1rem;border:1px solid var(--cf-border);background:#fff;gap:1rem}
.d5-card--horizontal .d5-card__media {border-radius:8px;aspect-ratio:1/1}
.d5-card--horizontal .d5-card__title {font-size:1.125rem}
.d5-card--photographic {border:1px solid var(--cf-border);background:#fff;gap:0;overflow:hidden}
.d5-card--photographic .d5-card__media {aspect-ratio:4/3;border-radius:0;background:var(--cf-surface)}
.d5-card--photographic .d5-card__body {padding:1rem}

.d5-card--editorial:not(.d5-card--horizontal) .d5-card__title {max-width:42ch}
.d5-card .d5-card__badge {line-height:1.5;white-space:normal}
.d5-empty,.d5-empty-territorio {max-width:70ch;margin-inline:auto;line-height:1.7}
.d5-ficha-grid > *,.d5-sidebar,.d5-historia {min-width:0}
.d5-ficha-grid :where(p,li,dd,dt,h2,h3),.d5-page__body :where(h2,h3,p,li) {overflow-wrap:anywhere}
.d5-ficha-grid :where(h2,h3),.d5-historia :where(h2,h3) {line-height:1.3;text-wrap:balance}
.d5-ficha-grid :where(input,select,textarea,button) {max-width:100%;min-height:44px}
.d5-ficha-grid textarea {min-height:7rem}
.d5-ficha-grid :where(label,legend) {line-height:1.5}
.d5-page__body .woocommerce {max-width:100%;overflow-wrap:anywhere}
.d5-page__body :where(.woocommerce table) {max-width:100%}
.cf-section .wp-block-buttons {gap:.75rem;flex-wrap:wrap}
.cf-section .wp-block-button {max-width:100%}
.cf-section .wp-block-button__link {text-decoration:none;font-weight:700;overflow-wrap:anywhere}
.cf-section .wp-block-button__link:hover {text-decoration:underline}
.cf-section .wp-block-gallery {margin-block:1.5rem}
.cf-section .wp-block-gallery figcaption {text-align:start}
.cf-section .is-style-cf-image-natural img {height:auto;object-fit:contain;border-radius:12px}
.cf-section .wp-block-image figcaption {font-size:.875rem;line-height:1.6;color:#514B40}
.cf-section .wp-block-column > .wp-block-image {margin-top:0}
.h5-hist-card__title,.h5-vl-card__title {overflow-wrap:anywhere;text-wrap:balance}
.h5-isla-tile:not(.h5-isla-tile--foto) {min-height:120px}
@media(min-width:600px) {
 .cf-discovery__links {grid-template-columns:repeat(3,minmax(0,1fr))}
 .cf-collection {grid-template-columns:repeat(2,minmax(0,1fr))}
 .cf-collection--editorial > .d5-card--featured {grid-column:1/-1}
 .cf-collection--editorial > .d5-card--featured:not(:has(.d5-card__fallback)) {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(1rem,3vw,2.5rem)}
 .cf-collection--editorial > .d5-card--featured .d5-card__media {margin:0;aspect-ratio:3/2}
 .d5-card--horizontal:not(:has(.d5-card__fallback)) {grid-template-columns:minmax(90px,1fr) minmax(0,2.2fr)}
}
@media(min-width:1100px) {
 .cf-discovery__links {grid-template-columns:repeat(6,minmax(0,1fr))}
 .cf-collection--photos {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:599px) {
 .d5-card--horizontal {padding:.9rem}
 .cf-collection > .d5-card {width:100%}
 .h5-sec-head {gap:1rem;align-items:flex-start}
 .h5-sec-link {min-height:44px;display:inline-flex;align-items:center;white-space:normal}
 .d5-ficha-grid :where(table) {font-size:.875rem}
}
/* Text-only photographic variants become a compact reading list, not empty photo tiles. */
.d5-card--photographic:has(.d5-card__fallback) {background:transparent;border:0;border-top:1px solid var(--cf-border);border-radius:0}
.d5-card--photographic:has(.d5-card__fallback) .d5-card__body {padding:1rem 0}
/* Long island names must not impose a minimum track width on small screens. */
.h5-islas-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.h5-isla-tile,.h5-isla-tile__name {min-width:0;overflow-wrap:anywhere}
@media(min-width:600px){.h5-islas-grid {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:599px){#islas .h5-isla-tile {width:100%;aspect-ratio:auto;min-height:120px}}
@media(max-width:359px){
 .cf-discovery .cf-category {padding:.6rem .45rem;gap:.3rem;font-size:.8125rem}
 .cf-discovery .cf-category span {font-size:1rem}
 #islas .h5-isla-tile__name {font-size:.875rem;padding:.65rem .5rem;gap:.2rem}
}
/* B-09: restrictions/state precede long reading, including narrow layouts. */
.d5-ficha-main > .d5-info-box--estado {margin-bottom:1.5rem;max-width:70ch}
.d5-ficha-main > .d5-info-box--estado p {margin-block:.5rem;line-height:1.6}
.d5-ficha-main > .d5-info-box--estado .d5-info-box__title {margin-top:0}
/* Missing map library: show an honest alternative, never a blank map surface. */
.d5-map.cf-map-unavailable {display:grid;place-items:center;padding:1.25rem;background:var(--cf-surface);color:var(--cf-muted)}
.cf-map-unavailable__message {max-width:70ch;margin:0;line-height:1.65}
/* B-10: legacy mini-maps share the same readable unavailable state. */
#local-mini-map.cf-map-unavailable,#fiesta-mini-map.cf-map-unavailable {
 display:grid;place-items:center;padding:1.25rem;background:var(--cf-surface);color:var(--cf-muted);
}
.cf-map-notice {margin:.75rem 0;padding:1rem;border-inline-start:3px solid var(--cf-focus);background:var(--cf-surface);color:var(--cf-muted);line-height:1.65}
.d5-product__conditions {padding-block:1rem;border-top:1px solid var(--cf-border);color:var(--cf-muted);font-size:.875rem;line-height:1.6}
.d5-product__main-img--ph {box-shadow:none}
.d5-product__ph-text {color:var(--cf-muted)}
/* B-11: shared desktop navigation; the existing drawer retains secondary destinations. */
.cf-desktop-nav {display:none}
.h5-header .cf-account {display:inline-flex}
@media(min-width:1100px){
 .h5-header .h5-logo {flex:0 1 185px}
 .cf-desktop-nav {display:block;flex:1;min-width:0}
 .cf-desktop-nav .h5-mobile-nav__group {margin:0;padding:0;border:0}
 .cf-desktop-nav .h5-mobile-nav__group-label {display:none}
 .cf-desktop-nav .h5-mobile-nav__list {display:flex;justify-content:center;flex-wrap:wrap;gap:.25rem 1rem;margin:0;padding:0;list-style:none}
 .cf-desktop-nav .h5-mobile-nav__list a {display:flex;align-items:center;min-height:44px;font-size:.875rem;font-weight:650;text-decoration:none;padding:.25rem 0;white-space:normal}
 .cf-desktop-nav a:hover {text-decoration:underline;text-underline-offset:.25em}
}
.h5-hero-shell--v4 .h5-hero__content {width:100%;padding-inline:var(--pad)}
.h5-hero-shell--v4 .h5-buscador {max-width:none;width:100%}
.h5-hero-shell--v4 .h5-hero__velo {background:linear-gradient(90deg,rgba(15,14,11,.84),rgba(15,14,11,.38))}
.h5-hero-shell--v4 .h5-hero__title {max-width:22ch}
/* Preserve the original mark on a light plate rather than recolouring or redrawing it. */
.h5-footer .cf-footer-logo {display:inline-flex;width:fit-content;max-width:100%;background:#fff;border-radius:8px;padding:.5rem .75rem;min-height:56px}
.h5-footer .cf-footer-logo img {width:auto;max-width:185px;max-height:44px;height:auto;object-fit:contain}
.h5-footer .h5-footer__islas,.h5-footer .h5-footer__bottom {padding-inline:var(--pad)}
.h5-footer__origin {display:inline-flex;align-items:center;flex-wrap:wrap;gap:.35rem}
.cf-canary-flag {flex:none;border:1px solid #D6D0C5;border-radius:2px}
/* Mixed collections retain intrinsic reading height; absence of a photo is not an empty tile. */
.cf-collection,.d5-grid {align-items:start}
.cf-collection--editorial > .d5-card--featured .d5-card__media {max-height:300px}
.d5-card--featured:has(.d5-card__fallback) {padding:1rem 0;max-width:70ch}
.d5-card--photographic:has(.d5-card__fallback) .d5-card__body {padding:.85rem 0}
.h5-isla-tile--foto {aspect-ratio:4/3;min-height:150px}
@media(max-width:599px){
 .h5-section {padding-block:2rem}
 .cf-collection {gap:1rem}
 #islas .h5-isla-tile--foto {aspect-ratio:4/3}
}
