/* =========================================================
   FUMBANI — Brand Theme
   ========================================================= */

:root {
  --ink:        #0a2a1f;
  --gold:       #d4a574;
  --gold-deep:  #b8895a;
  --gold-soft:  #f5e6d0;
  --bone:       #faf8f4;
  --moss:       #2d5a3f;
  --sage:       #5a8268;
  --rose:       #c84d4d;
  --green:      #25D366;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card:     0 2px 8px rgba(10, 42, 31, 0.08);
  --shadow-elevated: 0 8px 24px rgba(10, 42, 31, 0.12);
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  color: var(--ink);
}

.btn-primary {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--ink) !important;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--gold-deep) !important;
  border-color: var(--gold-deep) !important;
  color: var(--ink) !important;
}

.btn-secondary {
  background: var(--moss) !important;
  border-color: var(--moss) !important;
  color: #fff !important;
}

.btn-danger {
  background: var(--rose) !important;
  border-color: var(--rose) !important;
  color: #fff !important;
}

.btn-outline-primary {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.btn-outline-primary:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

.card {
  border-color: var(--sage);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.card-header {
  background: var(--bone);
  border-bottom-color: var(--gold-soft);
  font-family: var(--font-display);
}

.badge.bg-primary { background: var(--gold) !important; color: var(--ink) !important; }
.badge.bg-secondary { background: var(--moss) !important; }
.badge.bg-success { background: var(--moss) !important; }
.badge.bg-danger { background: var(--rose) !important; }

.table thead th {
  background: var(--ink) !important;
  color: var(--gold-soft) !important;
  font-weight: 600;
}

a { color: var(--moss); }
a:hover { color: var(--gold-deep); }

.text-primary { color: var(--gold) !important; }
.text-secondary { color: var(--moss) !important; }
.text-success { color: var(--moss) !important; }
.text-danger { color: var(--rose) !important; }

.bg-primary { background: var(--gold) !important; }
.bg-secondary { background: var(--moss) !important; }
.bg-success { background: var(--moss) !important; }
.bg-danger { background: var(--rose) !important; }

.page-item.active .page-link {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--ink) !important;
}
.page-link { color: var(--moss); }

.form-control:focus, .form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25) !important;
}

.btn-whatsapp {
  background: var(--green);
  color: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-whatsapp:hover { background: #1da851; color: #fff; }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.whatsapp-float i { font-size: 28px; }

.text-gold { color: var(--gold); }
.text-ink { color: var(--ink); }
.text-moss { color: var(--moss); }
.text-sage { color: var(--sage); }
.bg-bone { background: var(--bone); }
.bg-gold-soft { background: var(--gold-soft); }
.bg-ink { background: var(--ink); }
.border-sage { border-color: var(--sage); }
.rounded-fumbani { border-radius: var(--radius-md); }

.modal-header {
  background: var(--bone);
  border-bottom-color: var(--gold-soft);
}
.modal-header .modal-title {
  font-family: var(--font-display);
  color: var(--ink);
}

.alert-primary { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }

.nav-tabs .nav-link.active { color: var(--gold) !important; border-bottom-color: var(--gold) !important; }

/* ════════════════════════════════════════════════════════
   UI POLISH — Transitions, Animations, Premium Touches
   ════════════════════════════════════════════════════════ */

/* ─── Smooth Transitions ──────────────────────────────── */
.card, .btn, a, .badge, .nav-link, .dropdown-item, .form-control, .form-select {
  transition: all 0.2s ease-in-out !important;
}

.card:hover {
  box-shadow: var(--shadow-elevated) !important;
}

/* ─── Button Premium ──────────────────────────────────── */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* ─── Card Premium ────────────────────────────────────── */
.card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.card-header {
  border-bottom: 2px solid var(--gold-soft);
  padding: 16px 20px;
}
.card-body {
  padding: 20px;
}

/* ─── Table Premium ───────────────────────────────────── */
.table {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 2px solid var(--sage) !important;
}
.table td {
  padding: 12px 16px;
  vertical-align: middle;
}

/* ─── Badge Premium ────────────────────────────────────── */
.badge {
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ─── Nav / Sidebar Premium ────────────────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ─── Dropdown Premium ─────────────────────────────────── */
.dropdown-menu {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 6px;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 500;
}

/* ─── Pagination Premium ───────────────────────────────── */
.page-link {
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  border: 1px solid var(--gold-soft) !important;
  font-weight: 500;
}
.page-item.active .page-link {
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

/* ─── Modal Premium ────────────────────────────────────── */
.modal-content {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(10, 42, 31, 0.2);
}

/* ─── Alert Premium ────────────────────────────────────── */
.alert {
  border-radius: var(--radius-md);
  border-left-width: 4px;
  font-weight: 500;
}
.alert-primary {
  border-left-color: var(--gold);
}

/* ─── Progress Bar Premium ─────────────────────────────── */
.progress {
  border-radius: 20px;
  background: var(--gold-soft);
}
.progress-bar {
  border-radius: 20px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
}

/* ─── Form Premium ─────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #e0ddd7;
  padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}
.form-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ─── Tooltip Premium ──────────────────────────────────── */
.tooltip-inner {
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
}

/* ─── Scrollbar (Webkit) ───────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bone);
}
::-webkit-scrollbar-thumb {
  background: var(--sage);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--moss);
}

/* ─── Skeleton Loading ─────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gold-soft) 25%, #f0ebe0 50%, var(--gold-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── WhatsApp Float Animation ──────────────────────────── */
.whatsapp-float {
  animation: whatsapp-bounce 2s ease-in-out infinite;
}
@keyframes whatsapp-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.whatsapp-float:hover {
  animation: none;
  transform: scale(1.15);
}

/* ─── Toast Premium ────────────────────────────────────── */
.toast, .toastr {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-elevated) !important;
}

/* ─── Ink Background Section ───────────────────────────── */
.bg-ink-gradient {
  background: linear-gradient(135deg, var(--ink) 0%, var(--moss) 100%);
}

/* ─── Gold Accent Border ───────────────────────────────── */
.gold-border-bottom {
  border-bottom: 3px solid var(--gold);
}

/* ─── Breadcrumb Polish ────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--sage);
}

/* ════════════════════════════════════════════════════════
   MOBILE-FIRST UX — Instagram-Inspired
   ════════════════════════════════════════════════════════ */

/* ─── Safe Area (notched phones) ────────────────────────── */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .main-wrapper {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ─── Touch-Friendly Targets (min 44px) ────────────────── */
.btn, 
.nav-link,
.dropdown-item,
a[href],
button,
input[type="submit"],
input[type="button"],
.page-link,
.badge,
.close,
.toggle-password {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Reduce where it visually makes sense */
.btn-sm {
  min-height: 36px;
  min-width: 36px;
}
.btn-xs {
  min-height: 28px;
  min-width: 28px;
}

/* ─── Card Tap Feedback (Instagram-style) ──────────────── */
.card:active,
.service-card:active,
.category-card:active,
.dash-widget:active,
.prov-widget:active {
  transform: scale(0.98) !important;
  transition: transform 0.1s ease, opacity 0.1s ease;
  opacity: 0.9;
}

/* ─── Smooth Tap Highlight ─────────────────────────────── */
* {
  -webkit-tap-highlight-color: rgba(212, 165, 116, 0.2);
}

/* ─── Responsive Typography (clamp-based scaling) ──────── */
h1, .h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2, .h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
h4, .h4 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h5, .h5 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
h6, .h6 { font-size: clamp(0.9rem, 2vw, 1.1rem); }
p, .p, body, .body {
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ─── Bottom Navigation (mobile) ────────────────────────── */
@media (max-width: 768px) {
  /* Hide sidebar on mobile, show bottom nav */
  .sidebar, #sidebar, .left-sidebar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 64px !important;
    background: var(--ink) !important;
    z-index: 1050 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
  }

  .sidebar .sidebar-inner,
  .sidebar .slimscroll {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .sidebar .sidebar-menu {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
  }

  .sidebar .sidebar-menu ul {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-around !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .sidebar .sidebar-menu ul li {
    flex: 1 !important;
    list-style: none !important;
  }

  .sidebar .sidebar-menu ul li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px !important;
    font-size: 10px !important;
    gap: 2px !important;
    color: var(--gold-soft) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    min-height: 56px !important;
  }

  .sidebar .sidebar-menu ul li a i,
  .sidebar .sidebar-menu ul li a .menu-icon {
    font-size: 22px !important;
    margin: 0 !important;
  }

  .sidebar .sidebar-menu ul li a span {
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .sidebar .sidebar-menu ul li a:hover,
  .sidebar .sidebar-menu ul li.active a {
    background: rgba(212, 165, 116, 0.12) !important;
    color: var(--gold) !important;
  }

  .sidebar .sidebar-menu ul li.active a {
    border-right: none !important;
    border-top: 2px solid var(--gold) !important;
  }

  .sidebar .sidebar-menu .submenu-hdr,
  .sidebar .sidebar-menu .menu-arrow {
    display: none !important;
  }

  .sidebar .sidebar-menu ul li.submenu ul {
    display: none !important;
  }

  /* Push main content above bottom nav */
  .main-wrapper,
  .page-wrapper,
  .content {
    padding-bottom: 72px !important;
  }

  /* Hide header-left sidebar toggle */
  .header-left #toggle_btn {
    display: none !important;
  }

  /* Make header more compact on mobile */
  .header {
    padding: 8px 12px !important;
  }
  .header .header-left {
    width: auto !important;
  }

  /* Larger touch targets for buttons */
  .btn {
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
}

/* ─── Pull-to-Refresh Visual Cue ─────────────────────────── */
.refresh-indicator {
  text-align: center;
  padding: 16px;
  color: var(--sage);
  font-size: 14px;
}
.refresh-indicator .spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: refresh-spin 0.8s linear infinite;
}
@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

/* ─── Instagram-Style Story Row (for categories) ─────────── */
.story-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.story-row::-webkit-scrollbar { display: none; }
.story-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  text-align: center;
  width: 72px;
}
.story-item .story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 2px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
}
.story-item .story-label {
  font-size: 11px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 72px;
}

/* ─── Bottom Sheet Style ─────────────────────────────────── */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(10, 42, 31, 0.15);
  z-index: 1060;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.bottom-sheet.show {
  transform: translateY(0);
}
.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--sage);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ─── Toast / Snackbar ──────────────────────────────────── */
.toast {
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(10, 42, 31, 0.15) !important;
}

/* ─── Skeleton Loading (brand shimmer) ──────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gold-soft) 25%,
    #f5ede0 37%,
    var(--gold-soft) 63%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Loading Spinner (brand) ────────────────────────────── */
.spinner-border {
  color: var(--gold) !important;
}

/* ════════════════════════════════════════════════════════
   INSTAGRAM-STYLE LIKE ANIMATION
   ════════════════════════════════════════════════════════ */

/* ─── Heart Button ──────────────────────────────────────── */
.btn-like, .fumbani-heart {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 22px;
  transition: transform 0.15s ease, color 0.15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.btn-like:hover, .fumbani-heart:hover {
  color: var(--rose);
  transform: scale(1.1);
}
.btn-like:active, .fumbani-heart:active {
  transform: scale(0.9);
}
.btn-like.liked, .fumbani-heart.liked {
  color: var(--rose);
}
.btn-like.liked i, .fumbani-heart.liked i {
  animation: heart-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pop {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.3); }
  30%  { transform: scale(1.0); }
  45%  { transform: scale(1.2); }
  60%  { transform: scale(1.0); }
  100% { transform: scale(1); }
}

/* ─── Instagram-style burst particles ───────────────────── */
.heart-burst {
  position: absolute;
  pointer-events: none;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}
.heart-burst span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  animation: heart-burst-particle 0.6s ease-out forwards;
}
@keyframes heart-burst-particle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx, 20px), var(--ty, -20px)) scale(0);
    opacity: 0;
  }
}

/* ─── Card Heart Overlay (tap anywhere to like) ─────────── */
.card-like-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  cursor: pointer;
}
.card-heart-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 72px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: none;
}
.card-heart-icon.animate {
  animation: card-heart-ripple 0.8s ease-out forwards;
}
@keyframes card-heart-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════════════
   MICRO-INTERACTIONS — Focus Rings & Success Checkmarks
   ════════════════════════════════════════════════════════ */

/* ─── Enhanced Focus Ring with brand glow ─────────────── */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow:
    0 0 0 3px rgba(212, 165, 116, 0.15),
    0 0 0 1px var(--gold) !important;
  transition: border-color 0.15s ease, box-shadow 0.2s ease !important;
}

/* ─── Focus ring for buttons (keyboard nav accessibility) */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Success Checkmark Animation ───────────────────────── */
.success-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-size: 14px;
  animation: checkmark-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-checkmark-lg {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

@keyframes checkmark-pop {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.3); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── Success state for inputs ─────────────────────────── */
.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--moss) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d5a3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px !important;
}
.form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(45, 90, 63, 0.15) !important;
}

/* ─── Error shake animation ────────────────────────────── */
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(200, 77, 77, 0.15) !important;
}
@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-4px); }
  30%, 70% { transform: translateX(4px); }
}
.form-control.is-invalid.shake {
  animation: input-shake 0.4s ease;
}

/* ─── On-hover scale for cards with like ────────────────── */
.card.fumbani-card-interactive {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card.fumbani-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}
.card.fumbani-card-interactive:active {
  transform: scale(0.98);
}

/* ─── Mobile Modal ───────────────────────────────────────── */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0 !important;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
  }
  .modal-content {
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    max-height: 90vh;
  }
  .modal-header {
    padding: 16px 20px 8px;
  }
  .modal-body {
    padding: 16px 20px;
  }
}

/* ════════════════════════════════════════════════════════
   STICKY CTA — Mobile Booking Action Button
   ════════════════════════════════════════════════════════ */
.sticky-booking-cta {
  display: none;
}
@media (max-width: 768px) {
  .sticky-booking-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--ink);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0));
    box-shadow: 0 -4px 20px rgba(10, 42, 31, 0.2);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
  }
  .sticky-booking-cta .cta-info {
    flex: 1;
    min-width: 0;
  }
  .sticky-booking-cta .cta-info .cta-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-soft);
    font-family: var(--font-display);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sticky-booking-cta .cta-info .cta-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
  }
  .sticky-booking-cta .btn-cta {
    background: var(--gold);
    color: var(--ink);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
  }
  .sticky-booking-cta .btn-cta:hover,
  .sticky-booking-cta .btn-cta:active {
    background: var(--gold-deep);
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
  }
  .sticky-booking-cta .btn-cta:active {
    transform: scale(0.95);
  }
  /* Override bottom nav to account for CTA */
  .sticky-booking-cta + .sidebar,
  .sticky-booking-cta + #sidebar {
    bottom: 68px !important;
  }
  body.has-sticky-cta .page-wrapper,
  body.has-sticky-cta .content {
    padding-bottom: calc(72px + 68px) !important;
  }
  @supports (padding: env(safe-area-inset-bottom)) {
    .sticky-booking-cta + .sidebar,
    .sticky-booking-cta + #sidebar {
      bottom: calc(68px + env(safe-area-inset-bottom, 0)) !important;
    }
  }
}

/* ─── Sticky CTA Entrance Animation ─────────────────────── */
.sticky-booking-cta.show {
  animation: cta-slide-up 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes cta-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ════════════════════════════════════════════════════════
   WHATSAPP TOOLTIP / NOTIFICATION BADGE
   ════════════════════════════════════════════════════════ */

/* ─── Tooltip bubble ──────────────────────────────────── */
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-50%) translateX(8px);
  font-family: var(--font-body);
}
.whatsapp-float .wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ─── Notification Badge ──────────────────────────────── */
.whatsapp-float .wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(200, 77, 77, 0.3);
  border: 2px solid #fff;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ─── Mobile CTA excludes WhatsApp float overlap ──────── */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: calc(80px + env(safe-area-inset-bottom, 0));
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float i { font-size: 24px; }
  .whatsapp-float .wa-tooltip { display: none; }

  .whatsapp-float .wa-badge {
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    border-width: 1.5px;
  }
}
