/* Public services pages: services.php, service-details.php, guest/service-bookings.php */
.sv-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; font-family: Inter, system-ui, sans-serif; color: #111827; }
.sv-wrap a { color: inherit; }
.sv-h1 { font-size: 1.5rem; font-weight: 600; margin: 8px 0 18px; }
.sv-h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 14px; }
.sv-muted { color: #6b7280; }
.sv-small { font-size: .85rem; }

/* alerts */
.sv-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: .92rem; }
.sv-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sv-alert.danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sv-alert ul { margin: 0; padding-left: 18px; }

/* "continue searching" strip */
.sv-resume { border-bottom: 1px solid #e5e7eb; background: #fff; }
.sv-resume a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 24px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.sv-resume a:hover { background: #f9fafb; }
.sv-resume i { color: #16a34a; }

/* category tiles */
.sv-tiles { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; scrollbar-width: none; }
.sv-tiles::-webkit-scrollbar { display: none; }
.sv-tile { flex: 0 0 auto; width: 122px; text-decoration: none; text-align: left; }
.sv-tile .ic { display: flex; align-items: center; justify-content: center; height: 122px; border-radius: 22px; background: #f5f5f5; font-size: 2.6rem; color: #374151; transition: background .2s, transform .2s; }
.sv-tile:hover .ic { background: #ececec; transform: translateY(-2px); }
.sv-tile.active .ic { background: #dcfce7; color: #15803d; box-shadow: inset 0 0 0 2px #16a34a; }
.sv-tile span { display: block; margin-top: 8px; font-size: .88rem; font-weight: 500; }

/* rows + grid of cards */
.sv-row { margin-bottom: 34px; }
.sv-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sv-row-head a { font-size: .88rem; font-weight: 500; text-decoration: underline; }
.sv-scroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.sv-scroll .sv-card { flex: 0 0 236px; scroll-snap-align: start; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 24px 18px; }
.sv-card { display: block; text-decoration: none; }
.sv-card .im { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f3f4f6; }
.sv-card .im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sv-card:hover .im img { transform: scale(1.04); }
.sv-card .im .noimg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #9ca3af; }
.sv-card .tag { position: absolute; left: 10px; top: 10px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.sv-card .t { margin-top: 10px; font-weight: 600; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-card .s { color: #6b7280; font-size: .85rem; margin-top: 2px; }
.sv-card .p { margin-top: 4px; font-size: .9rem; }
.sv-card .p b { font-weight: 600; }
.sv-empty { text-align: center; padding: 60px 20px; color: #6b7280; border: 1px dashed #d1d5db; border-radius: 16px; }
.sv-empty i { font-size: 2.2rem; display: block; margin-bottom: 8px; }

/* details page */
.sv-crumb { font-size: .88rem; margin-bottom: 8px; }
.sv-crumb a { text-decoration: underline; }
.sv-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; border-radius: 18px; overflow: hidden; margin: 14px 0 28px; }
.sv-gallery.one { grid-template-columns: 1fr; grid-template-rows: 420px; }
.sv-gallery.two { grid-template-columns: 2fr 1fr; grid-template-rows: 408px; }
.sv-gallery .g { position: relative; overflow: hidden; background: #f3f4f6; cursor: pointer; border: 0; padding: 0; }
.sv-gallery .g:first-child { grid-row: span 2; }
.sv-gallery.two .g:first-child { grid-row: auto; }
.sv-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.sv-gallery .g:hover img { filter: brightness(.92); }
.sv-gallery .more { position: absolute; right: 12px; bottom: 12px; background: #fff; border-radius: 10px; padding: 6px 12px; font-size: .82rem; font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.sv-lightbox { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; }
.sv-lightbox.show { display: flex; }
.sv-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.sv-lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.sv-lightbox .x { top: 18px; right: 18px; } .sv-lightbox .pv { left: 18px; } .sv-lightbox .nx { right: 18px; }

.sv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.sv-sect { padding: 24px 0; border-bottom: 1px solid #e5e7eb; }
.sv-sect:last-child { border-bottom: 0; }
.sv-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sv-fact { display: flex; align-items: center; gap: 8px; background: #f3f4f6; border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 500; }
.sv-fact i { color: #16a34a; }
.sv-desc { line-height: 1.7; white-space: pre-line; }
.sv-hours { width: 100%; max-width: 420px; border-collapse: collapse; font-size: .92rem; }
.sv-hours td { padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.sv-hours td:last-child { text-align: right; color: #374151; }
.sv-hours .off td:last-child { color: #9ca3af; }

/* booking panel */
.sv-book { position: sticky; top: 100px; border: 1px solid #e5e7eb; border-radius: 18px; padding: 24px; box-shadow: 0 6px 20px rgba(0,0,0,.1); background: #fff; }
.sv-book .price { font-size: 1.4rem; font-weight: 600; }
.sv-book .price small { font-size: .9rem; font-weight: 400; color: #6b7280; }
.sv-lab { display: block; font-size: .78rem; font-weight: 600; margin: 14px 0 6px; }
.sv-in { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: .92rem; background: #fff; }
.sv-in:focus { outline: 2px solid #16a34a; outline-offset: -1px; border-color: #16a34a; }
textarea.sv-in { resize: vertical; min-height: 70px; }
.sv-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sv-slot { border: 1px solid #d1d5db; border-radius: 10px; background: #fff; padding: 9px 4px; font: inherit; font-size: .84rem; cursor: pointer; text-align: center; }
.sv-slot:hover { border-color: #111827; }
.sv-slot.on { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 600; }
.sv-slot-note { font-size: .85rem; color: #6b7280; padding: 6px 0; }
.sv-radio { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-radio label { flex: 1 1 0; border: 1px solid #d1d5db; border-radius: 12px; padding: 10px; text-align: center; font-size: .86rem; cursor: pointer; }
.sv-radio input { display: none; }
.sv-radio input:checked + span { font-weight: 600; }
.sv-radio label:has(input:checked) { border-color: #16a34a; background: #f0fdf4; }
.sv-total { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e5e7eb; font-weight: 600; }
.sv-btn { display: block; width: 100%; box-sizing: border-box; margin-top: 16px; border: 0; border-radius: 12px; padding: 14px; background: #16a34a; color: #fff !important; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: filter .2s; }
.sv-btn:hover { filter: brightness(.92); }
.sv-btn:disabled { background: #d1d5db; cursor: not-allowed; filter: none; }
.sv-btn.ghost { background: #fff; color: #111827 !important; border: 1px solid #d1d5db; }
.sv-note { font-size: .78rem; color: #6b7280; text-align: center; margin-top: 10px; }

/* guest bookings list */
.sv-bk { border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; margin-bottom: 14px; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start; background: #fff; }
.sv-bk img, .sv-bk .noimg { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #9ca3af; }
.sv-bk h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.sv-bk .meta { font-size: .88rem; color: #4b5563; line-height: 1.6; }
.sv-bk .acts { text-align: right; }
.sv-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.sv-badge.pending { background: #fef3c7; color: #92400e; }
.sv-badge.confirmed { background: #dcfce7; color: #166534; }
.sv-badge.completed { background: #e0e7ff; color: #3730a3; }
.sv-badge.rejected, .sv-badge.cancelled { background: #fee2e2; color: #991b1b; }
.sv-link-btn { background: none; border: 1px solid #d1d5db; border-radius: 10px; padding: 7px 14px; font: inherit; font-size: .84rem; cursor: pointer; margin-top: 10px; }
.sv-link-btn:hover { border-color: #991b1b; color: #991b1b; }
.sv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.sv-tabs a { border: 1px solid #d1d5db; border-radius: 999px; padding: 7px 16px; font-size: .86rem; text-decoration: none; }
.sv-tabs a.on { background: #111827; color: #fff; border-color: #111827; }

@media (max-width: 991px) {
  .sv-cols { grid-template-columns: 1fr; gap: 8px; }
  .sv-book { position: static; }
}
@media (max-width: 767px) {
  .sv-wrap { padding: 16px 16px 48px; }
  .sv-gallery, .sv-gallery.two { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .sv-gallery .g:not(:first-child) { display: none; }
  .sv-tile { width: 96px; } .sv-tile .ic { height: 96px; font-size: 2.1rem; }
  .sv-scroll .sv-card { flex-basis: 200px; }
  .sv-slots { grid-template-columns: repeat(3, 1fr); }
  .sv-bk { grid-template-columns: 72px 1fr; }
  .sv-bk img, .sv-bk .noimg { width: 72px; height: 72px; }
  .sv-bk .acts { grid-column: 1 / -1; text-align: left; }
}
