/* "Jak do nas trafić?" sidebar card (pages/_duodental_directions): address -> directions,
   opening hours with today's status, phone -> call. Same card language as opening_hours.css. */

.visit {
  --purple: #4e2f8a;
  --purple-tint: #f3eefb;
  --pink: #ef2c42;
  --pink-tint: #fdeef0;
  --line: #e3ddee;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 44px 16px 14px;          /* room for the "Umów się na wizytę" button that overlaps the top on the home page */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(78, 47, 138, 0.08);
  font: 15px/1.45 Arial, Helvetica, sans-serif;
  color: #333;
}
.visit--compact { padding-top: 18px; }

.visit *, .visit *::before, .visit *::after { box-sizing: border-box; }

.visit__title {
  margin: 0 6px 12px;
  font: normal 22px/1.2 'museo300', Arial, Helvetica, sans-serif;
  color: var(--purple);
}

.visit__list { margin: 0; padding: 0; list-style: none; }
.visit__list > li { margin: 0; padding: 0; background: none; }
.visit__list > li + li { border-top: 1px solid #f0edf5; }

.visit__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0;
  padding: 12px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.visit__row--link { transition: background-color .15s; }
.visit__row--link:hover,
.visit__row--link:focus-visible { background: #faf8fd; text-decoration: none; }
.visit__row--link:focus-visible { outline: 2px solid #7238b4; outline-offset: -2px; }
.visit__row--link:active { background: var(--purple-tint); }

/* icon tile */
.visit__icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  transition: transform .15s, background-color .15s, color .15s;
}
.visit__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visit__icon--pink   { background: var(--pink-tint);   color: var(--pink); }
.visit__icon--purple { background: var(--purple-tint); color: #7238b4; }
.visit__row--link:hover .visit__icon--pink { background: var(--pink); color: #fff; transform: translateY(-1px); }

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

.visit__label {
  display: block;
  margin: 1px 0 3px;
  font: bold 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8496;
}

.visit__value { display: block; font-style: normal; color: #222; }
.visit__value--big { font-size: 18px; font-weight: bold; letter-spacing: 0.01em; color: #222; }
.visit__sub { display: block; font-size: 13px; color: #777; }

.visit__hours { display: flex; justify-content: space-between; gap: 12px; max-width: 190px; }
.visit__hours span:last-child { font-weight: bold; }

.visit__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: bold;
  color: var(--pink);
}
.visit__action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s;
}
.visit__row--link:hover .visit__action svg { transform: translateX(2px); }

.visit__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: bold;
}
.visit__status.is-open   { color: #1d7a34; }
.visit__status.is-closed { color: #a6283a; }
.visit__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

@media only screen and (max-width: 767px) {
  .visit, .visit--compact { padding: 16px 12px 8px; }
}

@media print {
  .visit { display: none; }
}

/* "Dane kontaktowe" card under the contact card on /kontakt */
.company {
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 18px 16px 16px;
  border: 1px solid #e3ddee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(78, 47, 138, 0.08);
  font: 15px/1.45 Arial, Helvetica, sans-serif;
  color: #333;
}
.company *, .company *::before, .company *::after { box-sizing: border-box; }

.company__title {
  margin: 0 6px 10px;
  font: normal 22px/1.2 'museo300', Arial, Helvetica, sans-serif;
  color: #4e2f8a;
}

.company__mails { margin: 0; padding: 0; list-style: none; }
.company__mails li { margin: 0; padding: 0; background: none; }

.company__mail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0;
  padding: 10px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s;
}
.company__mail:hover,
.company__mail:focus-visible { background: #faf8fd; text-decoration: none; }
.company__mail:focus-visible { outline: 2px solid #7238b4; outline-offset: -2px; }

.company__icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3eefb;
  color: #7238b4;
  transition: background-color .15s, color .15s;
}
.company__icon svg,
.company__copy svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.company__icon svg { width: 22px; height: 22px; }
.company__mail:hover .company__icon { background: #7238b4; color: #fff; }

.company__text { flex: 1; min-width: 0; display: block; }
.company__label,
.company__ids dt {
  display: block;
  margin: 0 0 3px;
  font: bold 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8496;
}
.company__value {
  display: block;
  color: #ef2c42;
  font-weight: bold;
  font-size: 14px;
}
/* e-mails: break only after the "@" (<wbr> in the markup), never inside a word */
.company__value--mail {
  overflow-wrap: normal;
  word-break: normal;
  font-size: 13.5px;
}
.company__mail:hover .company__value { text-decoration: underline; }

/* NIP / REGON strip */
.company__ids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #f0edf5;
}
.company__id {
  padding: 10px 12px;
  border-radius: 10px;
  background: #faf8fd;
}
.company__ids dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  font: bold 15px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #222;
}

.company__copy {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a8496;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.company__copy svg { width: 15px; height: 15px; }
.company__copy:hover,
.company__copy:focus-visible { background: #f3eefb; color: #7238b4; }
.company__copy:focus-visible { outline: 2px solid #7238b4; outline-offset: 0; }
.company__copy.is-done { color: #1d7a34; }

@media only screen and (max-width: 767px) {
  .company { padding: 16px 12px 12px; }
}
@media print {
  .company { border: 0; box-shadow: none; padding: 0; }
  .company__copy { display: none; }
}
