﻿:root {
    --neon-purple: #9d50bb;
    --neon-pink: #ff00cc;
    --neon-blue: #00d2ff;
}

.neon-text-gradient {
    background: linear-gradient(90deg, #b066fe, #ff299f, #b066fe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: move-gradient 4s linear infinite;
}

@keyframes move-gradient {
    to {
        background-position: 200% center;
    }
}

.party-gradient {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
}

/* Subscription Modal Specific Styles */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

@keyframes fade-in-up-modal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

.animate-fade-in-up-modal {
    animation: fade-in-up-modal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-blur-bg {
    backdrop-filter: blur(12px) brightness(40%);
    -webkit-backdrop-filter: blur(12px) brightness(40%);
}

#subscription-modal {
    transition: all 0.3s ease;
}

#subscription-modal.hidden {
    display: none;
    pointer-events: none;
}

#subscription-modal.flex {
    display: flex;
}

.home-intent-popup {
    position: absolute;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), visibility 520ms;
}

.home-intent-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-intent-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 242, 195, 0.16), transparent 28%),
        radial-gradient(circle at 70% 18%, rgba(245, 183, 67, 0.1), transparent 25%),
        rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-intent-card {
    position: relative;
    width: min(92vw, 520px);
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(0, 242, 195, 0.18);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
        linear-gradient(180deg, rgba(3, 17, 20, 0.9), rgba(2, 8, 12, 0.78));
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5), 0 0 34px rgba(0, 242, 195, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease;
}

.home-intent-popup.is-visible .home-intent-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.home-intent-popup.is-closing {
    opacity: 0;
    visibility: visible;
}

.home-intent-popup.is-closing .home-intent-card {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
}

.home-intent-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 4%, rgba(0, 242, 195, 0.18), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(245, 183, 67, 0.13), transparent 28%),
        linear-gradient(135deg, rgba(0, 242, 195, 0.08), transparent 44%);
    pointer-events: none;
}

.home-intent-content {
    position: relative;
    padding: 2rem;
}

.home-intent-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.home-intent-close:hover {
    transform: rotate(90deg) scale(1.08);
    color: #fff;
    background: rgba(0, 242, 195, 0.16);
    border-color: rgba(0, 242, 195, 0.35);
}

.home-intent-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #00f2c3;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-intent-title {
    max-width: 430px;
    margin: 0 0 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
    background: linear-gradient(90deg, #ffffff 0%, #d9fff6 48%, #f5b743 115%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-intent-copy {
    max-width: 410px;
    color: rgba(230, 255, 248, 0.72);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.35rem;
}

.home-intent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-intent-action {
    position: relative;
    min-height: 82px;
    border-radius: 20px;
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(5, 17, 20, 0.88), rgba(5, 17, 20, 0.88)) padding-box,
        linear-gradient(135deg, var(--intent-start, #00f2c3), var(--intent-end, #f5b743)) border-box;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem;
    text-align: left;
    font-weight: 900;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 28px rgba(0, 0, 0, 0.18);
    transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.home-intent-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--intent-start, #00f2c3) 28%, transparent), transparent 40%);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.home-intent-action i {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--intent-start, #00f2c3);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid color-mix(in srgb, var(--intent-start, #00f2c3) 45%, transparent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--intent-start, #00f2c3) 18%, transparent);
}

.home-intent-action span,
.home-intent-action small {
    position: relative;
    z-index: 1;
}

.home-intent-action span {
    background: linear-gradient(90deg, var(--intent-start, #00f2c3), var(--intent-end, #f5b743));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-intent-action small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
}

.home-intent-action:hover {
    transform: translateY(-3px);
    filter: saturate(1.12);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3), 0 0 28px color-mix(in srgb, var(--intent-start, #00f2c3) 18%, transparent);
}

.home-intent-action:hover::before {
    opacity: 1;
}

.home-intent-action[data-intent-choice="stay"] {
    --intent-start: #00f2c3;
    --intent-end: #63e86f;
}

.home-intent-action[data-intent-choice="party"] {
    --intent-start: #ff4fb8;
    --intent-end: #9d50bb;
}

.home-intent-action[data-intent-choice="both"] {
    --intent-start: #f5b743;
    --intent-end: #00d2ff;
}

@media (max-width: 640px) {
    .home-intent-popup {
        align-items: flex-end;
        padding: 1rem;
    }

    .home-intent-card {
        border-radius: 26px;
    }

    .home-intent-content {
        padding: 1.5rem;
    }

    .home-intent-actions {
        grid-template-columns: 1fr;
    }

    .home-intent-action {
        min-height: 68px;
    }
}

/* Mobile Menu Styles */
#mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design System */
@media (max-width: 768px) {
    #main-nav {
        display: block !important;
    }

    .hero-banner {
        height: 35vh !important;
        border-radius: 0 0 2rem 2rem;
        margin-top: 0;
    }

    .mobile-search-pill {
        display: flex !important;
        position: absolute;
        bottom: -28px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: white;
        padding: 12px 24px;
        border-radius: 40px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        border: 0.5px solid rgba(0, 0, 0, 0.08);
        z-index: 100;
        align-items: center;
        gap: 12px;
        cursor: pointer;
    }

    .mobile-search-pill i {
        color: #ff385c !important;
        font-size: 1.2rem;
    }

    #date-dropdown {
        width: 95vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    #view-calendar .flatpickr-calendar {
        width: 100% !important;
        max-width: 320px !important;
    }

    #main-nav .h-20 {
        height: 4rem !important;
    }
}


.mobile-search-pill {
    display: none;
}

/* Full Screen Search Overlay */
#full-screen-search {
    position: fixed;
    inset: 0;
    background: #f7f7f7;
    z-index: 200;
    display: none;
    /* Controlled by JS */
    flex-direction: column;
    overflow-y: auto;
}

.search-step-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-step-card {
    background: white;
    margin: 12px;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-step-card.active {
    box-shadow: 0 0 0 2px black;
}

.search-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    border-top: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
}

.animate-fade-in {
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-step-card {
    cursor: pointer;
    overflow: hidden;
    max-height: 80px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.search-step-card.active {
    max-height: 600px;
    padding-bottom: 30px;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Mobile Property Swipe Redesign */
.mobile-swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 10px 4px 20px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mobile-swipe-container::-webkit-scrollbar {
    display: none;
}

.mobile-card-two {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    min-width: 0;
}

.guest-favourite-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    color: #222;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.section-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}


/* Home intent popup: mobile responsive refinement */
@media (max-width: 640px) {
    .home-intent-popup {
        position: absolute;
        align-items: flex-end;
        justify-content: center;
        padding: clamp(0.75rem, 3.5vw, 1rem);
        padding-bottom: calc(clamp(0.75rem, 3.5vw, 1rem) + env(safe-area-inset-bottom));
    }

    .home-intent-card {
        width: min(100%, 420px);
        max-height: min(82vh, 620px);
        border-radius: 26px;
        display: flex;
        flex-direction: column;
    }

    .home-intent-content {
        width: 100%;
        max-height: inherit;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: clamp(1.15rem, 5vw, 1.5rem);
        padding-top: clamp(1.5rem, 7vw, 1.85rem);
        scrollbar-width: none;
    }

    .home-intent-content::-webkit-scrollbar {
        display: none;
    }

    .home-intent-close {
        top: 0.85rem;
        right: 0.85rem;
        width: 36px;
        height: 36px;
    }

    .home-intent-kicker {
        max-width: calc(100% - 48px);
        margin-bottom: 0.85rem;
        font-size: clamp(0.62rem, 2.8vw, 0.72rem);
        line-height: 1.25;
        letter-spacing: 0.14em;
    }

    .home-intent-title {
        max-width: 100%;
        margin-bottom: 0.65rem;
        font-size: clamp(1.8rem, 10vw, 2.45rem);
        line-height: 1;
    }

    .home-intent-copy {
        max-width: 100%;
        margin-bottom: 1rem;
        font-size: clamp(0.88rem, 3.6vw, 0.98rem);
        line-height: 1.55;
    }

    .home-intent-actions {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .home-intent-action {
        min-height: 68px;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 0.85rem 0.95rem;
        border-radius: 18px;
    }

    .home-intent-action i {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .home-intent-action span,
    .home-intent-action small {
        display: block;
        min-width: 0;
    }

    .home-intent-action span {
        font-size: 0.98rem;
        line-height: 1.1;
    }

    .home-intent-action small {
        font-size: 0.7rem;
        line-height: 1.25;
    }
}

@media (max-width: 380px) {
    .home-intent-card {
        max-height: min(86vh, 600px);
        border-radius: 22px;
    }

    .home-intent-content {
        padding: 1rem;
        padding-top: 1.35rem;
    }

    .home-intent-title {
        font-size: clamp(1.55rem, 9.5vw, 2rem);
    }

    .home-intent-copy {
        font-size: 0.84rem;
    }

    .home-intent-action {
        min-height: 62px;
        padding: 0.75rem 0.8rem;
    }
}

@media (max-width: 640px) and (max-height: 680px) {
    .home-intent-card {
        max-height: calc(100vh - 1.5rem - env(safe-area-inset-bottom));
    }

    .home-intent-kicker {
        margin-bottom: 0.55rem;
    }

    .home-intent-title {
        margin-bottom: 0.45rem;
    }

    .home-intent-copy {
        margin-bottom: 0.75rem;
        line-height: 1.42;
    }

    .home-intent-actions {
        gap: 0.5rem;
    }

    .home-intent-action {
        min-height: 58px;
        padding-top: 0.68rem;
        padding-bottom: 0.68rem;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .home-intent-popup {
        align-items: center;
    }

    .home-intent-card {
        width: min(92vw, 640px);
        max-height: calc(100vh - 1.25rem);
    }

    .home-intent-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-intent-action {
        min-height: 64px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}
