/* ── WRAPPER ───────────────────────────────────────────────────── */
.loc-wrap {
  padding: 28px 0 36px;
  position: relative;
}

.loc-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── META ROW ──────────────────────────────────────────────────── */
.loc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.loc-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.loc-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loc-cat-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--gold);
  color: #000;
  padding: 3px 10px 3px 10px;
  border-radius: 4px;
  line-height: 1.8;
}

.loc-city-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: .8;
}

.loc-day-counter {
  font-size: 10px;
  color: var(--text-dim, #666);
  letter-spacing: .06em;
  font-weight: 600;
}

.loc-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb, 201,168,76), .3);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  letter-spacing: .04em;
}
.loc-shuffle-btn:hover {
  background: rgba(var(--gold-rgb, 201,168,76), .1);
  border-color: var(--gold);
  transform: scale(1.03);
}
.loc-shuffle-btn svg {
  flex-shrink: 0;
  transition: transform .4s;
}
.loc-shuffle-btn:active svg {
  transform: rotate(180deg);
}

/* ── MAIN CARD ─────────────────────────────────────────────────── */
.loc-card {
  background: var(--bg-card, #1a1a1a);
  border: 1px solid rgba(var(--gold-rgb, 201,168,76), .18);
  border-radius: 16px;
  padding: 28px 28px 24px;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}

.loc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(var(--gold-rgb,201,168,76),.06) 0%, transparent 60%);
  pointer-events: none;
}

/* card entrance animation */
@keyframes locCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loc-card.animating {
  animation: locCardIn .35s ease both;
}

/* ── TEXT COLUMN ───────────────────────────────────────────────── */
.loc-text-col {
  min-width: 0;
}

.loc-type-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim, #666);
  border: 1px solid rgba(var(--gold-rgb,201,168,76),.2);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.loc-topic {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: var(--text-main, #fff);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.loc-body {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--text-sub, #aaa);
  max-width: 640px;
}

.loc-body .hl {
  color: var(--gold);
  font-weight: 700;
}

.loc-body b {
  color: var(--text-main, #e0e0e0);
  font-weight: 700;
}

.loc-body em {
  font-style: italic;
  color: var(--text-main, #e0e0e0);
}

/* ── STATS ─────────────────────────────────────────────────────── */
.loc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.loc-stat-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(var(--gold-rgb,201,168,76),.07);
  border: 1px solid rgba(var(--gold-rgb,201,168,76),.22);
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  cursor: default;
}
.loc-stat-pill:hover {
  background: rgba(var(--gold-rgb,201,168,76),.14);
  transform: translateY(-2px);
}

/* ── ACTIONS ───────────────────────────────────────────────────── */
.loc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.loc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb,201,168,76),.35);
  color: var(--gold);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all .2s;
}
.loc-share-btn:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 16px rgba(var(--gold-rgb,201,168,76),.3);
}

.loc-progress-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* ── ICON COLUMN ───────────────────────────────────────────────── */
.loc-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.loc-orb-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb,201,168,76),.15);
  animation: locOrb 6s linear infinite;
}
.loc-orb-ring-2 {
  inset: 10px;
  border-color: rgba(var(--gold-rgb,201,168,76),.1);
  animation-delay: -2s;
  animation-direction: reverse;
}
.loc-orb-ring-3 {
  inset: 22px;
  border-color: rgba(var(--gold-rgb,201,168,76),.08);
  animation-delay: -4s;
}

@keyframes locOrb {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.loc-icon-frame {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(var(--gold-rgb,201,168,76),.25));
  animation: locFloat 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
  cursor: default;
  transition: filter .3s;
  user-select: none;
}
.loc-icon-frame:hover {
  filter: drop-shadow(0 0 28px rgba(var(--gold-rgb,201,168,76),.5));
}

@keyframes locFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.04); }
}

.loc-currency-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim, #666);
  letter-spacing: .08em;
  text-align: center;
}

/* ── BOTTOM NAV ────────────────────────────────────────────────── */
.loc-nav-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.loc-nav-arr {
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb,201,168,76),.2);
  color: var(--text-dim, #666);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.loc-nav-arr:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(var(--gold-rgb,201,168,76),.08);
}

.loc-dot-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 280px;
}

.loc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb,201,168,76),.2);
  cursor: pointer;
  transition: background .25s, transform .25s;
  flex-shrink: 0;
}
.loc-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}
.loc-dot:hover:not(.active) {
  background: rgba(var(--gold-rgb,201,168,76),.5);
}

/* ── RTL SUPPORT ───────────────────────────────────────────────── */
[dir="rtl"] .loc-card {
  grid-template-columns: 160px 1fr;
}
[dir="rtl"] .loc-text-col {
  order: 2;
}
[dir="rtl"] .loc-icon-col {
  order: 1;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .loc-card {
    grid-template-columns: 1fr;
    padding: 22px 18px 20px;
    text-align: center;
  }
  .loc-icon-col {
    order: -1;
  }
  .loc-orb-wrap {
    width: 84px;
    height: 84px;
    margin: 0 auto;
  }
  .loc-icon-frame {
    font-size: 38px;
  }
  .loc-stats {
    justify-content: center;
  }
  .loc-actions {
    justify-content: center;
  }
  .loc-body {
    font-size: .82rem;
  }
  [dir="rtl"] .loc-text-col {
    order: 2;
  }
  [dir="rtl"] .loc-icon-col {
    order: -1;
  }
}

@media (max-width: 400px) {
  .loc-stat-pill {
    font-size: 10px;
    padding: 5px 9px;
  }
}

/* ── CATEGORY COLOUR ACCENTS ───────────────────────────────────── */
/* Override --gold-rgb per active tab if you want per-category tinting */
.loc-wrap[data-cat="islamic"]   { --loc-accent: var(--gold); }
.loc-wrap[data-cat="finance"]   { --loc-accent: #4ade80; }
.loc-wrap[data-cat="car"]       { --loc-accent: #60a5fa; }
.loc-wrap[data-cat="lifestyle"] { --loc-accent: #f472b6; }

/* ── ORB GLOW ANIMATION ────────────────────────────────────────── */
.loc-orb-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loc-orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0;
    animation: orbRipple 4s infinite cubic-bezier(0.2, 0.5, 0.2, 1);
}

.loc-orb-ring-1 { animation-delay: 0s; }
.loc-orb-ring-2 { animation-delay: 1.2s; }
.loc-orb-ring-3 { animation-delay: 2.4s; }

@keyframes orbRipple {
    0% { transform: scale(0.5); opacity: 0; }
    30% { opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; }
}

.loc-icon-frame {
    font-size: 64px;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loc-card:hover .loc-icon-frame {
    transform: scale(1.15) rotate(5deg);
}

/* ── LAYOUT FIXES ─────────────────────────────────────────────── */
.loc-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 24px;
    padding: 40px;
}

.loc-dot {
    width: 8px;
    height: 8px;
    background: rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loc-dot.active {
    background: var(--gold);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--gold);
}

/* Dynamic Category Coloring */
[data-cat="lifestyle"] { --cat-accent: #ff7e5f; }
[data-cat="islamic"]   { --cat-accent: var(--gold); }
[data-cat="finance"]   { --cat-accent: #2ecc71; }

.loc-cat-badge, .loc-type-tag {
  background: var(--gold);
}

.loc-orb-ring {
  border-color: var(--cat-accent);
  box-shadow: 0 0 15px var(--cat-accent);
}

.hl { 
  color: var(--cat-accent); 
  font-weight: 700;
  border-bottom: 1px dashed var(--cat-accent);
}

.loc-card.animating {
  animation: locFadeSlide 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes locFadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shuffle Animation for the Orb */
.loc-shuffling .loc-icon-frame {
  animation: insIconPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loc-shuffling .loc-orb-ring {
  animation: insRingFlash 0.5s ease-out forwards;
  border-color: #fff; /* Flash white briefly */
}

@keyframes insIconPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4) rotate(15deg); filter: brightness(1.5); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes insRingFlash {
  0% { transform: scale(1); opacity: 1; border-width: 4px; }
  100% { transform: scale(2); opacity: 0; border-width: 1px; }
}