/* ============================================================
   HLD – Global Design System (Frontend)
   Primary: #4f46e5 (Indigo)  Surface: #f8fafc  Text: #1e293b
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --hld-primary:       #4f46e5;
  --hld-primary-dark:  #3730a3;
  --hld-primary-light: #ede9fe;
  --hld-accent:        #7c3aed;
  --hld-success:       #10b981;
  --hld-warning:       #f59e0b;
  --hld-danger:        #ef4444;
  --hld-surface:       #ffffff;
  --hld-bg:            #f0f4f8;
  --hld-border:        #e2e8f0;
  --hld-text:          #1e293b;
  --hld-text-muted:    #64748b;
  --hld-text-light:    #94a3b8;
  --hld-radius:        10px;
  --hld-radius-lg:     16px;
  --hld-shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --hld-shadow:        0 4px 16px rgba(0,0,0,.08);
  --hld-shadow-lg:     0 8px 32px rgba(0,0,0,.12);
  --hld-transition:    .2s cubic-bezier(.4,0,.2,1);
  --hld-font:          -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
}

/* ── Base Reset ───────────────────────────────────────────── */
.hld-wrap { font-family: var(--hld-font); color: var(--hld-text); line-height: 1.6; }
.hld-wrap *, .hld-wrap *::before, .hld-wrap *::after { box-sizing: border-box; }

/* ── Buttons ──────────────────────────────────────────────── */
.hld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--hld-radius); border: none;
  font-family: var(--hld-font); font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all var(--hld-transition);
  white-space: nowrap; line-height: 1;
}
.hld-btn-primary   { background: var(--hld-primary); color: #fff; }
.hld-btn-primary:hover { background: var(--hld-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.35); text-decoration: none; }
.hld-btn-secondary { background: var(--hld-surface); color: var(--hld-primary); border: 1.5px solid var(--hld-primary); }
.hld-btn-secondary:hover { background: var(--hld-primary-light); color: var(--hld-primary); text-decoration: none; }
.hld-btn-success   { background: var(--hld-success); color: #fff; }
.hld-btn-success:hover { opacity: .88; }
.hld-btn-danger    { background: var(--hld-danger); color: #fff; }
.hld-btn-danger:hover  { opacity: .88; }
.hld-btn-ghost     { background: transparent; color: var(--hld-text-muted); border: 1.5px solid var(--hld-border); }
.hld-btn-ghost:hover   { background: var(--hld-bg); color: var(--hld-text); }
.hld-btn-sm        { padding: 6px 14px; font-size: 13px; }
.hld-btn-lg        { padding: 14px 30px; font-size: 16px; }
.hld-btn:disabled  { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Form Elements ────────────────────────────────────────── */
.hld-form-group      { margin-bottom: 20px; }
.hld-form-label      { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--hld-text); letter-spacing: .01em; }
.hld-form-label span { color: var(--hld-danger); margin-left: 2px; }
.hld-form-hint       { display: block; margin-top: 5px; font-size: 12px; color: var(--hld-text-muted); }

.hld-input,
.hld-select,
.hld-textarea {
  width: 100%; padding: 11px 14px; font-family: var(--hld-font); font-size: 14px;
  color: var(--hld-text); background: var(--hld-surface);
  border: 1.5px solid var(--hld-border); border-radius: var(--hld-radius);
  transition: border-color var(--hld-transition), box-shadow var(--hld-transition);
  outline: none; appearance: none; -webkit-appearance: none;
}
.hld-input:focus, .hld-select:focus, .hld-textarea:focus {
  border-color: var(--hld-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.hld-input::placeholder, .hld-textarea::placeholder { color: var(--hld-text-light); }
.hld-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.hld-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.hld-input-error { border-color: var(--hld-danger) !important; }

/* Inline select group */
.hld-select-group       { display: flex; flex-wrap: wrap; gap: 10px; }
.hld-select-group select { flex: 1; min-width: 160px; }

/* ── Cards ────────────────────────────────────────────────── */
.hld-card {
  background: var(--hld-surface); border: 1px solid var(--hld-border);
  border-radius: var(--hld-radius-lg); box-shadow: var(--hld-shadow-sm);
  overflow: hidden; transition: box-shadow var(--hld-transition);
}
.hld-card:hover              { box-shadow: var(--hld-shadow); }
.hld-card-header             { padding: 18px 22px; border-bottom: 1px solid var(--hld-border); }
.hld-card-title              { font-size: 15px; font-weight: 700; color: var(--hld-text); margin: 0; }
.hld-card-body               { padding: 22px; }
.hld-card-footer             { padding: 14px 22px; border-top: 1px solid var(--hld-border); background: var(--hld-bg); }

/* ── Alerts ───────────────────────────────────────────────── */
.hld-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--hld-radius);
  font-size: 14px; line-height: 1.5; margin-bottom: 20px;
}
.hld-alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.hld-alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.hld-alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.hld-alert-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* ── Badges ───────────────────────────────────────────────── */
.hld-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.hld-badge-primary  { background: var(--hld-primary-light); color: var(--hld-primary); }
.hld-badge-success  { background: #d1fae5; color: #065f46; }
.hld-badge-warning  { background: #fef3c7; color: #92400e; }
.hld-badge-danger   { background: #fee2e2; color: #991b1b; }
.hld-badge-neutral  { background: #f1f5f9; color: var(--hld-text-muted); }

/* ── Divider ──────────────────────────────────────────────── */
.hld-divider { border: none; border-top: 1px solid var(--hld-border); margin: 24px 0; }

/* ── Page Header ──────────────────────────────────────────── */
.hld-page-header {
  background: linear-gradient(135deg, var(--hld-primary) 0%, var(--hld-accent) 100%);
  padding: 40px 36px; border-radius: var(--hld-radius-lg); margin-bottom: 32px; color: #fff;
}
.hld-page-header h1  { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.hld-page-header p   { font-size: 15px; color: rgba(255,255,255,.82); margin: 0; }

/* ── Business Registration Form ───────────────────────────── */
.hld-register-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 40px;
  font-family: var(--hld-font);
}

.hld-register-wrap *, .hld-register-wrap *::before, .hld-register-wrap *::after {
  box-sizing: border-box;
}

/* ── Steps progress indicator ─────────────────────────────── */
.hld-reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}

.hld-reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.hld-reg-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--hld-border); color: var(--hld-text-muted);
  transition: all .2s;
}

.hld-reg-step.active .hld-reg-step-num {
  background: var(--hld-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
}

.hld-reg-step-label {
  font-size: 11px; font-weight: 600; color: var(--hld-text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}

.hld-reg-step.active .hld-reg-step-label { color: var(--hld-primary); }

.hld-reg-step-line {
  flex: 1; height: 2px;
  background: var(--hld-border);
  margin: 0 12px;
  margin-bottom: 22px;
}

/* ── Registration Card ────────────────────────────────────── */
.hld-register-card {
  background: var(--hld-surface);
  border: 1px solid var(--hld-border);
  border-radius: var(--hld-radius-lg);
  box-shadow: var(--hld-shadow);
  padding: 40px;
}

.hld-register-title {
  font-size: 22px; font-weight: 800; color: var(--hld-text); margin: 0 0 6px;
}

.hld-register-subtitle {
  font-size: 14px; color: var(--hld-text-muted); margin: 0 0 28px;
}

/* Two-column layout for registration form */
.hld-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.hld-reg-grid .hld-form-group.full { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .hld-reg-grid { grid-template-columns: 1fr; }
  .hld-register-card { padding: 24px 18px; }
  .hld-page-header { padding: 28px 20px; }
}

/* ── Location cascade ─────────────────────────────────────── */
.hld-location-cascade { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ── Visitor Business Profile ─────────────────────────────── */
.hld-biz-profile-wrap    { max-width: 960px; margin: 0 auto; font-family: var(--hld-font); }

.hld-biz-cover {
  width: 100%; height: 240px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--hld-radius-lg); overflow: hidden; position: relative;
}
.hld-biz-cover img { width: 100%; height: 100%; object-fit: cover; }

.hld-biz-identity {
  display: flex; align-items: flex-end; gap: 20px;
  padding: 0 24px; margin-top: -50px; position: relative; z-index: 2; margin-bottom: 24px;
}

.hld-biz-logo {
  width: 96px; height: 96px; border-radius: 16px; border: 4px solid #fff;
  background: var(--hld-primary-light); overflow: hidden; flex-shrink: 0;
  box-shadow: var(--hld-shadow);
}
.hld-biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.hld-biz-logo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: var(--hld-primary);
}
.hld-biz-meta { padding-bottom: 8px; flex: 1; min-width: 0; }
.hld-biz-name {
  font-size: 22px; font-weight: 800; color: var(--hld-text); margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hld-biz-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.hld-biz-content { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
@media (max-width: 760px) { .hld-biz-content { grid-template-columns: 1fr; } }

.hld-biz-section { margin-bottom: 28px; }
.hld-biz-section-title {
  font-size: 15px; font-weight: 700; color: var(--hld-text); margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--hld-border);
}

.hld-contact-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: var(--hld-radius); text-decoration: none; font-size: 14px; font-weight: 600;
  margin-bottom: 10px; transition: all var(--hld-transition); border: none; cursor: pointer;
  width: 100%; text-align: left;
}
.hld-contact-btn:hover { transform: translateX(4px); text-decoration: none; }
.hld-contact-wa    { background: #dcfce7; color: #166534; }
.hld-contact-wa:hover { background: #bbf7d0; color: #166534; }
.hld-contact-phone { background: #eff6ff; color: #1e40af; }
.hld-contact-phone:hover { background: #dbeafe; color: #1e40af; }
.hld-contact-web   { background: #f5f3ff; color: #6d28d9; }
.hld-contact-web:hover { background: #ede9fe; color: #6d28d9; }
.hld-contact-fb    { background: #eff6ff; color: #1d4ed8; }
.hld-contact-ig    { background: #fdf2f8; color: #9d174d; }
.hld-contact-icon  {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,0,0,.07); display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* Updates on profile */
.hld-biz-update-card { padding: 18px; border: 1px solid var(--hld-border); border-radius: var(--hld-radius); margin-bottom: 14px; transition: box-shadow var(--hld-transition); }
.hld-biz-update-card:hover { box-shadow: var(--hld-shadow); }
.hld-biz-update-title { font-size: 15px; font-weight: 700; color: var(--hld-text); margin: 0 0 6px; }
.hld-biz-update-date  { font-size: 12px; color: var(--hld-text-muted); margin-bottom: 10px; }
.hld-biz-update-desc  { font-size: 14px; color: var(--hld-text-muted); line-height: 1.6; margin-bottom: 12px; white-space: pre-line; }
.hld-biz-update-imgs  { display: flex; flex-wrap: wrap; gap: 6px; }
.hld-biz-update-imgs img { width: 68px; height: 68px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--hld-border); }

/* Catalog Cards */
.hld-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.hld-cat-item { border: 1px solid var(--hld-border); border-radius: var(--hld-radius); overflow: hidden; transition: box-shadow var(--hld-transition); }
.hld-cat-item:hover { box-shadow: var(--hld-shadow); }
.hld-cat-item-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--hld-bg); }
.hld-cat-item-body { padding: 12px 14px; }
.hld-cat-item-name { font-size: 14px; font-weight: 700; color: var(--hld-text); margin: 0 0 4px; }
.hld-cat-item-price { font-size: 13px; font-weight: 700; color: var(--hld-primary); margin: 0 0 8px; }
.hld-cat-item-desc { font-size: 12px; color: var(--hld-text-muted); margin: 0; }

/* Hours table */
.hld-hours-grid   { display: grid; gap: 6px; }
.hld-hours-row    { display: flex; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--hld-bg); }
.hld-hours-day    { width: 100px; font-size: 13px; font-weight: 600; color: var(--hld-text); }
.hld-hours-time   { font-size: 13px; color: var(--hld-text-muted); }
.hld-hours-closed { font-size: 13px; color: var(--hld-danger); font-weight: 600; }
.hld-hours-today  { background: var(--hld-primary-light); }

/* Status pills */
.hld-sp-label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.hld-sp-verified { background: #d1fae5; color: #065f46; }
.hld-sp-unverified { background: #fef3c7; color: #92400e; }
.hld-sp-pending   { background: #eff6ff; color: #1e40af; }

/* ── Notice overrides ─────────────────────────────────────── */
.hld-wrap .notice {
  padding: 12px 16px; border-radius: 8px; border-left: 4px solid; margin-bottom: 20px;
  font-size: 14px;
}
.hld-wrap .notice-success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.hld-wrap .notice-error   { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
