/* =========================================================
   SuperCobra - Hostel Booking Hero
   Compact light-gradient hero with local hostel visual.
========================================================= */

.sc-hostel-page {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
}

.sc-hostel-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 18%, rgba(233, 10, 54, .12), transparent 28%),
        radial-gradient(circle at 76% 5%, rgba(179, 202, 231, .22), transparent 30%),
        linear-gradient(120deg, #fff7f8 0%, #ffffff 49%, #f6f9fd 100%);
}

.sc-hostel-container {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 42px));
    margin: 0 auto;
}

.sc-hostel-content {
    width: min(720px, 65%);
    padding: 48px 0 50px;
}

.sc-hostel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(230, 0, 45, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: #e6002d;
    font-size: 12px;
    font-weight: 550;
    box-shadow: 0 7px 22px rgba(45, 57, 75, .045);
    backdrop-filter: blur(8px);
}

.sc-hostel-kicker svg {
    width: 18px;
    height: 18px;
}

.sc-hostel-content h1 {
        max-width: 700px;
    margin: 0;
    color: #182133;
    font-size: 30px;
    line-height: 1.04;
    font-weight: 600;
}

.sc-hostel-content h1 span {
    color: #e6002d;
}

.sc-hostel-content > p {
    max-width: 610px;
    margin: 13px 0 23px;
    color: #677182;
    font-size: 15px;
    line-height: 1.6;
}

.sc-hostel-search {
    width: min(700px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(35, 46, 61, .07);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 40px rgba(31, 49, 68, .10);
    backdrop-filter: blur(12px);
}

.sc-hostel-location-control {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    border: 1px solid #e1e6ed;
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sc-hostel-location-control:focus-within {
    border-color: rgba(230, 0, 45, .45);
    box-shadow: 0 0 0 4px rgba(230, 0, 45, .06);
}

.sc-hostel-location-control.is-invalid {
    border-color: rgba(230, 0, 45, .65);
}

.sc-hostel-location-icon {
    width: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #e6002d;
}

.sc-hostel-location-icon svg {
    width: 22px;
    height: 22px;
}

.sc-hostel-location-control input {
    width: 100%;
    height: 56px;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202a3a;
    font: inherit;
    font-size: 14px;
    font-weight: 550;
}

.sc-hostel-location-control input::placeholder {
    color: #9ba4b1;
    font-weight: 500;
}

.sc-hostel-search-btn {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #eb123d, #d9042d);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 11px 25px rgba(230, 0, 45, .20);
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.sc-hostel-search-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.035);
}

.sc-hostel-search-btn:disabled {
    opacity: .72;
    cursor: wait;
}

.sc-hostel-search-btn svg {
    width: 20px;
    height: 20px;
}

.sc-hostel-error {
    display: block;
    min-height: 17px;
    padding: 4px 0 0 12px;
    color: #d80d35;
    font-size: 11px;
    font-weight: 650;
}

.sc-hostel-status {
    min-height: 0;
    margin: 0;
    padding-left: 12px;
    color: #657181;
    font-size: 11px;
}

.sc-hostel-photo {
    position: absolute;
    z-index: 2;
    top: -18%;
    right: -2%;
    width: 46%;
    height: 126%;

    background-size: cover;
    background-position: center;
    opacity: .98;
    pointer-events: none;
}

.sc-hostel-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,248,249,.16));
}

.sc-hostel-decoration {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
}

.sc-hostel-decoration-one {
    width: 360px;
    height: 360px;
    left: -230px;
    bottom: -250px;
    background: rgba(230, 0, 45, .055);
    box-shadow: 0 0 0 85px rgba(230, 0, 45, .025);
}

.sc-hostel-decoration-two {
    width: 300px;
    height: 300px;
    right: 31%;
    top: -245px;
    border: 1px solid rgba(230, 0, 45, .05);
    box-shadow: 0 0 0 65px rgba(96, 136, 183, .025);
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
    .sc-hostel-hero {
        min-height: 410px;
    }

    .sc-hostel-content {
        width: 72%;
    }

    .sc-hostel-photo {
        width: 43%;
        right: -7%;
    }

    .sc-hostel-content h1 {
        font-size: 30px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
    .sc-hostel-hero {
        min-height: 365px;
        align-items: flex-end;
        background:
            linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,248,249,.78) 46%, #fff8f9 100%);
    }

    .sc-hostel-container {
        width: calc(100% - 22px);
    }

    .sc-hostel-photo {
        top: 0;
        right: 0;
        width: 100%;
        /* height: 60%; */
        background-image:
            linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,248,249,.76) 88%, #fff8f9 100%),
            linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.02)),
            url('../../images/services/hostel-hero-building-mobile.jpg');
        background-position: center 43%;
        opacity: .72;
    }

    .sc-hostel-content {
        width: 100%;
        padding: 126px 0 24px;
        text-align: center;
    }

    .sc-hostel-kicker {
        display: none;
    }

    .sc-hostel-content h1 {
        max-width: 360px;
        margin: 0 auto;
        font-size: 25px;
        line-height: 1.07;
        letter-spacing: -1.2px;
    }

    .sc-hostel-content > p {
        max-width: 345px;
        margin: 9px auto 16px;
        font-size: 12.5px;
        line-height: 1.45;
    }

    .sc-hostel-search {
        grid-template-columns: 1fr 92px;
        gap: 7px;
        padding: 7px;
        border-radius: 14px;
        text-align: left;
    }

    .sc-hostel-location-control,
    .sc-hostel-search-btn {
        min-height: 49px;
        border-radius: 10px;
    }

    .sc-hostel-location-control input {
        height: 47px;
        padding-right: 7px;
        font-size: 12px;
    }

    .sc-hostel-location-icon {
        width: 37px;
    }

    .sc-hostel-location-icon svg {
        width: 18px;
        height: 18px;
    }

    .sc-hostel-search-btn {
        padding: 0 10px;
        gap: 5px;
        font-size: 12px;
    }

    .sc-hostel-search-btn svg {
        width: 16px;
        height: 16px;
    }

    .sc-hostel-error,
    .sc-hostel-status {
        padding-left: 7px;
        text-align: left;
    }
}

@media (max-width: 370px) {
    .sc-hostel-search {
        grid-template-columns: 1fr 78px;
    }

    .sc-hostel-search-btn svg {
        display: none;
    }

    .sc-hostel-content h1 {
        font-size: 22px;
    }
}
