/* =====================================================================
   AL BASHA — LANDING PAGES
   Loaded only on /explore-properties, /list-your-property and /services.

   Every rule is scoped under `.ab-landing`, so this file cannot touch the
   frozen homepage, header, footer or account surfaces. It reads the
   canonical tokens (--ab-*) from :root and the --lovable-* palette that
   `.al-basha-lovable-home` puts on the landing wrapper, so the landings
   share one palette with the approved homepage.
   ===================================================================== */

.ab-landing {
    position: relative;
}

/* ---------- Hero ------------------------------------------------------ */

.ab-landing__hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(140px, 16vw, 190px) clamp(58px, 7vw, 96px);
    background: var(--ab-ink);
    isolation: isolate;
}

.ab-landing__hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .38;
}

.ab-landing__hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 90% at 78% 0%, rgba(200, 162, 93, .18), transparent 58%),
        linear-gradient(180deg, rgba(15, 15, 14, .82) 0%, rgba(19, 19, 19, .94) 62%, var(--ab-bg) 100%);
}

.ab-landing__hero-inner {
    position: relative;
    max-width: 52rem;
}

.ab-landing__hero h1 {
    margin: 18px 0 0;
    font-size: clamp(2.15rem, 4.4vw, 3.5rem);
    line-height: 1.18;
}

.ab-landing__hero h1 span {
    color: var(--ab-gold);
}

.ab-landing__hero-lead {
    max-width: 42rem;
    margin: 20px 0 0;
    color: var(--ab-muted);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.9;
}

.ab-landing__hero-rule {
    width: 96px;
    height: 2px;
    margin-top: 22px;
    background: linear-gradient(90deg, var(--ab-gold), transparent);
}

.ab-landing__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.ab-landing__hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.ab-landing__hero-stats li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(29, 29, 29, .72);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    font-size: 14px;
}

.ab-landing__hero-stats strong {
    color: var(--ab-gold);
    font-size: 18px;
    font-weight: 900;
}

.ab-landing__hero-stats span {
    color: var(--ab-muted);
}

.ab-landing__hero-stats .al-basha-lucide {
    width: 18px;
    height: 18px;
    color: var(--ab-gold);
}

/* ---------- Sections -------------------------------------------------- */

.ab-landing__section {
    position: relative;
    padding-block: var(--ab-section-y);
    background: var(--ab-bg);
}

.ab-landing__section--surface {
    background: var(--ab-surface);
}

.ab-landing__head {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: var(--ab-section-gap);
    text-align: center;
}

.ab-landing__head--start {
    margin-inline: 0;
    text-align: start;
}

.ab-landing__head h2 {
    margin: 14px 0 0;
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    line-height: 1.3;
}

.ab-landing__head p {
    margin: 16px 0 0;
    color: var(--ab-muted);
    font-size: 16px;
    line-height: 1.9;
}

.ab-landing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ab-gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.ab-landing__eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--ab-gold);
}

.ab-landing__head:not(.ab-landing__head--start) .ab-landing__eyebrow {
    justify-content: center;
}

/* ---------- Search panel --------------------------------------------- */

.ab-landing__search {
    margin-top: 34px;
    padding: 22px;
    background: rgba(29, 29, 29, .86);
    border: 1px solid var(--ab-line-strong);
    border-radius: var(--ab-radius-lg);
    box-shadow: var(--ab-shadow);
    backdrop-filter: blur(14px);
}

.ab-landing__search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.ab-landing__search label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
}

.ab-landing__search select,
.ab-landing__search input {
    width: 100%;
    height: 46px;
    padding-inline: 12px;
    color: var(--ab-fg);
    background: var(--ab-ink);
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius);
    font-family: inherit;
    font-size: 14px;
}

.ab-landing__search select:focus,
.ab-landing__search input:focus {
    border-color: var(--ab-gold);
    outline: none;
}

.ab-landing__search-price {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

/* ---------- Tiles (category / city shortcuts) ------------------------- */

.ab-landing__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ab-landing__tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    color: var(--ab-fg);
    background: var(--ab-surface-2);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    text-decoration: none;
    transition: border-color .25s var(--ab-ease), transform .25s var(--ab-ease), background-color .25s var(--ab-ease);
}

.ab-landing__tile:hover {
    transform: translateY(-3px);
    color: var(--ab-fg-strong);
    background: var(--ab-surface);
    border-color: var(--ab-line-strong);
}

.ab-landing__tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    color: var(--ab-gold);
    background: var(--ab-gold-soft);
    border-radius: var(--ab-radius);
}

.ab-landing__tile-icon .al-basha-lucide {
    width: 22px;
    height: 22px;
}

.ab-landing__tile b {
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.ab-landing__tile small {
    display: block;
    margin-top: 4px;
    color: var(--ab-muted);
    font-size: 12px;
}

/* ---------- Chips ----------------------------------------------------- */

.ab-landing__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ab-landing__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--ab-fg);
    background: var(--ab-surface-2);
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    transition: border-color .25s var(--ab-ease), color .25s var(--ab-ease);
}

.ab-landing__chip:hover {
    color: var(--ab-gold);
    border-color: var(--ab-line-strong);
}

/* ---------- Feature / benefit cards ----------------------------------- */

.ab-landing__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ab-landing__cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ab-landing__cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ab-landing__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    transition: border-color .3s var(--ab-ease), transform .3s var(--ab-ease);
}

.ab-landing__section--surface .ab-landing__card {
    background: var(--ab-ink);
}

.ab-landing__card:hover {
    transform: translateY(-4px);
    border-color: var(--ab-line-strong);
}

.ab-landing__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--ab-gold);
    background: var(--ab-gold-soft);
    border: 1px solid var(--ab-line-strong);
    border-radius: var(--ab-radius);
}

.ab-landing__card-icon .al-basha-lucide {
    width: 24px;
    height: 24px;
}

.ab-landing__card h3 {
    margin: 4px 0 0;
    font-size: 19px;
    font-weight: 900;
}

.ab-landing__card p {
    margin: 0;
    color: var(--ab-muted);
    font-size: 15px;
    line-height: 1.85;
}

.ab-landing__card ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ab-landing__card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ab-fg);
    font-size: 14px;
    line-height: 1.7;
}

.ab-landing__card li .al-basha-lucide {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: 0 0 auto;
    color: var(--ab-gold);
}

/* ---------- Steps ----------------------------------------------------- */

.ab-landing__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ab-landing-step;
}

.ab-landing__step {
    position: relative;
    padding: 30px 24px 26px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
}

.ab-landing__section--surface .ab-landing__step {
    background: var(--ab-ink);
}

.ab-landing__step-num {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 20px;
    color: rgba(200, 162, 93, .28);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.ab-landing__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ab-gold);
    background: var(--ab-gold-soft);
    border-radius: var(--ab-radius);
}

.ab-landing__step-icon .al-basha-lucide {
    width: 22px;
    height: 22px;
}

.ab-landing__step h3 {
    margin: 16px 0 0;
    font-size: 17px;
    font-weight: 900;
}

.ab-landing__step p {
    margin: 10px 0 0;
    color: var(--ab-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- Plans ----------------------------------------------------- */

.ab-landing__plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ab-landing__plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    transition: border-color .3s var(--ab-ease), transform .3s var(--ab-ease);
}

.ab-landing__section--surface .ab-landing__plan {
    background: var(--ab-ink);
}

.ab-landing__plan:hover {
    transform: translateY(-4px);
    border-color: var(--ab-line-strong);
}

.ab-landing__plan--featured {
    border-color: var(--ab-gold);
    box-shadow: 0 24px 60px -30px rgba(200, 162, 93, .5);
}

.ab-landing__plan-badge {
    position: absolute;
    inset-block-start: -11px;
    inset-inline-start: 24px;
    padding: 4px 12px;
    color: #131313;
    background: var(--ab-gold);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.ab-landing__plan h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.ab-landing__plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 14px;
    color: var(--ab-gold);
}

.ab-landing__plan-price b {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.ab-landing__plan-price span {
    color: var(--ab-muted);
    font-size: 14px;
    font-weight: 700;
}

.ab-landing__plan-meta {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ab-landing__plan-meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ab-fg);
    font-size: 14px;
    line-height: 1.7;
}

.ab-landing__plan-meta .al-basha-lucide {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex: 0 0 auto;
    color: var(--ab-gold);
}

.ab-landing__plan .al-basha-lovable-btn {
    margin-top: 24px;
    width: 100%;
}

.ab-landing__plans-note {
    margin: 22px 0 0;
    color: var(--ab-muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Split promo ---------------------------------------------- */

.ab-landing__split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ab-landing__split-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 30px;
    overflow: hidden;
    color: var(--ab-fg-strong);
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    text-decoration: none;
    isolation: isolate;
}

.ab-landing__split-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .42;
    transition: transform .6s var(--ab-ease), opacity .4s var(--ab-ease);
}

.ab-landing__split-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 15, 14, .35), rgba(15, 15, 14, .92));
}

.ab-landing__split-card:hover img {
    transform: scale(1.05);
    opacity: .55;
}

.ab-landing__split-card:hover {
    border-color: var(--ab-line-strong);
}

.ab-landing__split-card strong {
    font-size: 24px;
    font-weight: 900;
}

.ab-landing__split-card span {
    margin-top: 10px;
    color: var(--ab-muted);
    font-size: 15px;
}

.ab-landing__split-card em {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--ab-gold);
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
}

/* ---------- FAQ ------------------------------------------------------- */

.ab-landing__faq {
    display: grid;
    gap: 12px;
    max-width: 52rem;
    margin-inline: auto;
}

.ab-landing__faq details {
    padding: 18px 22px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
}

.ab-landing__section--surface .ab-landing__faq details {
    background: var(--ab-ink);
}

.ab-landing__faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    list-style: none;
}

.ab-landing__faq summary::-webkit-details-marker {
    display: none;
}

.ab-landing__faq summary::after {
    content: '+';
    color: var(--ab-gold);
    font-size: 22px;
    line-height: 1;
}

.ab-landing__faq details[open] summary::after {
    content: '−';
}

.ab-landing__faq p {
    margin: 14px 0 0;
    color: var(--ab-muted);
    font-size: 15px;
    line-height: 1.9;
}

/* ---------- Contact strip -------------------------------------------- */

.ab-landing__contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ab-landing__contact a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    color: var(--ab-fg);
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    text-decoration: none;
    transition: border-color .25s var(--ab-ease), transform .25s var(--ab-ease);
}

.ab-landing__section--surface .ab-landing__contact a {
    background: var(--ab-ink);
}

.ab-landing__contact a:hover {
    transform: translateY(-3px);
    border-color: var(--ab-line-strong);
}

.ab-landing__contact .al-basha-lucide {
    width: 24px;
    height: 24px;
    color: var(--ab-gold);
}

.ab-landing__contact strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.ab-landing__contact small {
    display: block;
    margin-top: 4px;
    color: var(--ab-muted);
    font-size: 13px;
}

/* ---------- Final conversion band ------------------------------------ */

.ab-landing__cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(64px, 8vw, 104px);
    background:
        radial-gradient(90% 140% at 50% 0%, rgba(200, 162, 93, .16), transparent 62%),
        var(--ab-ink);
    border-block: 1px solid var(--ab-line-strong);
    text-align: center;
}

.ab-landing__cta h2 {
    margin: 16px 0 0;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    line-height: 1.28;
}

.ab-landing__cta p {
    max-width: 44rem;
    margin: 18px auto 0;
    color: var(--ab-muted);
    font-size: 16px;
    line-height: 1.9;
}

.ab-landing__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 30px;
}

.ab-landing__cta-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ab-muted);
    font-size: 14px;
}

.ab-landing__cta-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ab-landing__cta-steps .al-basha-lucide {
    width: 17px;
    height: 17px;
    color: var(--ab-gold);
}

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 1199px) {
    .ab-landing__search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-landing__search-grid > button {
        grid-column: 1 / -1;
    }

    .ab-landing__tiles,
    .ab-landing__cards--4,
    .ab-landing__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ab-landing__cards,
    .ab-landing__contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-landing__split {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .ab-landing__hero {
        padding-block: clamp(120px, 26vw, 150px) 52px;
    }

    .ab-landing__search-grid,
    .ab-landing__tiles,
    .ab-landing__cards,
    .ab-landing__cards--2,
    .ab-landing__cards--4,
    .ab-landing__steps,
    .ab-landing__contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .ab-landing__hero-actions .al-basha-lovable-btn,
    .ab-landing__cta-actions .al-basha-lovable-btn {
        width: 100%;
    }
}

/* ---------- Packages page ------------------------------------------- */

.ab-landing__hero--compact {
    padding-block: clamp(130px, 14vw, 168px) clamp(48px, 6vw, 76px);
}

.ab-landing__hero-inner--center {
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
}

.ab-landing__hero-rule--center {
    margin-inline: auto;
    background: linear-gradient(90deg, transparent, var(--ab-gold), transparent);
}

.ab-landing__hero-inner--center .ab-landing__eyebrow {
    justify-content: center;
}

.ab-landing__hero-inner--center .ab-landing__hero-lead {
    margin-inline: auto;
}

.ab-landing__hero-stats--center {
    justify-content: center;
}

.ab-landing__plans--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 68rem;
    margin-inline: auto;
}

.ab-landing__plan-note {
    margin: 10px 0 0;
    color: var(--ab-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ab-landing__steps--flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Comparison table */

.ab-landing__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    background: var(--ab-ink);
}

.ab-landing__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
}

.ab-landing__table th,
.ab-landing__table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--ab-line);
}

.ab-landing__table thead th {
    color: var(--ab-fg-strong);
    font-weight: 900;
    background: rgba(200, 162, 93, .08);
}

.ab-landing__table tbody th {
    color: var(--ab-fg);
    font-weight: 700;
    text-align: start;
    white-space: nowrap;
}

.ab-landing__table td {
    color: var(--ab-muted);
}

.ab-landing__table td strong {
    color: var(--ab-gold);
    font-size: 17px;
    font-weight: 900;
}

.ab-landing__table .is-featured {
    background: rgba(200, 162, 93, .1);
    color: var(--ab-fg-strong);
}

.ab-landing__table thead th.is-featured {
    color: var(--ab-gold);
}

.ab-landing__table .al-basha-lucide {
    width: 20px;
    height: 20px;
    color: var(--ab-gold);
}

.ab-landing__table-dash {
    color: rgba(169, 165, 156, .6);
}

.ab-landing__table tbody tr:last-child th,
.ab-landing__table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 1199px) {
    .ab-landing__steps--flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ab-landing__plans--3 {
        grid-template-columns: minmax(0, 1fr);
        max-width: 34rem;
    }

    .ab-landing__steps--flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ab-landing__steps--flow {
        grid-template-columns: minmax(0, 1fr);
    }
}
