/* /places landing (Rayeshmand26 tokens from skin.css): hero, quick paths, province cards, top centres. One file: the hero
   module is on every view of the page, so the other blocks need no stylesheet of their own. */
.rpl-hero { position: relative; margin: 8px 0 36px; padding: 40px 36px 32px; border-radius: 18px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 12% 0%, rgba(31, 158, 156, .55), transparent 45%), radial-gradient(circle at 100% 100%, rgba(229, 88, 63, .35), transparent 40%), var(--rm-ink, #16205b); }
.rpl-hero::after { content: ""; position: absolute; inset-inline-end: -60px; inset-block-start: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03); pointer-events: none; }
.rpl-hero-main { position: relative; max-width: 760px; }
.rpl-kicker { margin: 0 0 8px; font-size: .95rem; color: #9fe3e1; font-weight: 700; }
.rpl-hero h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.45; color: #fff; }
.rpl-lead { margin: 0 0 20px; font-size: 1.05rem; color: rgba(255, 255, 255, .86); }
.rpl-cta { display: inline-block; padding: 10px 26px; border-radius: 999px; background: var(--rm-coral, #e5583f); color: #fff !important; font-weight: 700; text-decoration: none; }
.rpl-cta:hover, .rpl-cta:focus-visible { background: #c9452e; }
.rpl-stats { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 30px 0 26px; padding: 0; list-style: none; }
.rpl-stats li { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.rpl-stats b { display: block; font-size: 1.55rem; line-height: 1.3; }
.rpl-stats span { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.rpl-paths { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.rpl-path h2 { margin: 0 0 10px; font-size: 1rem; color: #fff; }
.rpl-path a { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff !important; text-decoration: none; font-size: .95rem; }
.rpl-path a small { color: #9fe3e1; font-size: .85rem; }
.rpl-path a:hover, .rpl-path a:focus-visible { background: rgba(255, 255, 255, .2); }

.rpl-block { margin: 0 0 40px; }
.rpl-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.rpl-block-head h2 { margin: 0; padding-inline-start: 14px; border-inline-start: 4px solid var(--rm-coral, #e5583f); color: var(--rm-ink, #16205b); font-size: 1.35rem; }
.rpl-block-head p { margin: 0; color: var(--rm-muted, #5d6475); }

.rpl-provinces { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rpl-provinces a { position: relative; display: block; padding: 14px 16px 18px; border: 1px solid var(--rm-rule, #e6e3da); border-radius: 12px;
  background: var(--rm-card, #fff); color: var(--rm-text, #2f3445); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.rpl-provinces a:hover, .rpl-provinces a:focus-visible { border-color: var(--rm-link, #005eb9); transform: translateY(-2px); }
.rpl-provinces strong { display: block; color: var(--rm-ink, #16205b); font-size: 1.05rem; }
.rpl-count { display: block; margin-top: 4px; font-size: 1.3rem; font-weight: 700; color: var(--rm-link, #005eb9); }
.rpl-count small { font-size: .85rem; font-weight: 400; color: var(--rm-muted, #5d6475); }
.rpl-meta { display: block; font-size: .85rem; color: var(--rm-muted, #5d6475); }
.rpl-bar { position: absolute; inset-block-end: 0; inset-inline-start: 0; height: 4px; background: linear-gradient(90deg, var(--rm-teal, #1f9e9c), var(--rm-link, #005eb9)); }

.rpl-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rpl-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 16px; border-radius: 14px;
  background: var(--rm-card, #fff); box-shadow: var(--rm-shadow); color: var(--rm-text, #2f3445); text-decoration: none; }
.rpl-card:hover strong, .rpl-card:focus-visible strong { color: var(--rm-link, #005eb9); }
.rpl-rank { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rm-soft, #f3f1ea); color: var(--rm-coral-text, #b8361f); font-weight: 700; }
.rpl-card strong { padding-inline-end: 36px; color: var(--rm-ink, #16205b); font-size: 1.05rem; line-height: 1.6; }
.rpl-tags em, .rpl-item-tags em { display: inline-block; margin: 0 0 4px 6px; padding: 1px 10px; border-radius: 999px; background: var(--rm-soft, #f3f1ea); font-style: normal; font-size: .82rem; color: var(--rm-text, #2f3445); }
.rpl-place { font-size: .9rem; color: var(--rm-muted, #5d6475); }
.rpl-views { margin-top: auto; font-size: .82rem; color: var(--rm-muted, #5d6475); }

@media (max-width: 1024px) {
  .rpl-stats { grid-template-columns: repeat(3, 1fr); }
  .rpl-paths { grid-template-columns: 1fr; }
  .rpl-cards { grid-template-columns: repeat(2, 1fr); }
}
/* phones (owner 2026-11-02: the schools were far below): a short hero, the paths as one swiping row each, the
   provinces as small two-column tiles with the first 8 shown («همه‌ی استان‌ها» opens the rest) */
@media (max-width: 640px) {
  .rpl-hero { margin-bottom: 22px; padding: 22px 16px 16px; border-radius: 14px; }
  .rpl-hero h1 { font-size: 1.35rem; }
  .rpl-lead { display: none; }
  .rpl-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 16px; }
  .rpl-stats li { padding: 8px 8px; }
  .rpl-stats li:nth-child(n+4) { display: none; }
  .rpl-stats b { font-size: 1.05rem; }
  .rpl-stats span { font-size: .72rem; }
  .rpl-paths { gap: 10px; }
  .rpl-path { display: flex; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .rpl-path::-webkit-scrollbar { display: none; }
  .rpl-path h2 { flex: none; margin: 0 0 8px 8px; font-size: .82rem; color: rgba(255, 255, 255, .7); }
  .rpl-path a { flex: none; white-space: nowrap; padding: 5px 12px; font-size: .85rem; }
  .rpl-provinces { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rpl-provinces a { padding: 10px 12px 12px; }
  .rpl-provinces strong { font-size: .92rem; }
  .rpl-count { margin-top: 2px; font-size: 1rem; }
  .rpl-meta { display: none; }
  .rpl-provinces:not(.rpl-all) li:nth-child(n+9) { display: none; }
  .rpl-block .rpl-more { display: block; }
  /* the most visited: one row to swipe, a card and a bit of the next in view */
  .rpl-cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .rpl-cards::-webkit-scrollbar { display: none; }
  .rpl-cards > li { flex: 0 0 78%; scroll-snap-align: start; }
}

/* active filters and the chosen paths */
.rpl-path a.rpl-on { background: #fff; color: var(--rm-ink, #16205b) !important; border-color: #fff; }
.rpl-path a.rpl-on small { color: var(--rm-coral-text, #b8361f); }
.rpl-provinces a.rpl-on { border-color: var(--rm-coral, #e5583f); box-shadow: 0 0 0 2px var(--rm-coral, #e5583f) inset; }
.rpl-active { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); }
.rpl-active span { color: rgba(255, 255, 255, .8); }
.rpl-active a { padding: 4px 12px; border-radius: 999px; background: var(--rm-coral, #e5583f); color: #fff !important; text-decoration: none; font-size: .9rem; }
.rpl-active a.rpl-clear-all { background: transparent; text-decoration: underline; }

#rpl-geo, .rpl-list { scroll-margin-top: 90px; }
.rpl-more { display: none; width: 100%; margin: 10px 0 0; padding: 10px; border: 1px dashed var(--rm-rule, #e6e3da); border-radius: 12px; background: var(--rm-card, #fff); color: var(--rm-link, #005eb9); font: inherit; font-weight: 700; cursor: pointer; }
.rpl-share { margin-inline-start: auto; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.rpl-share:hover, .rpl-share:focus-visible { background: rgba(255, 255, 255, .15); }
