/* LUX EMPIRE homepage — load after theme.css, style.css, and property-media.css.
   Scoped to the existing index.php class names. No listing imagery is bundled. */
.home-hero, .home-categories-section, .home-popular-section,
.home-trust-section, .home-cta-section { box-sizing: border-box; }
.home-hero *, .home-categories-section *, .home-popular-section *,
.home-trust-section *, .home-cta-section * { box-sizing: border-box; }
.home-hero {
    position: relative; isolation: isolate; display: flex; align-items: center;
    min-height: 370px; padding: 46px max(22px, calc((100vw - 1280px)/2));
    overflow: hidden; color: #fff;
}
.home-hero-media, .home-cta-media { position: absolute; inset: 0; z-index: -1; background-position: center 52%; background-size: cover; background-repeat: no-repeat; }
.home-hero-media-overlay, .home-cta-media-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 31, 28, .86), rgba(13, 31, 28, .56) 46%, rgba(13, 31, 28, .08)); }
.home-hero-inner { width: 100%; max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.home-hero-text { max-width: 650px; }
.home-hero-eyebrow { display: block; margin-bottom: 8px; color: #f4ce83; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-hero-heading { margin: 0; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(36px, 4vw, 58px); line-height: 1.08; font-weight: 700; }
.home-gold-text { color: #f4ce83; }
.home-hero-sub { max-width: 490px; margin: 15px 0 22px; color: #fff; font-size: 15px; line-height: 1.55; }
.home-search-bar {
    display: grid; grid-template-columns: minmax(0, 1.5fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr) auto;
    align-items: center; width: min(100%, 820px); gap: 0; padding: 6px;
    border-radius: 7px; background: var(--lux-modal-bg, #fff); color: var(--white, #26313c);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.home-search-field { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 6px 13px; }
.home-search-divider { width: 1px; height: 34px; background: var(--lux-card-border, #ddd); }
.home-search-field-icon { flex: none; color: var(--gold); font-size: 17px; }
.home-search-field-body { flex: 1; min-width: 0; }
.home-search-field-label { display: block; margin-bottom: 3px; color: var(--gray); font-size: 10px; font-weight: 600; white-space: normal; }
.home-search-field-input { display: block; width: 100%; min-width: 0; padding: 0; border: 0; outline-offset: 3px; background: transparent; color: var(--white); font: inherit; font-size: 12px; line-height: 1.5; text-overflow: ellipsis; }
.home-search-field-input::placeholder { color: var(--gray); }
.home-search-field-input option { background: var(--lux-modal-bg, #fff); color: var(--white); }
.home-search-submit-btn { min-width: 108px; min-height: 41px; padding: 9px 15px; border: 0; border-radius: 5px; background: #214b47; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: none; cursor: pointer; }
.home-search-submit-btn:hover { background: #356c62; transform: none; }
[data-theme="dark"] .home-search-submit-btn { background: var(--gold); color: var(--black); }
.home-categories-section, .home-popular-section, .home-trust-section { padding-left: max(22px, calc((100vw - 1280px)/2)); padding-right: max(22px, calc((100vw - 1280px)/2)); }
.home-categories-section { padding-top: 20px; padding-bottom: 30px; }
.home-categories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1280px; margin: auto; }
.home-category-card { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; min-height: 112px; padding: 14px 7px; border: 1px solid var(--lux-card-border); border-radius: 6px; background: var(--glass); box-shadow: var(--shadow-gold); text-align: center; text-decoration: none; color: var(--white); transition: border-color .2s, transform .2s; }
.home-category-card:hover, .home-category-card:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.home-category-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 6px; border-radius: 7px; font-size: 21px; }
.home-category-icon-buy { color: #967020; background: #fff5e4; }
.home-category-icon-rent { color: #33698b; background: #e8f4fa; }
.home-category-icon-move { color: #327753; background: #eaf7ee; }
.home-category-title { color: var(--white); font-size: 13px; font-weight: 700; }
.home-category-sub { color: var(--gray); font-size: 11px; }
.home-popular-section { padding-top: 12px; padding-bottom: 44px; }
.home-popular-header { max-width: 1280px; margin: 0 auto 17px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.home-popular-eyebrow { color: var(--gold); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.home-popular-title, .home-trust-title { margin: 2px 0 0; color: var(--white); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; }
.home-popular-view-all { color: var(--gold); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-popular-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-property-card { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--lux-card-border); border-radius: 6px; background: var(--glass); box-shadow: var(--shadow-gold); color: var(--white); text-decoration: none; }
.home-property-media { position: relative; width: 100%; aspect-ratio: 1.5; overflow: hidden; background: var(--dark); }
.home-property-media > img, .home-property-media > video, .home-property-media .media-slide, .home-property-media .media-video { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.home-property-media .media-frame, .home-property-media .media-carousel, .home-property-media .media-carousel-track { height: 100%; }
.home-property-media .media-carousel-btn, .home-property-media .media-carousel-dots, .home-property-media .media-enlarge-btn { display: none; }
.home-property-media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gray); font-size: 24px; }
.home-property-badge { position: absolute; z-index: 2; top: 9px; left: 9px; padding: 5px 9px; border-radius: 4px; color: #23302f; font-size: 10px; font-weight: 700; background: #f7dba3; }
.home-property-badge-rent { background: #bce7cd; }
.home-property-body { padding: 12px; }
.home-property-location { overflow: hidden; color: var(--gray); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-property-location i { color: var(--gold); margin-right: 3px; }
.home-property-title { margin: 6px 0 5px; color: var(--white); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.home-property-price { color: var(--white); font-size: 15px; font-weight: 800; }
.home-property-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--lux-card-border); color: var(--gray); font-size: 11px; }
.home-property-meta span { white-space: nowrap; }
.home-popular-empty { max-width: 1280px; margin: auto; padding: 30px 0; color: var(--gray); }
.home-trust-section { border-top: 1px solid var(--lux-card-border); padding-top: 35px; padding-bottom: 42px; }
.home-trust-container { max-width: 1280px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.home-trust-items { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
.home-trust-item { display: flex; align-items: center; gap: 9px; }
.home-trust-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff0d5; color: #92661d; }
.home-trust-item-title { color: var(--white); font-size: 12px; font-weight: 700; }
.home-trust-item-sub { color: var(--gray); font-size: 10px; }
.home-trust-testimonial-card { padding: 22px 26px; border: 1px solid var(--lux-card-border); border-radius: 6px; background: var(--glass); box-shadow: var(--shadow-gold); }
.home-trust-quote { color: var(--white); font-family: Georgia, serif; font-size: 16px; font-style: italic; line-height: 1.5; }
.home-trust-author { display: flex; align-items: center; gap: 9px; color: var(--white); }
.home-trust-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff0d5; color: #92661d; }
.home-trust-author-name { font-size: 11px; font-weight: 700; }
.home-trust-stars { color: var(--gold); font-size: 12px; }
.home-cta-section { position: relative; isolation: isolate; min-height: 165px; display: flex; align-items: center; padding: 24px max(22px, calc((100vw - 1280px)/2)); overflow: hidden; color: #fff; background: #214b47; }
.home-cta-inner { width: 100%; max-width: 1280px; margin: auto; position: relative; z-index: 1; }
.home-cta-icon { display: none; }
.home-cta-title { margin: 2px 0 4px; color: #fff; font-family: Georgia, serif; font-size: 28px; }
.home-cta-sub { margin: 0 0 11px; color: #fff; font-size: 12px; }
.home-cta-actions { display: flex; align-items: center; gap: 10px; }
[data-theme="dark"] .home-category-icon-buy, [data-theme="dark"] .home-trust-icon, [data-theme="dark"] .home-trust-avatar { background: #453a22; color: #f4ce83; }
[data-theme="dark"] .home-category-icon-rent { background: #243743; color: #a6d5e8; }
[data-theme="dark"] .home-category-icon-move { background: #233a2d; color: #a0d8ac; }
[data-theme="dark"] .home-property-badge { color: #23302f; }
@media (max-width: 900px) {
    .home-hero { min-height: 420px; }
    .home-popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-trust-container { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .home-hero { min-height: 0; padding: 35px 18px 28px; }
    .home-hero-media-overlay { background: linear-gradient(90deg, rgba(13,31,28,.9), rgba(13,31,28,.55)); }
    .home-hero-heading { font-size: 38px; }
    .home-hero-sub { font-size: 13px; }
    .home-search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-search-field:first-child { grid-column: 1/-1; border-bottom: 1px solid var(--lux-card-border); }
    .home-search-divider { display: none; }
    .home-search-field:nth-of-type(3) { border-right: 1px solid var(--lux-card-border); }
    .home-search-submit-btn { grid-column: 1/-1; width: 100%; }
    .home-categories-section, .home-popular-section, .home-trust-section { padding-left: 18px; padding-right: 18px; }
    .home-categories-grid { gap: 8px; }
    .home-category-card { min-height: 104px; padding: 9px 4px; }
    .home-category-title { font-size: 11px; }
    .home-category-sub { font-size: 9px; line-height: 1.25; }
    .home-category-icon { width: 33px; height: 33px; font-size: 18px; }
    .home-popular-grid { gap: 9px; }
    .home-property-media { aspect-ratio: 1.15; }
    .home-property-body { padding: 9px; }
    .home-property-title, .home-property-price { font-size: 12px; }
    .home-property-meta { gap: 8px; font-size: 10px; }
    .home-cta-section { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-category-card, .home-property-media .media-carousel-track { transition: none; }
}

/* =========================================================
   Search bar field/dropdown styling fix — the bar itself was
   already styled, but the <input>/<select> inside it were still
   rendering with default browser chrome. This resets that and
   gives the select a custom arrow that matches the theme.
   ========================================================= */

.home-search-field {
    min-height: 44px;
}

.home-search-field-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
}

.home-search-field-input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

select.home-search-field-input {
    cursor: pointer;
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23967020' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}

[data-theme="dark"] select.home-search-field-input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ce83' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}

.home-search-field-input option {
    padding: 8px;
    font-weight: 500;
}

/* =========================================================
   Popular-card media: auto-sliding images / autoplaying video.
   No manual controls anywhere on these cards, per spec.
   ========================================================= */

.home-media-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-media-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.9s ease;
}

.home-media-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.home-property-video {
    pointer-events: none;
}