/* ============================================================
   HABIBS SALON — beauty-model.css
   Interactive Beauty Model Section, Hotspots, Side Panel,
   Bottom Sheet, Service Modal — Premium Glassmorphism UI
   ============================================================ */

/* ── Beauty Model Section ─────────────────────────────────── */
.beauty-section {
  position: relative;
  background: linear-gradient(160deg, #1a0a1e 0%, #2d0a2a 40%, #1a0a1e 100%);
  padding: 0;
  overflow: hidden;
}

.beauty-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.beauty-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.beauty-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  align-items: center;
}

/* ── Left: Text Content ────────────────────────────────────── */
.beauty-content {
  padding: 80px 60px 80px 80px;
  color: #fff;
}

.beauty-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--pink-soft, #F8BBD9);
  margin-bottom: 24px;
}

.beauty-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--pink-soft, #F8BBD9);
  opacity: 0.7;
}

.beauty-heading {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.beauty-heading em {
  font-style: italic;
  color: var(--pink-soft, #F8BBD9);
}

.beauty-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 36px;
}

/* Category chips — clickable shortcuts */
.beauty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.beauty-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.28s ease;
  backdrop-filter: blur(8px);
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.beauty-chip:hover,
.beauty-chip.active {
  background: rgba(233, 30, 99, 0.25);
  border-color: rgba(233, 30, 99, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.25);
}

.beauty-chip-icon {
  font-size: 16px;
}

.beauty-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Right: Model Image + Hotspots ─────────────────────────── */
.beauty-model-wrap {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.beauty-model-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gradient fade bottom */
.beauty-model-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(transparent, #1a0a1e);
  pointer-events: none;
}

/* Gradient fade left */
.beauty-model-fade-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, #1a0a1e, transparent);
  pointer-events: none;
}

/* ── Hotspots ──────────────────────────────────────────────── */
.hotspot {
  position: absolute;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.hotspot-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.6),
              0 0 16px rgba(233, 30, 99, 0.5);
  transition: transform 0.2s ease;
  z-index: 2;
}

.hotspot:hover .hotspot-dot {
  transform: translate(-50%, -50%) scale(1.3);
}

/* Pulse ring animation */
.hotspot-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(233, 30, 99, 0.7);
  animation: hotspot-pulse 2.5s ease-in-out infinite;
}

.hotspot-ring2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  animation: hotspot-pulse 2.5s ease-in-out 1.25s infinite;
}

@keyframes hotspot-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Glow burst every 5s */
.hotspot.glowing .hotspot-dot {
  animation: hotspot-glow 0.6s ease-out;
}

@keyframes hotspot-glow {
  0%   { box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.6), 0 0 16px rgba(233, 30, 99, 0.5); }
  50%  { box-shadow: 0 0 0 6px rgba(233, 30, 99, 0.8), 0 0 40px rgba(233, 30, 99, 0.9), 0 0 80px rgba(212, 175, 55, 0.4); }
  100% { box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.6), 0 0 16px rgba(233, 30, 99, 0.5); }
}

/* Ripple effect (mobile tap) */
.hotspot-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.4);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* Tooltip */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 6, 22, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(233, 30, 99, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  white-space: nowrap;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 20;
}

.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(233, 30, 99, 0.35);
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Hotspot positions (calibrated for portrait model) ─────── */
[data-hotspot="hair"]     { top: 8%;  left: 50%; }
[data-hotspot="skin"]     { top: 47%; left: 58%; }
[data-hotspot="eyebrows"] { top: 35%; left: 38%; }
[data-hotspot="lips"]     { top: 54%; left: 49%; }

/* ── Side Panel (Desktop) ─────────────────────────────────── */
.beauty-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 0, 14, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.beauty-panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.beauty-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 92vw);
  z-index: 901;
  background: rgba(18, 5, 22, 0.96);
  backdrop-filter: blur(28px);
  border-left: 1px solid rgba(233, 30, 99, 0.2);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.beauty-panel.open {
  transform: translateX(0);
}

.beauty-panel-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.beauty-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.beauty-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.beauty-panel-heading {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.beauty-panel-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.beauty-panel-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.beauty-panel-close:hover {
  background: rgba(233, 30, 99, 0.2);
  border-color: rgba(233, 30, 99, 0.4);
  color: #fff;
}

.beauty-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 30, 99, 0.4) transparent;
}

.beauty-panel-body::-webkit-scrollbar { width: 4px; }
.beauty-panel-body::-webkit-scrollbar-thumb {
  background: rgba(233, 30, 99, 0.4);
  border-radius: 99px;
}

/* Panel service card */
.panel-service-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.panel-service-card:hover {
  background: rgba(233, 30, 99, 0.1);
  border-color: rgba(233, 30, 99, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233, 30, 99, 0.15);
}

.panel-service-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.panel-service-info {
  flex: 1;
  min-width: 0;
}

.panel-service-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.panel-service-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-service-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold, #D4AF37);
}

.panel-service-btn {
  padding: 6px 16px;
  background: rgba(233, 30, 99, 0.2);
  border: 1px solid rgba(233, 30, 99, 0.4);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body, sans-serif);
}

.panel-service-btn:hover {
  background: rgba(233, 30, 99, 0.5);
  border-color: rgba(233, 30, 99, 0.8);
}

/* ── Mobile Bottom Sheet ───────────────────────────────────── */
.beauty-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 901;
  background: rgba(18, 5, 22, 0.97);
  backdrop-filter: blur(28px);
  border-top: 1px solid rgba(233, 30, 99, 0.25);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.beauty-sheet.open {
  transform: translateY(0);
}

.beauty-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.beauty-sheet-header {
  padding: 16px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.beauty-sheet-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beauty-sheet-heading {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

.beauty-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-body, sans-serif);
}

.beauty-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 24px;
  -webkit-overflow-scrolling: touch;
}

/* ── Service Detail Modal ──────────────────────────────────── */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 0, 14, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.service-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.service-modal {
  background: rgba(22, 8, 28, 0.98);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(233, 30, 99, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 30, 99, 0.3) transparent;
}

.service-modal-overlay.open .service-modal {
  transform: scale(1) translateY(0);
}

.service-modal-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  display: block;
}

.service-modal-body {
  padding: 28px 32px 36px;
}

.service-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--pink-soft, #F8BBD9);
  margin-bottom: 12px;
}

.service-modal-name {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.15;
}

.service-modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.service-modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
}

.service-modal-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.service-modal-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 20px 0;
}

.service-modal-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.85;
  margin-bottom: 24px;
}

.service-modal-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.service-modal-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.service-modal-highlight::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.2);
  border: 1px solid rgba(233, 30, 99, 0.4);
  color: var(--pink-soft, #F8BBD9);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.service-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
  font-family: var(--font-body, sans-serif);
}

.service-modal-close-btn:hover {
  background: rgba(233, 30, 99, 0.3);
  border-color: rgba(233, 30, 99, 0.5);
}

.service-modal-wrap {
  position: relative;
}

/* ── "Explore Services" label on model ────────────────────── */
.beauty-explore-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float-hint 3s ease-in-out infinite;
}

.beauty-explore-hint svg {
  opacity: 0.6;
}

@keyframes float-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ── Floating action button inside panel ───────────────────── */
.panel-book-all-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 16px 20px 0;
  padding: 14px;
  text-align: center;
  background: linear-gradient(135deg, var(--pink, #E91E63), var(--pink-deep, #C2185B));
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: var(--font-body, sans-serif);
  box-shadow: 0 6px 28px rgba(233, 30, 99, 0.35);
  flex-shrink: 0;
}

.panel-book-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(233, 30, 99, 0.5);
}

/* ── Utility: no scroll on body when panel open ────────────── */
body.panel-open {
  overflow: hidden;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .beauty-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .beauty-content {
    padding: 64px 32px 40px;
    text-align: center;
  }

  .beauty-desc { margin: 0 auto 28px; }
  .beauty-chips { justify-content: center; }
  .beauty-cta { justify-content: center; }
  .beauty-eyebrow { justify-content: center; }

  .beauty-model-wrap {
    height: 70vw;
    min-height: 340px;
    max-height: 520px;
  }

  [data-hotspot="hair"]     { top: 10%;  left: 50%; }
  [data-hotspot="skin"]     { top: 48%;  left: 60%; }
  [data-hotspot="eyebrows"] { top: 36%;  left: 34%; }
  [data-hotspot="lips"]     { top: 56%;  left: 49%; }
}

@media (max-width: 480px) {
  .beauty-content {
    padding: 48px 20px 32px;
  }

  .beauty-heading {
    font-size: 2.2rem;
  }

  .beauty-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    right: 0;
    max-height: 85vh;
    transform: translateY(100%);
  }

  .beauty-panel.open {
    transform: translateY(0);
  }

  .service-modal-body {
    padding: 20px 20px 28px;
  }

  .service-modal-highlights {
    grid-template-columns: 1fr;
  }

  .service-modal-image {
    height: 200px;
  }

  .service-modal-name {
    font-size: 1.6rem;
  }
}
