/**
 * ============================================================================
 * COMPACT SCREEN FITS (13" MacBook Air & Short Viewport Laptops)
 * ============================================================================
 * 
 * Target: Screens with desktop width (>= 992px) but compact viewport height (<= 840px).
 * Typical: 13" MacBook Air (1440x900 or 1280x800) with browser chrome (~660px-780px viewport).
 * 
 * IMPORTANT:
 * On FullHD monitors (1920x1080, height ~950px+), this media query DOES NOT MATCH.
 * All FullHD & large display layouts remain 100% UNTOUCHED and pixel-perfect.
 * ============================================================================
 */

@media (min-width: 992px) and (max-height: 840px) {

  /* ==========================================================================
     1. HERO SECTION (Habibi AI Concierge) - Fit Above the Fold
     ========================================================================== */

  .habibi-hero-section {
    padding: 20px 40px 16px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .habibi-hero-content {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* Top Bar */
  .habibi-hero-top-bar {
    margin-bottom: 10px !important;
  }

  .habibi-hero-logo-img {
    max-height: 38px !important;
  }

  .habibi-hero-actions-bar {
    gap: 10px !important;
  }

  .habibi-hero-icon-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .habibi-hero-icon-btn .header-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Main Top Row (Left Headline + Right Category Panel) */
  .habibi-top-row {
    gap: 20px !important;
    margin-bottom: 8px !important;
    align-items: flex-start !important;
  }

  /* Left Headline Block */
  .habibi-left-block {
    max-width: 420px !important;
  }

  .habibi-meet-label {
    font-size: 11.5px !important;
    letter-spacing: 0.22em !important;
  }

  .habibi-guest-label {
    font-size: 18px !important;
    margin-bottom: 4px !important;
  }

  span.w-g-name {
    font-size: 24px !important;
  }

  .habibi-name-title {
    font-size: clamp(48px, 4.6vw, 64px) !important;
    line-height: 0.95 !important;
    margin: 0 0 3px 0 !important;
  }

  .habibi-role-sub {
    font-size: 13px !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 10px !important;
  }

  .habibi-desc-text {
    font-size: 13px !important;
    line-height: 1.45 !important;
    max-width: 340px !important;
  }

  /* Right Category Glassmorphic Panel (Public & Guest) */
  .habibi-top-tag {
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 8px !important;
  }

  .habibi-glass-panel {
    width: 295px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
  }

  .habibi-category-list {
    gap: 3px !important;
  }

  .habibi-category-item {
    padding: 6.5px 10px !important;
    font-size: 12.5px !important;
    border-radius: 9px !important;
  }

  .habibi-category-item .cat-icon-wrap {
    gap: 10px !important;
  }

  .habibi-category-item i.cat-icon {
    font-size: 15px !important;
    width: 17px !important;
  }

  .habibi-category-item i.cat-arrow {
    font-size: 13px !important;
  }

  /* Guest Stay Panel (Authenticated) */
  .habibi-glass-panel.habibi-stay-panel {
    width: 330px !important;
    padding: 12px 12px !important;
  }

  .habibi-hub-tabs {
    margin-bottom: 6px !important;
    padding: 2px !important;
  }

  .habibi-hub-tab-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }

  .habibi-tab-body {
    min-height: auto !important;
  }

  .habibi-stay-card {
    padding: 0 !important;
    margin-bottom: 6px !important;
    border-radius: 12px !important;
  }

  .habibi-stay-card-top {
    margin-bottom: 0 !important;
  }

  .habibi-stay-prop-name {
    font-size: 17px !important;
  }

  .habibi-stay-actions-grid {
    gap: 6px !important;
  }

  .habibi-stay-action-card {
    padding: 7px 10px !important;
    border-radius: 10px !important;
  }

  .habibi-action-text strong {
    font-size: 10.5px !important;
  }

  .habibi-action-text span {
    font-size: 9px !important;
  }

  /* Bottom Zone: Search Bar & Prompt Pills (Keeps them completely visible above the fold) */
  .habibi-bottom-zone {
    margin-top: auto !important;
    padding-bottom: 4px !important;
  }

  .habibi-search-box {
    height: 48px !important;
    max-width: 620px !important;
    padding: 4px 6px 4px 18px !important;
    gap: 10px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42) !important;
  }

  .habibi-sparkle-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .habibi-search-box input#habibiHeroInput {
    font-size: 13.5px !important;
  }

  .habibi-search-box input#habibiHeroInput::placeholder {
    font-size: 13.5px !important;
  }

  .habibi-search-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .habibi-search-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  .habibi-examples-label {
    font-size: 9.5px !important;
    letter-spacing: 0.15em !important;
    margin-top: 8px !important;
    margin-bottom: 6px !important;
  }

  .habibi-prompt-pills-row {
    gap: 8px !important;
    max-width: 860px !important;
  }

  .habibi-prompt-pill {
    padding: 5.5px 14px !important;
    font-size: 11.5px !important;
  }

  /* Floating AI Trigger Widget (Bottom-Right) */
  .habibi-floating-trigger {
    bottom: 16px !important;
    right: 16px !important;
    padding: 6px 14px 6px 8px !important;
    font-size: 12.5px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  }

  .habibi-floating-avatar {
    width: 34px !important;
    height: 34px !important;
  }


  /* ==========================================================================
     2. SERVICES SHOWCASE SECTION (.cat-thematic-*) - Prevent Bottom Clipping
     ========================================================================== */

  .cat-thematic-sticky-wrap {
    padding: 16px 0 !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .cat-thematic-header {
    margin-bottom: 12px !important;
  }

  .cat-thematic-header-top {
    margin-bottom: 6px !important;
  }

  .cat-thematic-label {
    font-size: 10px !important;
    letter-spacing: 1.6px !important;
  }

  .cat-thematic-progress {
    width: 120px !important;
    height: 2.5px !important;
  }

  .cat-thematic-title {
    font-size: clamp(26px, 3.2vw, 36px) !important;
    line-height: 1.05 !important;
    margin: 0 0 4px 0 !important;
  }

  .cat-thematic-lead {
    font-size: 12.5px !important;
  }

  .cat-thematic-track {
    padding: 6px max(15px, calc((100vw - 1320px) / 2)) 10px !important;
    gap: 20px !important;
  }

  .cat-thematic-slide-inner {
    padding: 16px !important;
    border-radius: 20px !important;
    gap: 16px !important;
    min-height: 440px !important;
    height: clamp(420px, 57vh, 480px) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6) !important;
  }

  .cat-thematic-hero {
    min-height: auto !important;
    height: 100% !important;
    padding: 20px 22px !important;
    border-radius: 16px !important;
  }

  .cat-thematic-hero-badge {
    font-size: 9.5px !important;
    padding: 4px 10px !important;
    margin-bottom: 8px !important;
  }

  .cat-thematic-hero-title {
    font-size: clamp(20px, 2.3vw, 28px) !important;
    margin-bottom: 4px !important;
  }

  .cat-thematic-hero-subtitle {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    max-width: 420px !important;
  }

  .cat-thematic-hero-count {
    font-size: 9.5px !important;
    letter-spacing: 1.5px !important;
  }

  .cat-thematic-cards-stack {
    gap: 12px !important;
    height: 100% !important;
  }

  .cat-thematic-card {
    min-height: 135px !important;
    height: calc(50% - 6px) !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
  }

  h4.cat-thematic-card-title {
    font-size: 20px !important;
    width: calc(100% - 40px) !important;
  }


  /* ==========================================================================
     3. HOW IT WORKS SECTION (.section-how-it-works) - Visible Step Numbers
     ========================================================================== */

  .section-how-it-works.section-bg-light {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .section-how-it-works .cat-thematic-header {
    margin-bottom: 16px !important;
  }

  .section-how-it-works .cat-thematic-title {
    font-size: clamp(26px, 3.2vw, 36px) !important;
    line-height: 1.05 !important;
    margin-bottom: 4px !important;
  }

  .section-how-it-works .cat-thematic-lead {
    font-size: 12.5px !important;
  }

  .section-how-it-works.section-bg-light .service-item.background-main {
    padding: 22px 18px 16px 18px !important;
    border-radius: 16px !important;
  }

  .section-how-it-works.section-bg-light .service-item .title-block,
  .section-how-it-works.section-bg-light .service-item .title-block span {
    font-size: 19px !important;
    letter-spacing: 1px !important;
  }

  .section-how-it-works.section-bg-light .service-item p {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-top: 8px !important;
  }

  .section-how-it-works.section-bg-light .service-item .number {
    margin-top: 14px !important;
  }

  .section-how-it-works.section-bg-light .service-item .big-text,
  .section-how-it-works.section-bg-light .service-item .big-text span {
    font-size: clamp(46px, 5.2vw, 66px) !important;
    line-height: 1 !important;
  }
}
