/* ==========================================================================
   NEXORA — Location, appointments & working hours (single source of truth)
   Full-width band under the contact grid:
     ≥ 901px   [ map + address ]  |  [ appointments / hours ]
     ≤ 900px   map, then appointments, then hours (one column)
   Logical properties only → identical in RTL and LTR.
   ========================================================================== */
.nx-location-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  margin-top: clamp(18px, 3vw, 30px);
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(41, 182, 255, .07), rgba(139, 63, 232, .07)), var(--card);
  box-shadow: var(--shadow);
}

/* Map column */
.nx-location-map {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.nx-location-map iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(260px, 34vw, 340px);
  border: 0;
  background: var(--bg);
}
.nx-location-caption { padding: 14px 18px 4px; }
.nx-location-caption .kicker { display: block; margin-bottom: 4px; }
.nx-location-caption h3 { margin: 0 0 6px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; }
.nx-location-caption p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}
.nx-location-caption p i { flex: none; margin-top: 6px; color: var(--cyan); }
.nx-location-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 12px 18px 18px;
  text-align: center;
}

/* Appointment note */
.nx-appointment-note {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(41, 182, 255, .3);
  border-radius: 16px;
  background: rgba(41, 182, 255, .07);
}
.nx-appointment-note > i { flex: none; margin-top: 4px; color: var(--cyan); font-size: 1.25rem; }
.nx-appointment-note > div { min-width: 0; flex: 1; }
.nx-appointment-note strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 1rem; }
.nx-appointment-note p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.85; }
.nx-appointment-cta { margin-top: 12px; }

/* Working hours */
.nx-hours-card {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(139, 63, 232, .28);
  border-radius: 16px;
  background: rgba(139, 63, 232, .06);
}
.nx-hours-card h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--text); font-size: 1.05rem; }
.nx-hours-card h4 > i, .nx-hours-shift p > i { color: var(--cyan); }
.nx-hours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nx-hours-shift { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.nx-hours-shift > strong { display: block; margin-bottom: 7px; color: var(--text); font-size: .95rem; }
.nx-hours-shift p, .nx-hours-shift small { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--muted); line-height: 1.7; }
.nx-hours-shift p { font-size: .88rem; }
.nx-hours-shift small { margin-top: 6px; font-size: .8rem; }
.nx-hours-shift p > i, .nx-hours-shift small > i { flex: none; margin-top: 5px; }
.nx-hours-shift small > i { color: var(--purple, #8B3FE8); }
/* Mixed Arabic/Latin digits: keep each run on its own line without breaking the numbers. */
.nx-hours-shift p > span, .nx-hours-shift small > span { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 0 .3em; min-width: 0; text-align: start; }
.nx-hours-shift bdi { white-space: normal; }
.nx-hours-holiday { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; padding: 9px 12px; border-radius: 10px; background: rgba(139, 63, 232, .12); color: var(--text); font-size: .88rem; }
.nx-hours-holiday i { color: var(--purple, #8B3FE8); }
.nx-hours-holiday span, .nx-hours-etiquette { unicode-bidi: plaintext; text-align: start; }
.nx-hours-etiquette { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.85; }

/* Tablet / phone / desktop mode: single column */
@media (max-width: 900px) {
  .nx-location-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .nx-location-map, .nx-appointment-note, .nx-hours-card { grid-column: 1; grid-row: auto; }
  .nx-location-map iframe { min-height: 300px; flex: none; }
  /* Appointment + hours sit side by side on tablets */
}
@media (min-width: 640px) and (max-width: 900px) {
  .nx-appointment-note, .nx-hours-card { padding: 18px 20px; }
}
@media (max-width: 560px) {
  .nx-location-wrap { padding: 10px; border-radius: 18px; }
  .nx-location-map iframe { min-height: 240px; }
  .nx-location-caption { padding: 12px 13px 2px; }
  .nx-location-directions { margin: 10px 13px 13px; }
  .nx-appointment-note, .nx-hours-card { padding: 13px; }
}
@media (max-width: 420px) { .nx-hours-grid { grid-template-columns: minmax(0, 1fr); } }

/* Light theme contrast */
:root[data-theme="light"] .nx-location-wrap { background: #fff; border-color: #94A3B8; }
:root[data-theme="light"] .nx-appointment-note { background: #E0F2FE; border-color: #7DD3FC; }
:root[data-theme="light"] .nx-hours-card { background: #F5F3FF; border-color: #C4B5FD; }
:root[data-theme="light"] .nx-hours-shift { background: #fff; border-color: #CBD5E1; }
:root[data-theme="light"] .nx-hours-holiday { background: #EDE9FE; color: #1E1B4B; }
:root[data-theme="light"] .nx-appointment-note p,
:root[data-theme="light"] .nx-hours-shift p,
:root[data-theme="light"] .nx-hours-shift small,
:root[data-theme="light"] .nx-hours-etiquette,
:root[data-theme="light"] .nx-location-caption p { color: #334155; }

.nx-payment-receipt-link{color:var(--cyan);font-weight:700;text-decoration:underline;text-underline-offset:3px}


/* ==========================================================================
   NEXORA — Final fixes (v20261126-2)
   1) Hero logo: the <img> carries width/height="2000" attributes for layout
      stability; without height:auto it was stretched vertically on mobile
      (oval, tall). Keep it a perfect circle at every viewport.
   2) Desktop contact layout: channels on one side; request form with the
      location + appointment + working hours directly beneath it on the other.
      ≤1100px: unchanged order (form → channels → location).
   ========================================================================== */
.hero-art .hero-logo,
.hero-logo {
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex: 0 0 auto;
  align-self: center;
}
.brand img, .nx-notice-logo, #nxPreloader img { aspect-ratio: 1 / 1; }

@media (min-width: 1101px) {
  #contact .contact-layout {
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  #contact .contact-channels-card { grid-column: 1; grid-row: 1 / span 2; }
  #contact .contact-form-stack   { grid-column: 2; grid-row: 1; }
  #contact .nx-location-wrap {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    margin-top: 0;
    min-width: 0;
  }
  #contact .nx-location-map,
  #contact .nx-appointment-note,
  #contact .nx-hours-card { grid-column: 1; grid-row: auto; }
  #contact .nx-location-map iframe { min-height: 280px; flex: none; }
}
@media (max-width: 1100px) {
  #contact .nx-location-wrap { order: 3; margin-top: 0; }
}
