/**
 * T10: Hero search bar styles.
 *
 * Used by the [np_listings_search] shortcode on the homepage hero.
 * Designed to sit on top of the existing blue overlay (#295cff at 85% + 33%
 * opacity) over the hero background image. White/translucent inputs, large
 * spacing, prominent search button.
 */

.np-hero-search {
    width: 100%;
    max-width: 820px;
    margin: 30px 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.np-hero-search-fields {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr auto;
    gap: 10px;
    align-items: end;
}

.np-hero-search-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.np-hero-search-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    padding-left: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.np-hero-search-label svg {
    flex-shrink: 0;
    opacity: 0.95;
}

.np-hero-search-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.np-hero-search-field select:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.np-hero-search-field select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.14);
}

.np-hero-search-submit {
    height: 48px;
    padding: 0 28px;
    background: #ffffff;
    color: #295cff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.np-hero-search-submit:hover {
    background: #295cff;
    color: #ffffff;
    transform: translateY(-1px);
}

.np-hero-search-submit:active {
    transform: translateY(0);
}

.np-hero-search-submit svg {
    flex-shrink: 0;
}

/* ── Tablet and below ─────────────────────────────────────── */
/* Three dropdowns + submit share a 2-col grid: Location|Type / Beds|Submit. */
@media (max-width: 900px) {
    .np-hero-search-fields {
        grid-template-columns: 1fr 1fr;
    }
    .np-hero-search-submit {
        width: 100%;
        justify-content: center;
        align-self: end;
    }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .np-hero-search {
        padding: 12px;
        margin: 20px 0;
    }
    .np-hero-search-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ── Hero left column spacing ────────────────────────────── */
/* Push the title/subtext block up from the bottom of the hero */
.inner-column-1 .gspb_container-gsbp-b6ab66b {
    padding-bottom: 40px;
}

/* ── Hero right column (search bar) bottom spacing ──────── */
.kadence-column1566_758ccc-37 > .kt-inside-inner-col {
    padding-bottom: 40px;
}

/* ── Hero row: stack columns at wider breakpoint ────────── */
/* Kadence default stacks at 767px — override to ~1535px for
   the hero row so title + search don't crowd on smaller laptops. */
@media (max-width: 1200px) {
    .kb-row-layout-id1566_059c7f-2e > .kt-row-column-wrap {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .inner-column-1 .gspb_container-gsbp-b6ab66b {
        padding-bottom: 0;
    }
}

/* ── "Featured Properties" section heading ───────────────── */
#featured_properties {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 60px;
    margin-bottom: 12px;
    padding-bottom: 0;
}

#featured_properties::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: #4a7cff;
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ── Homepage grid wrapper override ───────────────────────── */
/* Adds extra spacing around the listings grid when used on the homepage,
   without changing the archive page layout. The base grid styling
   (3-column desktop, gap, etc.) comes from .np-archive-grid in
   archive-listing.css — we reuse it as-is for visual consistency.
   On wide screens (>=1280px) the homepage variant bumps to 4 columns
   so the grid feels denser without becoming cramped.
   Note: selectors must combine .np-archive-grid + .np-homepage-grid to
   beat archive-listing.css on specificity, because hero-search.css is
   enqueued earlier in the document (the search shortcode runs before the
   grid shortcode) and would otherwise lose the source-order tiebreak. */
.np-archive-grid.np-homepage-grid {
    padding: 20px 0 30px;
}

@media (min-width: 1280px) {
    .np-archive-grid.np-homepage-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
