/* The search card of Home on the desktop (partials/home-search.blade.php, public/js/home-search.js): a white card whose right panel takes the colour of
   the chosen À louer / À vendre (the named colours --color-rent / --color-sale; its lighter and darker shades are derived with color-mix). The phone view
   has its own search (home-mobile.css), so all of this is for the desktop band. */
/* The title and the card line up with the page's 1000px column (the header's buttons, the reference cards, Liens rapides and the right column):
   the photo band is 1060px wide, the content in it 1000px, centred like the header. */
.hsOuter .hsHero { max-width: 1060px; min-height: 0; padding: 0 0 34px; }
.hsOuter .hsHero > h1, .hsOuter .hsHero > .hsCard { max-width: 1000px; margin-right: auto; margin-left: auto; }
.hsOuter .hsHero h1 { padding: 28px 0 20px; }

.hsCard { --c2: var(--color-rent); --c1: color-mix(in srgb, var(--c2) 70%, #fff); --c3: color-mix(in srgb, var(--c2) 78%, #000);
  display: flex; border-radius: 28px; overflow: hidden; color: #1b2a2f; font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif;
  box-shadow: 0 36px 70px -34px rgba(20, 42, 32, .6), 0 3px 8px rgba(20, 42, 32, .08); }
.hsCard[data-intent="sale"] { --c2: var(--color-sale); }
.hsLeft { flex: 1; min-width: 0; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 22px 26px 22px; }

.hsSeg { display: inline-flex; padding: 4px; border-radius: 999px; background: #f1f4f2; }
.hsSeg label { cursor: pointer; }
.hsSeg input, .hsChip input, .hsBub input, .hsTog input { position: absolute; opacity: 0; pointer-events: none; }
.hsSeg span { display: block; padding: 9px 22px; border-radius: 999px; color: #6b7278; font-size: 13px; font-weight: 800; letter-spacing: .5px; transition: background .15s ease, color .15s ease; }
.hsSeg input:checked + span { color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 16px -8px var(--c2); }
.hsSeg input:focus-visible + span, .hsChip input:focus-visible + span, .hsBub input:focus-visible + span { outline: 3px solid rgba(15, 132, 180, .55); outline-offset: 2px; }

.hsCard h5 { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 8px; color: #0f84b4; font-size: 11px; font-weight: 800; letter-spacing: .8px; line-height: 1.3; text-transform: uppercase; }
.hsCard h5 em { color: #6b7278; font-style: normal; font-weight: 700; letter-spacing: .2px; text-transform: none; }

.hsTypes { display: flex; flex-wrap: wrap; gap: 7px; }
.hsChip { position: relative; cursor: pointer; }
.hsChip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1.5px solid #e1e6e2; border-radius: 999px; background: #fff; color: #33383d; font-size: 13px; font-weight: 700; transition: border-color .15s ease, background .15s ease; }
.hsChip:hover span { border-color: var(--color-secondary); background: var(--color-line-soft); }
.hsChip input:checked + span { border-color: var(--color-primary); background: var(--color-primary-tint); color: var(--color-primary-dark); }
.hsChip input:checked + span::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

.hsPlaces { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hsAllPlaces { padding: 7px 12px; border-radius: 12px; background: #f1f4f2; color: #33383d; font-size: 13px; font-weight: 700; }
.hsPlace { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 12px; border: 1.5px solid #cfe6f3; border-radius: 12px; background: #eef6fb; color: #006592; font-size: 13px; font-weight: 700; }
.hsPlace button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #006592; cursor: pointer; }
.hsAdd { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px dashed #9fd37a; border-radius: 12px; background: transparent; color: #3a8a1b; cursor: pointer; font-size: 13px; font-weight: 700; }
.hsAdd:hover { background: var(--color-primary-tint); }
.hsAdd[hidden] { display: none; }

.hsRow { display: flex; align-items: flex-start; gap: 18px; }
.hsPrice { flex: 1 1 0; min-width: 0; }
.hsRooms { flex: 1 1 0; min-width: 0; }
.hsRooms[hidden] { display: none; }
.hsPrice:only-child, .hsRow > .hsRooms[hidden] ~ .hsPrice { flex: 1; }
.hsIn { display: flex; gap: 8px; }
.hsIn input { flex: 1; min-width: 0; width: 100%; padding: 11px 14px; border: 1.5px solid #e1e6e2; border-radius: 14px; background: #fff; color: #1b2a2f; font-size: 14px; }
.hsIn input::placeholder { color: #929a95; }
.hsIn input:hover { background: var(--color-line-soft); border-color: var(--color-secondary); }
.hsIn input:focus { background: #fff; border-color: var(--color-secondary); outline: 0; }
.hsIn input.isInvalid { border-color: var(--color-danger); }
.hsBub { display: flex; gap: 7px; flex-wrap: wrap; }
.hsBub span { display: grid; place-items: center; min-width: 44px; height: 42px; padding: 0 12px; border: 1.5px solid #e1e6e2; border-radius: 12px; background: #fff; color: #33383d; cursor: pointer; font-size: 14px; font-weight: 700; }
.hsBub label { position: relative; }
.hsBub input:checked + span { border-color: var(--c2); background: var(--c2); color: #fff; }

.hsMore { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 4px; border: 0; background: transparent; color: #33383d; cursor: pointer; font-size: 14px; font-weight: 700; }
.hsMore[hidden], .hsGhost[hidden] { display: none; }
.hsMore svg { flex: none; }
.hsMore:hover { color: #0f84b4; }
.hsPanel { margin-top: 10px; padding: 16px 18px; border: 1px solid #e3ebe5; border-radius: 18px; background: #f5f9f6; }
.hsPanel[hidden] { display: none; }
.hsPanel:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 24px; }
.hsTog { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.hsTog[hidden] { display: none; }
.hsSwitch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #cfd8d2; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); transition: background .15s ease; }
.hsSwitch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.hsTog input:checked + .hsSwitch { background: linear-gradient(135deg, #7fd24a, #3a8a1b); }
.hsTog input:checked + .hsSwitch::after { transform: translateX(18px); }
.hsTog input:focus-visible + .hsSwitch { outline: 3px solid rgba(15, 132, 180, .55); outline-offset: 2px; }

.hsRight { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; width: 250px; padding: 22px; color: #fff; background: linear-gradient(160deg, var(--c1), var(--c2) 60%, var(--c3)); transition: background .2s ease; }
.hsRight small { display: block; font-size: 12px; font-weight: 700; line-height: 1.35; opacity: .92; }
.hsRight strong { display: block; min-height: 40px; margin-top: 4px; font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 40px; }
.hsRight p { margin: 6px 0 0; font-size: 13px; opacity: .92; }
.hsGo { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; border: 0; border-radius: 16px; background: #fff; color: var(--c3); cursor: pointer; font-size: 16px; font-weight: 800; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .5); transition: transform .15s ease; }
.hsGo:hover:not(:disabled) { transform: translateY(-2px); }
.hsGo:disabled { opacity: .5; cursor: default; }
.hsGhost { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 12px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 14px; background: transparent; color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; }
.hsGhost:hover { background: rgba(255, 255, 255, .14); }

/* The place picker: province, city / territory, then the communes and their quartiers (up to four places in all). */
.hsPicker { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; }
.hsPicker[hidden] { display: none; }
.hsPickerBackdrop { position: absolute; inset: 0; background: rgba(14, 28, 22, .55); backdrop-filter: blur(3px); }
.hsPickerSheet { position: relative; display: flex; flex-direction: column; width: min(560px, 100%); max-height: min(720px, 100%); overflow: hidden; border-radius: 24px; background: #fff; color: #1b2a2f; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6); font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif; }
.hsPickerSheet header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid #edf1ee; }
.hsPickerSheet h2 { margin: 0; font-size: 17px; font-weight: 800; }
.hsPickerSheet header button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f1f4f2; color: #33383d; cursor: pointer; }
.hsPickerBody { display: grid; gap: 14px; padding: 16px 20px; overflow-y: auto; }
.hsPickerBody > label { display: grid; gap: 6px; }
.hsPickerBody > label > span { color: #0f84b4; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.hsPickerBody select { padding: 11px 14px; border: 1.5px solid #e1e6e2; border-radius: 14px; background: #fff; color: #1b2a2f; font-size: 14px; }
.hsPickerBody select:disabled { opacity: .55; }
.hsCommunes p { margin: 0; padding: 10px 2px; color: #6b7278; font-size: 14px; }
.hsCommune { margin: 0 0 8px; border: 1.5px solid #e1e6e2; border-radius: 16px; background: #fff; overflow: hidden; }
.hsCommune.isOn { border-color: var(--color-primary); }
.hsCommuneHead, .hsQuartier { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.hsCommuneHead { padding: 11px 14px; font-weight: 700; }
.hsCommuneHead span, .hsQuartier span { flex: 1; min-width: 0; }
.hsCommuneHead em, .hsQuartier em { color: #6b7278; font-size: 12px; font-style: normal; font-weight: 700; }
.hsQuartiers { display: grid; gap: 2px; padding: 4px 14px 10px 38px; background: #f8fbf8; }
.hsQuartier { padding: 6px 0; font-weight: 600; }
.hsCommune input[type=checkbox] { flex: none; width: 18px; height: 18px; accent-color: var(--color-primary); }
.hsCommune input:disabled ~ span { color: #929a95; }
.hsPickerSheet footer { padding: 14px 20px 18px; border-top: 1px solid #edf1ee; }
.hsPickerSheet footer .hsGo { background: linear-gradient(135deg, #7fd24a, #3a8a1b); color: #fff; box-shadow: 0 14px 24px -12px rgba(58, 138, 27, .8); }
@media (prefers-reduced-motion: reduce) { .hsSeg span, .hsRight, .hsGo, .hsSwitch, .hsSwitch::after { transition: none; } }

/* Under the card: the complexes list and the direct access by reference. Same 1000px column as the card; one row of two cards. */
.moreEngine.hsQuick { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: auto; max-width: 1000px; margin: 22px auto 0; padding: 0; text-align: left; }
.hsQuickCard { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 20px; border: 1px solid #e3ebe5; border-radius: 22px; background: linear-gradient(135deg, #fff, #f3f8f4); color: #1b2a2f;
  font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif; box-shadow: 0 18px 36px -24px rgba(20, 42, 32, .55), 0 2px 6px rgba(20, 42, 32, .06); transition: transform .15s ease, box-shadow .15s ease; }
.hsQuickCard:hover, .hsQuickCard:focus-within { transform: translateY(-2px); box-shadow: 0 24px 40px -24px rgba(20, 42, 32, .6), 0 2px 8px rgba(20, 42, 32, .08); }
.hsQuickIcon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(135deg, #7fd24a, #3a8a1b); color: #fff; box-shadow: 0 10px 18px -10px #3a8a1b; }
.hsQuickTitle { flex: none; font-size: 15px; font-weight: 800; line-height: 1.25; }
.hsQuickTitle small { display: block; color: #3a8a1b; font-size: 11px; font-weight: 800; letter-spacing: .8px; }
.hsQuickSelect, .hsQuickGo { position: relative; display: flex; flex: 1; min-width: 0; }
.hsQuickSelect select, .hsQuickGo input { width: 100%; height: 46px; padding: 0 16px; border: 1.5px solid #e1e6e2; border-radius: 14px; background: #fff; color: #1b2a2f; font-size: 14px; font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.hsQuickSelect select { padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.hsQuickSelect svg { position: absolute; top: 15px; right: 14px; color: #6b7278; pointer-events: none; }
.hsQuickGo input { padding-right: 62px; text-transform: uppercase; }
.hsQuickGo input::placeholder { color: #8a9298; font-weight: 600; text-transform: none; }
.hsQuickSelect select:hover, .hsQuickGo input:hover { border-color: var(--color-secondary); }
.hsQuickSelect select:focus, .hsQuickGo input:focus { border-color: var(--color-secondary); outline: 0; box-shadow: 0 0 0 3px rgba(15, 132, 180, .18); }
.hsQuickGo input.isInvalid { border-color: var(--color-danger); }
.hsQuickGo button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 54px; height: 38px; padding: 0; border: 0; border-radius: 11px; background: linear-gradient(135deg, #7fd24a, #3a8a1b); color: #fff; cursor: pointer; box-shadow: 0 8px 14px -8px #3a8a1b; transition: transform .15s ease, filter .15s ease; }
.hsQuickGo button:hover { filter: brightness(1.06); transform: translateX(1px); }
.hsQuickGo button:disabled { cursor: wait; filter: grayscale(.4); }
.hsQuickError { position: absolute; right: 22px; bottom: 6px; left: 20px; margin: 0; color: var(--color-danger); font-size: 12px; font-weight: 700; text-align: right; }
.hsQuickError[hidden] { display: none; }
.hsQuickRef { padding-bottom: 24px; }

/* Liens rapides: one card holding the links, each in the colour of its intent; the last one fills the row when the count is odd. */
.quickBlock > .sectionHeading { display: flex; align-items: center; gap: 12px; height: auto; margin: 30px 0 16px; padding: 0; border: 0; background: none; color: #1b2a2f; font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .9px; line-height: 1.2; }
.quickBlock > .sectionHeading::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #7fd24a, #3a8a1b); }
/* One container: the grid's background shows through the 1px gaps as the lines between the tiles. */
.quickGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid #e3ebe5; border-radius: 22px; background: #e3ebe5; list-style: none; box-shadow: 0 18px 36px -26px rgba(20, 42, 32, .55), 0 2px 6px rgba(20, 42, 32, .05); }
.quickGrid li { margin: 0; }
.quickGrid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.desktopPage .quickTile { --tint: var(--color-rent); display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 0; background: #fff; color: #1b2a2f; text-decoration: none;
  font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3; transition: background .15s ease; }
.desktopPage .quickTile[data-intent="sale"] { --tint: var(--color-sale); }
.desktopPage .quickTile:hover, .desktopPage .quickTile:focus-visible { background: color-mix(in srgb, var(--tint) 7%, #fff); outline: 0; }
.quickIcon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 70%, #fff), var(--tint)); color: #fff; box-shadow: 0 8px 14px -8px var(--tint); }
.quickText { flex: 1; min-width: 0; }
.quickText small { display: block; margin-bottom: 2px; color: var(--tint); font-size: 10.5px; font-weight: 800; letter-spacing: .8px; }
.quickGo { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f4f2; color: #6b7278; transition: background .15s ease, color .15s ease, transform .15s ease; }
.quickTile:hover .quickGo, .quickTile:focus-visible .quickGo { background: var(--tint); color: #fff; transform: translateX(2px); }

/* "Plus d'options": each option has its icon, as on the legacy site. */
.hsTogIcon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; margin-left: -4px; border-radius: 11px; background: #fff; color: #1b2a2f; box-shadow: 0 1px 3px rgba(20, 42, 32, .12); transition: background .15s ease, color .15s ease; }
.hsTog input:checked ~ .hsTogIcon { background: var(--color-primary-tint); color: var(--color-primary-dark); }
