/* ============================================================
   OMRAWAY — Gold theme (loaded after every other stylesheet)
   One brand colour drives the whole public site. It can be changed
   from Admin → Settings → "site_primary_color"; the header injects it
   as --gold and every shade below is derived from it.
   ============================================================ */

:root {
  --gold:          #b8892f;
  --gold-2:        color-mix(in srgb, var(--gold) 62%, #fff3cf);
  --gold-3:        color-mix(in srgb, var(--gold) 72%, #000);
  --gold-dark:     color-mix(in srgb, var(--gold) 14%, #0d0b07);
  --gold-soft:     color-mix(in srgb, var(--gold) 8%, #fff);
  --gold-line:     color-mix(in srgb, var(--gold) 26%, #fff);
  --gold-grad:     linear-gradient(135deg, var(--gold), var(--gold-2));
  --on-gold:       #1a1408;

  --primary:       var(--gold);
  --primary-hover: var(--gold-3);
  --primary-light: var(--gold-soft);
  --green:         var(--gold);
  --green-hover:   var(--gold-3);
  --green-light:   var(--gold-soft);
  --premium:       var(--gold-3);
  --premium-light: var(--gold-soft);
  --vip:           var(--gold);
  --vip-light:     var(--gold-soft);

  --bg-alt:        #fcf9f2;
  --bg-gray:       #faf7f0;
  --surface:       #ffffff;
  --surface-2:     #fefcf8;
  --border:        #ece6d8;
  --border-light:  #f4efe4;

  --footer-bg:     var(--gold-dark);
  --footer-mid:    color-mix(in srgb, var(--gold) 20%, #0d0b07);
  --footer-border: color-mix(in srgb, var(--gold) 30%, #0d0b07);

  --shadow-md:     0 6px 20px rgba(120, 90, 30, .10);
  --shadow-lg:     0 14px 36px rgba(120, 90, 30, .14);
}

/* Buttons that carried the old blue/green */
.btn-primary, .psb-submit, .card-book-btn {
  background: var(--gold-grad) !important;
  border-color: var(--gold) !important;
  color: var(--on-gold) !important;
}
.btn-primary:hover, .psb-submit:hover, .card-book-btn:hover { filter: brightness(1.05); }

/* Provider cards / misc */
.guide-card:hover { border-color: var(--gold) !important; }
.guide-avatar { border-color: var(--gold-line) !important; background: #fff; }
.guide-rating { color: var(--gold) !important; }

/* Old trip cards (other pages): price + action buttons */
.card-price span { color: var(--gold-3) !important; background: var(--gold-soft) !important; }

/* ============================================================
   GOLD TRIP CARD  (_trip-card-gold.blade.php — homepage)
   ============================================================ */
.trip-card.tcg {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
}
.trip-card.tcg:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tcg .card-img-wrap { height: 180px; background: linear-gradient(135deg, #e9dcc0, #f8f1e1); }
.tcg .card-img-wrap.lg { height: 240px; }
.tcg .tcg-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 44px; color: var(--gold);
  text-decoration: none;
}
.tcg .tcg-place {
  position: absolute; bottom: 12px; inset-inline-start: 14px; z-index: 6;
  border: 1px solid var(--gold); color: var(--gold-2);
  background: rgba(11, 11, 10, .85);
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
  max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcg .tcg-actions { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 6; display: flex; gap: 6px; }
.tcg .tcg-actions .card-action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--gold-line);
}
.tcg .tcg-actions .card-action-btn svg { width: 16px; height: 16px; }
.tcg .vip-badge, .tcg .premium-badge { display: none; }
.tcg .tc-counter { right: auto; inset-inline-end: 10px; bottom: 12px; }

.tcg .card-body { padding: 18px; gap: 8px; }
.tcg .tcg-tag { font-size: 12px; font-weight: 700; color: var(--gold); }
.tcg .tcg-tag.is-vip::before { content: '👑 '; }
.tcg .card-title { font-size: 18px; font-weight: 800; margin: 0; padding: 0; color: var(--text); line-height: 1.5; }
.tcg .card-title a { color: inherit; }
.tcg .tcg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-muted); font-size: 12.5px; }
.tcg .tcg-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tcg .tcg-meta .tcg-star { color: var(--gold); }
.tcg .tcg-price {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
}
.tcg .tcg-price small { display: block; font-size: 11px; color: var(--text-light); }
.tcg .tcg-price b { font-size: 21px; font-weight: 900; color: var(--gold); white-space: nowrap; }
.tcg .tcg-price b em { font-style: normal; font-size: 13px; font-weight: 700; }
.tcg .tcg-date { font-size: 12px; color: var(--text-muted); text-align: end; }
.tcg .tcg-btn {
  display: block; width: 100%; margin-top: 12px; padding: 11px 16px;
  text-align: center; border-radius: 10px;
  background: var(--gold-grad); border: 1px solid var(--gold);
  color: var(--on-gold); font-weight: 800; font-size: 15px;
  transition: transform .15s, filter .15s;
}
.tcg .tcg-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ============================================================
   DESIGN-YOUR-UMRAH block (homepage)
   ============================================================ */
.custom-umrah {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  border: 1px solid var(--gold-line); border-radius: 24px; padding: 34px;
  background: linear-gradient(115deg, var(--gold-soft), var(--surface));
}
.custom-umrah .cu-tag { font-size: 12px; font-weight: 700; color: var(--gold); }
.custom-umrah h2 { margin: 6px 0 10px; font-size: 28px; font-weight: 800; color: var(--text); }
.custom-umrah p { color: var(--text-muted); line-height: 1.9; margin-bottom: 18px; }
.custom-umrah .cu-btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  background: var(--gold-grad); border: 1px solid var(--gold);
  color: var(--on-gold); font-weight: 800;
}
.custom-umrah .cu-btn:hover { filter: brightness(1.05); }
.custom-umrah .cu-free { display: block; margin-top: 8px; font-size: 12px; color: var(--text-light); }
.custom-umrah .cu-steps { display: grid; gap: 10px; }
.custom-umrah .cu-step {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); padding: 13px; border-radius: 13px;
  background: var(--surface);
}
.custom-umrah .cu-num {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line);
}
.custom-umrah .cu-step b { color: var(--text); font-size: 15px; }
.custom-umrah .cu-step small { display: block; color: var(--text-muted); font-size: 12.5px; }

@media (max-width: 850px) {
  .custom-umrah { grid-template-columns: 1fr; padding: 24px; }
  .custom-umrah h2 { font-size: 23px; }
}

/* VIP / premium badges on the older card used fixed colours */
.vip-badge, .premium-badge { background: var(--gold-soft) !important; color: var(--gold-3) !important; }

/* "مقترح" badge — trips of subscribed (featured) companies */
.suggested-badge {
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gold-grad); color: var(--on-gold);
  font-size: 11.5px; font-weight: 800; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(120, 90, 30, .25);
}
.card-img-wrap > .suggested-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 6; }
.tcc-head .suggested-badge { flex-shrink: 0; }

/* Profile photo in the header (instead of the initial / person icon) */
.nav-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.profile-nav-avatar:has(.nav-avatar-img) { background: none; overflow: hidden; }
.mqn-btn:has(.nav-avatar-img), .mobile-profile-btn:has(.nav-avatar-img) { padding: 2px; overflow: hidden; }
.mqn-btn .nav-avatar-img, .mobile-profile-btn .nav-avatar-img { width: 30px; height: 30px; border: 1.5px solid var(--gold-line); }

/* ── Homepage gold card on phones: full-width photo on top (the generic
   mobile rules in breakpoints.css turn .trip-card into a side-thumbnail
   grid, which only the other pages' cards should get). ── */
@media (max-width: 768px) {
  .trip-card.tcg {
    display: flex; flex-direction: column;
    grid-template-columns: none; grid-template-areas: none;
    border-radius: 16px;
  }
  .trip-card.tcg .card-img-wrap,
  .trip-card.tcg .card-img-wrap.lg {
    grid-area: auto; width: 100%; height: 190px; min-height: 0; border-radius: 0;
  }
  .trip-card.tcg .card-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 14px 16px; }
  .trip-card.tcg .card-title { font-size: 16px; font-weight: 800; padding: 0; line-height: 1.5; flex: none; }
  .trip-card.tcg .tcg-meta { font-size: 12px; gap: 4px 12px; padding: 0; }
  .trip-card.tcg .tcg-price b { font-size: 19px; }
  .trip-card.tcg .tcg-btn { padding: 11px 14px; font-size: 15px; }
  .trip-card.tcg .tcg-actions .card-action-btn { width: 32px; height: 32px; }
  .cards-grid-2 .trip-card.tcg .card-img-wrap { height: 210px; }
}

/* Provider without a logo: gold initial instead of an external placeholder */
.guide-avatar--initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-grad); color: var(--on-gold);
  font-size: 34px; font-weight: 800; line-height: 1;
}
@media (max-width: 768px) { .guide-avatar--initial { font-size: 26px; } }

/* Gold card: title + trip type on one row (title start, type end) */
.tcg .tcg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tcg .tcg-head .card-title { flex: 1; min-width: 0; }
.tcg .tcg-head .tcg-tag {
  flex-shrink: 0; white-space: nowrap; margin-top: 3px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}

/* "صمّم برنامج رحلتك بنفسك" — the 3 steps side by side (one row), also on phones */
.custom-umrah .cu-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.custom-umrah .cu-step { padding: 12px 10px; gap: 8px; }
.custom-umrah .cu-step b { font-size: 14px; line-height: 1.4; }
@media (max-width: 600px) {
  .custom-umrah .cu-steps { gap: 8px; }
  .custom-umrah .cu-step { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 10px 4px; }
  .custom-umrah .cu-num { width: 28px; height: 28px; font-size: 13px; }
  .custom-umrah .cu-step b { font-size: 12.5px; }
}

/* ============================================================
   ECONOMY TRIPS — light blue instead of the shared gold
   (cards carry data-trip-type="economy"; matches the app)
   ============================================================ */
:root { --eco: #0EA5E9; --eco-dark: #0284C7; --eco-soft: #E0F2FE; --eco-line: #7DD3FC; }
.trip-card[data-trip-type="economy"],
.tcc-card[data-trip-type="economy"] { border-color: var(--eco-line) !important; }
.trip-card.tcg[data-trip-type="economy"]:hover { border-color: var(--eco) !important; }
[data-trip-type="economy"] .tcg-tag { color: var(--eco-dark) !important; }
[data-trip-type="economy"] .tcg-price b { color: var(--eco-dark) !important; }
[data-trip-type="economy"] .tcc-price-value { background: var(--eco-dark) !important; }
[data-trip-type="economy"] .tcc-route-icon { background: var(--eco) !important; }
[data-trip-type="economy"] .card-price span { color: var(--eco-dark) !important; background: var(--eco-soft) !important; }
[data-trip-type="economy"] .tcg-btn,
[data-trip-type="economy"] .card-book-btn {
  background: linear-gradient(135deg, #38BDF8, var(--eco-dark)) !important;
  border-color: var(--eco) !important;
  color: #fff !important;
}

/* ── VIP ribbon (2026-10-11): diagonal gold sash on the card's top-right
      corner, on every trip-card variant (home .tcg, list .tcc-card,
      similar-trips .trip-card) — all carry data-trip-type. ── */
article[data-trip-type="vip"] {
  position: relative;
  overflow: hidden;
}
article[data-trip-type="vip"]::after {
  content: "VIP \265B";
  position: absolute;
  top: 20px;
  right: -42px;
  width: 150px;
  padding: 6px 0;
  transform: rotate(45deg);
  text-align: center;
  direction: ltr;
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(90deg, #8E6A28 0%, #D9B45F 35%, #F3DE9A 50%, #D9B45F 65%, #8E6A28 100%);
  border-top: 1px solid rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(120, 85, 25, .6);
  box-shadow: 0 4px 12px rgba(80, 55, 10, .35);
  text-shadow: 0 1px 2px rgba(70, 45, 5, .55);
  z-index: 6;
  pointer-events: none;
}

/* ── Premium ("مميزة") ribbon + tier tags (2026-10-11): VIP and premium
      trips are marked ONLY by the corner sash now — the small VIP /
      مميزة tags next to the title are hidden on every card variant
      (home .tcg, lists/search .tcc-card, similar trips .trip-card).
      The economy tag (اقتصادية) stays. ── */
article[data-trip-type="premium"] {
  position: relative;
  overflow: hidden;
}
article[data-trip-type="premium"]::after {
  content: "PREMIUM";
  position: absolute;
  top: 20px;
  right: -42px;
  width: 150px;
  padding: 6px 0;
  transform: rotate(45deg);
  text-align: center;
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 1px;
  color: #F3DE9A;
  background: linear-gradient(90deg, #0b0b0a 0%, #2b2b28 35%, #3d3a33 50%, #2b2b28 65%, #0b0b0a 100%);
  border-top: 1px solid rgba(217, 180, 95, .55);
  border-bottom: 1px solid rgba(217, 180, 95, .35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  z-index: 6;
  pointer-events: none;
}
:lang(ar) article[data-trip-type="premium"]::after { content: "مميزة"; letter-spacing: 0; font-size: 13px; }
:lang(ur) article[data-trip-type="premium"]::after { content: "پریمیم"; letter-spacing: 0; font-size: 13px; }

.tcg-tag.is-vip,
article[data-trip-type="premium"] .tcg-tag,
.tcc-vip-badge,
.tcc-premium-badge,
article[data-trip-type] .vip-badge {
  display: none !important;
}

/* ── Compact ribbon on search / list cards (.tcc-card, 2026-10-11): the
      card's photo is small there, so the sash is thinner and hugs the
      corner instead of covering the thumbnail. Home cards keep the big one. ── */
.tcc-card[data-trip-type="vip"]::after,
.tcc-card[data-trip-type="premium"]::after {
  top: 11px;
  right: -40px;
  width: 120px;
  padding: 3px 0;
  font-size: 9.5px;
  letter-spacing: 1px;
}
:lang(ar) .tcc-card[data-trip-type="premium"]::after,
:lang(ur) .tcc-card[data-trip-type="premium"]::after { font-size: 10px; letter-spacing: 0; }
