/* Locations page layout: intro → how it works → filters → [map + selected screen | list] → why Xplore.
   Hello Elementor's reset.css loads after this file and styles every button and input, so key properties use !important. */
.xml {
  --blue: #288DD1; --blue-ink: #1B6FA8; --orange: #C94409; --orange-hover: #B23C07;
  --ink: #101214; --text: #262626; --muted: #5B5F63; --line: #E3E6EA; --soft: #F5F3EE;
  --page: #F7F8FA; --blue-bg: #E8F3FB; --good: #1F8A4C; --good-bg: #E6F4EC;
  --display: "Poppins", "Segoe UI", Arial, sans-serif; --body: "Roboto", "Segoe UI", Arial, sans-serif;
  max-width: 1360px; margin: 0 auto; padding: 28px 24px 120px; color: var(--text); font: 15px/1.55 var(--body);
}
.xml *, .xml *::before, .xml *::after { box-sizing: border-box; }
.xml h1, .xml h2, .xml h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
@media (max-width: 600px) { .xml { padding: 20px 16px 140px; } }

.xml button, .xml select, .xml input { font-family: inherit !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none; }
.xml button { text-decoration: none !important; cursor: pointer; }

/* intro */
.xml-intro { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.xml-intro h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; max-width: 24ch; }
.xml-intro p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.xml-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.xml-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 120px; }
.xml-stat b { display: block; font: 700 20px/1.1 var(--display); color: var(--ink); }
.xml-stat span { font-size: 12px; color: var(--muted); }

/* how it works */
.xml-how { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.xml-how > div { padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); border-right: 1px solid var(--line); }
.xml-how > div:last-child { border-right: 0; }
.xml-how i { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--blue-bg); color: var(--blue-ink); font: 700 13px/30px var(--display); text-align: center; font-style: normal; }
.xml-how strong { display: block; color: var(--ink); font: 600 14px var(--display); }
@media (max-width: 900px) { .xml-how { grid-template-columns: 1fr 1fr; } .xml-how > div:nth-child(2) { border-right: 0; } .xml-how > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .xml-how { grid-template-columns: 1fr; } .xml-how > div { border-right: 0; border-bottom: 1px solid var(--line); } .xml-how > div:last-child { border-bottom: 0; } }

/* filters */
.xml-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 18px; }
.xml-search { flex: 1 1 260px; position: relative; }
.xml-search input { width: 100% !important; height: 44px !important; border: 1px solid var(--line) !important; border-radius: 8px !important; padding: 0 14px 0 40px !important; background: #fff !important; font-size: 14px !important; color: var(--ink) !important; margin: 0 !important; }
.xml-search svg { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; stroke: var(--muted); pointer-events: none; }
.xml select { height: 44px !important; border: 1px solid var(--line) !important; border-radius: 8px !important; padding: 0 12px !important; background-color: #fff !important; color: var(--ink) !important; font-size: 14px !important; min-width: 150px; width: auto !important; margin: 0 !important; }
.xml-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.xml .xml-chip, .xml .xml-chip:hover, .xml .xml-chip:focus { height: 36px !important; border: 1px solid var(--line) !important; background: #fff !important; border-radius: 999px !important; padding: 0 14px !important; font: 500 13px var(--display) !important; color: var(--muted) !important; }
.xml .xml-chip[aria-pressed="true"] { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }

/* main */
.xml-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
@media (max-width: 1060px) { .xml-main { grid-template-columns: 1fr; } }
.xml-left { display: grid; gap: 18px; min-width: 0; position: sticky; top: 12px; }
@media (max-width: 1060px) { .xml-left { position: static; } }

/* map */
.xml-map { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #cfe8f6; }
#xml-map { height: 460px; }
@media (max-width: 600px) { #xml-map { height: 360px; } }
.xml-key { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); border-radius: 8px; padding: 7px 12px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; box-shadow: 0 4px 14px rgba(16,18,20,.12); }
.xml-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-ink); margin-right: 5px; vertical-align: -1px; }
.xml-dot-on { background: var(--orange); }
.xml-iw { display: grid; gap: 2px; font: 13px var(--body); padding: 2px 4px; }
.xml-iw strong { font: 600 14px var(--display); color: var(--ink); }
.xml-iw b { color: var(--ink); }

/* selected screen */
.xml-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.xml-detail:empty { display: none; }
@media (max-width: 760px) { .xml-detail { grid-template-columns: 1fr; } }
.xml-gallery { position: relative; background: #dfe4e8; min-height: 230px; }
.xml-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xml-fmt { position: absolute; left: 12px; top: 12px; background: rgba(16,18,20,.8); color: #fff; font: 600 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; }
.xml-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.xml .xml-dots button, .xml .xml-dots button:hover, .xml .xml-dots button:focus { width: 9px !important; height: 9px !important; padding: 0 !important; border-radius: 50% !important; border: 0 !important; background: rgba(255,255,255,.6) !important; }
.xml .xml-dots button[aria-pressed="true"] { background: #fff !important; }
.xml-dbody { padding: 20px 22px; display: grid; gap: 14px; min-width: 0; }
.xml-dhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.xml-dhead h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.xml-dhead p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.xml-dhead a { font: 500 13px var(--display); color: var(--blue-ink); white-space: nowrap; text-decoration: none; }
.xml-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.xml-specs span { background: var(--soft); border-radius: 6px; padding: 5px 9px; font-size: 12.5px; }
.xml-specs b { font-weight: 500; color: var(--muted); margin-right: 4px; }
.xml-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .xml-rates { grid-template-columns: repeat(2, 1fr); } }
.xml .xml-rate, .xml .xml-rate:hover, .xml .xml-rate:focus { position: relative; display: block !important; border: 1.5px solid var(--line) !important; background: #fff !important; border-radius: 10px !important; padding: 10px 12px !important; text-align: left !important; color: var(--ink) !important; font-size: 14px !important; line-height: 1.3 !important; }
.xml .xml-rate:hover { border-color: var(--blue) !important; }
.xml .xml-rate[aria-pressed="true"] { border-color: var(--blue-ink) !important; background: var(--blue-bg) !important; }
.xml-rate small { display: block; font: 500 12px var(--display); color: var(--muted); }
.xml-rate b { display: block; font: 700 15px/1.3 var(--body); color: var(--ink); }
.xml-rate em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.xml-save { position: absolute; top: -8px; right: 8px; background: var(--good); color: #fff; font: 600 10.5px/1 var(--display); padding: 4px 6px; border-radius: 4px; }
.xml-quote { background: var(--soft); border-radius: 10px; padding: 14px; font-size: 13.5px; color: var(--muted); }
.xml-dfoot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.xml-tot { font-size: 13px; color: var(--muted); }
.xml-tot b { display: block; font: 700 20px/1.2 var(--body); color: var(--ink); }
.xml-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.xml .xml-btn, .xml .xml-btn:hover, .xml .xml-btn:focus { border-radius: 8px !important; font: 600 14px/1 var(--display) !important; padding: 12px 18px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none !important; }
.xml .xml-btn-orange, .xml .xml-btn-orange:focus { background: var(--orange) !important; color: #fff !important; border: 0 !important; }
.xml .xml-btn-orange:hover { background: var(--orange-hover) !important; color: #fff !important; border: 0 !important; }
.xml .xml-btn-ghost, .xml .xml-btn-ghost:focus { background: #fff !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.xml .xml-btn-ghost:hover { background: #fff !important; border: 1px solid var(--blue) !important; color: var(--blue-ink) !important; }

/* list */
.xml-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.xml-list-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 10px; }
.xml-list-head h2 { font-size: 15px; font-weight: 600; }
.xml-list-head select { height: 32px !important; font-size: 12.5px !important; min-width: 0; padding: 0 8px !important; }
.xml-count { display: inline-block; background: var(--blue-bg); color: var(--blue-ink); border-radius: 999px; font: 600 12px/1 var(--display); padding: 5px 9px; margin-left: 6px; }
.xml-items { max-height: calc(100vh - 120px); min-height: 560px; overflow: auto; padding: 6px; }
@media (max-width: 1060px) { .xml-items { max-height: none; min-height: 0; } }
.xml-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; }
.xml-card:hover { background: #FAFBFC; border-color: var(--line); }
.xml-card.on { background: var(--blue-bg); border-color: #bcdcf1; }
.xml-card:focus-visible { outline: 3px solid rgba(40,141,209,.45); outline-offset: 2px; }
.xml-thumb { width: 92px; height: 76px; border-radius: 8px; object-fit: cover; background: #dfe4e8; display: block; }
.xml-cbody { min-width: 0; display: grid; gap: 3px; }
.xml-mini { font: 600 10.5px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.xml-ctitle { font: 600 13.5px/1.3 var(--display); color: var(--ink); }
.xml-caddr { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xml-crow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.xml-price { font-size: 12px; color: var(--muted); }
.xml-price b { font: 700 14px var(--body); color: var(--ink); }
.xml .xml-add, .xml .xml-add:hover, .xml .xml-add:focus { border: 1px solid var(--line) !important; background: #fff !important; border-radius: 7px !important; height: 30px !important; padding: 0 10px !important; font: 600 12px/28px var(--display) !important; color: var(--blue-ink) !important; display: inline-flex !important; align-items: center; gap: 5px; white-space: nowrap; }
.xml .xml-add:hover { border-color: var(--blue) !important; }
.xml .xml-add.in, .xml .xml-add.in:hover { background: var(--good-bg) !important; border-color: #b6dfc6 !important; color: var(--good) !important; }
.xml-empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* why */
.xml-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.xml-why > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.xml-why strong { font: 600 15px var(--display); color: var(--ink); }
@media (max-width: 900px) { .xml-why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .xml-why { grid-template-columns: 1fr; } }
