:root {
      --text: #fff7ea;
      --muted: #d0c0a8;
      --gold: #c99a53;
      --gold2: #f2cb82;
      --btn-brass: #b8793c;
      --btn-brass-hover: #c98f4a;
      --btn-brass-active: #8e5f31;
      --btn-ink: #130e09;
      --shadow: 0 26px 70px rgba(0, 0, 0, .34);
      --glass: rgba(17, 14, 11, .72);
      --line: rgba(242, 203, 130, .16);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: 'IRANYekan', 'IRYekan', Tahoma, Arial, sans-serif !important;
      color: var(--text);
      background:
        radial-gradient(circle at 12% 8%, rgba(242, 203, 130, .14), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .045), transparent 24%),
        linear-gradient(180deg, #211b14 0%, #251d14 24%, #181410 56%, #13100d 100%);
      overflow-x: hidden;
      text-align: right;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, select, textarea { font-family: inherit !important; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 90;
      background: rgba(22, 18, 13, .78);
      border-bottom: 1px solid rgba(242, 203, 130, .14);
      backdrop-filter: blur(18px);
      box-shadow: 0 14px 40px rgba(0,0,0,.18);
    }

    .nav-wrap {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      color: #1a1208;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      font-weight: 950;
      box-shadow: 0 14px 34px rgba(0,0,0,.22);
      flex-shrink: 0;
    }

    .brand strong {
      display: block;
      font-size: .98rem;
      font-weight: 950;
      line-height: 1.4;
    }

    .brand small {
      display: block;
      color: #dccbb5;
      font-size: .72rem;
      direction: ltr;
      text-align: right;
    }

    .btn-gold,
    .btn-soft {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 16px;
      border-radius: 10px;
      font-size: .84rem;
      font-weight: 850;
      border: 1px solid transparent;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
      white-space: nowrap;
      cursor: pointer;
    }

    .btn-gold {
      color: var(--btn-ink);
      border-color: rgba(242,203,130,.26);
      background: var(--btn-brass);
      box-shadow: 0 12px 26px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.18);
    }

    .btn-soft {
      color: #f0d4aa;
      background: rgba(184,121,60,.09);
      border-color: rgba(184,121,60,.42);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
    }

    .btn-gold:hover,
    .btn-soft:hover { transform: translateY(-1px); }

    .btn-gold:hover {
      color: var(--btn-ink);
      background: var(--btn-brass-hover);
      border-color: rgba(242,203,130,.42);
      box-shadow: 0 16px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.24);
    }

    .btn-soft:hover {
      color: #ffe2b2;
      background: rgba(184,121,60,.17);
      border-color: rgba(201,143,74,.68);
      box-shadow: 0 12px 28px rgba(0,0,0,.20), inset 0 0 0 1px rgba(242,203,130,.06);
    }

    .btn-gold:active,
    .btn-soft:active { transform: translateY(1px); }

    .btn-gold:active {
      background: var(--btn-brass-active);
      box-shadow: inset 0 2px 8px rgba(0,0,0,.22);
    }

    .btn-soft:active {
      background: rgba(142,95,49,.22);
      border-color: rgba(201,143,74,.75);
    }

    .btn-gold:focus-visible,
    .btn-soft:focus-visible {
      outline: 2px solid rgba(242,203,130,.72);
      outline-offset: 3px;
    }

    .btn-gold:disabled,
    .btn-soft:disabled,
    .btn-gold.disabled,
    .btn-soft.disabled,
    .btn-gold[aria-disabled="true"],
    .btn-soft[aria-disabled="true"] {
      opacity: .48;
      pointer-events: none;
      transform: none;
      box-shadow: none;
    }

    .hero {
      position: relative;
      padding: 26px 0 18px;
      overflow: hidden;
      background:
        linear-gradient(90deg, rgba(12, 10, 7, .88), rgba(22, 17, 11, .58)),
        linear-gradient(180deg, rgba(12, 10, 7, .35), rgba(12, 10, 7, .72)),
        url('../../images/dark-building.jpg') center center / cover no-repeat;
      border-bottom: 1px solid rgba(242,203,130,.10);
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 18% 35%, rgba(242,203,130,.12), transparent 24%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28));
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      min-height: 188px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 22px;
      text-align: right;
    }

    .hero-kicker {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px 11px;
      margin-bottom: 10px;
      border-radius: 999px;
      color: var(--gold2);
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(242,203,130,.16);
      font-size: .74rem;
      font-weight: 850;
    }

    .hero h1 {
      margin: 0 0 8px;
      max-width: 720px;
      font-size: clamp(1.35rem, 2.5vw, 2.35rem);
      line-height: 1.35;
      font-weight: 950;
      letter-spacing: -.04em;
      text-align: right;
    }

    .hero h1 span { color: var(--gold2); }

    .hero p {
      max-width: 660px;
      margin: 0;
      color: #d8c6aa;
      line-height: 1.9;
      text-align: right;
      font-size: .88rem;
    }

    .request-box {
      min-width: 310px;
      padding: 16px;
      border-radius: 24px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        rgba(18, 15, 11, .58);
      border: 1px solid rgba(242,203,130,.20);
      box-shadow: 0 22px 50px rgba(0,0,0,.25);
      backdrop-filter: blur(14px);
      text-align: center;
    }

    .request-box strong {
      display: block;
      margin-bottom: 6px;
      color: #fff3df;
      font-size: .95rem;
      font-weight: 950;
    }

    .request-box span {
      display: block;
      margin-bottom: 12px;
      color: #d5c3aa;
      font-size: .78rem;
      line-height: 1.7;
    }

    .main-section {
      position: relative;
      padding: 34px 0 86px;
    }

    .main-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 12% 22%, rgba(242, 203, 130, .08), transparent 26%),
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .04), transparent 22%);
      pointer-events: none;
    }

    .main-section .container {
      position: relative;
      z-index: 1;
    }

    .rep-layout {
      --rep-panel-height: clamp(700px, calc(100vh - 112px), 860px);
      display: grid;
      grid-template-columns: minmax(500px, 38%) minmax(0, 62%);
      gap: 22px;
      align-items: stretch;
    }

    .side-panel,
    .map-panel,
    .apply-section {
      border: 1px solid rgba(255,255,255,.08);
      background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(17, 14, 11, .72);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }

    .side-panel {
      position: sticky;
      top: 94px;
      height: var(--rep-panel-height);
      border-radius: 30px;
      padding: 18px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .panel-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .panel-head h2 {
      margin: 0;
      color: #fff3df;
      font-size: 1.25rem;
      font-weight: 950;
    }

    .panel-head p {
      width: 100%;
      margin: 2px 0 0;
      color: #cdbba1;
      font-size: .82rem;
      line-height: 1.8;
    }

    .rep-count {
      min-height: 30px;
      display: inline-flex;
      align-items: center;
      padding: 0 10px;
      border-radius: 999px;
      color: #1a1208;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      font-size: .72rem;
      font-weight: 950;
    }

    .filters {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .filter-field {
      position: relative;
    }

    .filter-field.full { grid-column: 1 / -1; }

    .filter-field input,
    .filter-field select {
      width: 100%;
      min-height: 42px;
      border-radius: 15px;
      border: 1px solid rgba(242,203,130,.14);
      background: rgba(255,255,255,.065);
      color: #fff4df;
      outline: 0;
      padding: 0 12px;
      font-size: .82rem;
      transition: .22s ease;
    }

    .filter-field select option {
      color: #20170f;
    }

    .filter-field input::placeholder {
      color: rgba(255,244,223,.48);
    }

    .filter-field input:focus,
    .filter-field select:focus {
      border-color: rgba(242,203,130,.48);
      box-shadow: 0 0 0 4px rgba(201,154,83,.10);
      background: rgba(255,255,255,.09);
    }

    .quick-map-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .quick-map-actions .btn-soft,
    .quick-map-actions .btn-gold {
      width: 100%;
      min-height: 40px;
      padding-inline: 10px;
      font-size: .78rem;
    }

    .nearest-note {
      display: none;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(255,255,255,.055);
      border: 1px solid rgba(242,203,130,.15);
      color: #d8c6aa;
      font-size: .76rem;
      line-height: 1.8;
    }

    .nearest-note.show {
      display: block;
    }

    .nearest-note strong {
      color: var(--gold2);
      font-weight: 950;
    }

    .rep-list {
      flex: 1;
      min-height: 0;
      overflow: auto;
      padding-left: 6px;
      padding-bottom: 6px;
      display: grid;
      align-content: start;
      gap: 10px;
      scrollbar-width: thin;
      scrollbar-color: rgba(242,203,130,.42) rgba(255,255,255,.05);
    }

    .province-group-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 18px 2px 9px;
      padding: 9px 13px;
      color: var(--gold2);
      border-right: 3px solid var(--gold);
      border-radius: 9px;
      background: rgba(201, 154, 83, .09);
      font-size: .86rem;
      font-weight: 900;
    }

    .province-group-title:first-child { margin-top: 2px; }
    .province-group-title b { min-width: 25px; height: 25px; display: grid; place-items: center; color: #1a1208; border-radius: 999px; background: var(--gold2); font-size: .7rem; }

    .rep-list::-webkit-scrollbar { width: 7px; }
    .rep-list::-webkit-scrollbar-track {
      border-radius: 999px;
      background: rgba(255,255,255,.05);
    }
    .rep-list::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: linear-gradient(180deg, var(--gold2), var(--gold));
    }

    .rep-card {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      padding: 22px 18px;
      min-height: 275px;
      background:
        linear-gradient(90deg, rgba(242,203,130,.075) 0 4px, transparent 4px),
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(255,255,255,.026);
      border: 1px solid rgba(255,255,255,.09);
      cursor: pointer;
      transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, background .28s ease, box-shadow .28s ease;
    }

    .rep-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(242,203,130,.09), transparent);
      transform: translateX(110%);
      transition: transform .7s ease;
      pointer-events: none;
    }

    .rep-card:hover,
    .rep-card.active {
      transform: translateY(-3px);
      border-color: rgba(242,203,130,.36);
      background: rgba(255,255,255,.07);
      box-shadow: 0 18px 42px rgba(0,0,0,.18);
    }

    .rep-card:hover::before,
    .rep-card.active::before { transform: translateX(-110%); }

    .rep-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 18px;
      min-height: 82px;
    }

    .rep-title {
      min-width: 0;
      display: block;
      flex: 1;
    }

    .rep-name {
      min-width: 0;
    }

    .rep-title h3 {
      margin: 0 0 9px;
      color: #fff7ea;
      background: none;
      border: 0;
      border-radius: 0;
      padding: 0;
      box-shadow: none;
      font-size: 1.08rem;
      font-weight: 950;
      line-height: 1.75;
      letter-spacing: -.01em;
      white-space: normal;
      overflow-wrap: break-word;
      word-break: normal;
    }

    .rep-title span {
      display: block;
      color: #d8c6aa;
      background: none;
      border: 0;
      padding: 0;
      min-height: 0;
      font-size: .8rem;
      font-weight: 700;
      line-height: 1.85;
    }

    .rep-badge {
      flex: 0 0 auto;
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      border-radius: 999px;
      color: #1a1208;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      font-size: .68rem;
      font-weight: 950;
      white-space: nowrap;
      box-shadow: 0 10px 22px rgba(0,0,0,.14);
    }

    .rep-info {
      display: grid;
      gap: 8px;
      color: #d9c8b2;
      font-size: .74rem;
      line-height: 1.65;
    }

    .rep-meta-line {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      min-width: 0;
    }

    .rep-meta-line span {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.055);
      color: #e2d1bb;
      white-space: nowrap;
    }

    .rep-address-line {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      white-space: normal;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #cdbba1;
      padding: 0 2px;
      direction: rtl;
      min-height: 34px;
    }

    .rep-info b {
      color: var(--gold2);
      font-weight: 900;
      white-space: nowrap;
    }

    .rep-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 8px;
    }

    .mini-btn {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      border-radius: 12px;
      color: #1a1208;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      font-size: .72rem;
      font-weight: 900;
      transition: .2s ease;
      border: 0;
    }

    .mini-btn.secondary {
      color: #f7ead7;
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.13);
    }

    .mini-btn:hover { transform: translateY(-2px); }

    .map-panel {
      height: var(--rep-panel-height);
      border-radius: 34px;
      overflow: hidden;
      position: relative;
    }

    .map-toolbar {
      position: absolute;
      z-index: 3;
      top: 18px;
      right: 18px;
      left: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      pointer-events: none;
    }

    .map-title,
    .map-selected {
      pointer-events: auto;
      border-radius: 20px;
      background: rgba(18, 15, 11, .72);
      border: 1px solid rgba(255,255,255,.10);
      backdrop-filter: blur(14px);
      box-shadow: 0 18px 46px rgba(0,0,0,.22);
    }

    .map-title {
      padding: 13px 16px;
    }

    .map-title strong {
      display: block;
      color: #fff3df;
      font-size: .95rem;
      margin-bottom: 3px;
    }

    .map-title span {
      color: #d2c0a7;
      font-size: .74rem;
    }

    .map-selected {
      min-width: 260px;
      max-width: 360px;
      padding: 13px 15px;
    }

    .map-selected strong {
      display: block;
      color: #fff3df;
      font-size: .9rem;
      margin-bottom: 4px;
    }

    .map-selected span {
      display: block;
      color: #d7c5ac;
      font-size: .73rem;
      line-height: 1.65;
    }

    #map {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .mapboxgl-popup-content {
      direction: rtl;
      text-align: right;
      font-family: 'IRANYekan', 'IRYekan', Tahoma, Arial, sans-serif;
      border-radius: 16px;
      background: rgba(20, 16, 12, .96);
      color: #fff3df;
      border: 1px solid rgba(242,203,130,.20);
      box-shadow: 0 18px 40px rgba(0,0,0,.30);
      min-width: 230px;
    }

    .mapboxgl-popup-close-button {
      color: #fff3df;
      font-size: 18px;
      left: 7px;
      right: auto;
    }

    .leaflet-container { font-family: 'IRANYekan', 'IRYekan', Tahoma, Arial, sans-serif; }
    .leaflet-popup-content-wrapper,
    .leaflet-popup-tip { background: #17120d; color: #fff7ea; }
    .leaflet-popup-content-wrapper { border: 1px solid rgba(242, 203, 130, .24); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .34); }
    .leaflet-popup-content { min-width: 190px; text-align: right; }
    .leaflet-popup-close-button { color: #f2cb82 !important; }
    .leaflet-control-attribution { direction: ltr; }
    .map-empty-state { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #f2cb82; background: #17120d; text-align: center; }

    .popup-title {
      margin: 0 0 6px;
      color: var(--gold2);
      font-size: .9rem;
      font-weight: 950;
    }

    .popup-text {
      margin: 0 0 8px;
      color: #d9c8b2;
      font-size: .76rem;
      line-height: 1.65;
    }

    .popup-link {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      padding: 0 10px;
      border-radius: 999px;
      color: #1a1208;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      font-size: .72rem;
      font-weight: 900;
    }

    .rep-marker {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 50% 50% 50% 0;
      background: linear-gradient(135deg, var(--gold2), var(--gold));
      border: 3px solid rgba(255,244,223,.88);
      box-shadow: 0 0 0 8px rgba(201,154,83,.12), 0 14px 30px rgba(0,0,0,.34);
      cursor: pointer;
      transform: rotate(-45deg);
      transition: transform .22s ease, box-shadow .22s ease;
    }

    .rep-marker span {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #1a1208;
      box-shadow: inset 0 1px 1px rgba(255,255,255,.26);
    }

    .rep-marker:hover,
    .rep-marker.active {
      transform: rotate(-45deg) scale(1.18);
      box-shadow: 0 0 0 12px rgba(201,154,83,.18), 0 18px 40px rgba(0,0,0,.42);
    }

    .rep-marker.nearest {
      background: linear-gradient(135deg, #ffffff, var(--gold2));
      box-shadow: 0 0 0 10px rgba(242,203,130,.20), 0 0 34px rgba(242,203,130,.32), 0 18px 40px rgba(0,0,0,.42);
    }

    .user-marker {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #6ec6ff;
      border: 3px solid rgba(255,255,255,.92);
      box-shadow: 0 0 0 10px rgba(110,198,255,.18), 0 16px 36px rgba(0,0,0,.34);
    }

    .apply-section {
      margin-top: 26px;
      border-radius: 34px;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, .78fr) minmax(460px, 1.22fr);
      align-items: start;
      gap: 22px;
      padding: 26px;
      position: relative;
    }

    .apply-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 86% 18%, rgba(242,203,130,.11), transparent 26%),
        linear-gradient(110deg, rgba(255,255,255,.035), transparent 44%);
      pointer-events: none;
    }

    .apply-content,
    .apply-actions { position: relative; z-index: 1; }

    .apply-content h2 {
      margin: 0 0 8px;
      color: #fff3df;
      font-size: clamp(1.35rem, 2.4vw, 2rem);
      font-weight: 950;
    }

    .apply-content p {
      max-width: 700px;
      margin: 0;
      color: #d6c4ab;
      font-size: .9rem;
      line-height: 1.9;
    }

    .apply-contact-note { margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(242,203,130,.16); border-radius: 16px; background: rgba(255,255,255,.035); }
    .apply-contact-note strong,.apply-contact-note span { display: block; }
    .apply-contact-note strong { margin-bottom: 5px; color: var(--gold2); font-size: .86rem; }
    .apply-contact-note span { color: #cdbba1; font-size: .76rem; line-height: 1.8; }
    .agency-form { position: relative; z-index: 1; padding: 20px; border: 1px solid rgba(242,203,130,.17); border-radius: 22px; background: rgba(10,11,11,.34); }
    .agency-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
    .agency-field { display: block; margin: 0; }
    .agency-field.full,.agency-consent.full { grid-column: 1/-1; }
    .agency-field > span { display: block; margin-bottom: 7px; color: #eedbbc; font-size: .78rem; font-weight: 800; }
    .agency-field input,.agency-field select,.agency-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: #fff4e4; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; outline: 0; background: rgba(255,255,255,.055); transition: border-color .2s ease,box-shadow .2s ease; }
    .agency-field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
    .agency-field input::placeholder,.agency-field textarea::placeholder { color: #9f907c; }
    .agency-field input:focus,.agency-field select:focus,.agency-field textarea:focus { border-color: rgba(242,203,130,.7); box-shadow: 0 0 0 3px rgba(201,154,83,.12); }
    .agency-field select option { color: #222; }
    .agency-field small,.agency-consent small { display: block; margin-top: 5px; color: #ff9c94; font-size: .7rem; }
    .captcha-field { max-width: 230px; }
    .agency-consent { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: #cdbba1; font-size: .75rem; line-height: 1.8; }
    .agency-consent input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 4px; accent-color: var(--gold); }
    .agency-honeypot { position: absolute !important; inset-inline-start: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
    .agency-submit { width: 100%; margin-top: 16px; border: 0; }
    .agency-alert { margin-bottom: 14px; padding: 11px 13px; border-radius: 12px; font-size: .78rem; line-height: 1.8; }
    .agency-alert.success { color: #d8ffe3; border: 1px solid rgba(84,201,120,.28); background: rgba(49,150,83,.16); }
    .agency-alert.error { color: #ffd7d3; border: 1px solid rgba(255,115,105,.28); background: rgba(185,55,47,.15); }

    .apply-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .reveal {
      opacity: 1;
      transform: none;
      transition: opacity .65s ease, transform .65s ease;
    }

    .reveal.show {
      opacity: 1;
      transform: none;
    }

    @media (max-width: 1199.98px) {
      .hero-content { grid-template-columns: 1fr; }
      .request-box { min-width: 0; max-width: 420px; }
      .rep-layout {
        --rep-panel-height: auto;
        grid-template-columns: 1fr;
        align-items: start;
      }
      .side-panel {
        position: relative;
        top: auto;
        height: auto;
        max-height: none;
      }
      .rep-list {
        max-height: 620px;
        flex: none;
      }
      .map-panel {
        height: 620px;
      }
      .apply-section { grid-template-columns: 1fr; }
      .apply-actions { justify-content: flex-start; }
    }

    @media (max-width: 767.98px) {
      .nav-wrap { min-height: 64px; }
      .nav-actions .btn-soft { display: none; }
      .hero { padding: 20px 0 16px; }
      .hero-content { min-height: auto; gap: 16px; }
      .filters { grid-template-columns: 1fr; }
      .map-panel { height: 560px; border-radius: 26px; }
      .map-toolbar { position: relative; inset: auto; padding: 12px; display: grid; pointer-events: auto; }
      .map-title,
      .map-selected { max-width: none; min-width: 0; }
      #map { top: 152px; }
      .rep-card { padding: 18px 15px; min-height: 275px; }
      .rep-top { display: block; min-height: auto; margin-bottom: 16px; }
      .rep-badge { margin-bottom: 10px; }
      .rep-title h3 { font-size: 1.02rem; line-height: 1.7; }
      .rep-meta-line { display: grid; grid-template-columns: 1fr; gap: 6px; }
      .rep-meta-line span { width: 100%; }
      .rep-actions { grid-template-columns: 1fr; }
      .apply-section { padding: 20px; border-radius: 26px; }
      .agency-form-grid { grid-template-columns: 1fr; }
      .agency-field.full,.agency-consent.full { grid-column: auto; }
      .captcha-field { max-width: none; }
      .apply-actions .btn-gold,
      .apply-actions .btn-soft { width: 100%; }
    }

    .representatives-en { direction: ltr; text-align: left; }
    .representatives-en .hero-copy,
    .representatives-en .panel-head,
    .representatives-en .rep-title,
    .representatives-en .rep-info,
    .representatives-en .map-title,
    .representatives-en .map-selected,
    .representatives-en .request-box { text-align: left; }
    .representatives-en .province-group-title { border-right: 0; border-left: 3px solid var(--gold); }
    .representatives-en .rep-address-line,
    .representatives-en .rep-meta-line { direction: ltr; }
