/* Chinhan Tech: authorised dealers list. Dark ground, copper accents, Inter / Inter Tight, like the homepage. */
.cht-dl { position: relative; z-index: 7; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.65); --ink: #f3f2ef; --ink-2: #c9c7c2; --ink-3: #8c8a86; --cu: #c07a4c; --cu-2: #e8b48a; --line: rgba(255, 255, 255, 0.12); --card: #121211; box-sizing: border-box; padding: clamp(150px, 22vh, 220px) clamp(24px, 6.4vw, 112px) clamp(96px, 14vh, 150px); background: radial-gradient(110% 60% at 8% 0%, rgba(192, 122, 76, 0.1), transparent 55%), #0a0a0a; color: var(--ink); font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.cht-dl *, .cht-dl *::before, .cht-dl *::after { box-sizing: border-box; }
.cht-dl p, .cht-dl h1, .cht-dl h2, .cht-dl h3, .cht-dl ul { margin: 0; padding: 0; }
.cht-dl ul { list-style: none; }
.cht-dl a { color: inherit; text-decoration: none; }

/* without its own heading (the page opens with a banner): less room above, the bar starts the section */
.cht-dl--bare { padding-top: clamp(40px, 6vh, 72px); background: #0a0a0a; }
.cht-dl--bare .cht-dl__bar { margin-top: 0; }

/* head */
.cht-dl__eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 600 11px/1.2 "Inter", sans-serif; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); }
.cht-dl__eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--cu); }
.cht-dl__title { margin-top: 22px !important; font: 300 clamp(40px, 12px + 3.1vw, 74px)/1.06 "Inter Tight", "Inter", sans-serif; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.cht-dl__lead { margin-top: 24px !important; max-width: 34em; font: 300 clamp(16px, 1.05vw, 19px)/1.6 "Inter", sans-serif; color: var(--ink-2); }

/* filters: the brand picker on the left, the location search on the right */
.cht-dl__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: clamp(48px, 7vh, 72px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cht-dl__pick { display: flex; align-items: center; gap: 18px; margin: 0; }
.cht-dl__pick-l { font: 600 10px/1 "Inter", sans-serif; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3); }
.cht-dl .cht-dl__pick .cht-dl__brand { appearance: none; -webkit-appearance: none; box-sizing: border-box; min-width: 260px; height: 44px; margin: 0; padding: 0 40px 0 16px; border: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23c9c7c2' stroke-width='1.2'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 16px center / 11px no-repeat; color: var(--ink) !important; font: 400 14px/1 "Inter", sans-serif !important; cursor: pointer; transition: border-color 0.4s; }
.cht-dl .cht-dl__pick .cht-dl__brand:hover { border-color: var(--cu) !important; }
.cht-dl .cht-dl__pick .cht-dl__brand:focus-visible { outline: 1px solid var(--cu-2); outline-offset: 2px; }
.cht-dl__brand option { color: #11100e; }
.cht-dl__find { display: flex; gap: 8px; margin: 0; }
.cht-dl .cht-dl__find > * { box-sizing: border-box !important; height: 44px !important; margin: 0 !important; box-shadow: none !important; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: 400 14px/1 "Inter", sans-serif; }
.cht-dl .cht-dl__find .cht-dl__loc { width: 260px; padding: 0 16px !important; background: transparent !important; border: 1px solid var(--line) !important; border-radius: 0 !important; color: var(--ink) !important; font: 400 14px/1 "Inter", sans-serif !important; }
.cht-dl__loc::placeholder { color: var(--ink-3); }
.cht-dl .cht-dl__find .cht-dl__me { width: 44px !important; min-width: 44px; background: transparent !important; border: 1px solid var(--line) !important; border-radius: 0 !important; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); padding: 0; }
.cht-dl__me:hover { color: var(--cu-2); border-color: var(--cu); background: transparent; }
.cht-dl .cht-dl__find .cht-dl__radius { min-width: 140px; border: 1px solid var(--line) !important; border-radius: 0 !important; color: var(--ink) !important; font: 400 14px/1 "Inter", sans-serif !important; appearance: none; -webkit-appearance: none; padding: 0 38px 0 16px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23c9c7c2' stroke-width='1.2'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 14px center / 11px no-repeat; cursor: pointer; }
.cht-dl__radius option { color: #11100e; }
.cht-dl__go { padding: 0 26px; border-color: var(--cu) !important; background: var(--cu) !important; color: #0b0b0b !important; font: 600 10px/1 "Inter", sans-serif !important; letter-spacing: 0.26em; text-transform: uppercase; cursor: pointer; transition: background 0.4s; }
.cht-dl__go:hover { background: var(--cu-2) !important; }
.cht-dl__find > *:focus-visible { outline: 1px solid var(--cu-2); outline-offset: 2px; }
.cht-dl__count { margin-top: 22px !important; font: 600 10px/1.4 "Inter", sans-serif; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3); }

/* list on the left, map on the right */
.cht-dl__body { display: grid; grid-template-columns: minmax(360px, 30%) 1fr; gap: 24px; height: clamp(560px, 72vh, 720px); margin-top: 18px; }
.cht-dl__side { min-height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.cht-dl__list { display: flex; flex-direction: column; gap: 12px; }
.cht-dl__card { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 22px; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; transition: border-color 0.5s, background 0.5s; }
.cht-dl__card:hover, .cht-dl__card:focus-visible { border-color: rgba(232, 180, 138, 0.35); outline: none; }
.cht-dl__card.is-active { border-color: var(--cu); background: #171513; }
.cht-dl__card[hidden] { display: none; }
.cht-dl__where { display: flex; justify-content: space-between; gap: 12px; font: 600 10px/1.4 "Inter", sans-serif; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cu-2); }
.cht-dl__dist { color: var(--ink-2); letter-spacing: 0.16em; }
.cht-dl__name { font: 300 22px/1.15 "Inter Tight", "Inter", sans-serif; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.cht-dl__addr { font: 300 14px/1.55 "Inter", sans-serif; color: var(--ink-2); }
.cht-dl__phone { font: 400 14px/1 "Inter", sans-serif; color: var(--ink); }
.cht-dl__phone:hover { color: var(--cu-2); }
.cht-dl__brands { display: flex; flex-wrap: wrap; gap: 6px; }
.cht-dl__brands li { padding: 6px 9px; border: 1px solid var(--line); font: 600 9px/1 "Inter", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.cht-dl__acts { display: flex; gap: 8px; padding-top: 4px; }
.cht-dl__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 40px; border: 1px solid rgba(243, 242, 239, 0.3); font: 600 10px/1 "Inter", sans-serif; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); transition: background 0.5s, color 0.5s, border-color 0.5s; }
.cht-dl__btn:hover, .cht-dl__btn:focus-visible { background: var(--ink); border-color: var(--ink); color: #0b0b0b !important; }
.cht-dl__btn--wa:hover, .cht-dl__btn--wa:focus-visible { background: #25d366; border-color: #25d366; color: #fff !important; }
.cht-dl__empty { margin-top: 12px !important; padding: 24px; border: 1px solid var(--line); font: 300 15px/1.6 "Inter", sans-serif; color: var(--ink-2); }
.cht-dl__empty a { color: var(--cu-2); }
.cht-dl__empty[hidden] { display: none; }

/* the map */
.cht-dl__map { min-height: 0; background: #111; border: 1px solid rgba(255, 255, 255, 0.07); }
.cht-dl .leaflet-container { font-family: "Inter", sans-serif; background: #111; }
.cht-dl .cht-dl__tiles { filter: invert(1) hue-rotate(180deg) grayscale(0.55) brightness(0.82) contrast(0.92); }
.cht-dl .leaflet-control-zoom a { background: #161514; color: var(--ink); border-color: var(--line); border-radius: 0 !important; }
.cht-dl .leaflet-control-zoom a:hover { background: #222; }
.cht-dl .leaflet-control-attribution { background: rgba(10,10,10,.7); color: var(--ink-3); }
.cht-dl .leaflet-control-attribution a { color: var(--ink-2); }
.cht-dl__pin span { display: block; width: 26px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath d='M13 33C13 33 1 20.5 1 12.6A12 12 0 0 1 25 12.6C25 20.5 13 33 13 33z' fill='%23c07a4c' stroke='%230a0a0a' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='12.5' r='4.2' fill='%230a0a0a'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.3s; transform-origin: 50% 100%; }
.cht-dl__pin.is-active span { transform: scale(1.3); filter: brightness(1.25); }
.cht-dl__pin.is-you span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath d='M13 33C13 33 1 20.5 1 12.6A12 12 0 0 1 25 12.6C25 20.5 13 33 13 33z' fill='%23f3f2ef' stroke='%230a0a0a' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='12.5' r='4.2' fill='%230a0a0a'/%3E%3C/svg%3E"); }
.cht-dl .cht-dl__pop .leaflet-popup-content-wrapper, .cht-dl .cht-dl__pop .leaflet-popup-tip { background: #161514; color: var(--ink-2); border-radius: 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cht-dl .cht-dl__pop .leaflet-popup-content { margin: 14px 18px; font: 300 13px/1.5 "Inter", sans-serif; }
.cht-dl .cht-dl__pop strong { color: var(--ink); font-weight: 500; }

@media (max-width: 1100px) { .cht-dl__body { grid-template-columns: 1fr; height: auto; } .cht-dl__map { height: 420px; order: -1; } .cht-dl__side { overflow: visible; } }
@media (max-width: 767px) { .cht-dl__find { width: 100%; flex-wrap: wrap; } .cht-dl__loc { flex: 1; width: auto; } }
