/* SM Guesty Property Filters v2.3.2 */

.sm-gpf {
    --gpf-accent: #a78373;
    --gpf-accent-soft: #f3ebe7;
    --gpf-text: #2b2b2b;
    --gpf-muted: #7a7a7a;
    --gpf-line: #e4ded9;
    position: relative;
    width: 100%;
    margin-bottom: 28px;
    color: var(--gpf-text);
    scroll-margin-top: 120px;
}
.sm-gpf * { box-sizing: border-box; }
.sm-gpf__form { position: relative; width: 100%; margin: 0; }

/* Search bar: one row of segments */
.sm-gpf__bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--gpf-line);
    border-radius: 14px;
    padding: 6px;
}
.sm-gpf__seg {
    flex: 1 1 0;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    margin: 0 !important;
    padding: 8px 16px !important;
    border: 0 !important;
    border-right: 1px solid var(--gpf-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: none !important;
}
.sm-gpf__seg:last-of-type { border-right: 0 !important; }
.sm-gpf__seg:hover, .sm-gpf__seg:focus-within { background: #faf8f6 !important; }
.sm-gpf__seg:focus-visible { outline: 2px solid var(--gpf-accent); outline-offset: -2px; }
.sm-gpf__label {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    color: var(--gpf-muted);
    letter-spacing: 0;
}
.sm-gpf__value { font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-gpf__select, .sm-gpf__text {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 15px !important;
    color: inherit !important;
    cursor: pointer;
}
.sm-gpf__text { cursor: text; }
.sm-gpf__select:focus, .sm-gpf__text:focus { outline: none !important; }

.sm-gpf__btn {
    flex: 0 0 auto;
    min-width: 128px;
    margin: 0 0 0 6px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--gpf-accent) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    line-height: 1 !important;
}
.sm-gpf__btn:hover { filter: brightness(0.94); }
.sm-gpf__btn:focus-visible { outline: 2px solid var(--gpf-text); outline-offset: 2px; }

/* Date picker */
.sm-gpf__cal {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    width: min(720px, 100%);
    background: #fff;
    border: 1px solid var(--gpf-line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(43, 43, 43, 0.12);
    padding: 20px 24px 16px;
}
.sm-gpf__cal[hidden] { display: none; }
.sm-gpf__cal-nav {
    position: absolute;
    top: 16px; left: 16px; right: 16px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.sm-gpf__cal-arrow {
    pointer-events: auto;
    width: 34px; height: 34px;
    padding: 0 !important;
    border: 1px solid var(--gpf-line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--gpf-text) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer;
}
.sm-gpf__cal-arrow:disabled { opacity: 0.3; cursor: default; }
.sm-gpf__months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.sm-gpf__month-name { text-align: center; font-size: 15px; font-weight: 600; margin: 6px 0 14px; }
.sm-gpf__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.sm-gpf__dow { text-align: center; font-size: 11px; color: var(--gpf-muted); padding-bottom: 6px; }
.sm-gpf__day {
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--gpf-text) !important;
    font: inherit !important;
    font-size: 14px !important;
    cursor: pointer;
    position: relative;
}
.sm-gpf__day:hover:not(:disabled) { background: var(--gpf-accent-soft) !important; border-radius: 50% !important; }
.sm-gpf__day:disabled { color: #c9c3be !important; cursor: default; }
.sm-gpf__day.is-range { background: var(--gpf-accent-soft) !important; border-radius: 0 !important; }
.sm-gpf__day.is-start, .sm-gpf__day.is-end {
    background: var(--gpf-accent) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
}
.sm-gpf__day:focus-visible { outline: 2px solid var(--gpf-accent); outline-offset: -2px; border-radius: 50%; }
.sm-gpf__cal-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gpf-line);
    font-size: 13px; color: var(--gpf-muted);
}
.sm-gpf__link {
    padding: 0 !important; border: 0 !important; background: none !important;
    color: var(--gpf-text) !important; font: inherit !important; font-size: 13px !important;
    text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer;
}

/* Results line and sort */
.sm-gpf__results {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-top: 16px;
}
.sm-gpf__summary { margin: 0 !important; font-size: 14px; color: var(--gpf-muted); }
.sm-gpf__summary strong { color: var(--gpf-text); font-weight: 600; }
.sm-gpf__summary .sm-gpf__link { margin-left: 8px; }
.sm-gpf__sort { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 13px; color: var(--gpf-muted); white-space: nowrap; }
.sm-gpf__sort span { white-space: nowrap; }
.sm-gpf__sort select {
    height: 38px !important; padding: 0 30px 0 12px !important; margin: 0 !important;
    border: 1px solid var(--gpf-line) !important; border-radius: 10px !important;
    background-color: #fff !important; font: inherit !important; font-size: 14px !important; color: var(--gpf-text) !important;
}

/* Price and Book now added to each Loop card */
.sm-gpf-card {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 0 0;
    margin-top: 8px;
    border-top: 1px solid #e4ded9;
}
.sm-gpf-card__price { display: flex; flex-direction: column; line-height: 1.2; }
.sm-gpf-card__price strong { font-size: 20px; font-weight: 600; color: var(--gpf-text, #2b2b2b); }
.sm-gpf-card__price span { font-size: 12px; color: var(--gpf-muted, #7a7a7a); margin-top: 2px; }
.sm-gpf-card__book {
    display: inline-flex !important; align-items: center; justify-content: center;
    padding: 10px 18px !important; border-radius: 10px !important;
    background: #a78373 !important; color: #fff !important;
    font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; white-space: nowrap;
}
.sm-gpf-card__book:hover { filter: brightness(0.94); }
.sm-gpf-card__book[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* [sm_property_cards]: TCN-style cards, same border and corners as the search bar */
.sm-gpf-cards {
    --gpf-accent: #a78373;
    --gpf-line: #e4ded9;
    display: grid;
    grid-template-columns: repeat(var(--gpf-cols, 3), minmax(0, 1fr));
    gap: 24px;
    margin: 20px 0 32px;
}
.sm-gpf-pcard {
    display: flex; flex-direction: column;
    background: #fff;
    position: relative;
    border: 1px solid var(--gpf-line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s ease;
}
.sm-gpf-pcard:hover { border-color: #cfc4bd; }
.sm-gpf-pcard__head { padding: 22px 22px 16px; }
.sm-gpf-pcard__title { margin: 0 0 8px !important; font-size: 20px !important; line-height: 1.3 !important; font-weight: 400 !important; }
.sm-gpf-pcard__title a { color: inherit !important; text-decoration: none !important; }
.sm-gpf-pcard__title a:hover { color: var(--gpf-accent) !important; }
.sm-gpf-pcard__loc {
    display: flex; align-items: center; gap: 6px;
    margin: 0 !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.4 !important; color: #6f6a66 !important;
}
.sm-gpf-pcard__loc svg { flex: 0 0 auto; width: 15px; height: 15px; color: #8a817b; }
.sm-gpf-pcard__chips {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
    list-style: none !important; margin: 0 !important; padding: 16px 20px 0 !important;
    overflow: hidden;
}
.sm-gpf-pcard__chips li {
    flex: 0 0 auto;
    margin: 0 !important; padding: 4px 10px !important;
    border-radius: 999px; background: #f3efec;
    font-size: 12.5px; font-weight: 500; line-height: 1.3; color: #3a3633; white-space: nowrap;
}
/* Very narrow cards only: wrap rather than cut a chip off */
.sm-gpf-pcard__chips.is-wrap { flex-wrap: wrap; }
.sm-gpf-pcard__chips:empty { display: none; }
.sm-gpf-pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #efe9e5; overflow: hidden; }
.sm-gpf-pcard__media img {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important; max-width: none !important;
    object-fit: cover !important; display: block; margin: 0 !important; border-radius: 0 !important;
    transition: transform .5s ease;
}
.sm-gpf-pcard:hover .sm-gpf-pcard__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .sm-gpf-pcard__media img { transition: none; } .sm-gpf-pcard:hover .sm-gpf-pcard__media img { transform: none; } }
.sm-gpf-pcard__foot { display: flex; flex-direction: column; flex: 1; padding: 16px 22px 20px; }
.sm-gpf-pcard__price {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding-bottom: 16px; border-bottom: 1px solid var(--gpf-line); min-height: 52px;
}
.sm-gpf-pcard__price strong { font-size: 22px; font-weight: 500; line-height: 1.1; color: #2b2b2b; }
.sm-gpf-pcard__price span { font-size: 12px; line-height: 1.35; color: #8a8a8a; text-align: right; }
.sm-gpf-pcard__price .sm-gpf-pcard__from { font-size: 15px !important; font-weight: 400 !important; color: #8a8a8a; text-align: left; }
.sm-gpf-pcard__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.sm-gpf-pcard__book {
    display: inline-flex !important; align-items: center; justify-content: center;
    padding: 9px 22px !important; border-radius: 10px !important;
    background: var(--gpf-accent) !important; color: #fff !important;
    font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important;
}
.sm-gpf-pcard__book:hover { filter: brightness(0.94); }
.sm-gpf-pcard__book[aria-busy="true"] { opacity: .7; pointer-events: none; }
.sm-gpf-pcard__more { margin-left: auto; color: #2b2b2b !important; font-size: 15px !important; font-weight: 400 !important; text-decoration: none !important; }
.sm-gpf-pcard__more span { display: inline-block; margin-left: 4px; font-size: 13px; transition: transform .2s ease; }
.sm-gpf-pcard__more:hover { color: var(--gpf-accent) !important; }
.sm-gpf-pcard__more:hover span { transform: translate(2px, -2px); }
.sm-gpf-pcard a:focus-visible { outline: 2px solid var(--gpf-accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 1100px) { .sm-gpf-cards:not(.sm-gpf-cards--c1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .sm-gpf-cards { grid-template-columns: 1fr; } }

/* Line up photos and prices across each row: every card in a row shares
   the same head / photo / footer heights (CSS subgrid). */
@supports (grid-template-rows: subgrid) {
    .sm-gpf-cards { grid-auto-rows: auto; }
    .sm-gpf-pcard {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
    .sm-gpf-pcard__head { align-self: stretch; }
}
/* Older browsers: fixed two-line title and details instead. */
@supports not (grid-template-rows: subgrid) {
    .sm-gpf-pcard__title { min-height: calc(1.3em * 2); }
}

/* Card picked from a map pin */
/* Override SM Listings Map's thick offset outline: just the card's own border
   in the brand colour, plus a soft lift. */
.sm-gpf-cards .sm-gpf-pcard.sm-map-selected {
    outline: none !important;
    outline-offset: 0 !important;
    border-radius: 14px !important;
    border-color: var(--gpf-accent, #a78373);
    box-shadow: 0 6px 22px rgba(167, 131, 115, 0.18);
}
/* Pin click scrolls to this anchor: leave room for the sticky header and search bar
   so the card title isn't hidden. */
.sm-gpf-pcard .sm-prop-anchor { scroll-margin-top: 220px; }
.sm-gpf-pcard { scroll-margin-top: 220px; }

/* Tablet: two rows */
@media (max-width: 1024px) {
    .sm-gpf__bar { flex-wrap: wrap; }
    .sm-gpf__seg { flex: 1 1 calc(50% - 1px); border-right: 0 !important; border-bottom: 1px solid var(--gpf-line) !important; }
    .sm-gpf__btn { flex: 1 1 100%; margin: 6px 0 0 !important; height: 48px; }
}
/* Phone: stacked, one-month calendar */
@media (max-width: 700px) {
    .sm-gpf__seg { flex: 1 1 100%; }
    .sm-gpf__seg--date { flex: 1 1 50%; }
    .sm-gpf__cal { width: 100%; padding: 16px 12px 12px; }
    .sm-gpf__months { grid-template-columns: 1fr; }
    .sm-gpf__results { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .sm-gpf * { transition: none !important; } }

/* No results message */
.sm-gpf-no-results {
    width: 100%;
    padding: 40px 24px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 24px 0;
}

.sm-gpf-no-results p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* Elementor native no-results message */
.e-loop-nothing-found-message {
    width: 100% !important;
    padding: 40px 24px !important;
    text-align: center !important;
}

.sm-gpf-no-results-text {
    font-size: 16px !important;
    color: #555 !important;
    margin: 0 !important;
    line-height: 1.7 !important;
}

.sm-gpf-no-results-text a {
    color: inherit !important;
    text-decoration: underline !important;
}

.sm-gpf-no-results-text a:hover {
    opacity: 0.8 !important;
}
