styles.css 13 KB

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