/**
 * HappyPreggie — Provider Profile Detail Page Styles (/detail/{slug})
 * Reference: planning/04-page-by-page-functional-and-visual-spec.md (Section 4)
 */

.hp-profile-header {
  background: #ffffff;
  border-bottom: 1px solid var(--hp-border-light);
  padding: 24px 0;
}

.hp-profile-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hp-profile-title-group h1 {
  font-size: clamp(22px, 2.8vw, 32px);
  margin-bottom: 8px;
}

.hp-profile-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hp-profile-badges-row a.hp-badge {
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--hp-transition-fast), transform var(--hp-transition-fast);
}

.hp-profile-badges-row a.hp-badge:hover,
.hp-profile-badges-row a.hp-badge:focus-visible {
  text-decoration: none;
  opacity: 0.9;
}

.hp-profile-address {
  font-size: 14px;
  color: var(--hp-text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hp-profile-address-link {
  color: var(--hp-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--hp-transition-fast), background-color var(--hp-transition-fast);
}

.hp-profile-address-link:hover,
.hp-profile-address-link:focus-visible {
  color: var(--hp-purple-primary);
  text-decoration: underline;
}

.hp-profile-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Agoda-style Sub-Gallery Tabs Bar */
.hp-sub-gallery-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 16px;
  padding: 4px 2px;
}

.hp-sub-gallery-bar::-webkit-scrollbar {
  display: none;
}

.hp-sub-gallery-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--hp-border, #e2e8f0);
  border-radius: var(--hp-radius-pill, 9999px);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-dark, #1e293b);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hp-sub-gallery-pill:hover {
  background: var(--hp-bg-light, #fbf8fd);
  border-color: var(--hp-purple-primary, #6c3baa);
  color: var(--hp-purple-primary, #6c3baa);
  transform: translateY(-1px);
}

.hp-sub-gallery-pill.is-active {
  background: linear-gradient(135deg, #6c3baa 0%, #4a217a 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(108, 59, 170, 0.28);
}

.hp-sub-gallery-pill.is-active .hp-sub-gallery-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.hp-sub-gallery-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--hp-bg-muted, #f1f5f9);
  color: var(--hp-text-muted, #64748b);
  padding: 1px 7px;
  border-radius: 9999px;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Category Tag on Gallery Tile */
.hp-gallery-item-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(24, 11, 40, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .hp-sub-gallery-bar {
    margin-top: 12px;
    gap: 6px;
  }
  .hp-sub-gallery-pill {
    padding: 6px 11px;
    font-size: 12px;
    gap: 6px;
  }
  .hp-sub-gallery-count {
    font-size: 10.5px;
    padding: 1px 5px;
  }
  .hp-gallery-item-tag {
    font-size: 10px;
    padding: 2px 6px;
    bottom: 6px;
    left: 6px;
  }
}

/* Gallery Grid */
.hp-profile-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 10px;
  margin-top: 20px;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
}

.hp-profile-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--hp-bg-muted);
}

.hp-profile-gallery-item:first-child {
  grid-row: 1 / span 2;
}

@media (max-width: 767px) {
  .hp-profile-gallery {
    grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 240px;
    gap: 6px;
    margin-top: 14px;
    border-radius: var(--hp-radius-md, 10px);
  }

  .hp-profile-gallery-item:first-child {
    grid-row: 1 / span 3;
  }

  .hp-profile-gallery-item:nth-child(n+5) {
    display: none;
  }

  .hp-gallery-placeholder-inner i {
    font-size: 16px;
  }
}

/* Blank Placeholder Slot */
.hp-profile-gallery-item.hp-gallery-item-placeholder {
  background: var(--hp-bg-muted, #efefef);
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.hp-gallery-placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-border-dark, #cbd5e1);
  opacity: 0.45;
  font-size: 20px;
}

.hp-profile-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.hp-profile-gallery-item:hover img {
  transform: scale(1.04);
}

/* +X More Photos Overlay on 5th Slot */
.hp-gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 11, 40, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.25s ease;
  z-index: 2;
}

.hp-profile-gallery-item:hover .hp-gallery-more-overlay {
  background: rgba(24, 11, 40, 0.84);
}

.hp-gallery-more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 12px;
}

.hp-gallery-more-content i {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 2px;
}

.hp-gallery-more-count {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.hp-gallery-more-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

/* Floating View All Photos Pill on Gallery */
.hp-gallery-view-all-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 11, 40, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--hp-radius-pill, 99px);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.hp-gallery-view-all-pill:hover {
  background: var(--hp-purple-primary, #612e95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .hp-profile-gallery.has-more-photos .hp-gallery-view-all-pill {
    display: none; /* Desktop uses the 5th tile overlay when >5 photos */
  }
}

@media (max-width: 767px) {
  .hp-gallery-view-all-pill {
    left: 12px;
    right: auto;
    bottom: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
  }
}

/* Sticky Section Sub-Nav Sentinel */
.hp-subnav-sticky-sentinel {
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
  visibility: hidden;
}

/* Quick Section Navigation (Sticky Sub-Nav) */
.hp-profile-subnav {
  position: sticky;
  top: var(--hp-header-height);
  z-index: 980;
  background: #ffffff;
  border-bottom: 1px solid var(--hp-border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 24px;
  transition: box-shadow var(--hp-transition-fast), padding var(--hp-transition-fast);
}

.hp-profile-subnav.is-sticky {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb Indicator: category icon > right-angle icon > business profile name */
/* Hidden when NOT in sticky state */
.hp-profile-subnav-indicator {
  display: none;
}

.hp-subnav-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: transform var(--hp-transition-fast), opacity var(--hp-transition-fast);
}

.hp-subnav-cat:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.hp-subnav-sep {
  font-size: 11px;
  color: var(--hp-text-muted);
  flex-shrink: 0;
  margin: 0 2px;
}

.hp-subnav-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--hp-purple-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color var(--hp-transition-fast);
}

.hp-subnav-title:hover {
  color: var(--hp-purple-primary);
}

/* Quick Section Navigation Buttons Container */
.hp-profile-subnav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

.hp-profile-subnav-links::-webkit-scrollbar {
  display: none;
}

.hp-profile-subnav-links a,
.hp-profile-subnav > a {
  padding: 8px 16px;
  border-radius: var(--hp-radius-pill);
  font-size: 13px;
  font-weight: 800;
  color: var(--hp-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: background-color var(--hp-transition-fast), color var(--hp-transition-fast);
}

.hp-profile-subnav-links a:hover,
.hp-profile-subnav-links a.active,
.hp-profile-subnav > a:hover,
.hp-profile-subnav > a.active {
  background-color: var(--hp-purple-primary);
  color: #ffffff;
}

/* Desktop: Breadcrumb icon and profile name on a single line with navigation buttons */
@media (min-width: 768px) {
  .hp-profile-subnav.is-sticky {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .hp-profile-subnav.is-sticky .hp-profile-subnav-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    max-width: 320px;
    min-width: 0;
    padding-right: 14px;
    border-right: 1px solid var(--hp-border-light);
  }

  .hp-profile-subnav.is-sticky .hp-profile-subnav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }
}

/* Mobile: Breadcrumb icon and profile name on a line by themselves, buttons scrollable horizontally below it */
@media (max-width: 767px) {
  .hp-profile-subnav {
    padding: 8px 0;
    gap: 6px;
  }

  .hp-profile-subnav.is-sticky {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 8px;
  }

  .hp-profile-subnav.is-sticky .hp-profile-subnav-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--hp-border-light);
  }

  .hp-profile-subnav.is-sticky .hp-profile-subnav-indicator .hp-subnav-title {
    flex: 1;
    font-size: 13px;
  }

  .hp-profile-subnav.is-sticky .hp-profile-subnav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .hp-profile-subnav-links a,
  .hp-profile-subnav > a {
    padding: 6px 13px;
    font-size: 12px;
  }

  .hp-profile-card-section {
    scroll-margin-top: calc(var(--hp-header-height, 74px) + 104px);
  }
}

/* Two-Column Profile Layout */
.hp-profile-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
  padding: 28px 0 48px;
}

.hp-profile-body-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 991px) {
  .hp-profile-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   4.3 Hard-Working Profile Deal Highlight Banner (.hp-profile-deal-banner)
   A minimal, compact, and high-converting horizontal banner placed immediately
   before the About section to highlight active deals and scroll down smoothly.
   ========================================================================== */
.hp-profile-deal-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(105deg, #fff5f7 0%, #ffffff 52%, #faf5ff 100%);
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-left: 4px solid var(--hp-pink, #e11d48);
  border-radius: var(--hp-radius-md, 12px);
  padding: 10px 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.hp-profile-deal-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.16);
  border-color: rgba(225, 29, 72, 0.4);
  text-decoration: none;
  color: inherit;
}

.hp-profile-deal-banner:active {
  transform: scale(0.99);
}

.hp-profile-deal-banner:focus-visible {
  outline: 2px solid var(--hp-pink, #e11d48);
  outline-offset: 2px;
}

/* Thumbnail Visual Area */
.hp-deal-banner-thumb-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fdf2f4;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-deal-banner-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-deal-banner-thumb-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--hp-pink, #e11d48);
  color: #ffffff;
  font-size: 9px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 6px;
  pointer-events: none;
}

/* Center Content Area */
.hp-deal-banner-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hp-deal-banner-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1;
}

.hp-deal-banner-pill-deal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--hp-pink, #e11d48);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hp-deal-banner-pill-discount {
  display: inline-flex;
  align-items: center;
  background: #fdf2f4;
  color: var(--hp-pink-deep, #e11d48);
  border: 1px solid rgba(225, 29, 72, 0.25);
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 6px;
  border-radius: 4px;
}

.hp-deal-banner-pill-type {
  display: inline-flex;
  align-items: center;
  background: var(--hp-purple-tint, #f5effb);
  color: var(--hp-purple-primary, #612e95);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 6px;
  border-radius: 4px;
}

.hp-deal-banner-pill-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 6px;
  border-radius: 4px;
}

.hp-deal-banner-pill-scarcity.is-depleted {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.hp-deal-banner-pill-more {
  display: inline-flex;
  align-items: center;
  background: var(--hp-purple-tint, #f5effb);
  color: var(--hp-purple-primary, #612e95);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 6px;
  border-radius: 4px;
}

.hp-deal-banner-title {
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hp-text-primary, #222222);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-profile-deal-banner:hover .hp-deal-banner-title {
  color: var(--hp-pink, #e11d48);
}

/* Right Action CTA Button */
.hp-deal-banner-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hp-deal-banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--hp-radius-pill, 50px);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.28);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hp-deal-banner-cta-short {
  display: none;
}

.hp-profile-deal-banner:hover .hp-deal-banner-cta-btn {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.36);
}

.hp-profile-deal-banner:hover .hp-deal-banner-cta-btn i {
  transform: translateY(2px);
  transition: transform 0.2s ease;
}

/* Target Deals Section Highlight Animation on Smooth Scroll Arrival */
@keyframes hp-deals-pulse-highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    border-color: rgba(225, 29, 72, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0.15);
    border-color: var(--hp-pink, #e11d48);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    border-color: var(--hp-border-light);
  }
}

.hp-section-target-highlight {
  animation: hp-deals-pulse-highlight 1.8s ease-in-out;
}

/* Responsive Adjustments for Mobile Web */
@media (max-width: 639px) {
  .hp-profile-deal-banner {
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .hp-deal-banner-thumb-wrap {
    width: 52px;
    height: 52px;
    border-radius: 7px;
  }

  .hp-deal-banner-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .hp-deal-banner-pill-deal {
    font-size: 9.5px;
    padding: 2px 5px;
  }

  .hp-deal-banner-pill-discount {
    font-size: 10px;
    padding: 2px 5px;
  }

  .hp-deal-banner-pill-type {
    font-size: 9.5px;
    padding: 2px 4px;
  }

  .hp-deal-banner-pill-scarcity,
  .hp-deal-banner-pill-more {
    font-size: 9.5px;
    padding: 2px 4px;
  }

  .hp-deal-banner-cta-btn {
    font-size: 11.5px;
    padding: 6px 10px;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .hp-deal-banner-cta-long {
    display: none;
  }

  .hp-deal-banner-cta-short {
    display: inline;
  }

  .hp-deal-banner-cta-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}

.hp-profile-card-section {
  background: #ffffff;
  border: 1px solid var(--hp-border-light);
  border-radius: var(--hp-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--hp-shadow-sm);
  scroll-margin-top: calc(var(--hp-header-height, 74px) + 72px);
}

.hp-profile-card-section h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hp-border-light);
}

.hp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 575px) {
  .hp-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.hp-highlight-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hp-bg-light);
  padding: 10px 14px;
  border-radius: var(--hp-radius-sm);
  font-weight: 700;
  font-size: 13px;
  color: var(--hp-text-primary);
}

.hp-highlight-pill i {
  color: var(--hp-teal-accent);
}

/* Quick Filter Toolbar */
.hp-services-toolbar {
  margin-bottom: 18px;
}

.hp-services-filter-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hp-services-filter-icon {
  position: absolute;
  left: 14px;
  color: var(--hp-text-muted);
  font-size: 14px;
  pointer-events: none;
}

.hp-services-filter-input {
  width: 100%;
  height: 44px;
  padding: 10px 40px 10px 40px;
  font-size: 14px;
  font-family: inherit;
  color: var(--hp-text-primary);
  background: #ffffff;
  border: 1.5px solid var(--hp-border-light);
  border-radius: var(--hp-radius-md);
  outline: none;
  transition: border-color var(--hp-transition-fast), box-shadow var(--hp-transition-fast);
}

.hp-services-filter-input:focus {
  border-color: var(--hp-purple-primary);
  box-shadow: 0 0 0 3px rgba(97, 46, 149, 0.12);
}

.hp-services-filter-input::placeholder {
  color: var(--hp-text-muted);
  opacity: 0.85;
}

/* Clear webkit default search cancel button */
.hp-services-filter-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.hp-services-filter-clear-btn {
  position: absolute;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  font-size: 16px;
  color: var(--hp-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color var(--hp-transition-fast);
}

.hp-services-filter-clear-btn:hover {
  color: var(--hp-purple-primary);
}

.hp-services-filter-stats {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hp-filter-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-purple-primary);
  background: var(--hp-purple-lightest, #f5effb);
  border: 1px solid rgba(97, 46, 149, 0.15);
  border-radius: 20px;
  padding: 3px 10px;
}

/* No Match State */
.hp-services-no-match {
  background: #faf8fc;
  border: 1.5px dashed var(--hp-border-light);
  border-radius: var(--hp-radius-md);
  padding: 36px 20px;
  text-align: center;
  margin: 16px 0;
}

.hp-services-no-match .hp-no-match-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #f1e8f9;
  color: var(--hp-purple-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hp-services-no-match h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--hp-text-primary);
  margin: 0 0 6px;
}

.hp-services-no-match p {
  font-size: 13.5px;
  color: var(--hp-text-secondary);
  margin: 0 0 16px;
}

/* Packages Breakdown */
.hp-package-card {
  border: 1px solid var(--hp-border-light);
  border-radius: var(--hp-radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--hp-bg-light);
  transition: border-color var(--hp-transition-fast), box-shadow var(--hp-transition-fast);
}

/* Compact Service Card (Collapsed when no description/inclusions available) */
.hp-package-card.hp-service-card-compact {
  padding: 13px 16px;
  margin-bottom: 10px;
}

.hp-package-card.hp-service-card-compact .hp-package-header {
  margin-bottom: 0;
}

/* Ensure collapsed service cards are completely hidden without ghost/blank boxes */
.hp-package-card[hidden],
.hp-service-card[hidden],
.hp-service-item-extra[hidden],
.hp-package-card[hidden="until-found"],
.hp-service-card[hidden="until-found"],
.hp-service-item-extra[hidden="until-found"] {
  display: none !important;
}

.hp-package-card:hover {
  border-color: #d1b8ea;
  box-shadow: 0 4px 14px rgba(97, 46, 149, 0.06);
}

.hp-package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hp-package-info {
  flex: 1 1 240px;
  min-width: 0;
}

.hp-package-title {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--hp-text-primary);
  line-height: 1.35;
}

.hp-package-duration {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hp-package-action {
  flex-shrink: 0;
}

/* Contact for Price CTA button */
.hp-package-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 750;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(97, 46, 149, 0.18);
  transition: transform var(--hp-transition-fast), box-shadow var(--hp-transition-fast), background-color var(--hp-transition-fast);
}

.hp-package-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(97, 46, 149, 0.28);
}

.hp-package-cta-arrow {
  font-size: 11px;
  transition: transform var(--hp-transition-fast);
}

.hp-package-cta-btn:hover .hp-package-cta-arrow {
  transform: translateX(3px);
}

.hp-package-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--hp-purple-primary);
}

/* Service Description and Expandable Read More */
.hp-service-desc-wrapper {
  margin: 6px 0 8px;
}

.hp-service-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hp-text-secondary);
}

.hp-service-desc-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-service-desc-clamped.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.hp-service-desc-toggle-btn {
  background: none;
  border: none;
  padding: 2px 0;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-purple-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--hp-transition-fast);
}

.hp-service-desc-toggle-btn:hover {
  color: var(--hp-purple-dark, #491f75);
  text-decoration: underline;
}

.hp-desc-toggle-icon {
  font-size: 10.5px;
}

.hp-package-inclusions {
  margin: 8px 0 4px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--hp-text-primary);
}

.hp-package-inclusions li {
  margin-bottom: 3px;
}

/* Services Expand / Collapse Button Bar */
.hp-services-expand-wrapper {
  margin-top: 16px;
}

.hp-services-expand-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  background: #faf7fd;
  border: 1.5px dashed #d8b4fe;
  border-radius: var(--hp-radius-md);
  color: var(--hp-purple-primary);
  cursor: pointer;
  text-align: left;
  transition: all var(--hp-transition-fast);
}

.hp-services-expand-btn:hover {
  background: #f4ecfb;
  border-color: var(--hp-purple-primary);
  box-shadow: 0 4px 12px rgba(97, 46, 149, 0.08);
}

.hp-services-expand-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efe4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-purple-primary);
  font-size: 13px;
  flex-shrink: 0;
  margin-right: 14px;
}

.hp-services-expand-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hp-expand-headline {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--hp-purple-primary);
  margin-bottom: 2px;
}

.hp-expand-subline {
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-text-muted);
}

.hp-services-expand-chevron {
  font-size: 14px;
  color: var(--hp-purple-primary);
  transition: transform var(--hp-transition-fast);
  margin-left: 12px;
}

.hp-services-expand-btn[aria-expanded="true"] .hp-services-expand-chevron {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .hp-package-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hp-package-info {
    flex: initial;
    width: 100%;
  }
  .hp-package-action {
    width: 100%;
  }
  .hp-package-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .hp-package-card.hp-service-card-compact {
    padding: 12px 14px;
    margin-bottom: 8px;
  }
  .hp-package-card.hp-service-card-compact .hp-package-header {
    gap: 8px;
  }
  .hp-services-expand-btn {
    padding: 10px 14px;
  }
}

/* Generic Category-Specific Service & Pricing Inquiry Placeholder Card */
.hp-package-placeholder-card {
  border: 1.5px solid var(--hp-border-light);
  border-radius: var(--hp-radius-md);
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
}

.hp-placeholder-card-header {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hp-border-light);
  margin-bottom: 16px;
}

.hp-placeholder-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hp-placeholder-verified-pill {
  font-size: 12px;
  color: var(--hp-teal-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hp-placeholder-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--hp-text-primary);
  margin: 0 0 8px;
  line-height: 1.35;
}

.hp-placeholder-desc {
  font-size: 14px;
  color: var(--hp-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.hp-placeholder-price-badge {
  text-align: right;
  min-width: 140px;
}

.hp-placeholder-price-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--hp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.hp-placeholder-body {
  margin: 16px 0 20px;
}

.hp-placeholder-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--hp-text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 20px;
}

.hp-placeholder-grid-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--hp-text-secondary);
  line-height: 1.45;
}

.hp-placeholder-grid-item i {
  color: var(--hp-teal-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.hp-placeholder-actions-bar {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--hp-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.hp-placeholder-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-placeholder-btns .btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
}

.hp-placeholder-guarantee {
  font-size: 12px;
  color: var(--hp-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-placeholder-guarantee i {
  color: var(--hp-teal-accent);
}

.hp-placeholder-guarantee i.fa-bolt,
.hp-placeholder-guarantee i.fa-exclamation-triangle {
  color: var(--hp-warning-amber, #f59e0b);
}

@media (max-width: 767px) {
  .hp-package-placeholder-card {
    padding: 18px;
  }

  .hp-placeholder-price-badge {
    text-align: left;
    margin-top: 10px;
    width: 100%;
  }

  .hp-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .hp-placeholder-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-placeholder-btns {
    flex-direction: column;
    width: 100%;
  }

  .hp-placeholder-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .hp-placeholder-guarantee {
    justify-content: center;
    text-align: center;
  }
}

/* Rating Summary Card (Single-Dimensional 5-Star Breakdown) */
.hp-review-summary-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--hp-purple-tint);
  padding: 24px;
  border-radius: var(--hp-radius-md);
  margin-bottom: 24px;
}

@media (max-width: 575px) {
  .hp-review-summary-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
}

.hp-review-big-score {
  text-align: center;
  border-right: 1px solid var(--hp-border-light);
  padding-right: 20px;
}

@media (max-width: 575px) {
  .hp-review-big-score {
    border-right: none;
    border-bottom: 1px solid var(--hp-border-light);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

.hp-review-big-score .score-num {
  font-size: 46px;
  font-weight: 900;
  color: var(--hp-purple-primary);
  line-height: 1;
}

.hp-star-distribution {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-star-breakdown-row {
  display: grid;
  grid-template-columns: 50px 1fr 45px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.hp-star-track {
  height: 8px;
  background: rgba(97, 46, 149, 0.14);
  border-radius: 99px;
  overflow: hidden;
}

.hp-star-fill {
  height: 100%;
  background: var(--hp-star-gold);
  border-radius: 99px;
}

.hp-star-label {
  color: var(--hp-text-primary);
}

.hp-star-pct {
  text-align: right;
  color: var(--hp-text-muted);
}

/* Interactive Star Rating Selector in Review Modal */
.hp-star-rating-input i {
  transition: transform 0.15s ease, color 0.15s ease;
}

.hp-star-rating-input i:hover {
  transform: scale(1.18);
}

.hp-star-rating-input i:focus {
  outline: 2px solid var(--hp-purple-primary);
  border-radius: 4px;
}

/* Review Item & Provider Reply */
.hp-review-card {
  border-bottom: 1px solid var(--hp-border-light);
  padding: 18px 0;
}

.hp-review-card:last-child {
  border-bottom: none;
}

.hp-provider-reply-box {
  margin-top: 12px;
  margin-left: 20px;
  padding: 12px 16px;
  background: var(--hp-bg-light);
  border-left: 3px solid var(--hp-purple-primary);
  border-radius: 0 var(--hp-radius-sm) var(--hp-radius-sm) 0;
  font-size: 13px;
}

/* Sticky Right Conversion Sidebar */
.hp-conversion-sidebar {
  position: sticky;
  top: calc(var(--hp-header-height, 74px) + var(--hp-subnav-height, 58px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 970;
}

.hp-lead-box {
  background: #ffffff;
  border: 2px solid var(--hp-purple-primary);
  border-radius: var(--hp-radius-lg);
  padding: 24px;
  box-shadow: var(--hp-shadow-card);
}

.hp-lead-price-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--hp-text-muted);
}

.hp-lead-price-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--hp-purple-primary);
  margin-bottom: 16px;
}

.hp-ad-slot {
  background: linear-gradient(135deg, #2d124d, #612e95);
  color: #ffffff;
  border-radius: var(--hp-radius-md);
  padding: 20px;
  text-align: center;
}

/* 4.7 Location, Coordinates & Interactive Google Map */
.hp-coords-badge {
  background: var(--hp-purple-tint, #f5effb);
  color: var(--hp-purple-primary, #612e95);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--hp-border-light, #ede8f2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hp-location-coordinates-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #faf8fd;
  border: 1px solid #ebdff5;
  border-radius: var(--hp-radius-md, 10px);
  padding: 12px 18px;
  margin-bottom: 16px;
}

.hp-coords-info-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hp-coord-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--hp-text-primary, #2d3142);
}

.hp-coord-item strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--hp-purple-primary, #612e95);
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #ede8f2;
}

.hp-embedded-map-container {
  width: 100%;
  border-radius: var(--hp-radius-md, 10px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--hp-border-light, #ede8f2);
  background: #f1f5f9;
  min-height: 380px;
  position: relative;
}

.hp-embedded-map-frame {
  width: 100%;
  height: 380px;
  display: block;
  border: 0;
}

.hp-map-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ==========================================================================
   4.8 Optimized Gallery Lightbox Modal
   ========================================================================== */
#hp-gallery-lightbox.hp-modal-backdrop {
  background: rgba(10, 6, 18, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1200;
  padding: 16px;
}

#hp-gallery-lightbox .hp-modal-dialog {
  background: #14111d;
  color: #ffffff;
  border-radius: var(--hp-radius-lg, 12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Modal expands at a minimum to 80% of viewport width or height depending on which comes first */
  width: 80vw;
  height: 80vh;
  min-width: min(80vw, 80vh);
  min-height: min(80vh, 80vw);
  max-width: 95vw;
  max-height: 92vh;
}

@media (max-width: 767px) {
  #hp-gallery-lightbox .hp-modal-dialog {
    width: 94vw;
    height: 86vh;
    min-width: unset;
    min-height: unset;
  }
}

/* Lightbox Header */
#hp-gallery-lightbox .hp-modal-header {
  flex: 0 0 auto;
  background: #1a1528 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hp-gallery-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.hp-gallery-modal-title {
  display: none !important;
}

.hp-gallery-modal-counter {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: var(--hp-radius-pill, 99px);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hp-gallery-modal-close {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hp-gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.06);
}

/* Lightbox Sub-Gallery Tabs Bar (Agoda-Style) */
.hp-lightbox-subgallery-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 16px;
  background: rgba(18, 12, 28, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.hp-lightbox-subgallery-bar::-webkit-scrollbar {
  display: none;
}

.hp-lightbox-subgallery-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.hp-lightbox-subgallery-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hp-lightbox-subgallery-pill.is-active {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.hp-lightbox-subgallery-pill .hp-sub-gallery-count {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Lightbox Main Stage */
.hp-gallery-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0a14;
  overflow: hidden;
  padding: 12px 16px;
}

.hp-gallery-image-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hp-gallery-main-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  user-select: none;
  display: block;
  transition: opacity 0.15s ease;
}

/* Visual Navigation Buttons (Prev / Next) */
.hp-gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 17, 36, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 16px;
}

.hp-gallery-prev {
  left: 16px;
}

.hp-gallery-next {
  right: 16px;
}

.hp-gallery-nav-btn:hover {
  background: var(--hp-purple-primary, #612e95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.hp-gallery-nav-btn:focus-visible {
  outline: 2px solid var(--hp-teal-accent, #0aaca2);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hp-gallery-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .hp-gallery-prev {
    left: 8px;
  }
  .hp-gallery-next {
    right: 8px;
  }
}

/* Bottom Thumbnail Strip */
.hp-gallery-thumbs-container {
  flex: 0 0 auto;
  background: #161220;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.hp-gallery-thumbs-container::-webkit-scrollbar {
  height: 6px;
}

.hp-gallery-thumbs-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.hp-gallery-thumbs-track {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: min-content;
}

@media (max-width: 767px) {
  .hp-gallery-thumbs-track {
    justify-content: flex-start;
  }
}

.hp-gallery-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  background: #000000;
  flex-shrink: 0;
}

.hp-gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hp-gallery-thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.4);
}

.hp-gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--hp-teal-accent, #0aaca2);
  box-shadow: 0 0 0 2px rgba(10, 172, 162, 0.5);
  transform: scale(1.06);
}

.hp-gallery-thumb-item:focus-visible {
  outline: 2px solid var(--hp-teal-accent, #0aaca2);
}

/* Provider Attributed Articles & Events Cards */
.hp-provider-article-card,
.hp-provider-event-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-provider-article-card:hover,
.hp-provider-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 2-Line Review Clamping & Read More */
.hp-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  margin-bottom: 4px;
}

.hp-review-message-wrap.is-expanded .hp-line-clamp-2 {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.hp-review-read-more-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--hp-purple-primary, #612e95);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.hp-review-read-more-btn:hover {
  color: var(--hp-purple-dark, #3b125d);
  text-decoration: underline;
}

/* Expandable / Collapsible About Us Section (Entire Section: About, Hours, Custom Sections, Highlights) */
.hp-about-content-wrap {
  position: relative;
  transition: max-height 0.35s ease;
}

.hp-about-content-wrap.is-clamped {
  max-height: 240px;
  overflow: hidden;
}

.hp-about-content-wrap.is-clamped .hp-about-fade-overlay {
  display: block;
}

.hp-about-fade-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
}

.hp-about-toggle-btn {
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--hp-purple-primary, #612e95);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: color 0.15s ease;
}

.hp-about-toggle-btn:hover {
  color: var(--hp-purple-dark, #3b125d);
  text-decoration: underline;
}

/* Simple Quick Links to Gallery Categories */
.hp-gallery-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hp-gallery-quick-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hp-gallery-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hp-gallery-quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f7f1fd;
  color: var(--hp-purple-primary, #612e95);
  border: 1px solid rgba(97, 46, 149, 0.15);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.hp-gallery-quick-chip:hover,
.hp-gallery-quick-chip:focus {
  background: var(--hp-purple-primary, #612e95);
  color: #ffffff;
  border-color: var(--hp-purple-primary, #612e95);
  transform: translateY(-1px);
}

/* Refined & Simplified Photo Galleries Section */
.hp-dedicated-galleries-section {
  scroll-margin-top: 100px;
}

.hp-cat-galleries-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-cat-gallery-group {
  scroll-margin-top: 110px;
}

.hp-cat-gallery-heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-text-primary, #230a3a);
}

/* Horizontal scrollable carousel of clean thumbnails */
.hp-cat-gallery-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(97, 46, 149, 0.25) transparent;
}

.hp-cat-gallery-scroller::-webkit-scrollbar {
  height: 5px;
}

.hp-cat-gallery-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.hp-cat-gallery-scroller::-webkit-scrollbar-thumb {
  background: rgba(97, 46, 149, 0.25);
  border-radius: 10px;
}

.hp-cat-gallery-thumb {
  flex: 0 0 140px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 576px) {
  .hp-cat-gallery-thumb {
    flex: 0 0 120px;
    height: 88px;
  }
}

.hp-cat-gallery-thumb:hover,
.hp-cat-gallery-thumb:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  outline: none;
}

.hp-cat-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.hp-cat-gallery-thumb:hover img {
  transform: scale(1.05);
}
.hp-provider-article-card img,
.hp-provider-event-card img {
  transition: transform 0.3s ease;
}
.hp-provider-article-card:hover img,
.hp-provider-event-card:hover img {
  transform: scale(1.03);
}
