/* AVAILT — full-width marketplace UI */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 10px 40px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 20px 50px rgba(37, 99, 235, 0.15);
  --radius: 12px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ——— Layout ——— */
.page-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section-head {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: "Poppins", var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— Sticky header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-link:hover {
  text-decoration: none;
  color: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.header-search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.header-search input {
  flex: 1;
  border: none;
  padding: 10px 18px;
  outline: none;
  min-width: 0;
}

.header-search button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.header-search button:hover {
  background: var(--primary-dark);
}

.header-search button:active {
  transform: scale(0.97);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-desktop a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-desktop a:hover {
  background: var(--bg);
  text-decoration: none;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--bg);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: background 0.2s, transform 0.15s;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-toggle:hover {
  background: var(--border);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 16px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 14px 12px;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px;
  text-decoration: none;
}

.nav-mobile a:hover {
  background: var(--bg);
  color: var(--primary);
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-ghost:hover {
  background: rgba(37, 99, 235, 0.08);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(380px, 55vh, 520px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(
      105deg,
      rgba(17, 24, 39, 0.85) 0%,
      rgba(37, 99, 235, 0.45) 50%,
      rgba(245, 158, 11, 0.25) 100%
    ),
    url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=2000&q=80");
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 40px);
}

.hero-inner h1 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-family: "Poppins", var(--font);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 720px;
}

.hero-inner .hero-sub {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 640px;
}

.hero-search input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-search .btn {
  flex-shrink: 0;
}

/* ——— Grids ——— */
.grid-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-food {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-food {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-categories,
  .grid-services,
  .grid-food {
    grid-template-columns: 1fr;
  }
}

/* ——— Cards ——— */
.card-category {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-category:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.card-category:active {
  transform: scale(0.99);
}

.card-category .thumb {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card-category .body {
  padding: 16px 18px;
}

.card-category h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.card-service {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-service .thumb-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-service .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-service:hover .thumb-wrap img {
  transform: scale(1.05);
}

.card-service .body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-service h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-service .type {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-service .address {
  font-size: 0.9rem;
  color: var(--text);
}

.card-service .rating {
  font-weight: 600;
  color: var(--secondary-dark);
}

.card-service .btn-wrap {
  margin-top: auto;
  padding-top: 12px;
}

.card-food {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

.card-food:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.card-food.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  transform: scale(1.01);
}

.card-food h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--primary);
}

.card-food .items {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-food .price {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

/* ——— Booking split ——— */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.service-preview img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ——— Dynamic booking ——— */
.category-booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.booking-form-main-title {
  margin: 0 0 20px;
  font-family: "Poppins", var(--font);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-section-icon {
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.form-section-title:hover .form-section-icon {
  transform: translateX(4px);
}

.booking-dynamic-panel {
  transition: box-shadow 0.25s ease;
}

.booking-dynamic-panel:hover {
  box-shadow: var(--shadow-hover);
}

.menu-section-embed {
  margin-top: 24px;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #fff 0%, rgba(37, 99, 235, 0.03) 100%);
}

.menu-section-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.booking-menu-grid {
  margin-top: 8px;
}

.booking-menu-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.booking-menu-card:hover {
  transform: translateY(-2px);
}

.booking-submit-btn {
  margin-top: 28px;
}

.menu-validation-msg {
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}

.summary-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
}

.summary-service-name {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
}

.summary-subtitle {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.summary-package .summary-muted {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
  max-width: 58%;
}

/* ——— Summary ——— */
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.summary-list li:last-child {
  border-bottom: none;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  padding-top: 16px;
  border-top: 2px dashed var(--border);
}

/* ——— Confirmation ——— */
.confirm-wrap {
  text-align: center;
  padding: clamp(48px, 10vw, 80px) 20px;
  max-width: 520px;
  margin: 0 auto;
}

.confirm-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}

.confirm-wrap h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.confirm-wrap p {
  color: var(--muted);
  margin: 0 0 28px;
}

/* ——— States ——— */
.loading-state,
.error-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.error-state {
  color: #b91c1c;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    #f3f4f6 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 8px;
  min-height: 120px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
}

.footer-mini {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
