/* Ionian Treasures — search + property UI. Colours come from Divi's variables where set;
   fallbacks mirror the design brief (Ionian blue / limestone / olive). */
:root {
  /* All colours follow Divi's global colours (edit them in the Visual Builder → colour field → Global);
     the hex values are only fallbacks if Divi is not loaded. */
  --it-blue: var(--gcid-primary-color, #1F3A4D);
  --it-olive: var(--gcid-secondary-color, #6B7B4C);
  --it-sand: var(--gcid-165fbee3-7324-4e0d-8b9a-a0c6fb6a8fa6, #F4EFE6);
  --it-ink: var(--gcid-body-color, #2B2B2B);
  --it-line: var(--gcid-e74d9ad2-80f0-4e94-bda6-ae6eae3dd082, rgba(31, 58, 77, .18));
  --it-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

/* Filter bar — inline, quiet, The-Modern-House style */
.it-filters { border-top: 1px solid var(--it-line); border-bottom: 1px solid var(--it-line); padding: 14px 0; margin: 0 0 28px; font-size: 14px; }
.it-filters__row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.it-field { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.it-field > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--it-blue); opacity: .8; }
.it-field select, .it-field input[type=number] { appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--it-line); padding: 6px 0; font: inherit; color: var(--it-ink); border-radius: 0; }
.it-field select { padding-right: 18px; background-image: linear-gradient(45deg, transparent 50%, var(--it-blue) 50%), linear-gradient(135deg, var(--it-blue) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.it-field select:focus, .it-field input:focus { outline: none; border-bottom-color: var(--it-olive); }
.it-field--check { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 6px; }
.it-field--check span { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--it-ink); opacity: 1; }
.it-field input[type=text], .it-field input[type=search] { appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--it-line); padding: 6px 0; font: inherit; color: var(--it-ink); border-radius: 0; }
.it-field--checks { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; border: 0; padding: 0; margin: 0; flex-basis: 100%; }
.it-field--checks legend { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--it-blue); opacity: .8; margin-bottom: 6px; flex-basis: 100%; }
.it-field--checks label { display: inline-flex; gap: 6px; align-items: center; }
.it-checks__group { flex-basis: 100%; margin-top: 6px; font-size: 12px; color: var(--it-olive); letter-spacing: .06em; }
.it-filters__row--flags { padding-top: 10px; }
.it-filters__row--checks > .it-field--checks { padding-top: 14px; border-top: 1px dashed var(--it-line); }
.it-filters__more { flex-basis: 100%; margin-top: 12px; }
.it-filters__more summary { cursor: pointer; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--it-blue); list-style: none; }
.it-filters__more summary::-webkit-details-marker { display: none; }
.it-filters__more summary::after { content: " +"; }
.it-filters__more[open] summary::after { content: " –"; }
.it-filters__more .it-filters__row { padding-top: 14px; }

.it-btn { display: inline-block; padding: 10px 22px; border: 1px solid var(--it-blue); background: var(--it-blue); color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.it-btn:hover { background: transparent; color: var(--it-blue); }
.it-btn--ghost { background: transparent; color: var(--it-blue); }
.it-btn--ghost:hover { background: var(--it-blue); color: #fff; }
.it-reset { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--it-ink); opacity: .6; text-decoration: none; align-self: center; }
.it-reset:hover { opacity: 1; }

.it-results-count { font-family: var(--it-serif); font-size: 22px; color: var(--it-blue); }
#it-results { transition: opacity .25s; }
#it-results.is-loading { opacity: .35; pointer-events: none; }

/* Map */
.it-map { width: 100%; background: var(--it-sand); border: 1px solid var(--it-line); }
.it-map .leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.it-map .leaflet-popup-content { margin: 0; width: 240px !important; }
.it-pop img { display: block; width: 100%; height: 140px; object-fit: cover; }
.it-pop__body { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; }
.it-pop__title { font-family: var(--it-serif); font-size: 17px; color: var(--it-blue); text-decoration: none; display: block; margin-bottom: 2px; }
.it-pop__price { font-weight: 600; color: var(--it-ink); }
.it-pin { background: var(--it-blue); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 2px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); transform: translate(-50%, -100%); }
.it-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--it-blue); border-bottom: 0; }
.it-pin:hover { background: var(--it-olive); }

/* Single property */
.it-price { font-family: var(--it-serif); font-size: 30px; color: var(--it-blue); }
.it-price__was { text-decoration: line-through; opacity: .5; font-size: 16px; margin-left: 8px; }
.it-price__sqm { font-size: 13px; opacity: .65; margin-left: 8px; }
.it-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.it-badge { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; background: var(--it-sand); color: var(--it-blue); }
.it-badge--status-sold, .it-badge--status-under-offer, .it-badge--status-reserved { background: var(--it-blue); color: #fff; }
.it-badge--reduced { background: var(--it-olive); color: #fff; }
.it-badge--exclusive { border: 1px solid var(--it-blue); background: transparent; }
.it-terms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.it-terms li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--it-line); }
.it-terms a { text-decoration: none; color: inherit; }
.it-facts--full { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; }
.it-facts--full .it-facts__value { font-size: 17px; }
.it-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 36px; border-top: 1px solid var(--it-line); border-bottom: 1px solid var(--it-line); padding: 18px 0; }
.it-facts li { display: flex; flex-direction: column; gap: 2px; }
.it-facts__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--it-blue); opacity: .8; }
.it-facts__value { font-family: var(--it-serif); font-size: 22px; color: var(--it-ink); }
.it-highlights { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.it-highlights li { break-inside: avoid; padding: 6px 0 6px 18px; position: relative; }
.it-highlights li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 1px; background: var(--it-olive); }
.it-broker { display: flex; gap: 16px; align-items: center; padding: 20px; background: var(--it-sand); }
.it-broker__photo { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.it-broker__body { display: flex; flex-direction: column; gap: 2px; }
.it-broker__body .it-btn { margin-top: 10px; align-self: flex-start; }

@media (max-width: 767px) {
  .it-filters__row { gap: 12px 16px; }
  .it-field { min-width: calc(50% - 8px); }
  .it-btn { width: 100%; text-align: center; }
  .it-highlights { columns: 1; }
  .it-facts { gap: 14px 24px; }
}

/* Home quick search */
.it-filters--compact { border: 0; padding: 0; margin: 0; }
.it-filters--compact .it-reset { display: none; }

/* Island hub intro */
.it-archive-description { max-width: 680px; font-size: 18px; line-height: 1.65; }
.it-archive-description p { margin: 0 0 1em; }

/* Shortcode headings (match the IT Eyebrow / IT Section heading presets) */
.it-eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--it-blue); font-weight: 500; margin: 0 0 8px; }
.it-h2 { font-family: var(--it-serif); font-size: 40px; font-weight: 500; line-height: 1.15; color: var(--it-blue); margin: 0 0 32px; }

.it-field.is-hidden { display: none; }
.it-field--area select { min-width: 150px; }
