/* ============================================
   PropYield — Desktop & wide-screen layer
   Loaded AFTER styles/main.css. Mobile-first base is untouched;
   everything here is additive and scoped to ≥768 / ≥1024 / ≥1280.
   ============================================ */

/* Desktop-only chrome is hidden on mobile by default */
.header-nav .nav-label {
    display: none;
}

.header-actions {
    display: none;
}

/* ============================================================
   TABLET  ≥ 768px
   ============================================================ */
@media (min-width: 768px) {

    /* Roomier content gutters */
    .features,
    .why-dubai,
    .pricing-section,
    .quick-start {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }

    /* Feature cards: lift + arrow direction already row at this bp */
    .feature-card {
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }

    .feature-card:hover {
        transform: translateY(-6px);
        border-color: var(--border-light);
        box-shadow: var(--shadow-lg);
    }
}

/* ============================================================
   DESKTOP  ≥ 1024px  — the real desktop experience
   ============================================================ */
@media (min-width: 1024px) {

    :root {
        --content-max: 1200px;
        --header-height-desktop: 70px;
    }

    /* ---------- Top navigation bar ---------- */
    .app-header {
        height: var(--header-height-desktop);
        padding: 0 32px;
        gap: 24px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 22px;
    }

    /* Nav: text labels, pill hover. With brand + actions, space-between centers it. */
    .header-nav {
        gap: 4px;
    }

    .header-nav .nav-link {
        width: auto;
        height: auto;
        padding: 9px 16px;
        gap: 9px;
        font-size: 15px;
        font-weight: 500;
    }

    .header-nav .nav-link i {
        font-size: 15px;
    }

    .header-nav .nav-label {
        display: inline;
    }

    /* ---------- Header account / auth actions (right) ---------- */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 14px;
    }

    .header-actions .ha-meta {
        color: var(--text-secondary);
    }

    .header-actions .ha-meta strong {
        color: var(--text-primary);
    }

    .header-actions a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition);
    }

    .header-actions a:hover {
        color: var(--text-primary);
    }

    .header-actions .ha-btn {
        padding: 9px 18px;
        border-radius: var(--radius-md);
        background: linear-gradient(135deg, var(--primary), var(--accent-purple));
        color: #fff;
        font-weight: 600;
    }

    .header-actions .ha-btn:hover {
        color: #fff;
        filter: brightness(1.08);
    }

    .header-actions .ha-admin {
        color: var(--primary-light);
        font-weight: 600;
    }

    /* On desktop the header carries account info — drop the mobile strip + bottom nav */
    .account-strip {
        display: none !important;
    }

    .bottom-nav {
        display: none;
    }

    .app-main {
        padding-top: var(--header-height-desktop);
        padding-bottom: 0;
    }

    /* ---------- Centered, widthy content sections ---------- */
    .hero {
        max-width: var(--content-max);
        margin: 0 auto;
        padding: 72px 32px;
        min-height: 560px;
        gap: 48px;
        border-radius: 0;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-title {
        font-size: 56px;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .hero-visual {
        width: 420px;
        height: 420px;
    }

    .features,
    .why-dubai,
    .pricing-section,
    .quick-start {
        max-width: var(--content-max);
        margin: 0 auto;
        padding: 72px 32px;
    }

    .section-title {
        font-size: 30px;
        justify-content: center;
    }

    .section-subtitle {
        text-align: center;
        font-size: 17px;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Tools grid: 3 across with generous gap + hover lift */
    .feature-cards {
        gap: 28px;
    }

    .feature-card {
        padding: 36px 28px;
    }

    .feature-card .card-icon {
        margin: 0 auto var(--space-md);
        width: 64px;
        height: 64px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
        max-width: var(--content-max);
        margin: 0 auto;
    }

    .benefit-item {
        padding: 28px 22px;
        transition: transform .25s ease, border-color .25s ease;
    }

    .benefit-item:hover {
        transform: translateY(-4px);
        border-color: var(--border-light);
    }

    /* ---------- Auth / request pages ---------- */
    .auth-container {
        min-height: calc(100vh - var(--header-height-desktop));
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px 24px;
    }

    .auth-card {
        padding: 44px 40px;
        box-shadow: var(--shadow-lg);
    }

    /* ---------- Tool containers ---------- */
    .calculator-container,
    .analyze-container,
    .search-container {
        max-width: 1040px;
        margin: 0 auto;
        padding-left: 32px;
        padding-right: 32px;
    }

    .page-header {
        max-width: var(--content-max);
        margin: 0 auto;
        background: transparent;
        border-bottom: none;
        padding: 28px 32px 8px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    /* Property results: 3 across */
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ---------- Footer ---------- */
    .app-footer .footer-content {
        max-width: var(--content-max);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding: 32px;
    }

    .app-footer .footer-links {
        display: flex;
        gap: 28px;
    }
}

/* ============================================================
   WIDE  ≥ 1280px
   ============================================================ */
@media (min-width: 1280px) {
    :root {
        --content-max: 1240px;
    }

    .hero-title {
        font-size: 60px;
    }
}
