styles.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. :root {
  2. color-scheme: dark;
  3. --bg: #1f2328;
  4. --text: #ecf0f4;
  5. --muted-text: #bcc3cc;
  6. --panel: rgba(39, 44, 51, 0.9);
  7. --panel-strong: #323841;
  8. --card: #2d333b;
  9. --border: rgba(236, 240, 244, 0.18);
  10. --border-strong: rgba(236, 240, 244, 0.32);
  11. --focus: #d7dde5;
  12. --shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  13. --commune-fill: #56606b;
  14. --commune-stroke: rgba(21, 24, 28, 0.95);
  15. --commune-hover: #94a3b8;
  16. --commune-selected: #f8fafc;
  17. --unit-marker-fill: #404853;
  18. --unit-marker-stroke: rgba(7, 9, 11, 0.98);
  19. --unit-marker-hover: #5d6976;
  20. --mobile-controls-top: 5.1rem;
  21. --mobile-legend-top: 8.5rem;
  22. }
  23. * {
  24. box-sizing: border-box;
  25. }
  26. html,
  27. body {
  28. height: 100%;
  29. }
  30. body {
  31. margin: 0;
  32. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  33. background: var(--bg);
  34. color: var(--text);
  35. overflow: hidden;
  36. }
  37. button,
  38. input {
  39. font: inherit;
  40. }
  41. .app {
  42. position: fixed;
  43. inset: 0;
  44. }
  45. .map {
  46. position: absolute;
  47. inset: 0;
  48. width: 100%;
  49. height: 100%;
  50. background:
  51. radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
  52. radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 24%),
  53. var(--bg);
  54. }
  55. .map-canvas {
  56. width: 100%;
  57. height: 100%;
  58. display: block;
  59. }
  60. .map-canvas {
  61. cursor: grab;
  62. touch-action: none;
  63. }
  64. .map-canvas:active {
  65. cursor: grabbing;
  66. }
  67. .map-header {
  68. position: fixed;
  69. top: 1rem;
  70. left: 1rem;
  71. z-index: 3;
  72. padding: 0.75rem 0.9rem;
  73. border-radius: 12px;
  74. border: 1px solid var(--border);
  75. background: var(--panel);
  76. box-shadow: var(--shadow);
  77. backdrop-filter: blur(6px);
  78. }
  79. .map-header h1 {
  80. margin: 0;
  81. font-size: clamp(1rem, 1.9vw, 1.35rem);
  82. line-height: 1.15;
  83. }
  84. .map-header p {
  85. margin: 0.22rem 0 0;
  86. font-size: clamp(0.76rem, 1.2vw, 0.9rem);
  87. color: var(--muted-text);
  88. }
  89. .mobile-country-button,
  90. .mobile-legend-button {
  91. display: none;
  92. align-items: center;
  93. justify-content: center;
  94. position: fixed;
  95. z-index: 4;
  96. border: 1px solid var(--border);
  97. background: var(--panel);
  98. color: var(--text);
  99. border-radius: 999px;
  100. box-shadow: var(--shadow);
  101. backdrop-filter: blur(6px);
  102. cursor: pointer;
  103. }
  104. .mobile-country-button {
  105. width: 2.7rem;
  106. height: 2.7rem;
  107. font-size: 1.25rem;
  108. }
  109. .mobile-legend-button {
  110. height: 2.7rem;
  111. padding: 0 0.9rem;
  112. font-size: 0.92rem;
  113. font-weight: 600;
  114. }
  115. .country-sidebar {
  116. position: fixed;
  117. top: 6.35rem;
  118. left: 1rem;
  119. height: min(58vh, 520px);
  120. width: min(340px, calc(100vw - 2rem));
  121. display: flex;
  122. flex-direction: column;
  123. gap: 0.55rem;
  124. padding: 0.8rem;
  125. background: var(--panel);
  126. border: 1px solid var(--border);
  127. border-radius: 14px;
  128. box-shadow: var(--shadow);
  129. backdrop-filter: blur(6px);
  130. z-index: 2;
  131. }
  132. .country-sidebar h3 {
  133. margin: 0;
  134. font-size: 1rem;
  135. }
  136. .country-search {
  137. border: 1px solid var(--border);
  138. border-radius: 9px;
  139. padding: 0.52rem 0.62rem;
  140. font-size: 0.9rem;
  141. color: var(--text);
  142. background: var(--panel-strong);
  143. outline: none;
  144. }
  145. .country-search:focus {
  146. border-color: var(--focus);
  147. box-shadow: 0 0 0 3px rgba(236, 240, 244, 0.2);
  148. }
  149. .country-search::placeholder {
  150. color: var(--muted-text);
  151. }
  152. .country-list-count {
  153. margin: 0;
  154. font-size: 0.78rem;
  155. color: var(--muted-text);
  156. }
  157. .country-list {
  158. margin: 0;
  159. padding: 0;
  160. list-style: none;
  161. overflow: auto;
  162. min-height: 0;
  163. flex: 1;
  164. display: grid;
  165. gap: 0.28rem;
  166. align-content: start;
  167. }
  168. .country-list-item,
  169. .territory-list-item {
  170. width: 100%;
  171. border: 1px solid var(--border);
  172. background: var(--card);
  173. border-radius: 8px;
  174. padding: 0.38rem 0.5rem;
  175. display: flex;
  176. align-items: center;
  177. gap: 0.45rem;
  178. font-size: 0.86rem;
  179. color: var(--text);
  180. cursor: pointer;
  181. text-align: left;
  182. }
  183. .country-list-item:hover,
  184. .country-list-item:focus-visible,
  185. .territory-list-item:hover,
  186. .territory-list-item:focus-visible {
  187. background: #3a414a;
  188. border-color: var(--border-strong);
  189. outline: none;
  190. }
  191. .territory-list-item.active {
  192. background: #3a414a;
  193. border-color: var(--focus);
  194. }
  195. .country-list-item.active {
  196. background: #3a414a;
  197. border-color: var(--focus);
  198. }
  199. .country-list-flag,
  200. .territory-list-marker {
  201. width: 1.55rem;
  202. text-align: center;
  203. flex: 0 0 1.55rem;
  204. color: #d7dde5;
  205. }
  206. .territory-badge {
  207. width: 1.9rem;
  208. height: 1.9rem;
  209. flex: 0 0 1.9rem;
  210. display: inline-flex;
  211. align-items: center;
  212. justify-content: center;
  213. }
  214. .territory-badge-image {
  215. width: 100%;
  216. height: 100%;
  217. display: block;
  218. object-fit: contain;
  219. filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  220. }
  221. .territory-badge-flag {
  222. font-size: 1.15rem;
  223. line-height: 1;
  224. filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  225. }
  226. .territory-badge-flag .territory-badge-image {
  227. height: 72%;
  228. border-radius: 0.16rem;
  229. }
  230. .country-list-body,
  231. .territory-list-body {
  232. min-width: 0;
  233. flex: 1;
  234. }
  235. .country-list-title,
  236. .territory-list-title {
  237. display: block;
  238. font-weight: 600;
  239. white-space: nowrap;
  240. overflow: hidden;
  241. text-overflow: ellipsis;
  242. }
  243. .country-list-meta,
  244. .territory-list-meta {
  245. display: block;
  246. margin-top: 0.08rem;
  247. font-size: 0.74rem;
  248. color: var(--muted-text);
  249. white-space: nowrap;
  250. overflow: hidden;
  251. text-overflow: ellipsis;
  252. }
  253. .country-list-item {
  254. align-items: flex-start;
  255. }
  256. .country-list-title,
  257. .country-list-meta {
  258. white-space: normal;
  259. overflow: visible;
  260. text-overflow: clip;
  261. overflow-wrap: anywhere;
  262. word-break: break-word;
  263. }
  264. .country-list-empty {
  265. margin: 0.4rem 0;
  266. font-size: 0.84rem;
  267. color: var(--muted-text);
  268. }
  269. .country-list-modal {
  270. position: fixed;
  271. inset: 0;
  272. display: none;
  273. align-items: center;
  274. justify-content: center;
  275. padding: 0.8rem;
  276. background: rgba(0, 0, 0, 0.64);
  277. z-index: 11;
  278. }
  279. .country-list-modal.open {
  280. display: flex;
  281. }
  282. .country-list-modal-content {
  283. width: min(700px, 96vw);
  284. height: min(88vh, 800px);
  285. background: var(--card);
  286. border: 1px solid var(--border);
  287. color: var(--text);
  288. border-radius: 14px;
  289. padding: 0.85rem;
  290. box-shadow: var(--shadow);
  291. display: flex;
  292. flex-direction: column;
  293. gap: 0.55rem;
  294. }
  295. .country-list-modal-head {
  296. display: flex;
  297. align-items: center;
  298. justify-content: space-between;
  299. gap: 0.5rem;
  300. }
  301. .country-list-modal-head h2 {
  302. margin: 0;
  303. font-size: 1.04rem;
  304. }
  305. .country-list-modal-head .close {
  306. position: static;
  307. font-size: 1.35rem;
  308. line-height: 1;
  309. }
  310. .country-list-modal .country-list {
  311. flex: 1;
  312. }
  313. .map-footer {
  314. position: fixed;
  315. left: 50%;
  316. bottom: 0.55rem;
  317. transform: translateX(-50%);
  318. margin: 0;
  319. z-index: 2;
  320. font-size: 0.78rem;
  321. color: var(--muted-text);
  322. background: var(--panel);
  323. border: 1px solid var(--border);
  324. border-radius: 999px;
  325. padding: 0.34rem 0.75rem;
  326. backdrop-filter: blur(6px);
  327. white-space: nowrap;
  328. }
  329. .map-footer a {
  330. color: #e8ecf2;
  331. }
  332. .masking-disclaimer {
  333. position: fixed;
  334. left: 50%;
  335. bottom: 2.65rem;
  336. transform: translateX(-50%);
  337. z-index: 2;
  338. display: inline-flex;
  339. align-items: center;
  340. gap: 0.65rem;
  341. max-width: min(760px, calc(100vw - 2rem));
  342. padding: 0.45rem 0.65rem;
  343. border-radius: 10px;
  344. border: 1px solid var(--border);
  345. background: var(--panel);
  346. color: var(--muted-text);
  347. font-size: 0.77rem;
  348. line-height: 1.25;
  349. box-shadow: var(--shadow);
  350. backdrop-filter: blur(6px);
  351. }
  352. .masking-disclaimer[hidden] {
  353. display: none !important;
  354. }
  355. .masking-disclaimer-action {
  356. border: 1px solid var(--border);
  357. background: var(--panel-strong);
  358. color: var(--text);
  359. border-radius: 8px;
  360. padding: 0.28rem 0.52rem;
  361. font-size: 0.76rem;
  362. font-weight: 600;
  363. cursor: pointer;
  364. white-space: nowrap;
  365. }
  366. .masking-disclaimer-action:hover,
  367. .masking-disclaimer-action:focus-visible {
  368. background: #3a414a;
  369. border-color: var(--focus);
  370. outline: none;
  371. }
  372. .map-tooltip {
  373. position: fixed;
  374. left: 0;
  375. top: 0;
  376. z-index: 40;
  377. pointer-events: none;
  378. opacity: 0;
  379. transform: translate(8px, 8px);
  380. transition: none;
  381. background: rgba(17, 20, 24, 0.96);
  382. color: #f8fafc;
  383. border-radius: 8px;
  384. padding: 0.3rem 0.5rem;
  385. font-size: 0.8rem;
  386. line-height: 1.2;
  387. white-space: nowrap;
  388. box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55);
  389. }
  390. .map-tooltip.visible {
  391. opacity: 1;
  392. }
  393. .legend {
  394. position: fixed;
  395. top: 1rem;
  396. right: 1rem;
  397. background: var(--panel);
  398. border: 1px solid var(--border);
  399. border-radius: 12px;
  400. padding: 0.7rem 0.8rem;
  401. width: min(360px, calc(100vw - 2rem));
  402. max-height: min(74vh, 760px);
  403. overflow: auto;
  404. box-shadow: var(--shadow);
  405. backdrop-filter: blur(6px);
  406. }
  407. .legend h3 {
  408. margin: 0 0 0.45rem;
  409. font-size: 0.95rem;
  410. }
  411. .legend-copy {
  412. margin: 0 0 0.65rem;
  413. font-size: 0.8rem;
  414. color: var(--muted-text);
  415. line-height: 1.35;
  416. }
  417. .territory-list {
  418. margin: 0;
  419. padding: 0;
  420. list-style: none;
  421. display: grid;
  422. gap: 0.32rem;
  423. }
  424. .map-status {
  425. position: absolute;
  426. inset: 50% auto auto 50%;
  427. transform: translate(-50%, -50%);
  428. min-width: 220px;
  429. max-width: min(340px, calc(100vw - 2rem));
  430. padding: 0.9rem 1rem;
  431. border-radius: 12px;
  432. border: 1px solid var(--border);
  433. background: var(--panel);
  434. box-shadow: var(--shadow);
  435. color: var(--text);
  436. text-align: center;
  437. backdrop-filter: blur(6px);
  438. }
  439. .modal {
  440. position: fixed;
  441. inset: 0;
  442. display: none;
  443. align-items: center;
  444. justify-content: center;
  445. padding: 1rem;
  446. background: rgba(0, 0, 0, 0.66);
  447. }
  448. .modal.open {
  449. display: flex;
  450. }
  451. .modal-content {
  452. width: min(440px, 95vw);
  453. max-height: min(82vh, 760px);
  454. background: var(--card);
  455. border: 1px solid var(--border);
  456. color: var(--text);
  457. border-radius: 14px;
  458. padding: 1.2rem 1.2rem 1rem;
  459. box-shadow: var(--shadow);
  460. position: relative;
  461. display: flex;
  462. flex-direction: column;
  463. }
  464. .modal-content h2 {
  465. margin: 0;
  466. font-size: 1.15rem;
  467. }
  468. .modal-content p {
  469. margin: 0.8rem 0 0;
  470. font-size: 1.05rem;
  471. }
  472. .close {
  473. position: absolute;
  474. top: 0.55rem;
  475. right: 0.55rem;
  476. border: none;
  477. background: transparent;
  478. font-size: 1.45rem;
  479. line-height: 1;
  480. cursor: pointer;
  481. color: var(--muted-text);
  482. }
  483. .close:hover,
  484. .close:focus-visible {
  485. color: var(--text);
  486. }
  487. .country-category {
  488. margin-top: 0.45rem;
  489. margin-bottom: 0.2rem;
  490. font-weight: 600;
  491. color: var(--text);
  492. }
  493. .modal-badge-label {
  494. display: inline-flex;
  495. align-items: center;
  496. gap: 0.48rem;
  497. min-width: 0;
  498. vertical-align: middle;
  499. }
  500. .modal-badge-heading {
  501. width: 3.75rem;
  502. height: 3.75rem;
  503. flex: 0 0 3.75rem;
  504. }
  505. .modal-badge-inline {
  506. width: 1.28rem;
  507. height: 1.28rem;
  508. flex: 0 0 1.28rem;
  509. }
  510. .country-data {
  511. margin-top: 0.45rem;
  512. max-height: min(56vh, 460px);
  513. overflow: auto;
  514. padding-right: 0.25rem;
  515. }
  516. .country-data-row {
  517. display: grid;
  518. grid-template-columns: 132px 1fr;
  519. gap: 0.5rem;
  520. margin-bottom: 0.42rem;
  521. font-size: 0.92rem;
  522. line-height: 1.3;
  523. }
  524. .country-data-row strong {
  525. color: #c8ced6;
  526. }
  527. .country-data-row span {
  528. color: var(--text);
  529. }
  530. .unit-communes-section {
  531. margin-top: 0.85rem;
  532. padding-top: 0.7rem;
  533. border-top: 1px solid var(--border);
  534. }
  535. .unit-communes-section strong {
  536. display: block;
  537. color: #c8ced6;
  538. font-size: 0.92rem;
  539. }
  540. .unit-communes-list {
  541. margin: 0.55rem 0 0;
  542. padding-left: 1rem;
  543. max-height: min(22vh, 190px);
  544. overflow: auto;
  545. color: var(--text);
  546. }
  547. .unit-communes-list li + li {
  548. margin-top: 0.18rem;
  549. }
  550. .unit-link-button {
  551. border: none;
  552. padding: 0;
  553. background: transparent;
  554. color: #d9e5f2;
  555. text-decoration: underline;
  556. text-decoration-thickness: 1px;
  557. text-underline-offset: 0.12rem;
  558. cursor: pointer;
  559. font: inherit;
  560. }
  561. .unit-link-button:hover,
  562. .unit-link-button:focus-visible {
  563. color: #ffffff;
  564. outline: none;
  565. }
  566. .unit-link-separator {
  567. color: var(--muted-text);
  568. }
  569. .modal-action {
  570. margin-top: 0.9rem;
  571. width: 100%;
  572. border: 1px solid var(--border);
  573. background: var(--panel-strong);
  574. color: var(--text);
  575. border-radius: 10px;
  576. padding: 0.72rem 0.9rem;
  577. font-size: 0.92rem;
  578. font-weight: 600;
  579. cursor: pointer;
  580. }
  581. .modal-action:hover,
  582. .modal-action:focus-visible {
  583. background: #3a414a;
  584. border-color: var(--focus);
  585. outline: none;
  586. }
  587. .masking-modal-content {
  588. width: min(760px, 96vw);
  589. max-height: min(84vh, 820px);
  590. }
  591. .masking-modal-data {
  592. margin-top: 0.75rem;
  593. display: grid;
  594. gap: 0.75rem;
  595. overflow: auto;
  596. max-height: min(56vh, 520px);
  597. padding-right: 0.24rem;
  598. }
  599. .masking-modal-block {
  600. border: 1px solid var(--border);
  601. border-radius: 10px;
  602. background: rgba(255, 255, 255, 0.03);
  603. padding: 0.55rem 0.65rem;
  604. }
  605. .masking-modal-block h3 {
  606. margin: 0 0 0.46rem;
  607. font-size: 0.9rem;
  608. }
  609. .masking-modal-list {
  610. margin: 0;
  611. padding-left: 1rem;
  612. display: grid;
  613. gap: 0.2rem;
  614. font-size: 0.84rem;
  615. }
  616. .country-list-item.masked {
  617. border-style: dashed;
  618. }
  619. @media (max-width: 760px) {
  620. .country-search {
  621. font-size: 16px;
  622. }
  623. .map-header {
  624. top: 0.6rem;
  625. left: 0.6rem;
  626. right: 0.6rem;
  627. }
  628. .mobile-country-button,
  629. .mobile-legend-button {
  630. display: inline-flex;
  631. top: var(--mobile-controls-top);
  632. }
  633. .mobile-country-button {
  634. left: 0.6rem;
  635. }
  636. .mobile-legend-button {
  637. right: 0.6rem;
  638. }
  639. .country-sidebar {
  640. display: none;
  641. }
  642. .legend {
  643. right: 0.6rem;
  644. width: min(290px, calc(100vw - 1.2rem));
  645. top: var(--mobile-legend-top);
  646. max-height: min(58vh, 430px);
  647. overflow: auto;
  648. display: none;
  649. }
  650. .legend.mobile-open {
  651. display: block;
  652. }
  653. .country-list-modal {
  654. padding: 0.6rem;
  655. }
  656. .country-list-modal-content {
  657. width: 100%;
  658. height: min(90vh, 820px);
  659. }
  660. .map-footer {
  661. max-width: calc(100vw - 1.2rem);
  662. overflow: hidden;
  663. text-overflow: ellipsis;
  664. white-space: nowrap;
  665. font-size: 0.72rem;
  666. }
  667. .masking-disclaimer {
  668. bottom: 2.35rem;
  669. max-width: calc(100vw - 1.2rem);
  670. padding: 0.4rem 0.5rem;
  671. gap: 0.5rem;
  672. }
  673. .country-data-row {
  674. grid-template-columns: 1fr;
  675. }
  676. }