/* public/assets/css/item-booking.css — Catálogo y ficha de producto reservable (estilo alineado con booking.css) */

.it-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.it-catalog-card { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: block; transition: box-shadow .15s, transform .15s; }
.it-catalog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.it-catalog-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #f3f4f6; }
.it-catalog-photo-placeholder { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 36px; background: #eef2ff; color: #a5b4fc; }
.it-catalog-body { padding: 14px 16px; }
.it-catalog-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; font-weight: 700; }
.it-catalog-name { font-size: 16px; font-weight: 700; margin: 4px 0 6px; color: #1f2937; }
.it-catalog-desc { font-size: 13px; color: #6b7280; margin: 0 0 10px; line-height: 1.4; }
.it-catalog-price { font-size: 15px; font-weight: 700; color: #4f46e5; }
.it-catalog-price small { font-weight: 500; color: #6b7280; }
.it-catalog-empty { text-align: center; color: #9ca3af; padding: 40px 0; }
.it-catalog-search { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; align-items: flex-end; }
.it-catalog-search .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #374151; }
.it-catalog-search input, .it-catalog-search select { padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }

/* ── Ficha de producto ── */
.it-product { max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; font-family: -apple-system, 'Segoe UI', sans-serif; color: #1f2937; }
@media (max-width: 860px) { .it-product { grid-template-columns: 1fr; } }

.it-gallery-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: #f3f4f6; display: block; }
.it-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.it-gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.it-gallery-thumbs img.active { border-color: #4f46e5; }
.it-product-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.it-product-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; font-weight: 700; }
.it-product-desc { color: #374151; line-height: 1.65; margin-top: 16px; }

.it-book-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.06); align-self: start; position: sticky; top: 90px; }
.it-price-line { font-size: 22px; font-weight: 800; color: #1f2937; margin-bottom: 4px; }
.it-price-line small { font-size: 13px; font-weight: 500; color: #6b7280; }

/* En la web pública el calendario y el resto del formulario van siempre
   apilados (calendario arriba, lo demás debajo) — el formulario entero
   empieza oculto tras un aviso y se despliega justo debajo del
   calendario al elegir un día libre, así no hay hueco en blanco antes
   de eso. En el alta manual del panel (admin/item_reserva_nueva.php,
   clase extra .it-admin-cols) sí hay sitio de sobra y calendario y
   formulario van lado a lado. */
.it-book-cols { display: block; }
.it-book-col-form { margin-top: 18px; }
@media (min-width: 640px) {
    .it-book-cols.it-admin-cols { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 32px; align-items: start; }
    .it-book-cols.it-admin-cols .it-book-col-form { margin-top: 0; }
}
.it-book-placeholder { color: #9ca3af; font-size: 14px; text-align: center; padding: 34px 14px; border: 1px dashed #e5e7eb; border-radius: 10px; }

.it-confirm-big { text-align: center; padding: 40px 20px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; }
.it-confirm-icon { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 32px; font-weight: 700; }
.it-confirm-big h3 { margin: 0 0 8px; font-size: 22px; color: #166534; }
.it-confirm-when { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #14532d; text-transform: capitalize; }
.it-confirm-note { margin: 0; font-size: 14px; color: #166534; }

.it-cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; font-weight: 700; }
.it-cal-nav button { background: none; border: 1px solid #e5e7eb; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; }
.it-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.it-cal-dow { color: #9ca3af; font-weight: 700; padding-bottom: 4px; }
.it-cal-day { padding: 8px 0; border-radius: 8px; cursor: pointer; font-weight: 600; }
.it-cal-day.free { background: #f0fdf4; color: #166534; }
.it-cal-day.full { background: #fee2e2; color: #991b1b; cursor: not-allowed; text-decoration: line-through; }
.it-cal-day.closed, .it-cal-day.past { background: transparent; color: #d1d5db; cursor: not-allowed; }
.it-cal-day.blank { visibility: hidden; }
.it-cal-legend { display: flex; gap: 14px; justify-content: center; margin-top: 8px; font-size: 11.5px; color: #6b7280; }
.it-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.it-cal-payment-note { text-align: center; margin-top: 6px; font-size: 11.5px; color: #9ca3af; }
.it-cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.it-cal-dot.free { background: #f0fdf4; border: 1px solid #166534; }
.it-cal-dot.full { background: #fee2e2; border: 1px solid #991b1b; }
.it-cal-day.selected { background: #4f46e5 !important; color: #fff !important; }
.it-cal-day.in-range { background: #e0e7ff; color: #3730a3; }

.it-field { margin: 14px 0; }
.it-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.it-field input[type=text], .it-field input[type=email], .it-field input[type=tel], .it-field input[type=number], .it-field input[type=password], .it-field input[type=date] { width: 100%; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.it-persons-row, .it-extras-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.it-persons-row input, .it-extras-row input { width: 64px; padding: 6px; border: 1px solid #d1d5db; border-radius: 6px; text-align: center; }
.it-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.it-slot { border: 1px solid #4f46e5; color: #4f46e5; background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: pointer; font-weight: 600; }
.it-slot.selected { background: #4f46e5; color: #fff; }
.it-summary { background: #f9fafb; border-radius: 10px; padding: 14px; margin: 16px 0; font-size: 14px; }
.it-summary-row { display: flex; justify-content: space-between; padding: 3px 0; }
.it-summary-total { border-top: 1px dashed #d1d5db; margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 16px; color: #4f46e5; }
.it-gateway-options { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.it-gateway-option { display: flex; align-items: center; gap: 10px; border: 2px solid #e5e7eb; border-radius: 10px; padding: 11px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.it-gateway-option.selected { border-color: #4f46e5; background: #eef2ff; }
.it-btn { display: block; width: 100%; background: #4f46e5; color: #fff; border: none; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 10px; }
.it-btn:disabled { opacity: .5; cursor: not-allowed; }
.it-msg { font-size: 13px; padding: 9px 12px; border-radius: 8px; margin: 10px 0; }
.it-msg-error { background: #fef2f2; color: #991b1b; }
.it-msg-success { background: #dcfce7; color: #166534; }
.it-checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 13px; color: #374151; }
.it-checkbox-row input { margin-top: 2px; }
