/* ==========================================================
   Gulf Lab — Health Packages Pages  v3.0
   Archive: image-first cards · Single: full image + side details
   ========================================================== */

:root {
  --pkgp-green:    #088144;
  --pkgp-green-lt: #f0faf5;
  --pkgp-green-dk: #065f31;
  --pkgp-red:      #dc2626;
  --pkgp-radius:   16px;
  --pkgp-trans:    .25s cubic-bezier(.4,0,.2,1);
}

/* ==========================================================
   ARCHIVE — Toolbar
   ========================================================== */

.pkgp-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 44px;
}

/* Search — explicit width so it fills the column up to its max */
.pkgp-search-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.pkgp-search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}

/* Use the parent wrap as part of the selector to override theme input styles */
.pkgp-search-wrap .pkgp-search-input {
  width: 100%;
  padding: 12px 44px 12px 46px;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  font-size: 14px;
  background: #fff;
  color: #111827;
  outline: none;
  box-shadow: none;
  transition: border-color var(--pkgp-trans), box-shadow var(--pkgp-trans);
}
.pkgp-search-wrap .pkgp-search-input:focus {
  border-color: var(--pkgp-green);
  box-shadow: 0 0 0 3px rgba(8,129,68,.1);
}

.pkgp-search-clear {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #9ca3af; cursor: pointer;
  padding: 4px; font-size: 13px;
  line-height: 1;
  transition: color var(--pkgp-trans);
}
.pkgp-search-clear:hover { color: var(--pkgp-red); }

/* Filter row: category group + location group, separated */
.pkgp-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}

.pkgp-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

/* Location group pushed to the right on large screens */
.pkgp-filter-group + .pkgp-filter-group {
  margin-left: auto;
}

.pkgp-filter-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--pkgp-trans);
  white-space: nowrap;
  line-height: 1.4;
}
.pkgp-filter-btn:hover     { border-color: var(--pkgp-green); color: var(--pkgp-green); background: var(--pkgp-green-lt); }
.pkgp-filter-btn.is-active { background: var(--pkgp-green); border-color: var(--pkgp-green); color: #fff; }

/* Location buttons — slightly lighter style when not active */
.pkgp-loc-btn { color: #6b7280; }
.pkgp-loc-btn:hover { color: var(--pkgp-green); }

/* ==========================================================
   ARCHIVE — Image-first card (details hidden until hover/tap)
   ========================================================== */

.pkgp-card-col.is-hidden { display: none !important; }

.pkgp-card {
  display: block;
  position: relative;
  border-radius: var(--pkgp-radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transition: transform var(--pkgp-trans), box-shadow var(--pkgp-trans);
  background: #111;
}
.pkgp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.pkgp-card-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.pkgp-card-img--empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #1f2937; color: #374151; font-size: 4rem;
}

/* Always-visible subtle hint at bottom */
.pkgp-view-hint {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.42); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50px; padding: 8px 18px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity var(--pkgp-trans), transform var(--pkgp-trans);
}

/* Hint fades out when overlay appears */
.pkgp-card:hover .pkgp-view-hint,
.pkgp-card.is-active .pkgp-view-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

/* Full details overlay — hidden by default */
.pkgp-card-foot {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 20px; gap: 5px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.68) 50%, rgba(0,0,0,.08) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .32s ease, transform .32s ease;
  pointer-events: none;
}

/* Reveal on hover (desktop) or tap (mobile via .is-active) */
.pkgp-card:hover .pkgp-card-foot,
.pkgp-card.is-active .pkgp-card-foot {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Category + badge inside the overlay */
.pkgp-card-labels {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px;
}

.pkgp-card-cat-inline {
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(8,129,68,.85); backdrop-filter: blur(4px);
  padding: 3px 9px; border-radius: 50px;
}

.pkgp-card-badge-inline {
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(225,29,72,.85);
  padding: 3px 9px; border-radius: 50px;
}

.pkgp-card-title {
  font-size: 1.1rem; font-weight: 800;
  color: #fff; margin: 0; line-height: 1.3;
}

.pkgp-card-date {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: rgba(255,255,255,.72);
}

.pkgp-card-bottom {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 10px; margin-top: 4px;
}

.pkgp-card-price { display: flex; flex-direction: column; gap: 2px; }
.pkgp-orig  { font-size: 11px; color: rgba(255,255,255,.5); text-decoration: line-through; }
.pkgp-offer { font-size: 1.45rem; font-weight: 900; color: #fff; line-height: 1; }
.pkgp-offer small { font-size: 11px; font-weight: 600; opacity: .8; }
.pkgp-save  {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: rgba(239,68,68,.85); color: #fff;
  border-radius: 50px; padding: 2px 8px; align-self: flex-start; margin-top: 2px;
}

.pkgp-details-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--pkgp-green);
  border-radius: 50px; padding: 7px 14px;
  transition: background var(--pkgp-trans); white-space: nowrap;
}
.pkgp-card:hover .pkgp-details-btn,
.pkgp-card.is-active .pkgp-details-btn { background: var(--pkgp-green-dk); }

.pkgp-no-results { text-align: center; padding: 60px 20px; color: #9ca3af; }
.pkgp-no-results .bi { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* ==========================================================
   SINGLE — Full image (no crop) + side details
   ========================================================== */

.pkgs-single-wrap {
  padding: 52px 0 72px;
}

/* Left column: image */
.pkgs-img-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 100px;
}

/* Full image frame — no fixed height, image shows completely */
.pkgs-img-frame { display: none; }
.pkgs-img-frame.is-active {
  display: block;
  animation: pkgs-in .3s ease;
}

/* The image itself: full width, natural height — nothing cropped */
.pkgs-full-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--pkgp-radius);
  box-shadow: 0 6px 32px rgba(0,0,0,.12);
}

.pkgs-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; color: #d1d5db; font-size: 4rem;
  border-radius: var(--pkgp-radius);
}

/* Thumbnail strip */
.pkgs-thumbs-strip { display: flex; gap: 8px; flex-wrap: wrap; }

.pkgs-thumb {
  width: 68px; height: 68px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid transparent;
  background: #f3f4f6; cursor: pointer; padding: 0;
  transition: border-color var(--pkgp-trans), box-shadow var(--pkgp-trans);
}
.pkgs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkgs-thumb.is-active {
  border-color: var(--pkgp-green);
  box-shadow: 0 0 0 2px rgba(8,129,68,.2);
}
.pkgs-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #d1d5db; font-size: 1.4rem;
}

/* Back link */
.pkgs-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #9ca3af;
  text-decoration: none;
  transition: color var(--pkgp-trans), gap var(--pkgp-trans);
}
.pkgs-back-link:hover { color: var(--pkgp-green); gap: 10px; }

/* Right column: details */
.pkgs-details-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Identity */
.pkgs-identity   { display: flex; flex-direction: column; gap: 10px; }
.pkgs-pills-row  { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.pkgs-cat-pill {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pkgp-green); background: var(--pkgp-green-lt);
  border: 1px solid rgba(8,129,68,.2);
  padding: 4px 12px; border-radius: 50px;
}

.pkgs-badge-pill {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: #e11d48;
  padding: 4px 12px; border-radius: 50px;
}

.pkgs-title {
  font-size: 1.9rem; font-weight: 900;
  color: #111827; margin: 0; line-height: 1.25;
}

.pkgs-duration {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--pkgp-green);
  background: var(--pkgp-green-lt); border: 1px solid rgba(8,129,68,.2);
  padding: 5px 14px; border-radius: 50px; align-self: flex-start;
}

/* Variant tabs */
.pkgs-var-tabs {
  position: relative;
  display: flex; gap: 4px;
  background: #f3f4f6; border-radius: 50px; padding: 4px;
}

.pkgs-var-tab {
  position: relative; z-index: 1;
  flex: 1; padding: 9px 16px; border: none; border-radius: 50px;
  background: transparent; color: #6b7280;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color var(--pkgp-trans); text-align: center; white-space: nowrap;
}
.pkgs-var-tab.is-active { color: #111827; }

.pkgs-tab-indicator {
  position: absolute; top: 4px; height: calc(100% - 8px);
  border-radius: 50px; background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
  transition: left .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

/* Variant panels */
.pkgs-var-panel { display: none; flex-direction: column; gap: 20px; }
.pkgs-var-panel.is-active { display: flex; animation: pkgs-in .25s ease; }

/* Package description */
.pkgs-description {
  font-size: 14.5px; line-height: 1.75;
  color: #4b5563; margin: 0;
}

@keyframes pkgs-in { from { opacity: 0; } to { opacity: 1; } }

/* Price block */
.pkgs-price-block {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px;
  background: var(--pkgp-green-lt);
  border: 1.5px solid rgba(8,129,68,.15);
  border-radius: var(--pkgp-radius);
}

.pkgs-price-orig { font-size: 13px; color: #9ca3af; text-decoration: line-through; font-weight: 500; }

.pkgs-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.pkgs-price-amount { font-size: 2.6rem; font-weight: 900; color: var(--pkgp-green); line-height: 1; }
.pkgs-price-cur    { font-size: 15px; font-weight: 700; color: var(--pkgp-green); opacity: .8; }

.pkgs-save-badge {
  font-size: 11.5px; font-weight: 700;
  background: #fef2f2; color: var(--pkgp-red);
  border: 1px solid #fecaca; border-radius: 50px;
  padding: 3px 10px; white-space: nowrap;
}

/* Info badges */
.pkgs-info-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.pkgs-info-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #4b5563;
  background: #f9fafb; border: 1.5px solid #e5e7eb;
  border-radius: 8px; padding: 7px 14px;
}
.pkgs-info-badge--date { color: #6b21a8; background: #faf5ff; border-color: #e9d5ff; }

/* Tests */
.pkgs-tests-block { border-top: 1.5px solid #f3f4f6; padding-top: 20px; }

.pkgs-tests-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--pkgp-green); margin-bottom: 14px;
}

.pkgs-tests-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pkgs-tests-list li {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 50px;
  font-size: 12.5px; font-weight: 600;
  color: var(--pkgp-green); background: var(--pkgp-green-lt);
  border: 1.5px solid rgba(8,129,68,.18); white-space: nowrap;
}

/* Location section */
.pkgs-loc-section { display: flex; flex-direction: column; gap: 10px; }

.pkgs-loc-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #9ca3af;
}

.pkgs-loc-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px;
  border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fff;
}

.pkgs-loc-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: #111827;
}
.pkgs-loc-name .bi { color: var(--pkgp-green); }

.pkgs-loc-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.pkgs-wa-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 50px;
  background: #25d366; color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background var(--pkgp-trans); white-space: nowrap;
}
.pkgs-wa-btn:hover { background: #1da851; color: #fff; }

.pkgs-phone-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 50px;
  background: var(--pkgp-green-lt); color: var(--pkgp-green);
  border: 1.5px solid rgba(8,129,68,.2);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background var(--pkgp-trans), color var(--pkgp-trans); white-space: nowrap;
}
.pkgs-phone-btn:hover { background: var(--pkgp-green); color: #fff; }

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 991px) {
  .pkgs-img-col  { position: static; }
  .pkgs-title    { font-size: 1.6rem; }
}

@media (max-width: 640px) {
  .pkgp-search-wrap  { max-width: 100%; }
  .pkgp-filter-group + .pkgp-filter-group {
    margin-left: 0;
    padding-top: 8px;
    border-top: 1.5px solid #f3f4f6;
    width: 100%;
  }
  .pkgs-single-wrap  { padding: 36px 0 52px; }
  .pkgs-title        { font-size: 1.4rem; }
  .pkgs-price-amount { font-size: 2.1rem; }
}
