/* Holidays Yard — Tourist Auth Modal & Account
   Theme: --primary #13b6ec | CTA #ea580c | body #f6f8f9 */

:root {
    --hy-orange: #ea580c;
    --hy-orange-hover: #e7702f;
    --hy-cyan: #13b6ec;
    --hy-ink: rgb(15, 23, 42);
    --hy-muted: #64748b;
    --hy-line: #e2e8f0;
    --hy-soft: #f1f5f9;
}

/* Header account trigger */
.hy-account-trigger {
    position: relative;
}

.hy-account-trigger.is-logged .icon-btn {
    background: rgba(19, 182, 236, 0.12);
}

.hy-account-trigger.is-logged .icon-btn i {
    color: var(--hy-cyan);
}

.hy-account-trigger.is-logged .icon-btn.has-avatar,
a.hy-account-trigger.is-logged.has-avatar {
    background: transparent;
    overflow: hidden;
    padding: 0;
}

.hy-account-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hy-account-avatar--menu {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.hy-account-menu {
    --bs-dropdown-min-width: 220px;
    --bs-dropdown-border-radius: 14px;
    --bs-dropdown-padding-y: 0.5rem;
    border: 1px solid var(--hy-line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hy-account-menu .dropdown-item {
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hy-account-menu .dropdown-item i {
    color: var(--hy-cyan);
}

.hy-account-menu .dropdown-header {
    font-weight: 600;
    color: var(--hy-ink);
    white-space: normal;
}

/* ========== AUTH MODAL ========== */
.hy-auth-modal .hy-auth-dialog {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hy-auth-shell {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.hy-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.hy-auth-row {
    min-height: 0;
}

.hy-auth-aside {
    background: linear-gradient(155deg, #0ea5c9 0%, #13b6ec 40%, #ea580c 100%);
    color: #fff;
    padding: 2rem 1.75rem;
    align-items: flex-end;
    min-height: 520px;
}

.hy-auth-aside-inner {
    width: 100%;
}

.hy-auth-aside-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
}

.hy-auth-aside-kicker {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.65rem;
}

.hy-auth-aside-copy {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 1.25rem;
}

.hy-auth-perks li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hy-auth-perks i {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hy-auth-panel {
    background: #fff;
    width: 100%;
}

.hy-auth-mobile-brand {
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    padding-right: 3rem;
    background: linear-gradient(120deg, rgba(19, 182, 236, 0.12), rgba(234, 88, 12, 0.1));
    border-bottom: 1px solid var(--hy-line);
}

.hy-auth-mobile-brand img {
    height: 32px;
    width: auto;
    max-width: 50%;
    object-fit: contain;
}

.hy-auth-mobile-brand span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hy-muted);
}

.hy-auth-panel-inner {
    padding: 1.75rem 1.75rem 1.5rem;
}

.hy-auth-tabs {
    display: flex;
    width: 100%;
    max-width: 280px;
    background: var(--hy-soft);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 1.25rem;
    gap: 2px;
}

.hy-auth-tab {
    border: 0;
    background: transparent;
    color: var(--hy-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    flex: 1 1 0;
    transition: 0.2s ease;
}

.hy-auth-tab.is-active {
    background: #fff;
    color: var(--hy-ink);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.hy-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hy-ink);
    margin-bottom: 0.3rem;
    padding-right: 1.5rem;
}

.hy-auth-subtitle {
    color: var(--hy-muted);
    font-size: 0.92rem;
    margin-bottom: 1.15rem;
    line-height: 1.45;
}

.hy-auth-pane {
    display: none;
}

.hy-auth-pane.is-active {
    display: block;
}

.hy-auth-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hy-ink);
    margin-bottom: 0.3rem;
}

.hy-auth-form .form-control {
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    min-height: 46px;
    padding: 0.6rem 0.85rem;
    font-size: 16px;
    width: 100%;
}

.hy-input-wrap {
    position: relative;
    width: 100%;
}

.hy-input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.hy-input-wrap .form-control {
    padding-left: 2.4rem;
    padding-right: 2.6rem;
}

.hy-toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    z-index: 1;
}

.hy-auth-form .form-control:focus {
    border-color: var(--hy-cyan);
    box-shadow: 0 0 0 3px rgba(19, 182, 236, 0.18);
}

.hy-auth-form .form-control.is-invalid {
    border-color: #dc2626;
}

.hy-auth-form .invalid-feedback {
    font-size: 0.8rem;
    word-break: break-word;
}

.hy-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--hy-muted);
    cursor: pointer;
}

.hy-auth-submit {
    min-height: 48px;
    border-radius: 999px !important;
    font-weight: 650;
    font-size: 1rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hy-switch-hint,
.hy-legal {
    text-align: center;
    font-size: 0.85rem;
    color: var(--hy-muted);
    margin-top: 0.9rem;
    margin-bottom: 0;
    line-height: 1.45;
}

.hy-text-link {
    border: 0;
    background: none;
    color: var(--hy-orange);
    font-weight: 650;
    padding: 0;
}

.hy-text-link:hover {
    color: var(--hy-orange-hover);
    text-decoration: underline;
}

.hy-legal a {
    color: var(--hy-cyan);
    font-weight: 600;
}

#authFormAlert {
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Tablet and below */
@media (max-width: 991.98px) {
    .hy-auth-modal .hy-auth-dialog {
        max-width: 520px;
        margin: 0.75rem auto;
    }

    .hy-auth-aside {
        display: none !important;
        min-height: 0;
    }

    .hy-auth-panel-inner {
        padding: 1.25rem 1.25rem 1.35rem;
    }

    .hy-auth-tabs {
        max-width: 100%;
    }

    .hy-auth-title {
        font-size: 1.35rem;
    }
}

/* Phones — Bootstrap modal-fullscreen-sm-down handles shell; polish content */
@media (max-width: 575.98px) {
    .hy-auth-shell {
        border-radius: 0;
        box-shadow: none;
        min-height: 100%;
    }

    .hy-auth-close {
        top: max(10px, env(safe-area-inset-top, 0px));
        right: 10px;
    }

    .hy-auth-mobile-brand {
        padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
    }

    .hy-auth-panel-inner {
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .hy-auth-title {
        font-size: 1.25rem;
    }

    .hy-auth-subtitle {
        font-size: 0.88rem;
    }
}

@media (max-width: 359.98px) {
    .hy-auth-mobile-brand span {
        display: none;
    }

    .hy-auth-panel-inner {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

/* ========== ACCOUNT PAGE ========== */
.hy-account-page {
    background:
        radial-gradient(1200px 400px at 10% -10%, rgba(19, 182, 236, 0.14), transparent 60%),
        radial-gradient(900px 360px at 90% 0%, rgba(234, 88, 12, 0.1), transparent 55%),
        #f6f8f9;
}

.hy-account-hero {
    padding: 2.75rem 0 1.5rem;
}

.hy-account-eyebrow {
    display: inline-block;
    color: var(--hy-cyan);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hy-account-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--hy-ink);
    margin-bottom: 0.5rem;
}

.hy-account-lead {
    max-width: 48rem;
    color: var(--hy-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.hy-account-body {
    padding-top: 0.5rem;
    padding-bottom: 4rem;
}

.hy-account-nav {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hy-account-nav a {
    color: var(--hy-ink);
    text-decoration: none;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-weight: 550;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s;
}

.hy-account-nav a:hover,
.hy-account-nav a.is-active {
    background: rgba(19, 182, 236, 0.1);
    color: #0b8cb8;
}

.hy-badge {
    background: var(--hy-orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

.hy-account-block {
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    scroll-margin-top: 110px;
}

.hy-block-head {
    margin-bottom: 1.15rem;
}

.hy-block-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hy-ink);
    margin-bottom: 0.25rem;
}

.hy-block-head p {
    color: var(--hy-muted);
    margin: 0;
    font-size: 0.92rem;
}

.hy-booking-card {
    border: 1px solid var(--hy-line);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    margin-bottom: 0.85rem;
    background: #fff;
}

.hy-booking-status {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}

.hy-booking-status.upcoming {
    background: #dcfce7;
    color: #15803d;
}

.hy-booking-status.past {
    background: var(--hy-soft);
    color: var(--hy-muted);
}

.hy-booking-status.cart {
    background: #ffedd5;
    color: var(--hy-orange);
}

.hy-booking-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--hy-ink);
}

.hy-booking-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    color: var(--hy-muted);
    font-size: 0.9rem;
}

.hy-booking-meta i {
    color: var(--hy-cyan);
    margin-right: 0.25rem;
}

.hy-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 650;
    color: var(--hy-orange);
}

.hy-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.hy-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--hy-muted);
}

.hy-empty.compact {
    padding: 1rem;
}

.hy-empty i {
    font-size: 2rem;
    color: var(--hy-cyan);
    display: block;
    margin-bottom: 0.75rem;
}

.hy-avatar-alert {
    border-radius: 12px;
    font-size: 0.92rem;
}

.hy-profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--hy-line);
}

.hy-profile-avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(19, 182, 236, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(19, 182, 236, 0.25);
}

.hy-profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hy-profile-avatar-fallback {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hy-cyan);
    line-height: 1;
}

.hy-profile-avatar-copy {
    min-width: 0;
}

.hy-profile-avatar-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hy-ink);
}

.hy-profile-avatar-copy > p {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    color: var(--hy-muted);
}

.hy-avatar-form,
.hy-avatar-remove-form {
    display: inline-block;
    margin-right: 0.35rem;
}

.hy-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.hy-profile-grid dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hy-muted);
    margin-bottom: 0.2rem;
}

.hy-profile-grid dd {
    margin: 0;
    font-weight: 650;
    color: var(--hy-ink);
}

@media (max-width: 991.98px) {
    .hy-account-nav {
        position: static;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.55rem;
        margin-bottom: 0.25rem;
    }

    .hy-account-nav a {
        width: 100%;
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
    }

    .hy-account-nav form {
        margin-top: 0.55rem !important;
        width: 100%;
    }

    .hy-account-nav .btn {
        width: 100%;
        border-radius: 10px;
        padding: 0.7rem 0.9rem;
        font-weight: 600;
    }

    .hy-account-block {
        padding: 1.15rem;
    }

    .hy-profile-avatar-row {
        align-items: flex-start;
    }

    .hy-profile-grid {
        grid-template-columns: 1fr;
    }
}
