/* DarFindr home styles: hero and search. */

.home-page {
    max-width: none;
    padding: 0;
    overflow: hidden;
    background: var(--color-white);
}

.df-rtl .home-page {
    direction: ltr;
}

.df-rtl .home-page :where(.hero-content, .home-search, .listing-header, .listing-card, .home-place-card, .activity-card) {
    direction: rtl;
}

.df-rtl .home-page {
    overflow-x: clip;
}

.home-hero {
    position: relative;
    min-height: clamp(560px, 78vh, 760px);
    margin-top: 20px;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s ease, transform 5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.home-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(45, 28, 15, .42), rgba(45, 28, 15, .1) 42%, rgba(45, 28, 15, .72)),
        linear-gradient(90deg, rgba(45, 28, 15, .58), rgba(45, 28, 15, .12) 58%);
}

.hero-content {
    position: absolute;
    right: max(var(--space-lg), calc((100vw - var(--container)) / 2 + var(--space-lg)));
    bottom: 124px;
    left: max(var(--space-lg), calc((100vw - var(--container)) / 2 + var(--space-lg)));
    z-index: 10;
    display: grid;
    max-width: 760px;
    gap: 10px;
    color: var(--color-white);
}

.hero-content h1,
.hero-content p {
    width: 100%;
    margin: 0;
    color: var(--color-white);
    line-height: 1.05;
    text-shadow: 0 10px 32px rgba(45, 28, 15, .38);
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 76px);
    letter-spacing: 0;
}

.hero-content p {
    max-width: 560px;
    font-size: 19px;
    line-height: 1.45;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 12;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 243, 233, .72);
    border-radius: 50%;
    background: rgba(255, 243, 233, .18);
    color: var(--color-white);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease;
}

.hero-arrow:hover {
    border-color: var(--color-white);
    background: rgba(255, 243, 233, .28);
}

.hero-prev {
    left: var(--space-lg);
}

.hero-next {
    right: var(--space-lg);
}

.hero-dots {
    position: absolute;
    right: max(var(--space-lg), calc((100vw - var(--container)) / 2 + var(--space-lg)));
    bottom: 92px;
    z-index: 12;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 243, 233, .48);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--color-white);
}

.home-search {
    position: relative;
    z-index: 20;
    display: grid;
    width: min(calc(var(--container) + (var(--space-lg) * 2)), calc(100vw - 32px));
    max-width: none;
    grid-template-columns: minmax(250px, 1.45fr) minmax(145px, .85fr) minmax(145px, .85fr) minmax(145px, .85fr) minmax(150px, 180px);
    gap: 0;
    align-items: stretch;
    margin: -34px auto 54px;
    padding: 8px;
    border: 1px solid rgba(45, 28, 15, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 30px rgba(45, 28, 15, .12);
}

.home-search,
.home-search * {
    box-sizing: border-box;
}

.search-field {
    position: relative;
    display: grid;
    min-height: 52px;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 7px clamp(12px, 1.35vw, 20px);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: background .18s ease;
}

.search-field:not(.home-destination-field)::before,
.home-guests-field::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 1px;
    background: rgba(45, 28, 15, .12);
    content: "";
}

.search-field:hover,
.search-field:focus-visible {
    background: rgba(245, 247, 244, .9);
    outline: none;
}

.search-field svg {
    width: 19px;
    height: 19px;
    color: rgba(45, 45, 45, .88);
    stroke-width: 2;
}

.search-field span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.search-field strong {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.05;
}

.search-field em,
.home-destination-field input {
    overflow: hidden;
    color: rgba(45, 45, 45, .55);
    font: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-destination-field input {
    min-width: 0;
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    box-shadow: none;
    outline: 0;
}

.home-destination-field input::-webkit-search-decoration,
.home-destination-field input::-webkit-search-cancel-button,
.home-destination-field input::-webkit-search-results-button,
.home-destination-field input::-webkit-search-results-decoration {
    display: none;
}

.home-destination-field input::placeholder {
    color: rgba(45, 45, 45, .55);
    opacity: 1;
}

.home-search-submit {
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--color-primary-dark);
    color: var(--color-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}

.home-search-submit:hover,
.home-search-submit:focus-visible {
    background: var(--color-primary);
    outline: none;
    transform: translateY(-1px);
}

.df-rtl .home-search {
    direction: rtl;
}

.df-rtl .home-search .search-field {
    grid-template-columns: minmax(0, 1fr) 22px;
    text-align: right;
}

.df-rtl .home-search .search-field svg,
.df-rtl .home-search .search-field i {
    grid-column: 2;
}

.df-rtl .home-search .search-field span {
    grid-column: 1;
}

.df-rtl .home-search .search-field:not(.home-destination-field)::before,
.df-rtl .home-search .home-guests-field::before {
    right: 0;
    left: auto;
}

.df-rtl .home-search .home-destination-field input {
    text-align: right;
}

.home-guests-field {
    position: relative;
}

.home-guests-field > .search-field {
    width: 100%;
}

.home-guests-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 40;
    display: none;
    width: 360px;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 18px 50px rgba(45, 28, 15, .14);
}

.home-guests-dropdown.is-open {
    display: block;
}

.home-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.home-guest-row:last-child {
    border-bottom: 0;
}

.home-guest-row strong {
    display: block;
    font-size: 15px;
}

.home-guest-row span {
    display: block;
    margin-top: 2px;
    color: var(--color-muted);
    font-size: 13px;
}

.home-guest-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

