/* url: /listings/create */
/* bug ltr */

/* Exsile Custom: BEGIN — required star for price label (CSS so JS applyCategoryTypeActions cannot remove it) */
#priceBloc label[for="price"]::after {
    content: "\00a0*";
    color: #dc3545;
}
/* Exsile Custom: END */

[dir=rtl] [type=tel],[dir=rtl] [type=url],[dir=rtl] [type=email],[dir=rtl] [type=number] {
    direction: rtl
}


/* Hide the tags container and its label and description */
.mb-3:has(label[for="tags"]) {
    display: none !important;
}

/* Hide space when hide class inside */
.hide {
    display: none;
}

/* 1. Target only radio inputs inside the form to avoid affecting checkboxes */
input[type="radio"].form-check-input {
    display: none !important;
}

/* 2. Style labels specifically for radio buttons */
input[type="radio"].form-check-input + .form-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #dee2e6 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
    font-weight: 500;
    min-width: 50px;
    border-radius: 6px !important; /* Added to round all corners */
}

/* 3. Connect radio buttons into a horizontal group */
.form-check-inline {
    margin-right: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    margin-left: 0 !important;
}

/* 4. Active state for radios only */
input[type="radio"].form-check-input:checked + .form-check-label {
    background-color: #2e69ff !important;
    color: #ffffff !important;
    border-color: #2e69ff !important;
    z-index: 1;
}

/* Force the floor field container to take half width */
.mb-3:has(label[for="cf.restate_property_floor"]),
.mb-3:has(label[for="cf.restate_property_garden_sqm"]),
.mb-3:has(label[for="cf.restate_property_built_sqm"]),
.mb-3:has(label[for="cf.restate_property_house_no"]){
    width: 48% !important;
    float: right !important;
    margin-left: 0.7rem;
}

/* Force the total floors field container to take half width */
.mb-3:has(label[for="cf.restate_property_total_floors"]),
.mb-3:has(label[for="cf.restate_property_roof_sqm"]),
.mb-3:has(label[for="cf.restate_property_balcony_sqm"]),
.mb-3:has(label[for="cf.restate_property_entrance"]) {
    width: 49.2% !important;
    float: right !important;
}

/* Clear floats so the next elements start on a new line cleanly */
.mb-3:has(label[for="cf.restate_property_total_floors"]) + .mb-3,
.mb-3:has(label[for="cf.restate_property_on_stilts"])
.mb-3:has(label[for="cf.restate_property_built_sqm"]) + .mb-3,
.mb-3:has(label[for="cf.restate_property_total_sqm"])  {
    clear: both !important;
    display: block !important;
    width: 100% !important;
}

label[for="cf-restate_immediate_entry"] {
    display: none !important;
}


/* Reset the next elements to start on a new line cleanly */
.mb-3:has(label[for="cf.restate_sale_property_features"]),
.mb-3:has(label[for="cf.restate_commercial_property_features"]),
.mb-3:has(label[for="cf.restate_rent_property_features"]) {
    clear: both !important;
    display: block !important;
    width: 100% !important;
}

/* Target only the row that comes immediately after the specific label */
label[for="cf.restate_sale_property_features"] ~ .row,
label[for="cf.restate_commercial_property_features"] ~ .row,
label[for="cf.restate_rent_property_features"] ~ .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px; /* Space between buttons */
}

/* Reset column behavior and remove padding from .form-check to reduce spacing */
label[for="cf.restate_sale_property_features"] ~ .row > div,
label[for="cf.restate_commercial_property_features"] ~ .row > div,
label[for="cf.restate_rent_property_features"] ~ .row > div {
    width: auto !important;
    padding: 0 !important;
}

label[for="cf.restate_sale_property_features"] ~ .row .form-check,
label[for="cf.restate_commercial_property_features"] ~ .row .form-check,
label[for="cf.restate_rent_property_features"] ~ .row .form-check {
    padding-right: 0 !important;
    padding-left: 0 !important; /* Clears Bootstrap's default checkbox padding */
    margin: 0 !important;
}

/* Hide only the checkbox inputs inside this specific group */
label[for="cf.restate_sale_property_features"] ~ .row input[type="checkbox"].form-check-input,
label[for="cf.restate_commercial_property_features"] ~ .row input[type="checkbox"].form-check-input,
label[for="cf.restate_rent_property_features"] ~ .row input[type="checkbox"].form-check-input {
    display: none !important;
}

/* Style only the checkbox labels inside this specific group */
label[for="cf.restate_sale_property_features"] ~ .row input[type="checkbox"].form-check-input + .form-check-label,
label[for="cf.restate_commercial_property_features"] ~ .row input[type="checkbox"].form-check-input + .form-check-label,
label[for="cf.restate_rent_property_features"] ~ .row input[type="checkbox"].form-check-input + .form-check-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 500;
    user-select: none;
    margin: 0;
}

/* Active/Checked state style for this group only */
label[for="cf.restate_sale_property_features"] ~ .row input[type="checkbox"].form-check-input:checked + .form-check-label,
label[for="cf.restate_commercial_property_features"] ~ .row input[type="checkbox"].form-check-input:checked + .form-check-label,
label[for="cf.restate_rent_property_features"] ~ .row input[type="checkbox"].form-check-input:checked + .form-check-label {
    background-color: #2e69ff !important;
    color: #ffffff !important;
    border-color: #2e69ff !important;
}

/* Hover effect only for this group */
label[for="cf.restate_sale_property_features"] ~ .row input[type="checkbox"].form-check-input + .form-check-label:hover,
label[for="cf.restate_commercial_property_features"] ~ .row input[type="checkbox"].form-check-input + .form-check-label:hover,
label[for="cf.restate_rent_property_features"] ~ .row input[type="checkbox"].form-check-input + .form-check-label:hover {
    border-color: #2e69ff;
    color: #2e69ff;
}

/* Change textarea height cf.20 */
textarea[id="cf.restate_property_furniture_details"] {
    height: 200px !important;
}

/* --- Checkboxes (Property Features) - 100% Width with Rigid Equal Columns --- */
.mb-3:has(.form-check:not(.form-check-inline)) .row {
    display: grid !important;
    /* Creates equal columns that adapt to screen size automatically */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important; /* Uniform spacing */
    width: 100% !important;
}

.mb-3:has(.form-check:not(.form-check-inline)) .row > div {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mb-3 .form-check:not(.form-check-inline) .form-check-label {
    width: 100% !important;
    justify-content: center !important;
}

/* --- Radio Buttons - Equal Widths with Max Width Limit --- */

/* Turn the wrapper into a flex container, limit max width, and add gap */
.mb-3:has(input[type="radio"].form-check-input) {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 250px !important; /* Stops it from taking the whole desktop screen */
    gap: 12px !important; /* Added gap between items */
}

/* Force the label to take full width of the container */
.mb-3:has(input[type="radio"].form-check-input) > label.form-label {
    width: 100% !important;
    margin-bottom: 8px !important;
}

/* Hide unnecessary line breaks */
.mb-3:has(input[type="radio"].form-check-input) > br {
    display: none !important;
}

/* Distribute the space equally between all options in the row */
.mb-3:has(input[type="radio"].form-check-input) .form-check-inline {
    flex: 1 1 0 !important;
    margin-left: 0 !important;
}

/* Force the labels to fill their equal-sized containers */
.mb-3:has(input[type="radio"].form-check-input) input[type="radio"].form-check-input + .form-check-label {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    min-width: 0 !important;
}

/* --- Style cf.24 (Long Term) to match Radio Buttons layout --- */

/* 1. Limit the main wrapper to 500px to perfectly align with radio buttons */
.mb-3:has(input[type="checkbox"][id="cf.long_term"]) {
    max-width: 500px !important;
}

/* 2. Remove Bootstrap defaults from the form-check div */
.mb-3 .form-check:has(input[type="checkbox"][id="cf.long_term"]) {
    padding: 0 !important;
    margin: 0 !important;
    width: 33.33% !important;
}

/* 3. Hide the native checkbox input */
input[type="checkbox"][id="cf.long_term"] {
    display: none !important;
}

/* 4. Style the label exactly like the radio labels */
input[type="checkbox"][id="cf.long_term"] + .form-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px !important; /* Matched perfectly with radio buttons */
    background-color: #ffffff;
    border: 1px solid #dee2e6 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px !important;
    font-weight: 500;
    user-select: none;
    margin: 0 !important;
    width: 100% !important; /* Fill the 500px container */
    text-align: center !important;
}

/* 5. Active/Checked state (blue background) */
input[type="checkbox"][id="cf.long_term"]:checked + .form-check-label {
    background-color: #2e69ff !important;
    color: #ffffff !important;
    border-color: #2e69ff !important;
}

/* 6. Hover state (blue text and border) */
input[type="checkbox"][id="cf.long_term"] + .form-check-label:hover {
    border-color: #2e69ff;
    color: #2e69ff;
}

.radio-clear-btn {
    display: none !important;
}

/* url: /listings/XX/details */

.iti-group-text {
    display: none !important;
}

/* Exsile Custom: BEGIN — back link on listing create category field */
.create-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 16px;
    transition: color 0.2s;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}
.create-back-link:hover {
    color: #0056b3;
    border-color: #0056b3;
    background: #f0f4f8;
}
/* Exsile Custom: END */

/* Exsile Custom: BEGIN — readonly inputs appear grayed-out */
input[readonly] {
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
    color: #6c757d !important;
}
/* Exsile Custom: END */

.p-price-tag {
    background: rgba(var(--bs-primary-rgb), .9) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXSILE VISUAL ALIGNMENT PASS — 2026-06-11
   Design reference: approved mockup. All rules below are additive — they
   refine spacing/typography/card styles without removing functionality.
   Custom.css loads before theme.css; use !important only where needed.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Design tokens ────────────────────────────────────────────────────── */
:root {
    --exsile-brand-blue:    #1a56db;
    --exsile-brand-magenta: #e91e8c;
    --exsile-card-radius:   12px;
    --exsile-card-shadow:   0 2px 8px rgba(0,0,0,.08);
    --exsile-shadow-hover:  0 6px 20px rgba(0,0,0,.13);
    --exsile-meta-color:    #6b7280;
    --exsile-dark-text:     #1a1a2e;
    --exsile-transition:    0.18s ease;
}

/* ── 2. Typography scale ─────────────────────────────────────────────────── */
/* Main page H1 titles (search results, account pages) */
h1.page-title,
.main-container > .container > h1,
.section-title,
.account-title,
.account-content h1 { font-size: 1.75rem !important; font-weight: 700 !important; color: var(--exsile-dark-text) !important; }

/* Section headings h2 */
h2.content-title,
.page-section h2 { font-size: 1.15rem !important; font-weight: 600 !important; color: var(--exsile-dark-text) !important; }

/* Meta / secondary text */
.meta-info, .text-muted, small.text-muted, .small.text-muted { color: var(--exsile-meta-color) !important; font-size: .85rem; }
.item-meta .meta-info { color: var(--exsile-meta-color) !important; }

/* Price text — bold brand blue on all listing cards */
.item-info .price, .price-tag, .listing-price, .fs-4.fw-bold.text-primary, .fs-4.fw-bold { color: var(--exsile-brand-blue) !important; }

/* ── 3. Global card refinement ───────────────────────────────────────────── */
.card {
    border-radius: var(--exsile-card-radius) !important;
    box-shadow: var(--exsile-card-shadow) !important;
    border-color: #e9ecef !important;
}
.card-header {
    border-radius: var(--exsile-card-radius) var(--exsile-card-radius) 0 0 !important;
    background: #f9fafb !important;
    border-bottom-color: #e9ecef !important;
    font-weight: 600;
}

/* ── 4. Buttons ──────────────────────────────────────────────────────────── */
/* Primary fill */
.btn-primary {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
}
/* Magenta filled — bump / publish CTAs */
.btn-bump,
.btn-fuchsia,
[class*="bump"]:not(.btn-outline-secondary) { background-color: var(--exsile-brand-magenta) !important; border-color: var(--exsile-brand-magenta) !important; color: #fff !important; font-weight: 700 !important; border-radius: 8px !important; }
/* Delete selected button — red outline */
.btn-delete-selected,
#deleteConfirmBtn,
button[data-action="deleteAll"],
.btn-danger-outline { background: transparent !important; border: 1.5px solid #e53e3e !important; color: #e53e3e !important; font-weight: 600 !important; border-radius: 8px !important; }
.btn-danger-outline:hover { background: #e53e3e !important; color: #fff !important; }
/* Edit / outlined secondary */
.btn-outline-secondary { border-radius: 8px !important; font-weight: 500 !important; }
/* Input focus ring */
.form-control:focus, .form-select:focus {
    border-color: var(--exsile-brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(26,86,219,.12) !important;
}

/* ── 5. Navigation ───────────────────────────────────────────────────────── */
/* Nav link weight — medium, not bold */
#mainNavbar .navbar-nav .nav-link { font-weight: 500 !important; }
/* Publish button — magenta outlined */
#mainNavbar .navbar-nav a.btn,
#mainNavbar .navbar-nav .nav-item a.btn { border-color: var(--exsile-brand-magenta) !important; color: var(--exsile-brand-magenta) !important; }
#mainNavbar .navbar-nav a.btn:hover,
#mainNavbar .navbar-nav .nav-item a.btn:hover { background: var(--exsile-brand-magenta) !important; color: #fff !important; }

/* ── 6. Homepage hero improvements ──────────────────────────────────────── */
/* Slightly larger hero section on desktop */
.is-sectioned-page .only-search-bar,
body.is-sectioned-page .prevent-header-overlap { padding-top: 3rem !important; padding-bottom: 3.5rem !important; }

/* Feature cards – sharper shadow on hover */
.andy-feature-card { box-shadow: var(--exsile-card-shadow) !important; }
.andy-feature-card:hover { box-shadow: var(--exsile-shadow-hover) !important; }

/* ── 7. Listing cards — search results ───────────────────────────────────── */
/* Andy Insights badge — teal/green style (overrides any previous color) */
.andy-ai-badge {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

/* List-view card: remove double border from nesting */
.list-view .listing-card { box-shadow: var(--exsile-card-shadow) !important; }
.list-view .listing-card:hover { box-shadow: var(--exsile-shadow-hover) !important; }

/* Grid-view card */
.grid-view .item-list > div { box-shadow: var(--exsile-card-shadow) !important; border-radius: var(--exsile-card-radius) !important; }
.grid-view .item-list > div:hover { box-shadow: var(--exsile-shadow-hover) !important; }

/* Inline stat separators — show rooms/floor/sqm on one line */
.inline-stat-bar { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--exsile-meta-color); flex-wrap: wrap; }
.inline-stat-bar .stat-sep { color: #d1d5db; }
.inline-stat-bar .stat-val { font-weight: 600; color: var(--exsile-dark-text); }

/* Feature/amenity badges (ממ"ד, מרפסת, etc.) */
.feature-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    background: #f0fdf4; color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 2rem;
    font-size: .75rem; font-weight: 600;
    padding: .18rem .65rem;
}

/* AI Copywriter / rewrite badge */
.ai-rewrite-badge,
.ai-copywriter-pill {
    display: inline-block;
    background: var(--exsile-brand-magenta);
    color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 2rem;
    letter-spacing: .03em;
}

/* ── 8. Listing detail page ───────────────────────────────────────────────── */
/* Gallery — full width of the content column, rounded corners */
.items-details-wrapper .pictures-slider,
.items-details-wrapper .pictures-slider .bxslider,
.items-details-wrapper .swiper,
.items-details-wrapper .gallery-wrap {
    border-radius: var(--exsile-card-radius) !important;
    overflow: hidden;
    box-shadow: var(--exsile-card-shadow) !important;
    margin-bottom: 1.25rem;
}
.items-details-wrapper .pictures-slider img,
.items-details-wrapper .bx-wrapper img { border-radius: 0 !important; width: 100% !important; max-height: 480px; object-fit: cover; }

/* Sidebar cards on listing detail — consistent style */
.items-details-wrapper ~ .col-lg-4 .card,
aside .card { border-radius: var(--exsile-card-radius) !important; box-shadow: var(--exsile-card-shadow) !important; border-color: #e9ecef !important; background: #fff !important; }

/* Price display in main content area */
.items-details-wrapper .item-price,
.items-details-wrapper .price-wrapper { font-size: 1.75rem !important; font-weight: 700 !important; color: var(--exsile-brand-blue) !important; }

/* Listing detail title */
.items-details-wrapper h1.item-title,
.items-details-wrapper .listing-title { font-size: 1.35rem !important; font-weight: 700 !important; color: var(--exsile-dark-text) !important; }

/* CF field values row on listing detail */
.items-details-wrapper .details-list dt { font-size: .82rem; color: var(--exsile-meta-color); font-weight: 500; }
.items-details-wrapper .details-list dd { font-size: .95rem; font-weight: 600; color: var(--exsile-dark-text); }

/* Compact CF chips row (rooms/floor/sqm) */
.listing-chips-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; margin: .75rem 0; }
.listing-chip { background: #f8fafc; border: 1px solid #e9ecef; border-radius: 8px; padding: .35rem .75rem; text-align: center; min-width: 72px; }
.listing-chip .chip-val { display: block; font-size: 1rem; font-weight: 700; color: var(--exsile-dark-text); }
.listing-chip .chip-lbl { display: block; font-size: .72rem; color: var(--exsile-meta-color); }

/* ── 9. Account / Dashboard ──────────────────────────────────────────────── */
/* Each listing row in "My Listings" table */
#addManageTable tbody tr { background: #fff !important; }
#addManageTable tbody tr:hover { background: #f9fafb !important; }

/* Bump / promote button — magenta */
#addManageTable .btn[href*="bump"],
#addManageTable .btn[href*="promote"],
.bump-btn, .btn-bump-sm {
    background: var(--exsile-brand-magenta) !important;
    border-color: var(--exsile-brand-magenta) !important;
    color: #fff !important; font-weight: 700 !important;
    font-size: .8rem !important; border-radius: 6px !important;
}

/* Views count pill */
.views-pill, .bi-eye ~ span, #addManageTable .badge-views {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-radius: 2rem !important;
    font-size: .75rem !important;
    font-weight: 500 !important;
    padding: .18rem .55rem !important;
}

/* Sidebar navigation active link */
.col-md-3 .list-group-item.active { background: var(--exsile-brand-blue) !important; border-color: var(--exsile-brand-blue) !important; }

/* Account content area */
.account-content { background: #fff; border-radius: var(--exsile-card-radius); box-shadow: var(--exsile-card-shadow); padding: 1.5rem; }

/* ── 10. Login / Register page ───────────────────────────────────────────── */
/* Standalone auth card */
.col-md-6 .card.p-4,
.col-md-6 .card.p-5,
.login-card, .register-card,
.row-login .card {
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.1) !important;
    max-width: 480px;
    margin-left: auto; margin-right: auto;
}

/* Register link magenta */
.register-link, a[href*="/register"]:not(.btn):not(.nav-link), a[href*="/auth/register"]:not(.btn):not(.nav-link) { color: var(--exsile-brand-magenta) !important; font-weight: 600; }
a[href*="/register"]:not(.btn):not(.nav-link):hover { color: #c2185b !important; }

/* ── 11. Create / Edit listing form ──────────────────────────────────────── */
/* Section headers — left blue border + icon */
.form-section-heading {
    color: var(--exsile-brand-blue) !important;
    border-top: 1px solid #e9ecef;
    padding-top: 1.25rem;
    font-size: .95rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-inline-start: 3px solid var(--exsile-brand-blue);
    padding-inline-start: .75rem;
}

/* Category selection tiles */
.cat-tile, #categoriesList .col a, #categoriesList .col-md-3 a, #categoriesList .col-6 a {
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
    min-height: 110px !important;
    background: #fff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 14px !important;
    padding: 1rem !important;
    text-align: center !important;
    font-weight: 600 !important; font-size: .9rem !important;
    color: var(--exsile-dark-text) !important;
    text-decoration: none !important;
    transition: border-color .18s, box-shadow .18s !important;
    box-shadow: var(--exsile-card-shadow) !important;
}
#categoriesList .col a:hover, #categoriesList .col-md-3 a:hover, #categoriesList .col-6 a:hover,
.cat-tile:hover {
    border-color: var(--exsile-brand-blue) !important;
    box-shadow: 0 4px 16px rgba(26,86,219,.15) !important;
    background: rgba(26,86,219,.02) !important;
}
#categoriesList .col a img, #categoriesList .col-md-3 a img { width: 48px !important; height: 48px !important; object-fit: contain !important; margin-bottom: .5rem !important; }

/* Step breadcrumb / form header tabs */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--exsile-brand-blue) !important; border-radius: 8px !important; font-weight: 600 !important; }
.nav-pills .nav-link { border-radius: 8px !important; font-weight: 500; color: var(--exsile-meta-color) !important; }
.nav-pills .nav-link:hover:not(.active) { background: rgba(26,86,219,.06) !important; color: var(--exsile-brand-blue) !important; }

/* ── 12. Search results sidebar cards ────────────────────────────────────── */
/* Sidebar card headers */
aside .card .card-body > h3,
aside .card .card-body > .h6 { border-bottom: 1px solid #e9ecef !important; padding-bottom: .6rem !important; margin-bottom: .9rem !important; }

/* Valuator card subtle tint */
.andy-valuator-widget,
aside .card[style*="rgba(0,68,200"] { background: rgba(26,86,219,.03) !important; }

/* ── 13. Filter bar refinements ──────────────────────────────────────────── */
/* Sticky filter bar */
.andy-filter-bar { box-shadow: 0 2px 8px rgba(0,0,0,.06) !important; }

/* Sort bar title size */
.andy-sort-bar h1.h4 { font-size: 1.2rem !important; font-weight: 700 !important; }

/* ── 14. RTL consistency helpers ─────────────────────────────────────────── */
[dir=rtl] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir=rtl] .me-auto { margin-left: auto !important; margin-right: 0 !important; }
[dir=rtl] .text-start { text-align: right !important; }
[dir=rtl] .text-end { text-align: left !important; }

/* ── 15. Global input / form field polish ────────────────────────────────── */
.form-control, .form-select {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: .55rem .85rem !important;
    background-color: #fff !important;
    font-size: .925rem;
    color: var(--exsile-dark-text) !important;
}
.form-label { font-weight: 500; font-size: .875rem; color: #374151; }

/* ── 16. Pagination polish ───────────────────────────────────────────────── */
.pagination { gap: .15rem; }
.pagination .page-link { border-radius: 7px !important; font-weight: 600 !important; font-size: .875rem; }

/* ── 17. Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb { font-size: .82rem; }
.breadcrumb-item a { color: var(--exsile-meta-color); }
.breadcrumb-item a:hover { color: var(--exsile-brand-blue); }

/* ── 18. Footer spacing ──────────────────────────────────────────────────── */
footer.footer { border-top: 1px solid #e9ecef; padding-top: 2.5rem !important; }

/* ── 19. Create-listing form card ────────────────────────────────────────── */
/* The main form wrapper — make it a proper white card */
.listing-create-page .container.border.rounded.bg-body-tertiary,
form#payableForm ~ .container.border.rounded,
#payableForm .container.border.rounded.bg-body-tertiary,
.main-container .container.border.rounded.bg-body-tertiary {
    background: #fff !important;
    border-radius: var(--exsile-card-radius) !important;
    box-shadow: var(--exsile-card-shadow) !important;
    border-color: #e9ecef !important;
}

/* Form page h3 heading — clean divider style */
.container.border.rounded h3.fw-bold.border-bottom,
.main-container .col-md-9 h3.fw-bold.border-bottom {
    font-size: 1.1rem !important;
    color: var(--exsile-dark-text) !important;
    border-bottom-color: #e9ecef !important;
}

/* Listing detail main content card */
.items-details-wrapper {
    background: #fff !important;
    border-radius: var(--exsile-card-radius) !important;
    box-shadow: var(--exsile-card-shadow) !important;
    padding: 1.5rem !important;
}

/* ── 20. Account sidebar — keep tips card blue header ────────────────────── */
/* "How to sell faster" tips sidebar */
.col-md-3 .card-header.bg-primary,
.sidebar-tips .card-header { background: var(--exsile-brand-blue) !important; color: #fff !important; border-radius: var(--exsile-card-radius) var(--exsile-card-radius) 0 0 !important; }
.sidebar-tips ul { padding-right: 0; list-style: none; }
.sidebar-tips ul li::before { content: "✓ "; color: var(--exsile-brand-blue); font-weight: 700; }

/* ── 21. Account sidebar — Exsile nav items ─────────────────────────────── */
.exsile-account-sidebar .exsile-sidebar-nav-item {
    color: #374151;
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.exsile-account-sidebar .exsile-sidebar-nav-item:hover {
    background: rgba(26,86,219,.06);
    color: #1a56db;
}
.exsile-account-sidebar .exsile-sidebar-nav-item.active {
    background: rgba(26,86,219,.1);
    color: #1a56db;
    font-weight: 600;
}

/* ── 22. Account listings — card layout ─────────────────────────────────── */
.listing-card .exsile-listing-thumb img { transition: transform .2s; }
.listing-card:hover .exsile-listing-thumb img { transform: scale(1.03); }
.listing-card .exsile-listing-actions-select { font-size: .8rem; }

/* ── 23. Navbar — white bg + shadow ─────────────────────────────────────── */
#mainNavbar {
    background: #fff !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
#mainNavbar .container,
#mainNavbarContainer { min-height: 64px; display: flex; align-items: center; position: relative; }

#mainNavbar .navbar-nav .nav-link {
    font-weight: 600;
    font-size: .95rem;
    color: #4b5563 !important;
}
#mainNavbar .navbar-nav .nav-link:hover,
#mainNavbar .navbar-nav .nav-link:focus {
    color: #1a56db !important;
}

/* Publish button — magenta fill */
#mainNavbar .menu-type-button.btn-highlight,
#mainNavbar a.btn-highlight {
    background: #e91e8c !important;
    color: #fff !important;
    border-color: #e91e8c !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 16px;
}
#mainNavbar a.btn-highlight:hover { opacity: .9; }

/* User dropdown chip */
#mainNavbar .navbar-nav .nav-item.dropdown > a.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #1a1a2e !important;
}

/* ── Navbar: three-section layout (center nav + right actions) ──────────────── */
@media (min-width: 1200px) {
    /* Center nav links — absolutely centered within the full navbar */
    .exsile-nav-center {
        position: absolute !important;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0;
        margin: 0 !important;
        white-space: nowrap;
        z-index: 1;
    }
    /* Right actions (user + publish) — pushed to flex-end (left in RTL) */
    .exsile-nav-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 8px;
        margin-inline-start: auto !important;
        margin-inline-end: 0 !important;
    }
}

/* Letter avatar — replaces bi-person-circle */
.exsile-nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1a56db;
    font-weight: 700;
    font-size: .875rem;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── 24. Sort bar update ─────────────────────────────────────────────────── */
.andy-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.andy-sort-bar h1,
.andy-sort-bar .h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.andy-sort-bar .small { color: #6b7280; font-weight: 600; }

/* ── 25. Listing cards (search results) ─────────────────────────────────── */
.listing-card {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    transition: box-shadow .15s ease, transform .15s ease;
}
.listing-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
    transform: translateY(-2px);
    cursor: pointer;
}
.listing-card .make-favorite {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}
.listing-card .make-favorite.saved .bi-heart::before,
.listing-card .make-favorite .bi-heart-fill::before { color: #f43f5e; }

/* ── 26. Page background ─────────────────────────────────────────────────── */
body,
.main-container { background-color: #f8f9fa !important; }

/* ── 27. Bottom CTA banner ───────────────────────────────────────────────── */
.main-container > .container:last-of-type .card {
    border-radius: 16px !important;
    background: #f0f7ff !important;
    border: 1px solid #bfdbfe !important;
}
.main-container > .container:last-of-type .card h3 {
    color: #1a1a2e;
    font-weight: 700;
}

/* ── 28. Sidebar widgets (search results) ────────────────────────────────── */
.sticky-sidebar .card {
    border-radius: 16px !important;
}
.sticky-sidebar .card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: .75rem;
}
.sticky-sidebar .card .btn-primary {
    border-radius: 12px !important;
    font-weight: 700 !important;
}
.sticky-sidebar .card:last-child {
    background: rgba(26,86,219,.03) !important;
}

/* ── 29. ExsileFilterBar — expanded row on desktop ───────────────────────── */
@media (min-width: 992px) {
    .efb-bar .efb-btn-row        { display: none !important; }
    .efb-bar .efb-mobile-trigger-row { display: none !important; }
    .efb-bar .efb-expanded-row   { display: flex !important; }
}
@media (max-width: 991px) {
    .efb-bar .efb-expanded-row   { display: none !important; }
}

/* ── END VISUAL ALIGNMENT PASS ───────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════
   30. Navbar — publish button + user chip update (2026-06-12)
   ══════════════════════════════════════════════════════════════════════════ */
#mainNavbar .menu-type-button.btn-highlight,
#mainNavbar a.btn-highlight {
    background: #d946ef !important;
    border-color: #d946ef !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    box-shadow: 0 4px 12px rgba(217,70,239,0.25) !important;
}
#mainNavbar a.btn-highlight:hover { opacity: .9 !important; }

/* Mobile: publish button becomes icon-only (mockup hides the text < lg).
   The label is a bare text node (no span), so zero the button font-size and
   restore it on the icon. */
@media (max-width: 1199px) {
    #mainNavbar .menu-type-button.btn-highlight,
    #mainNavbar a.btn-highlight {
        font-size: 0 !important;
        padding: 10px 12px !important;
    }
    #mainNavbar a.btn-highlight i {
        font-size: 1rem !important;
        margin: 0 !important;
    }
}

/* User avatar chip - override previous dbeafe color */
.exsile-nav-avatar {
    background: rgba(0,68,200,0.1) !important;
    color: #0044c8 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   31. Mobile drawer
   ══════════════════════════════════════════════════════════════════════════ */
#exsile-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
}
#exsile-mobile-drawer.open { display: block !important; }
.exsile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.exsile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 288px;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}
/* RTL: drawer slides from left */
[dir="rtl"] .exsile-drawer-panel {
    right: auto;
    left: 0;
    box-shadow: 8px 0 32px rgba(0,0,0,0.15);
}
.exsile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.exsile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}
.exsile-drawer-section-label {
    font-size: .7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 12px;
    margin-bottom: 6px;
    margin-top: 4px;
}
.exsile-drawer-link {
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    color: #1e293b;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background .15s;
}
.exsile-drawer-link:hover { background: #f8fafc; color: #0044c8; }
.exsile-drawer-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 12px 0;
}
.exsile-drawer-footer {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.exsile-drawer-logout {
    display: block;
    text-align: center;
    background: #fff1f2;
    color: #e11d48;
    font-weight: 700;
    font-size: .875rem;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s;
}
.exsile-drawer-logout:hover { background: #ffe4e6; color: #e11d48; }

/* ══════════════════════════════════════════════════════════════════════════
   32. Homepage hero
   ══════════════════════════════════════════════════════════════════════════ */
/* Search card wrapper */
.exsile-search-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,68,200,0.08);
    padding: 12px;
    border: 1px solid #f1f5f9;
}
/* Hero title */
.only-search-bar .display-5 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
}
/* Hero section padding */
.only-search-bar {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   33. Homepage: section heading row + category tiles
   ══════════════════════════════════════════════════════════════════════════ */
.exsile-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}
.exsile-section-heading h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.exsile-section-heading a {
    font-weight: 700;
    font-size: .875rem;
    color: #0044c8;
    text-decoration: none;
}
.exsile-section-heading a:hover { text-decoration: underline; }

/* Category tiles */
.exsile-cat-tile {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all .25s ease;
}
.exsile-cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #0044c8;
}
.exsile-cat-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,68,200,0.07);
    color: #0044c8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    transition: all .25s ease;
}
.exsile-cat-tile:hover .exsile-cat-icon {
    background: #0044c8;
    color: #fff;
}
.exsile-cat-tile h6 { transition: color .2s; font-size: 1.125rem !important; } /* text-lg */
.exsile-cat-tile:hover h6 { color: #0044c8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   34. Homepage: latest listings section background
   ══════════════════════════════════════════════════════════════════════════ */
#page-section-5 {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 48px 0;
}
#page-section-5 .item-list .card {
    transition: all .25s ease;
}
#page-section-5 .item-list .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10) !important;
    border-color: #0044c8 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   35. Homepage: features section — override theme.css values
   ══════════════════════════════════════════════════════════════════════════ */
.andy-features-section { background: #f8fafc !important; padding: 64px 0 !important; }
.andy-feature-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 32px !important;
    text-align: center !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    transition: box-shadow .2s !important;
    height: 100% !important;
}
.andy-feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important; }
.andy-feature-badge {
    display: inline-block !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    margin-bottom: 16px !important;
}
.andy-feature-emoji { font-size: 3rem !important; display: block !important; margin-bottom: 12px !important; }
.andy-feature-title { font-size: 1.2rem !important; font-weight: 700 !important; color: #1e293b !important; margin-bottom: 8px !important; }
.andy-feature-desc { font-size: .875rem !important; color: #576574 !important; line-height: 1.6 !important; margin: 0 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   36. Footer
   ══════════════════════════════════════════════════════════════════════════ */
/* Section headers — not uppercase, proper size */
footer h4.fs-6.fw-bold {
    font-size: 1rem !important;
    text-transform: none !important;
    color: #fff !important;
    margin-bottom: 1.5rem !important;
}
/* Footer links */
footer ul.list-unstyled li a {
    font-size: .875rem;
    line-height: 1.75;
}
/* Social icon size + spacing */
footer .social-links li { display: inline-block; }
footer .social-links li a {
    font-size: 1.4rem;
    margin-inline-end: 12px;
    color: rgba(255,255,255,0.65);
    transition: color .2s;
}
footer .social-links li:last-child a { margin-inline-end: 0; }
footer .social-links li a:hover { color: #fff; }
/* Footer top padding */
footer .container-fluid { padding-top: 64px !important; }
/* Bottom bar / copyright row */
footer .border-top.border-dark {
    border-color: rgba(255,255,255,0.12) !important;
    padding-top: 24px !important;
    margin-top: 48px !important;
    margin-bottom: 32px !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   37. Search bar internals (AiSearchBar Vue component)
   ══════════════════════════════════════════════════════════════════════════ */
/* Hide the blue wrapper background the Vue component adds */
[data-exsile="search-bar"] .bg-primary {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
/* Text input */
[data-exsile="search-bar"] input.keyword {
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
    font-size: 1rem !important;
}
[data-exsile="search-bar"] input.keyword:focus {
    border-color: #0044c8 !important;
    box-shadow: 0 0 0 3px rgba(0,68,200,0.1) !important;
    outline: none !important;
}
/* Search submit button — brand blue fill */
[data-exsile="search-bar"] button.btn-light {
    background-color: #0044c8 !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 10px 20px !important;
}
[data-exsile="search-bar"] button.btn-light:hover {
    background-color: #0036a0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   38. Footer: menu column title headings (h4.menu-type-title)
   ══════════════════════════════════════════════════════════════════════════ */
footer h4.menu-type-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    color: #fff !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: normal !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   39. Homepage: hide ghost sections + kill their spacing (Bug 1)
   ══════════════════════════════════════════════════════════════════════════ */
/* Search-form and premium-listings wrappers are empty/replaced — zero them out */
#page-section-1,
#page-section-3,
.page-section--search-form,
.page-section--premium-listings {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Remove the 2rem top/bottom padding theme.css adds to every .page-section */
#homepage .page-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Restore vertical rhythm only for categories and latest-listings */
#page-section-2 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
#page-section-5 { padding-top: 48px !important; padding-bottom: 48px !important; }

/* ══════════════════════════════════════════════════════════════════════════
   40. Footer — comprehensive override (Bug 2)
   ══════════════════════════════════════════════════════════════════════════ */
footer > div.container-fluid {
    background-color: #0f172a !important;
    padding-top: 64px !important;
}
/* ALL footer h4 headings — menu columns + Mobile Apps + Follow us */
footer h4,
footer .menu-type-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    color: #fff !important;
    letter-spacing: 0 !important;
    margin-bottom: 20px !important;
}
/* Footer nav link color + spacing */
footer ul.list-unstyled li a {
    font-size: .875rem !important;
    line-height: 1.9 !important;
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    transition: color .15s;
}
footer ul.list-unstyled li a:hover { color: #fff !important; }
/* Social icons — full reset */
footer .social-links a,
footer .social-media a {
    font-size: 1.4rem !important;
    color: rgba(255,255,255,0.6) !important;
    margin-inline-end: 14px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: color .15s;
}
footer .social-links a:hover,
footer .social-media a:hover { color: #fff !important; }
/* Bottom bar */
footer .border-top.border-dark {
    border-color: rgba(255,255,255,0.1) !important;
    margin-top: 48px !important;
    padding-top: 20px !important;
    margin-bottom: 32px !important;
}
footer .border-top.border-dark div {
    font-size: .8rem !important;
    color: rgba(255,255,255,0.45) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   41. Mobile drawer — CSS corrections (Bug 3)
   ══════════════════════════════════════════════════════════════════════════ */
/* Upgrade drawer links from block to flex so icons align */
.exsile-drawer-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: .9rem !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: background .15s, color .15s !important;
    margin-bottom: 2px;
}
.exsile-drawer-link:hover {
    background: #f0f7ff !important;
    color: #0044c8 !important;
    text-decoration: none !important;
}
/* Logout button — flex for icon + text alignment */
.exsile-drawer-logout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff1f2 !important;
    color: #e11d48 !important;
    font-weight: 700 !important;
    font-size: .875rem !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: background .15s !important;
    gap: 6px;
}
.exsile-drawer-logout:hover {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    text-decoration: none !important;
}
/* Drawer section label — more breathing room */
.exsile-drawer-section-label {
    font-size: .68rem !important;
    padding: 8px 12px 4px !important;
}
/* Safety: never show drawer on XL+ (override the .open rule) */
@media (min-width: 1200px) {
    #exsile-mobile-drawer { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   42. Hero — padding + search card (matches mockup exactly)
   Mockup: <section ... py-16 text-center>
           <div class="max-w-3xl mx-auto bg-white rounded-3xl
                       shadow-xl shadow-brandBlue/5 p-3 border border-slate-100">
   ══════════════════════════════════════════════════════════════════════════ */
.only-search-bar {
    padding-top: 4rem !important;     /* py-16 */
    padding-bottom: 4rem !important;  /* py-16 */
    margin-top: 0 !important;
    background: transparent !important;
}
/* Hero title — text-5xl md:text-6xl */
.only-search-bar .display-5 {
    font-size: clamp(2.5rem, 5vw, 3.75rem) !important; /* 40px → 60px */
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
}
/* Hero subtitle — text-xl */
.only-search-bar .lead {
    font-size: 1.25rem !important;
}
/* Search card — max-w-3xl / rounded-3xl / p-3 / border-slate-100 */
.exsile-search-card {
    max-width: 768px !important;       /* max-w-3xl */
    margin: 0 auto !important;
    background: #fff !important;
    border-radius: 1.5rem !important;  /* rounded-3xl = 24px */
    box-shadow: 0 20px 40px -8px rgba(0,68,200,0.10) !important; /* shadow-xl/blue */
    padding: 0.75rem !important;       /* p-3 = 12px */
    border: 1px solid #f1f5f9 !important; /* border-slate-100 */
}
/* Vue component internals — neutralise its own blue wrapper + lay out as a row */
[data-exsile="search-bar"] > div > div.bg-primary,
[data-exsile="search-bar"] .bg-primary {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   43. Listing card — exact mockup match (heart, photo badge, title)
   ══════════════════════════════════════════════════════════════════════════ */
/* Favourite (heart) button — semi-transparent white circle, slate-400 default,
   rose on hover. NOTE: make.favorite.js rewrites the anchor innerHTML with
   <i class="bi bi-heart[-fill]"> on click, so the icon MUST remain a bi-* icon
   and be sized via this descendant rule (inline size would be wiped on toggle). */
.exsile-fav-btn {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: #94a3b8;                  /* slate-400 */
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: color .15s, background .15s, transform .15s;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    border: 0;
    padding: 0;
}
.exsile-fav-btn:hover { background: #fff; color: #f43f5e; transform: scale(1.08); } /* rose-500 */
.exsile-fav-btn i { font-size: 1rem; line-height: 1; }
/* Saved state — filled red heart (server-render OR after JS toggle) */
.exsile-fav-btn.is-saved,
.exsile-fav-btn .bi-heart-fill { color: #f43f5e; }

/* Photo-count badge — dark translucent pill, bottom-right, blurred */
.exsile-photo-badge {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    background: rgba(15,23,42,0.7);   /* slate-900/70 */
    color: #fff;
    font-size: .7rem;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 8px;               /* rounded-lg */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Listing title — text-sm bold, hover blue (mockup) */
.exsile-listing-title {
    font-size: .875rem !important;    /* text-sm */
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0;
}
.exsile-listing-title a { color: #1e293b !important; transition: color .15s; }
.grid-view .item-list:hover .exsile-listing-title a { color: #0044c8 !important; }

/* Card itself — white, slate-200 border, rounded-2xl, shadow-sm (mockup) */
.grid-view .item-list .card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;   /* slate-200 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

/* Latest-listings section — solid white band, full bleed (mockup bg-white border-y) */
#page-section-5 {
    background: #fff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ── END VISUAL ALIGNMENT PASS 2 ─────────────────────────────────────────── */

/* ============================================================================
   44. CATEGORY / SEARCH RESULTS PAGE — mockup alignment
   Targets the REAL DOM of search/results.blade.php + list.blade.php.
   - Filter bar: pills restyled over the component's OWN sticky band
     (no second band wrapper → avoids nested-sticky jank).
   - Saved heart kept rose via .bi-heart-fill (make.favorite.js innerHTML swap safe).
   - Photo badge: appearance only (keeps RTL inline-end position).
   ============================================================================ */

/* Page base background (mockup bgLight) */
body { background-color: var(--andy-bg) !important; }

/* --- Search band above the filter bar --- */
.exsile-category-search-band {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}
.exsile-category-search-band .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Breadcrumb --- */
.search-breadcrumb .breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  font-size: .875rem;
  color: #64748b;
}
.search-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "‹"; color: #cbd5e1; }
.search-breadcrumb .breadcrumb-item a { color: #64748b; text-decoration: none; transition: color .15s; }
.search-breadcrumb .breadcrumb-item a:hover { color: var(--andy-primary); }
.search-breadcrumb .breadcrumb-item.active { color: var(--andy-dark); font-weight: 700; }

/* --- Sort bar (title + count + sort select + view toggle) --- */
.andy-sort-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  gap: 16px;
  flex-wrap: wrap;
}
.andy-sort-bar h1,
.andy-sort-bar .h4 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--andy-dark) !important;
  margin: 0 0 4px !important;
  line-height: 1.3;
}
.andy-sort-bar .text-neutral-andy,
.andy-sort-bar small,
.andy-sort-bar .small { font-size: .875rem !important; font-weight: 600 !important; color: var(--andy-neutral) !important; }
.andy-sort-bar .form-select {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  color: var(--andy-dark) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}
.andy-sort-bar .btn-group .btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #94a3b8 !important;
  padding: 6px 12px !important;
}
.andy-sort-bar .btn-group .btn.active,
.andy-sort-bar .btn-group .btn:focus {
  background: #fff !important;
  color: var(--andy-primary) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.1) !important;
  z-index: 1;
}

/* --- Listing cards (list view) --- */
.list-view .listing-card {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.05) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.list-view .listing-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.10) !important;
  border-color: var(--andy-primary) !important;
}
.list-view .listing-card:hover h5 a { color: var(--andy-primary) !important; }

/* Heart / favourite button — 36px circle, slate-400 → rose; saved stays rose */
.list-view .listing-card .make-favorite {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.92) !important;
  color: #94a3b8 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.12) !important;
}
.list-view .listing-card .make-favorite i { font-size: 1rem !important; }
.list-view .listing-card .make-favorite:hover { color: #f43f5e !important; background: #fff !important; }
.list-view .listing-card .make-favorite .bi-heart-fill { color: #f43f5e !important; }

/* Photo count badge — dark/blurred (appearance only; keeps RTL inline-end position) */
.list-view .listing-card .position-absolute.bottom-0 {
  background: rgba(15,23,42,.7) !important;
  color: #fff !important;
  font-size: .7rem !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  backdrop-filter: blur(4px) !important;
}

/* Property details chip (rooms | floor | sqm) */
.listing-details-chip {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: #475569;
  background: var(--andy-bg);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

/* --- Sidebar widgets --- */
.sticky-sidebar .card { border-radius: 20px !important; }
.sticky-sidebar #saveAlert {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--andy-primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,68,200,.2) !important;
}
.sticky-sidebar #saveAlert:hover { background: color-mix(in srgb, var(--andy-primary) 85%, #000) !important; }
.sticky-sidebar .card:has(#valuatorAddress) {
  background: rgba(0,68,200,.04) !important;
  border-color: rgba(0,68,200,.12) !important;
}
.sticky-sidebar #valuatorAddress { border-radius: 12px !important; }
.sticky-sidebar #valuatorAddress:focus { border-color: var(--andy-fuchsia) !important; box-shadow: none !important; }

/* --- Bottom CTA banner --- */
.exsile-cta-banner {
  background: var(--andy-bg) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 40px 32px !important;
  text-align: center !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.05) !important;
}
.exsile-cta-banner .btn-primary {
  background: var(--andy-primary) !important;
  border-color: var(--andy-primary) !important;
  font-weight: 700 !important;
  padding: 12px 40px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,68,200,.25) !important;
}

/* --- Pagination --- */
.pagination .page-item.active .page-link {
  background: var(--andy-primary) !important;
  border-color: var(--andy-primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.pagination .page-link { color: var(--andy-primary) !important; font-weight: 600 !important; border-color: #e2e8f0 !important; }
.pagination .page-link:hover { background: #eff6ff !important; }

/* --- Filter bar pills: rectangular equal-width brand-blue (over component's own band) --- */
.exsile-filter-bar .efb-btn-row { gap: 12px !important; flex-wrap: nowrap !important; }
.exsile-filter-bar .efb-btn,
.exsile-filter-bar .efb-submit {
  flex: 1 1 0 !important;
  border-radius: 12px !important;
  justify-content: center !important;
  padding: 11px 14px !important;
  font-weight: 600 !important;
}
.exsile-filter-bar .efb-btn {
  background: #fff !important;          /* mockup: white pills */
  border: 1px solid #e2e8f0 !important;
  color: var(--andy-dark) !important;
}
.exsile-filter-bar .efb-btn i { color: var(--andy-primary); }
.exsile-filter-bar .efb-btn:hover:not(.efb-btn--on),
.exsile-filter-bar .efb-btn--on {
  background: #eff6ff !important;
  border-color: var(--andy-primary) !important;
  color: var(--andy-primary) !important;
}
.exsile-filter-bar .efb-submit { background: var(--andy-primary) !important; color: #fff !important; font-weight: 700 !important; }
.exsile-filter-bar .efb-submit:hover { background: color-mix(in srgb, var(--andy-primary) 85%, #000) !important; }

/* --- Display-mode toggle (mockup: bg-slate-100 pill group, white active w/ shadow) --- */
.andy-view-toggle {
  display: inline-flex;
  background: #f1f5f9;                  /* slate-100 */
  border: 1px solid #e2e8f0;           /* slate-200 */
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.andy-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 7px;
  color: #94a3b8;                      /* slate-400 */
  background: transparent;
  border: 0;
  text-decoration: none;
  transition: all .15s;
  line-height: 1;
}
.andy-view-btn:hover { color: var(--andy-dark); }
.andy-view-btn.active {
  background: #fff;
  color: var(--andy-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  font-weight: 700;
}

/* --- Category search box: icon-only blue button (mockup) --- */
.exsile-category-search-band [data-exsile="search-bar"] button.btn-light {
  font-size: 0 !important;             /* hide the literal "Search" label */
  min-width: 52px;
  padding: 12px 14px !important;
}
.exsile-category-search-band [data-exsile="search-bar"] button.btn-light i {
  font-size: 1.1rem !important;
  margin: 0 !important;
}

/* ── END SECTION 44 ───────────────────────────────────────────────────────── */
