@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Vazirmatn:wght@300;400;500;600;700;900&display=swap');

/* ================================================================
   Ghestineh Agent Stores — White / Orange / Teal Theme
   Fonts: Lalezar (display) · Vazirmatn (body)
   ================================================================ */

:root {
  /* ── Surfaces ──────────────────────────────── */
  --c-bg:        #f4f6f9;
  --c-surface:   #ffffff;
  --c-surface-2: #f8fafc;
  --c-surface-3: #f1f5f9;
  --c-border:    #e2e8f0;
  --c-border-hi: #cbd5e1;

  /* ── Typography ────────────────────────────── */
  --c-text:      #1e293b;
  --c-text-2:    #475569;
  --c-text-3:    #94a3b8;
  --font-display: 'Lalezar', 'Tahoma', sans-serif;
  --font-body:    'Vazirmatn', 'Tahoma', sans-serif;

  /* ── Orange ────────────────────────────────── */
  --c-orange:      #f97316;
  --c-orange-dk:   #ea580c;
  --c-orange-lt:   #fff7ed;
  --c-orange-glow: rgba(249,115,22,.15);

  /* ── Teal ──────────────────────────────────── */
  --c-teal:      #0d9488;
  --c-teal-dk:   #0f766e;
  --c-teal-lt:   #f0fdfa;
  --c-teal-glow: rgba(13,148,136,.12);

  /* ── Rank tokens ───────────────────────────── */
  --r-pt-c:   #6366f1; --r-pt-bg: #eef2ff; --r-pt-brd: #c7d2fe; --r-pt-glow: rgba(99,102,241,.12);
  --r-go-c:   #f97316; --r-go-bg: #fff7ed; --r-go-brd: #fdba74; --r-go-glow: rgba(249,115,22,.16);
  --r-br-c:   #92400e; --r-br-bg: #fef3c7; --r-br-brd: #fcd34d; --r-br-glow: rgba(146,64,14,.1);

  /* ── Shape & shadow ────────────────────────── */
  --r:          12px;
  --r-sm:       8px;
  --sh-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh:         0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.05);
  --sh-hover:   0 14px 40px rgba(0,0,0,.11), 0 4px 12px rgba(0,0,0,.07);
}

/* ── Base typography ─────────────────────────── */
.gas-public-wrap,
.gas-single-store {
  font-family: var(--font-body);
}

/* ── Wrapper ─────────────────────────────────── */
.gas-public-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  direction: rtl;
  color: var(--c-text);
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════ */

.gas-filter {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.gas-filter-top {
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--c-border);
}
.gas-filter-top-icon {
  font-size: 15px;
  flex-shrink: 0;
  opacity: .45;
}
.gas-filter-top input {
  flex: 1;
  padding: 15px 4px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--c-text);
  font-family: var(--font-body);
  outline: none;
}
.gas-filter-top input::placeholder { color: var(--c-text-3); }

.gas-filter-bottom {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--c-surface-2);
}
.gas-filter-bottom select,
.gas-filter-bottom input[type="text"] {
  padding: 9px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--c-text);
  background: var(--c-surface);
  flex: 1;
  min-width: 110px;
  box-sizing: border-box;
  font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.gas-filter-bottom select:focus,
.gas-filter-bottom input[type="text"]:focus {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px var(--c-orange-glow);
  outline: none;
}
.gas-filter-btn {
  padding: 9px 24px;
  background: var(--c-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .02em;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.gas-filter-btn:hover  { background: var(--c-orange-dk); box-shadow: 0 4px 18px var(--c-orange-glow); }
.gas-filter-btn:active { transform: scale(.97); }

/* ══════════════════════════════════════════════
   STORE GRID
   ══════════════════════════════════════════════ */

.gas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ══════════════════════════════════════════════
   STORE CARD
   ══════════════════════════════════════════════ */

.gas-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.gas-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-border-hi);
}

/* Ranked borders + hover glow */
.gas-card--platinum { border-color: var(--r-pt-brd); }
.gas-card--platinum:hover { box-shadow: var(--sh-hover), 0 0 24px var(--r-pt-glow); border-color: var(--r-pt-c); }
.gas-card--gold     { border-color: var(--r-go-brd); }
.gas-card--gold:hover { box-shadow: var(--sh-hover), 0 0 28px var(--r-go-glow); border-color: var(--r-go-c); }
.gas-card--bronze   { border-color: var(--r-br-brd); }
.gas-card--bronze:hover { box-shadow: var(--sh-hover), 0 0 22px var(--r-br-glow); border-color: var(--r-br-c); }

/* ── Cover ───────────────────────────────────── */
.gas-card-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--c-surface-3);
  flex-shrink: 0;
}
.gas-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.93) saturate(.9);
  transition: transform .45s ease, filter .45s ease;
}
.gas-card:hover .gas-card-cover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.05);
}
.gas-card-cover-blank {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
  font-size: 52px;
  opacity: .5;
}
.gas-card-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 55%);
  pointer-events: none;
}
.gas-card-rank-pin {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
}
.gas-card-score-pin {
  position: absolute;
  bottom: 9px; left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  font-family: var(--font-body);
}
.gas-card-score-pin .gas-star-icon { color: #f59e0b; font-size: 13px; }

/* ── Body ────────────────────────────────────── */
.gas-card-body {
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gas-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--c-orange);
  background: var(--c-orange-lt);
  border: 1px solid rgba(249,115,22,.2);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 9px;
  width: fit-content;
  letter-spacing: .03em;
}
.gas-agent-badge::before { content: '◈'; font-size: 9px; }

.gas-card-title {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.3;
}

.gas-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.gas-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--c-text-2);
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.gas-card-excerpt {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.78;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 14px;
}

/* ── Actions ─────────────────────────────────── */
.gas-card-actions {
  display: flex;
  gap: 8px;
  padding: 13px 0 17px;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}
.gas-card-link {
  flex: 1;
  text-align: center;
  padding: 9px 14px;
  background: var(--c-orange);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: background .15s, box-shadow .15s;
  line-height: 1.35;
}
.gas-card-link:hover {
  background: var(--c-orange-dk);
  box-shadow: 0 4px 18px var(--c-orange-glow);
  color: #fff !important;
}
.gas-card-tel {
  padding: 9px 14px;
  background: var(--c-teal-lt);
  color: var(--c-teal) !important;
  border: 1px solid rgba(13,148,136,.22);
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.gas-card-tel:hover {
  background: #ccfbf1;
  box-shadow: 0 4px 14px var(--c-teal-glow);
  color: var(--c-teal-dk) !important;
}

/* ══════════════════════════════════════════════
   RANK BADGES
   ══════════════════════════════════════════════ */

.gas-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid;
  white-space: nowrap;
  letter-spacing: .03em;
  font-family: var(--font-body);
}
.gas-rank-icon { font-size: 12px; }
.gas-rank-platinum { background: var(--r-pt-bg); color: var(--r-pt-c); border-color: var(--r-pt-brd); }
.gas-rank-gold     { background: var(--r-go-bg); color: var(--r-go-c); border-color: var(--r-go-brd); }
.gas-rank-bronze   { background: var(--r-br-bg); color: var(--r-br-c); border-color: var(--r-br-brd); }

/* ══════════════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════════════ */

.gas-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-orange-lt);
  color: var(--c-orange);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(249,115,22,.22);
  width: fit-content;
}
.gas-badge::before { content: '◈'; font-size: 9px; }

.gas-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.gas-score-badge .gas-star-icon { font-size: 13px; }

.gas-meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gas-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--c-text-2);
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  padding: 3px 9px;
  border-radius: 999px;
}
.gas-meta-light {
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.2);
}

/* ══════════════════════════════════════════════
   EMPTY STATE & PAGINATION
   ══════════════════════════════════════════════ */

.gas-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 24px;
  background: var(--c-surface);
  border: 1.5px dashed var(--c-border-hi);
  border-radius: var(--r);
  color: var(--c-text-3);
  font-size: 15px;
}
.gas-empty::before { display: block; content: '🔍'; font-size: 36px; margin-bottom: 14px; }

.gas-pagination {
  display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap;
}
.gas-pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--c-text-2);
  font-size: 14px; font-weight: 600;
  background: var(--c-surface);
  font-family: var(--font-body);
  transition: all .15s;
}
.gas-pagination a:hover { border-color: var(--c-orange); color: var(--c-orange); }
.gas-pagination a.is-active { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }

/* ══════════════════════════════════════════════
   SINGLE STORE — full-width hero layout
   ══════════════════════════════════════════════ */

.gas-single-store {
  direction: rtl;
  background: var(--c-bg);
  font-family: var(--font-body);
  color: var(--c-text);
  box-sizing: border-box;
  /* width & margin-left set by JS initFullWidth() */
}

/* ── Hero (always dark — image overlay) ──────── */
.gas-single-hero {
  position: relative;
  height: 480px;
  background: #1e293b;
  overflow: hidden;
}
.gas-single-hero-plain {
  height: 240px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.gas-single-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: .5;
  filter: saturate(.75);
  transition: transform 12s ease;
}
.gas-single-hero:hover .gas-single-hero-bg { transform: scale(1.04); }
.gas-single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,15,30,.95) 0%,
    rgba(10,15,30,.6) 42%,
    rgba(10,15,30,.12) 100%
  );
}
.gas-single-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.gas-single-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 36px;
  display: flex;
  gap: 22px;
  align-items: flex-end;
}
.gas-single-logo {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: 16px;
  border: 2.5px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  background: #fff;
}
.gas-single-head-info { flex: 1; min-width: 0; }
.gas-single-badges {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.gas-single-head-info h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}

/* ── Body (white/light bg) ───────────────────── */
.gas-single-body {
  padding: 40px 0 52px;
  background: var(--c-bg);
}
.gas-single-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.gas-lead {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 2;
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-right: 3px solid var(--c-orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  box-shadow: var(--sh-sm);
}

.gas-richtext {
  font-size: 15px; line-height: 2.1; color: var(--c-text-2); margin-bottom: 30px;
}
.gas-richtext h2, .gas-richtext h3 {
  font-family: var(--font-display);
  color: var(--c-text); margin: 26px 0 12px; font-size: 22px; font-weight: 400;
}

/* ── Contact bar ─────────────────────────────── */
.gas-contact-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.gas-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text) !important;
  border: 1.5px solid var(--c-border-hi);
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s, background .15s;
  cursor: pointer; line-height: 1.4;
}
.gas-btn:hover {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px var(--c-orange-glow);
  color: var(--c-text) !important;
}
.gas-btn-outline {
  background: transparent;
  color: var(--c-text-2) !important;
  border-color: var(--c-border);
}
.gas-btn-outline:hover { border-color: var(--c-border-hi); color: var(--c-text) !important; }
.gas-btn-phone {
  background: var(--c-teal-lt);
  color: var(--c-teal) !important;
  border-color: rgba(13,148,136,.25);
}
.gas-btn-phone:hover { background: #ccfbf1; color: var(--c-teal-dk) !important; }

/* ── Section headings ────────────────────────── */
.gas-info-section h2,
.gas-gallery-section h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--c-text);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-border);
  position: relative;
}
.gas-info-section h2::after,
.gas-gallery-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 60px; height: 2px;
  background: var(--c-orange);
  border-radius: 2px;
}

/* ── Info grid ───────────────────────────────── */
.gas-info-section { margin: 0 0 34px; }
.gas-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.gas-info-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: var(--sh-sm);
  transition: border-color .15s, box-shadow .15s;
}
.gas-info-item:hover { border-color: var(--c-orange); box-shadow: 0 0 0 3px var(--c-orange-glow); }
.gas-info-full { grid-column: span 2; }
.gas-info-item-label {
  font-size: 10px; font-weight: 700;
  color: var(--c-text-3);
  letter-spacing: .08em; text-transform: uppercase;
}
.gas-info-item-value { font-size: 14px; color: var(--c-text); font-weight: 600; }
.gas-info-item-value a { color: var(--c-orange); text-decoration: none; }
.gas-info-item-value a:hover { text-decoration: underline; }

/* ── Gallery ─────────────────────────────────── */
.gas-gallery-section { margin: 0 0 34px; }
.gas-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.gas-gallery-grid a {
  display: block; overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  aspect-ratio: 1;
  transition: border-color .2s, box-shadow .2s;
}
.gas-gallery-grid a:hover { border-color: var(--c-orange); box-shadow: 0 4px 14px var(--c-orange-glow); }
.gas-gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .38s ease;
}
.gas-gallery-grid a:hover img { transform: scale(1.08); }

/* ── Reviews inside single store ─────────────── */
.gas-single-store .gas-reviews-wrap {
  background: #f4f6f9;
  border-top: 1px solid #e2e8f0;
  color: #1e293b;
}

/* ── Misc ────────────────────────────────────── */
.gas-alert {
  padding: 14px 18px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px;
}
.gas-alert-error {
  background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b;
}
.gas-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-text-3); text-decoration: none; font-size: 14px; margin-bottom: 20px;
}
.gas-back-link:hover { color: var(--c-orange); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .gas-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
}
@media (max-width: 768px) {
  .gas-public-wrap { padding: 0 12px; margin: 20px auto; }
  .gas-filter-bottom { flex-wrap: wrap; }
  .gas-filter-bottom select,
  .gas-filter-bottom input[type="text"] { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
  .gas-single-hero { height: 360px; }
  .gas-single-hero-inner { padding: 0 20px 26px; gap: 16px; }
  .gas-single-logo { width: 72px; height: 72px; border-radius: 13px; }
  .gas-single-head-info h1 { font-size: 26px; }
  .gas-single-inner { padding: 0 18px; }
  .gas-single-body { padding: 28px 0 40px; }
  .gas-info-full { grid-column: span 1; }
  .gas-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 540px) {
  .gas-grid { grid-template-columns: 1fr; }
  .gas-filter-bottom select,
  .gas-filter-bottom input[type="text"] { min-width: 100%; flex: 1 1 100%; }
  .gas-single-hero { height: 280px; }
  .gas-single-hero-inner { padding: 0 14px 20px; gap: 12px; }
  .gas-single-logo { width: 60px; height: 60px; border-radius: 11px; }
  .gas-single-head-info h1 { font-size: 20px; }
  .gas-single-inner { padding: 0 14px; }
}
