/* PlazaCamper · parte pública (reserva online). Colores del cliente en --pc-a / --pc-b. */
body.pub { background: #1b1f24; min-height: 100vh; display: flex; flex-direction: column; }
.pub-bg { position: fixed; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.pub-header, .pub-main, .pub-footer { position: relative; z-index: 1; }
.pub-header { background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); z-index: 30; }   /* por encima de main: el menú de idioma */
.pub-logo { max-height: 44px; max-width: 160px; }
.pub-main { flex: 1; }
.pub-footer { background: rgba(255, 255, 255, .94); }
.pub-footer a { color: inherit; }
.text-pc { color: var(--pc-a) !important; }
.text-white-75 { color: rgba(255, 255, 255, .8); }
.btn-pc { background: var(--pc-a); border-color: var(--pc-a); color: #fff; }
.btn-pc:hover, .btn-pc:focus, .btn-pc:disabled { background: var(--pc-a); border-color: var(--pc-a); color: #fff; filter: brightness(.92); }

/* Pasos */
.pub-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1rem; counter-reset: s; }
.pub-steps li { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: .5rem; background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .85); font-size: .9rem; }
.pub-steps li span { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .25); font-weight: 700; flex-shrink: 0; }
.pub-steps li em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-steps li.active { background: #fff; color: #222; font-weight: 600; }
.pub-steps li.active span { background: var(--pc-a); color: #fff; }
.pub-steps li.done { background: rgba(255, 255, 255, .85); color: #333; cursor: pointer; }
.pub-steps li.done span { background: #30c78d; color: #fff; }

/* Paso 1 */
.pub-date { flex: 1; min-width: 100px; background: #f6f7f9; border-radius: .5rem; padding: .5rem .75rem; }
.pub-date small { display: block; color: #6c757d; font-size: .75rem; }
.pub-date b { font-size: 1.1rem; }
.w-step .flatpickr-calendar.inline { box-shadow: none; margin: 0 auto; }
.w-step .flatpickr-day.selected, .w-step .flatpickr-day.startRange, .w-step .flatpickr-day.endRange { background: var(--pc-a); border-color: var(--pc-a); }
.w-step .flatpickr-day.inRange { box-shadow: -5px 0 0 color-mix(in srgb, var(--pc-a) 18%, #fff), 5px 0 0 color-mix(in srgb, var(--pc-a) 18%, #fff); background: color-mix(in srgb, var(--pc-a) 18%, #fff); border-color: transparent; }
.pub-stepper { display: inline-flex; align-items: stretch; border-radius: .4rem; overflow: hidden; }
.pub-stepper .btn { width: 2.6rem; font-size: 1.2rem; line-height: 1; border-radius: 0; }
.pub-stepper input { width: 3rem; text-align: center; border: 1px solid #e4e7ed; border-left: 0; border-right: 0; font-weight: 700; font-size: 1.1rem; }
.pub-stepper-sm .btn { width: 2.1rem; font-size: 1rem; padding: .25rem 0; }
.pub-stepper-sm input { width: 2.4rem; font-size: 1rem; }

/* Paso 2 */
.pub-type { border: 2px solid #e9ecef; border-radius: .6rem; overflow: hidden; cursor: pointer; height: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pub-type:hover { border-color: color-mix(in srgb, var(--pc-a) 50%, #fff); }
.pub-type.sel { border-color: var(--pc-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc-a) 20%, transparent); }
.pub-type.off { opacity: .55; cursor: not-allowed; filter: grayscale(.6); }
.pub-type-img { height: 140px; background-size: cover; background-position: center; }
.pub-type-noimg { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .85); font-size: 2.5rem; }

/* Paso 3 */
.pub-svc + .pub-svc { border-top: 1px solid #eef0f3; }
.pub-svc-img { width: 56px; height: 56px; border-radius: .5rem; object-fit: cover; flex-shrink: 0; }
.pub-svc-noimg { background: #f1f3f6; display: flex; align-items: center; justify-content: center; color: #9aa3ad; }

/* Paso 4 */
.pub-method { display: flex; align-items: center; border: 2px solid #e9ecef; border-radius: .5rem; padding: .7rem .9rem; cursor: pointer; margin: 0; }
.pub-method.sel { border-color: var(--pc-a); background: color-mix(in srgb, var(--pc-a) 6%, #fff); }

/* Resumen */
@media (min-width: 992px) { .pub-summary { position: sticky; top: 1rem; } }
.pub-summary .d-flex + .d-flex { margin-top: .2rem; }

/* Páginas de reserva y legales */
.pub-card { max-width: 760px; margin: 0 auto; }
.pub-status { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 2rem; font-weight: 600; }
.pub-legal-body h4, .pub-legal-body h5 { margin-top: 1rem; }

.pub-foot-info { font-size: 1rem; line-height: 1.6; }
.pub-foot-sep { border: 0; border-top: 1px solid #dfe3e8; opacity: 1; margin: 1rem 0 .5rem; }
.pub-legal-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.pub-legal-links li + li { border-top: 1px solid #eceff3; }
.pub-legal-links a { display: block; padding: .8rem 0; font-size: 1.05rem; text-decoration: none; }
@media (min-width: 768px) { .pub-legal-links { flex-direction: row; flex-wrap: wrap; gap: 0 1.5rem; } .pub-legal-links li + li { border-top: 0; } }

/* Botones más grandes en móvil */
@media (max-width: 767.98px) { .pub .btn-lg { padding: .8rem 1.4rem; font-size: 1.15rem; } .w-back { padding: .5rem .9rem; font-size: 1rem; } }

/* Pasos: en móvil solo números (iguales y siempre dentro de la pantalla) + leyenda debajo */
.pub-steps li { min-width: 0; justify-content: center; }
.pub-step-caption { display: none; color: #fff; text-align: center; font-weight: 600; margin: -.4rem 0 .9rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
@media (max-width: 767.98px) {
  .pub-steps li { flex: 1 1 0; padding: .45rem .25rem; }
  .pub-steps li em, .pub-steps li.active em { display: none; }
  .pub-step-caption { display: block; }
}

/* Calendario: fechas elegidas */
#wCalHint { font-weight: 600; }

/* Botón continuar con el total al lado */
.pub-next { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; }
.pub-next-total { margin-right: auto; font-size: 1.15rem; }
.pub-next-total:empty { display: none; }

/* Resumen: horario dentro del bloque; en móvil va dentro del último paso */
.pub-hours { margin-top: .75rem; padding-top: .6rem; border-top: 1px solid #eceff3; color: #222; font-size: .85rem; }
.pub-summary-box { background: #f6f7f9; border-radius: .5rem; padding: .9rem 1rem; }
.pub-summary-box .d-flex + .d-flex { margin-top: .2rem; }

/* Plano: vista entera (cabe en la pantalla) y vista ampliada (scroll lateral) */
.pub-map { min-width: 0; }
.pub-map.zoom { min-width: 1100px; }
.pub-map:not(.zoom) { cursor: zoom-in; }
.pub-map:not(.zoom) .pc-pin { --pin-w: 18px; --pin-h: 24px; font-size: 0; border-width: 2px; }
.pub-map:not(.zoom) .pc-pin.is-sel { font-size: 0; }
.w-mapv.active { background: var(--pc-a); border-color: var(--pc-a); color: #fff; }

/* Fechas: separador y noches completas */
.pub-sep { border: 0; border-top: 1px solid #e6e9ee; opacity: 1; margin: 1.5rem 0 1.25rem; }
.w-step .flatpickr-day.pub-full:not(.selected):not(.startRange):not(.endRange):not(.inRange) { background: repeating-linear-gradient(135deg, #fde2e1 0 4px, #fff 4px 8px); color: #c0392b; text-decoration: line-through; }
.pub-full-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: repeating-linear-gradient(135deg, #fde2e1 0 3px, #fff 3px 6px); border: 1px solid #f1b0ab; }
#wAges .form-select { min-height: 44px; }

/* Servicios. Móvil: 1ª columna icono · cantidad · botones grandes; 2ª columna texto.
   Desde 700 px: icono · texto · cantidad y botones a la derecha */
.pub-svc { display: grid; grid-template-columns: 104px 1fr; grid-template-areas: "img info" "ctl info"; column-gap: 1rem; row-gap: .4rem; align-items: start; padding: .9rem 0; }
.pub-svc > .pub-svc-img { grid-area: img; justify-self: center; }
.pub-svc-info { grid-area: info; }
.pub-svc-ctl { grid-area: ctl; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
@media (min-width: 700px) {
  .pub-svc { grid-template-columns: 64px 1fr 120px; grid-template-areas: "img info ctl"; align-items: center; }
}
.pub-svc-img { width: 64px; height: 64px; }
.pub-svc-qty { font-size: 1.5rem; font-weight: 800; line-height: 1; color: #9aa3ad; }
.pub-svc-qty.on { color: var(--pc-a); }
.pub-svc-btns { display: flex; gap: .4rem; width: 100%; }
.pub-svc-btns .btn { flex: 1; height: 48px; font-size: 1.5rem; font-weight: 700; line-height: 1; padding: 0; border-radius: .6rem; }
.pub-svc-btns .btn:disabled { opacity: .35; }
.pub-svc-info { min-width: 0; padding-top: .2rem; }

/* Plano público: coordenadas en %, el plano ocupa el ancho (mínimo 640 px con scroll lateral en móvil) */
.pub-map-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: .5rem; border: 1px solid #e6e9ee; }
.pub-map { position: relative; --pin-w: 24px; --pin-h: 32px; --pin-f: 11px; }
.pub-map > img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.pub-map .pc-pin { position: absolute; transform: translate(-50%, -50%); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: flex; align-items: center;
                   justify-content: center; color: #fff; font-weight: 700; font-size: var(--pin-f); line-height: 1; padding: 0; z-index: 10; }
.pub-map .pc-pin.shape-circle { width: var(--pin-w); height: var(--pin-w); border-radius: 50%; }
.pub-map .pc-pin.shape-square { width: var(--pin-w); height: var(--pin-w); border-radius: 4px; }
.pub-map .pc-pin.shape-rect_v { width: var(--pin-w); height: var(--pin-h); border-radius: 4px; }
.pub-map .pc-pin.shape-rect_h { width: var(--pin-h); height: var(--pin-w); border-radius: 4px; }
.pub-map .pc-pin.is-free { background: #30c78d; cursor: pointer; }
.pub-map .pc-pin.is-busy { background: #9aa3ad; opacity: .7; cursor: not-allowed; }
.pub-map .pc-pin.is-sel { background: var(--pc-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc-a) 35%, transparent), 0 2px 8px rgba(0,0,0,.4); z-index: 20; transform: translate(-50%, -50%) scale(1.25); }
.w-spot { min-width: 64px; min-height: 44px; }
