/* Wild Sights Safaris | Safari search suggestions + card actions | 30 Nov 2026
   Loaded after brand and hero CSS. Does not change the hero or other page layouts. */

/* Dynamic destination suggestions on the homepage search field. */
body.is-home .search-card-v2 .ws-destination-search {
    position: relative;
    overflow: visible !important;
}
body.is-home .search-card-v2 .ws-destination-input-group {
    position: relative;
    min-width: 0;
    flex: 1;
}
body.is-home .search-card-v2 .ws-destination-suggestions {
    position: absolute;
    left: -10px;
    top: calc(100% + 14px);
    width: max(100%, 240px);
    max-width: min(420px, calc(100vw - 42px));
    max-height: 270px;
    padding: 7px;
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #d9e3d3;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(21,43,21,.19);
    z-index: 70;
}
body.is-home .search-card-v2 .ws-destination-suggestions[hidden],
body.is-home .search-card-v2 .ws-destination-suggestion[hidden],
body.is-home .search-card-v2 .ws-destination-no-match[hidden] { display: none !important; }
body.is-home .search-card-v2 .ws-destination-suggestion {
    display: block;
    width: 100%;
    min-height: 41px;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #203b28;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
body.is-home .search-card-v2 .ws-destination-suggestion:hover,
body.is-home .search-card-v2 .ws-destination-suggestion.is-active,
body.is-home .search-card-v2 .ws-destination-suggestion[aria-selected="true"] {
    color: #1a341e;
    background: #eaf4e4;
}
body.is-home .search-card-v2 .ws-destination-empty,
body.is-home .search-card-v2 .ws-destination-no-match {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
    color: #57695c;
}
body.is-home .search-wrap,
body.is-home .search-wrap .search-card-v2 { overflow: visible !important; }

/* Compact WhatsApp on the left, full-width View Safari on the right. */
.tour-card .tour-card-actions:has(> .tour-whatsapp) {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 9px !important;
    width: 100%;
    margin-top: auto;
}
.tour-card .tour-card-actions > a.tour-whatsapp {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    min-height: 46px !important;
    padding: 8px !important;
    border-radius: 8px !important;
    background: #5CA11F !important;
    border: 1px solid #5CA11F !important;
    color: #fff !important;
}
.tour-card .tour-card-actions > a.tour-whatsapp img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.tour-card .tour-card-actions > a.tour-whatsapp .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.tour-card .tour-card-actions > a.tour-view {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    border-radius: 8px !important;
}
@media(max-width:650px) {
    body.is-home .search-card-v2 .ws-destination-suggestions {
        left: -12px;
        top: calc(100% + 16px);
        width: calc(100% + 24px);
        max-width: min(100%, calc(100vw - 36px));
    }
    .tour-card .tour-card-actions:has(> .tour-whatsapp) {
        grid-template-columns: 50px minmax(0,1fr) !important;
        gap: 9px !important;
    }
    .tour-card .tour-card-actions > a.tour-whatsapp { width: 50px !important; min-width: 50px !important; }
}
