/* =============================================================================
   FICHA DE ALOJAMIENTO — copia de la Ficha 2026 de guiadecabanias.com (24/10/2026)
   inc/views/ficha-alojamiento-v2.php · assets/ficha-gdc.js
   Mismas reglas que ficha.css de la guía (ficha2…ficha6 incluidos), con la paleta del
   portal (--fs-color-primary) en vez del naranja. Se carga después de form-gdc.css.
   ========================================================================== */
.gf {
	--gf-acento: var(--fs-color-primary, #329ac1);
	--gf-suave: color-mix(in srgb, var(--gf-acento) 10%, #fff);
	--gf-borde-suave: color-mix(in srgb, var(--gf-acento) 35%, #fff);
	--gf-texto: color-mix(in srgb, var(--gf-acento) 70%, #000);
	color: #2b2a27;
}
.gf-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.gf .breadcrumbs, .gf .mdpd-breadcrumbs, .gf nav[aria-label] { margin-bottom: 10px; font-size: .88em; }
.gf-head h1 { font-size: clamp(1.6em, 4vw, 2.3em); line-height: 1.15; margin: 0 0 6px; color: #2b2a27; }
.gf-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 16px; color: #6b6a65; }
.gf-sub__tipo { background: var(--gf-suave); color: var(--gf-texto); font-weight: 700; font-size: .85em; padding: 3px 10px; border-radius: 999px; }
.gf-sub__loc { display: inline; }
.gf-sub__loc .mdpd-icon { vertical-align: -2px; margin-right: 2px; }
.gf-sub__loc a { color: #6b6a65; text-decoration: underline; }
.gf-sub .gdc-estrellas { margin: 0; font-size: 1em; }
.gf .mdpd-icon { width: 1em; height: 1em; }

/* Galería: 1 grande + 4 chicas */
.gf-gal { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; border-radius: 18px; overflow: hidden; margin-bottom: 28px; }
/* El Customizer de Flatsome redondea todos los <button> (99rem): acá no. */
.gf .gf-gal__item { all: unset; cursor: zoom-in; overflow: hidden; background: #f1efe9; border-radius: 0 !important; }
.gf-gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, filter .3s; }
.gf-gal__item:hover img { transform: scale(1.04); filter: brightness(.94); }
.gf-gal__item:first-child { grid-row: 1 / 3; }
.gf-gal--1 { grid-template-columns: 1fr; grid-template-rows: 430px; }
.gf-gal--2 { grid-template-columns: 2fr 1fr; } .gf-gal--2 .gf-gal__item:nth-child(2) { grid-row: 1 / 3; }
.gf-gal--3 { grid-template-columns: 2fr 1fr; }
.gf-gal--4 { grid-template-columns: 2fr 1fr 1fr; } .gf-gal--4 .gf-gal__item:nth-child(4) { grid-column: 2 / 4; }
.gf-gal__todas { position: absolute; right: 14px; bottom: 14px; min-height: 0; margin: 0; padding: 9px 16px; border-radius: 10px; background: #fff; color: #2b2a27; font-weight: 700; font-size: .88em; text-transform: none; letter-spacing: 0; box-shadow: 0 4px 14px rgba(0,0,0,.2); border: 1px solid #222 !important; border-radius: 10px !important; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.gf-gal__todas:hover { background: #fff; color: #2b2a27; }
.gf-gal__mov { display: none; }

/* Columnas */
.gf-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.gf-sec { padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid #ebe8e1; }
.gf-sec h2 { font-size: 1.35em; margin: 0 0 12px; color: #2b2a27; }
.gf-desc { line-height: 1.7; color: #444; position: relative; }
.gf-desc--corta { max-height: 230px; overflow: hidden; }
.gf-desc--corta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #fff); }
.gf .gf-desc__mas { all: unset; border-radius: 0 !important; background: none !important; cursor: pointer; margin-top: 8px; font-weight: 700; text-decoration: underline; color: #2b2a27; }
.gf-comod { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.gf-comod li { margin: 0; display: flex; align-items: center; gap: 10px; color: #444; }
.gf-comod .mdpd-icon, .gf-comod svg { color: #1d9e75; width: 16px; height: 16px; flex: 0 0 auto; }
.gf-dir { margin: 0 0 12px; color: #555; display: flex; align-items: center; gap: 6px; }
.gf-mapa { border-radius: 16px; overflow: hidden; height: 340px; margin-bottom: 12px; background: #f1efe9; }
.gf-mapa .mdpd-mapa-punto { height: 340px !important; border-radius: 16px; }
.gf-volver a { color: var(--gf-texto); font-weight: 700; }

/* Botones */
.gf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; margin: 0; border-radius: 999px; font-weight: 700; font-size: .95em; text-decoration: none; line-height: 1; text-transform: none; letter-spacing: 0; }
.gf-btn .mdpd-icon, .gf-btn svg, .gf-btn i { width: 1.1em; height: 1.1em; font-size: 1.1em; }
.gf-btn--wa { background: #25D366; color: #fff !important; border: 0; }
.gf-btn--wa:hover { filter: brightness(.95); }
.gf-btn--borde { background: #fff; color: var(--gf-texto) !important; border: 1px solid var(--gf-borde-suave); }
.gf-btn--borde:hover { background: var(--gf-suave); }
.gf-btn--fuerte { background: var(--gf-acento); color: #fff !important; border: 0; text-transform: uppercase; letter-spacing: .03em; }

/* Tarjeta lateral */
.gf-side { position: sticky; top: 90px; }
.gf-card { border: 1px solid #e7e5df; border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 10px 34px rgba(40,40,30,.10); }
.gf-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gf-card__logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; border: 1px solid #eee; background: #fff; flex: 0 0 auto; }
.gf-card__t { margin: 0; font-weight: 800; font-size: 1.05em; }
.gf-card__d { margin: 0; color: #777; font-size: .88em; }
.gf-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gf-card__btns .gf-btn--wa { grid-column: 1 / -1; }
.gf-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid #efece5; }
.gf-form__t { margin: 0 0 10px; font-weight: 700; color: #555; font-size: .92em; }
/* El formulario común (form-gdc.css) va a una sola columna dentro de la tarjeta */
.gf-form .gdc-form__row { margin: 0 !important; }
.gf-form .gdc-form__col { flex-basis: 100% !important; max-width: 100% !important; padding: 0 !important; }
.gf-form .gdc-form__col--mensaje > label { display: none; }
.gf-form input.form-control, .gf-form .gdc-reserva__tel { height: 40px !important; min-height: 0 !important; margin-bottom: 8px !important; font-size: 15px; }
.gf-form textarea { height: 90px !important; min-height: 0 !important; margin-bottom: 10px !important; }
.gf-form .gdc-reserva__huespedes { flex: 0 0 104px; }
.gf-form .gdc-stepper { height: 40px; }
.gf-form .gdc-reserva label.gdc-chip-radio { padding: 6px 8px; font-size: .78em; }
.gf-form .gdc-form__enviar { width: 100%; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.gf-form input.form-control, .gf-form textarea, .gf-form .gdc-reserva__tel, .gf-form .gdc-reserva__rango { border-radius: 12px !important; }
.gf-barra { display: none; }

/* Visor de fotos */
.gf-visor { position: fixed; inset: 0; z-index: 100005; background: rgba(15,15,12,.94); display: flex; align-items: center; justify-content: center; }
.gf-visor[hidden] { display: none; }
.gf-visor img { max-width: 92vw; max-height: 86vh; border-radius: 6px; object-fit: contain; }
.gf-visor button { all: unset; cursor: pointer; position: absolute; color: #fff; font-size: 42px; line-height: 1; padding: 10px 16px; }
.gf-visor .gf-visor__x { top: 10px; right: 14px; left: auto; font-size: 38px; }
.gf-visor .gf-visor__ant { left: 10px; right: auto; top: 50%; transform: translateY(-50%); }
.gf-visor .gf-visor__sig { right: 10px; left: auto; top: 50%; transform: translateY(-50%); }
.gf-visor .gf-visor__ant, .gf-visor .gf-visor__sig { font-size: 54px; padding: 10px 18px; background: rgba(0,0,0,.25); border-radius: 12px; }
.gf-visor__cont { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 14px; }
body.gf-visor-abierto { overflow: hidden; }

/* El optimizador envuelve <img> en <picture> */
.gf-gal__item picture, .gf-card picture { display: block; width: 100%; height: 100%; }

@media (max-width: 849px) {
	.gf-wrap { padding: 12px 0 90px; }
	.gf-head, .gf-cols, .gf .breadcrumbs, .gf .mdpd-breadcrumbs, .gf > .gf-wrap > nav { padding-left: 16px; padding-right: 16px; }
	.gf-gal { display: block; border-radius: 0; margin-bottom: 18px; position: relative; }
	.gf .gf-gal__item, .gf .gf-gal__todas { display: none !important; }
	.gf-gal .gf-gal__mov { position: static; display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.gf-gal__mov::-webkit-scrollbar { display: none; }
	.gf-gal .gf-gal__mov img { flex: 0 0 100%; min-width: 100%; max-width: 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; }
	.gf-gal .gf-gal__mov > picture { flex: 0 0 100%; min-width: 100%; display: block; scroll-snap-align: center; }
	.gf-gal .gf-gal__mov > picture img { width: 100%; min-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
	.gf-gal .gf-gal__cont { position: absolute; right: 12px; bottom: 12px; left: auto; margin: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
	.gf-cols { grid-template-columns: 1fr; gap: 0; }
	.gf-side { position: static; order: -1; margin-bottom: 26px; }
	.gf-mapa, .gf-mapa .mdpd-mapa-punto { height: 260px !important; }
	.gf-barra { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
	.gf-barra .gf-btn { flex: 1; }
	.gf-form .gdc-reserva__fila { flex-direction: row !important; gap: 8px !important; }
	.gf-form .gdc-reserva__fechas { flex: 1 !important; width: auto !important; }
	.gf-form .gdc-reserva__huespedes { flex: 0 0 104px !important; width: auto !important; }
}

/* Ficha reducida del no cliente (25/10/2026) */
.gf-duenio { border: 1px dashed var(--gf-borde-suave); background: var(--gf-suave); border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.gf-duenio p { margin: 0; color: #5f5c55; flex: 1 1 260px; }
.gf-card__tel { margin: 0 0 12px; display: flex; align-items: center; gap: 6px; color: #444; }
.gf-card__tel .mdpd-telefono-texto { font-weight: 600; }
.gf-rel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gf-rel__card { display: flex; flex-direction: column; gap: 4px; border: 1px solid #e7e5df; border-radius: 14px; overflow: hidden; background: #fff; color: #222; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.gf-rel__card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(40,40,30,.1); color: #222; }
.gf-rel__foto { display: block; aspect-ratio: 4 / 3; background: #f1efe9; overflow: hidden; }
.gf-rel__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gf-rel__card b { padding: 10px 12px 0; font-size: .97em; line-height: 1.3; }
.gf-rel__card small { padding: 0 12px 12px; color: #6b6a65; font-size: .8em; }
