/* Africa.Luxury v1.7.264 — Stay search bar exact single-row reference repair. */

/* The old separate Plan with AI surface is now deliberately absent. */
body.al-hp-body .al-v263-ai-legacy-space,
body.al-hp-body .al-v250-ai-bar{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
  pointer-events:none!important;
}

@media(min-width:700px){
  /* Match the supplied reference: a wide, centered, one-piece search capsule. */
  body.al-hp-body .al-search-shell{
    position:relative!important;
    top:auto!important;
    width:min(1220px,calc(100% - 96px))!important;
    max-width:1220px!important;
    margin:28px auto 0!important;
    padding:0!important;
    z-index:55!important;
  }

  body.al-hp-body .al-search-v263{
    box-sizing:border-box!important;
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:0!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:78px!important;
    height:78px!important;
    margin:0!important;
    padding:8px 10px 8px 14px!important;
    border:1px solid #e3e8ed!important;
    border-radius:28px!important;
    background:#fff!important;
    box-shadow:0 10px 32px rgba(18,38,64,.08)!important;
    overflow:visible!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    grid-auto-flow:unset!important;
  }

  /* Kill any grid positioning inherited from older search releases. */
  body.al-hp-body .al-search-v263>*{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0;
  }

  body.al-hp-body .al-search-v263 .al-search-field{
    box-sizing:border-box!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    min-width:0!important;
    width:auto!important;
    min-height:60px!important;
    height:60px!important;
    margin:0!important;
    padding:0 22px!important;
    border:0!important;
    border-radius:18px!important;
    background:#fff!important;
    overflow:hidden!important;
    flex-shrink:1!important;
  }
  body.al-hp-body .al-search-v263 .al-search-field[data-field="place"]{flex:1.42 1 0!important}
  body.al-hp-body .al-search-v263 .al-search-field[data-field="dates"]{flex:1.18 1 0!important}
  body.al-hp-body .al-search-v263 .al-search-field[data-field="guests"]{flex:.72 1 0!important}

  body.al-hp-body .al-search-v263 .al-search-field:hover,
  body.al-hp-body .al-search-v263 .al-search-field.is-ds-active{background:#f8f9fb!important}

  body.al-hp-body .al-search-v263 .al-search-field+.al-search-field:before{
    content:''!important;
    position:absolute!important;
    left:0!important;
    top:14px!important;
    width:1px!important;
    height:32px!important;
    background:#e1e6eb!important;
  }
  body.al-hp-body .al-search-v263 .al-search-copy{min-width:0!important}
  body.al-hp-body .al-search-v263 .al-search-copy strong{
    display:block!important;
    color:var(--al-ink,#132444)!important;
    font:600 12px/1.25 var(--al-font-ui,'Poppins',sans-serif)!important;
    letter-spacing:-.01em;
    white-space:nowrap;
  }
  body.al-hp-body .al-search-v263 .al-search-copy small{
    display:block!important;
    max-width:100%!important;
    margin-top:4px!important;
    color:#77869a!important;
    font:400 13px/1.25 var(--al-font-body,'Lato',sans-serif)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.al-hp-body .al-search-v263 .al-search-field>.al-icon{
    flex:0 0 auto!important;
    width:23px!important;
    height:23px!important;
    color:#173255;
  }
  body.al-hp-body .al-search-v263 .al-search-field[data-field="place"]>.al-icon{
    box-sizing:content-box!important;
    width:20px!important;
    height:20px!important;
    padding:10px!important;
    border-radius:50%!important;
    background:#f6f5f1!important;
    color:var(--al-gold,#aa792e)!important;
  }
  body.al-hp-body .al-search-v263 .al-mobile-arrow{
    flex:0 0 auto!important;
    width:16px!important;
    height:16px!important;
    margin-left:auto!important;
  }

  /* Ask AI lives inside the same row, just before Search. */
  body.al-hp-body .al-search-v263 .al-search-ai{
    box-sizing:border-box!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    flex:0 0 122px!important;
    width:122px!important;
    min-width:122px!important;
    max-width:122px!important;
    height:52px!important;
    min-height:52px!important;
    margin:0 10px 0 11px!important;
    padding:0 15px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    border:1.4px solid #c08a35!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#a97427!important;
    box-shadow:none!important;
    cursor:pointer!important;
    white-space:nowrap!important;
    font:600 13px/1 var(--al-font-ui,'Poppins',sans-serif)!important;
  }
  body.al-hp-body .al-search-v263 .al-search-ai:before{
    content:''!important;
    position:absolute!important;
    left:-12px!important;
    top:10px!important;
    width:1px!important;
    height:32px!important;
    background:#e1e6eb!important;
  }
  body.al-hp-body .al-search-v263 .al-search-ai-spark{
    color:#bd8732!important;
    font:700 20px/1 var(--al-font-ui,'Poppins',sans-serif)!important;
  }
  body.al-hp-body .al-search-v263 .al-search-ai:hover{background:#fffaf2!important;color:#8f611e!important}

  /* Search is locked to the far right of the capsule; never a second row. */
  body.al-hp-body .al-search-v263 .al-search-submit{
    box-sizing:border-box!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    clear:none!important;
    flex:0 0 160px!important;
    width:160px!important;
    min-width:160px!important;
    max-width:160px!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    margin:0!important;
    padding:0 22px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    align-self:center!important;
    border:0!important;
    border-radius:999px!important;
    background:linear-gradient(180deg,#bb8530 0%,#aa772a 100%)!important;
    color:#fff!important;
    box-shadow:none!important;
    white-space:nowrap!important;
    font:600 14px/1 var(--al-font-ui,'Poppins',sans-serif)!important;
  }
  body.al-hp-body .al-search-v263 .al-search-submit .al-icon{width:20px!important;height:20px!important}
  body.al-hp-body .al-search-v263 .al-search-submit:hover{
    filter:saturate(1.04) brightness(.99);
    box-shadow:0 6px 16px rgba(170,119,42,.18)!important;
  }

  /* Keep the search dropdown stage aligned to the same wide search surface. */
  body.al-hp-body .al-ds-root{width:100%!important;max-width:none!important}
}

/* Compress gracefully while still staying one row on normal desktop/tablet. */
@media(min-width:700px) and (max-width:1180px){
  body.al-hp-body .al-search-shell{width:calc(100% - 40px)!important;max-width:none!important}
  body.al-hp-body .al-search-v263 .al-search-field{padding-inline:14px!important}
  body.al-hp-body .al-search-v263 .al-search-field[data-field="place"]{flex:1.25 1 0!important}
  body.al-hp-body .al-search-v263 .al-search-field[data-field="dates"]{flex:1.05 1 0!important}
  body.al-hp-body .al-search-v263 .al-search-field[data-field="guests"]{flex:.68 1 0!important}
  body.al-hp-body .al-search-v263 .al-search-ai{flex-basis:106px!important;width:106px!important;min-width:106px!important;max-width:106px!important;padding-inline:10px!important;font-size:12px!important}
  body.al-hp-body .al-search-v263 .al-search-submit{flex-basis:138px!important;width:138px!important;min-width:138px!important;max-width:138px!important;padding-inline:14px!important}
}

@media(max-width:699px){
  /* Preserve the established compact mobile search experience. */
  body.al-hp-body .al-search-v263 .al-search-ai{display:none!important}
  body.al-hp-body .al-v263-ai-legacy-space,
  body.al-hp-body .al-v250-ai-bar{display:none!important;height:0!important;margin:0!important}
}

@media(prefers-reduced-motion:reduce){
  body.al-hp-body .al-search-v263 .al-search-ai,
  body.al-hp-body .al-search-v263 .al-search-submit{transition:none!important}
}
