/* Notary directory (/notari/bucuresti + sectors, src/templates/notary-pages.js). Base tokens only,
   so light and dark follow the site theme. */
.notari { max-width: 960px; }
.notari h1 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 12px; }
.notari__lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; max-width: 720px; }

/* Calculator link: the main action on the page. */
.notari__calc { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--radius-panel); background: var(--soft); color: var(--ink); text-decoration: none; margin-bottom: 20px; }
.notari__calc-text { display: grid; gap: 2px; }
.notari__calc-text b { font-size: 19px; }
.notari__calc-text span { color: var(--text-2); font-size: 15px; }
.notari__calc .btn { flex: none; }
.notari__calc:hover .btn { filter: brightness(.96); }

.notari__sectors { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.notari__sectors a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--chip); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.notari__sectors a span { color: var(--muted); font-weight: 500; }
.notari__sectors a[aria-current="page"] { background: var(--solid); color: var(--on-solid); }
.notari__sectors a[aria-current="page"] span { color: inherit; opacity: .75; }

.notari__map { height: 440px; border-radius: var(--radius-panel); overflow: hidden; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; position: relative; z-index: 0; }
.notari__map.is-ready { display: block; }
.notari__map-wait { color: var(--muted); }
.notari__map .leaflet-popup-content { font: 14px/1.4 var(--font); }
.notari__map .leaflet-popup-content a { color: #121212; font-weight: 650; }
/* Dark theme: darker tiles (same trick most dark maps use), popups stay light. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notari__map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); } }
:root[data-theme="dark"] .notari__map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.notari__note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* Empty slots for reported prices and the ranking (not built yet). */
.notari__slots { display: grid; gap: 12px; margin: 24px 0; }
.notari__slot { border: 1px dashed var(--line-strong); border-radius: var(--radius-panel); padding: 16px 18px; }
.notari__slot h2 { font-size: 19px; margin: 0 0 6px; }
.notari__slot p { margin: 0; color: var(--text-2); font-size: 15px; }
.notari__slot-empty { margin-top: 10px !important; font-weight: 650; color: var(--muted) !important; }

.notari__search { margin: 28px 0 8px; }
.notari__search label { display: block; font-weight: 650; margin-bottom: 6px; }
.notari__count { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.notari__order { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.notari__none { color: var(--muted); }

.notari__sector h2 { font-size: 24px; margin: 32px 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.notari__sector h2 a { color: var(--ink); }
.notari__sector h2 span { font-size: 15px; font-weight: 500; color: var(--muted); }
.notari__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.notar { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 14px 16px; scroll-margin-top: 80px; }
.notar:target { border-color: var(--ink); box-shadow: var(--shadow-card); }
.notar__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.notar__head h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.notar__head .chip { flex: none; font-weight: 600; color: var(--muted); }
.notar p { margin: 4px 0 0; font-size: 15px; }
.notar__people { color: var(--text-2); }
.notar__approx, .notar__hours span { color: var(--muted); }
.notar__mail a { color: var(--ink); overflow-wrap: anywhere; }
.notar__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.notar__actions .btn-email { text-decoration: none; min-height: 40px; }
.notar__phones { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-height: 40px; font-weight: 650; }
.notar__phones a { color: var(--ink); }
.notar__paid { font-size: 13px !important; color: var(--faint); margin-top: 10px !important; }

.notari__facts { margin-top: 40px; max-width: 720px; }
.notari__facts h2 { font-size: 24px; margin: 0 0 8px; }
.notari__facts p { margin: 10px 0; }
.notari__source { font-size: 14px; color: var(--muted); margin: 24px 0 0; }
.notari__source .link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

@media (min-width: 720px) {
  .notari__slots { grid-template-columns: 1fr 1fr; }
  .notari__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .notari__calc { flex-direction: column; align-items: stretch; }
  .notari__calc .btn { width: 100%; }
  .notari__map { height: 340px; }
  .notari__sectors { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
  .notari__sectors::-webkit-scrollbar { display: none; }
  .notari__sectors a { flex: none; }
  .notari__lead { font-size: 17px; }
}
