/* Vila Stefana - admin calendar, manual booking form, date pickers (2026-11-05) */

/* Native date pickers inside the dark admin: white calendar icon and dark popup */
.bg-stone-950 input[type="date"], input.vac-date { color-scheme: dark; }
.bg-stone-950 input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .9; }

/* Public availability bar: whole-villa layout after removing the capacity and cost boxes */
@media (min-width: 1024px) { .vs-villa-col-4 { grid-column: span 4 / span 4; } }
@media (min-width: 640px) and (max-width: 1023px) { .vs-villa-btn { grid-column: span 2 / span 2; } }

/* Calendar */
.vac-wrap { display: flex; flex-direction: column; gap: 14px; color: #e7e5e4; }
.vac-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vac-title { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.vac-sub { font-size: 12px; color: #a8a29e; margin: 4px 0 0; max-width: 60ch; line-height: 1.45; }
.vac-nav { display: flex; align-items: center; gap: 6px; }
.vac-month { min-width: 150px; text-align: center; font-weight: 700; font-size: 14px; color: #fde68a; text-transform: capitalize; }
.vac-btn { border: 1px solid #44403c; background: #292524; color: #e7e5e4; border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.vac-btn:hover { background: #3f3a36; }
.vac-btn:disabled { opacity: .5; cursor: not-allowed; }
.vac-btn-ghost { background: transparent; }
.vac-btn-primary { background: #065f46; border-color: #047857; color: #fff; }
.vac-btn-primary:hover { background: #047857; }
.vac-btn-warn { background: #b45309; border-color: #d97706; color: #fff; }
.vac-btn-warn:hover { background: #d97706; }
.vac-btn-danger { background: #7f1d1d; border-color: #991b1b; color: #fecaca; }
.vac-btn-danger:hover { background: #991b1b; }
.vac-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; }
.vac-legend-note { color: #a8a29e; margin-left: auto; }
.vac-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .vac-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.vac-grid-wrap { border: 1px solid #292524; border-radius: 16px; background: #1c1917; overflow: hidden; }
.vac-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.vac-dow-row { border-bottom: 1px solid #292524; background: #0c0a09; }
.vac-dow { padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #a8a29e; }
.vac-cell { min-height: 92px; padding: 6px; border-right: 1px solid #292524; border-bottom: 1px solid #292524; background: #1c1917; cursor: pointer; display: flex; flex-direction: column; gap: 4px; outline: none; transition: background .12s; }
.vac-cell:nth-child(7n) { border-right: 0; }
.vac-cell:hover, .vac-cell:focus-visible { background: #292524; }
.vac-cell.is-weekend { background: #211d19; }
.vac-cell.is-other { opacity: .42; }
.vac-cell.is-past .vac-day { color: #78716c; }
.vac-cell.is-today .vac-day { background: #fbbf24; color: #1c1917; }
.vac-cell.is-range { background: #0f2f26; box-shadow: inset 0 0 0 1px #065f46; }
.vac-cell.is-start { box-shadow: inset 0 0 0 2px #10b981; }
.vac-cell-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.vac-day { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #e7e5e4; }
.vac-price { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px; color: #a8a29e; }
.vac-cell.is-weekend .vac-price { color: #fcd34d; }
.vac-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vac-chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; padding: 2px 6px; font-size: 10px; font-weight: 700; line-height: 1.35; border: 1px solid transparent; text-align: left; cursor: pointer; }
.vac-chip-villa { background: #d97706; color: #1c1917; border-color: #f59e0b; }
.vac-chip-villa-conf { background: #5b21b6; color: #f5f3ff; border-color: #7c3aed; }
.vac-chip-conf { background: #065f46; color: #d1fae5; border-color: #047857; }
.vac-chip-pend { background: #78350f; color: #fde68a; border-color: #92400e; }
.vac-chip-block { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
.vac-more { font-size: 10px; color: #a8a29e; }
.vac-panel { border: 1px solid #292524; border-radius: 16px; background: #1c1917; padding: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.vac-panel-head { display: flex; flex-direction: column; gap: 2px; }
.vac-panel-head strong { color: #fff; font-size: 14px; }
.vac-muted { color: #a8a29e; font-size: 11px; line-height: 1.4; }
.vac-rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vac-rooms li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #0c0a09; border: 1px solid #292524; }
.vac-rooms li.is-free .vac-room-state { color: #6ee7b7; }
.vac-rooms li.is-busy .vac-room-state { color: #fcd34d; }
.vac-rooms li.is-block .vac-room-state { color: #fca5a5; }
.vac-room-state { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vac-estimate { padding: 8px 10px; border-radius: 10px; background: #0c0a09; border: 1px solid #292524; }
.vac-estimate strong { color: #fde68a; }
.vac-block-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: #2a0f0f; border: 1px solid #7f1d1d; }
.vac-block-card strong { color: #fecaca; }
.vac-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.vac-panel-empty { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.vac-panel-empty strong { color: #fff; }
.vac-upcoming { border-top: 1px solid #292524; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.vac-upcoming strong { color: #e7e5e4; }
.vac-upcoming ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.vac-upcoming li { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vac-link { background: none; border: 0; padding: 0; color: #fca5a5; text-align: left; cursor: pointer; font-size: 11px; text-decoration: underline; }
.vac-x { background: #292524; border: 1px solid #44403c; color: #e7e5e4; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: 14px; line-height: 1; }
.vac-x:hover { background: #7f1d1d; }

/* Manual booking form */
.vac-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vac-room-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vac-room-pick { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid #44403c; background: #0c0a09; color: #d6d3d1; cursor: pointer; font-size: 12px; }
.vac-room-pick.is-on { border-color: #10b981; background: #0f2f26; color: #fff; }
.vac-room-pick input { accent-color: #10b981; }
.vac-estimate-box { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: #0c0a09; border: 1px solid #292524; color: #fde68a; font-weight: 600; }
