/**
 * Console layout — sidebar + main content (internal app)
 */

.console-layout {
    display: flex;
    min-height: 100vh;
    background: var(--vio-bg-light, #fcf7f5);
}

.console-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--vio-bg, #fff);
    border-right: 1px solid var(--vio-border, #ddd7d5);
    display: flex;
    flex-direction: column;
    padding: 1rem 0 2rem;
    overflow-y: auto;
}

.console-sidebar-brand {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--vio-border, #ddd7d5);
    margin-bottom: 1rem;
}

.console-sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
}

.console-sidebar-brand a:hover {
    color: var(--vio-primary, #7130C9);
}

.console-sidebar-brand img {
    height: 24px;
}

.console-sidebar-nav {
    padding: 0 0.5rem;
}

.console-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--vio-text-muted, #615a56);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    transition: background 0.2s, color 0.2s;
}

.console-nav-item:hover {
    background: var(--vio-surface, #eee9e7);
    color: var(--vio-text, #180c06);
}

.console-nav-item.active {
    background: var(--violet-tint);
    color: var(--violet-ink);
    font-weight: 600;
}

.console-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.console-nav-icon .icon-svg {
    width: 20px;
    height: 20px;
}

.icon-svg {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.icon-svg-lg {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.5;
}

/* Dashboards section — expandable like My Hotels */
.console-sidebar-dashboards {
    margin-bottom: 0.5rem;
}

.console-sidebar-section {
    margin: 0;
}

.console-sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vio-text-muted, #615a56);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.console-sidebar-section-title::-webkit-details-marker {
    display: none;
}

.console-sidebar-section-title::before {
    content: "▶";
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.console-sidebar-section[open] .console-sidebar-section-title::before {
    transform: rotate(90deg);
}

.console-dashboard-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem 0.4rem 1.5rem;
    border-radius: 6px;
    color: var(--vio-text, #180c06);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    transition: background 0.2s;
}

.console-dashboard-item:hover {
    background: var(--vio-surface, #eee9e7);
}

.console-dashboard-item.active {
    background: var(--violet-tint);
    color: var(--violet-ink);
    font-weight: 600;
}

.console-sidebar-hotels {
    padding: 1rem 1.25rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--vio-border, #ddd7d5);
}

.console-sidebar-hotels-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vio-text-muted, #615a56);
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.console-sidebar-hotels-title:hover {
    color: var(--vio-primary, #7130C9);
}

.console-hotel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    color: var(--vio-text, #180c06);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    transition: background 0.2s;
    overflow: hidden;
}

.console-hotel-item:hover {
    background: var(--vio-surface, #eee9e7);
}

.console-hotel-item.active {
    background: var(--violet-tint);
    color: var(--violet-ink);
    font-weight: 600;
}

.console-hotel-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-add-hotel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    color: var(--vio-primary, #7130C9);
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    transition: background 0.2s;
}

.console-add-hotel:hover {
    background: var(--violet-tint);
}

.console-add-hotel-icon .icon-svg {
    width: 14px;
    height: 14px;
}

.console-sidebar-user {
    padding: 1.25rem 1.25rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--vio-border, #ddd7d5);
}

.console-user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.console-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.console-user-info {
    min-width: 0;
}

.console-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vio-text, #180c06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-user-email {
    font-size: 0.7rem;
    color: var(--vio-text-muted, #615a56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-sign-out {
    font-size: 0.8rem;
    color: var(--vio-text-muted, #615a56);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    transition: color 0.2s;
}

.console-sign-out:hover {
    color: var(--vio-error, #d91b38);
}

.console-main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}

/* ── Top navigation (standardized console shell) ─────────────────────── */
.console-topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
    padding: 0 28px;
    background: color-mix(in oklch, var(--paper), white 30%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.console-topnav-brand {
    flex: none;
    font-size: 1.2rem;
    text-decoration: none;
}

.console-topnav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
}

.topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.14s, color 0.14s;
}
.topnav-link:hover { background: var(--paper-2); color: var(--ink); }
.topnav-link.active { background: var(--violet-tint); color: var(--violet-ink); }
.topnav-link .icon-svg { width: 17px; height: 17px; }

.console-topnav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.topnav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink-2);
    display: grid;
    place-items: center;
    text-decoration: none;
}
.topnav-icon-btn:hover { background: var(--paper-2); }
.topnav-icon-btn .icon-svg { width: 19px; height: 19px; }

/* Hotel switcher */
.hsw { position: relative; }
.hsw-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 8px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    cursor: pointer;
}
.hsw-btn:hover { background: var(--paper-2); }
.hsw-thumb {
    width: 30px; height: 30px; border-radius: 8px; flex: none;
    background: repeating-linear-gradient(135deg, oklch(0.93 0.02 292), oklch(0.93 0.02 292) 6px, oklch(0.96 0.015 292) 6px, oklch(0.96 0.015 292) 12px);
    border: 1px solid var(--line);
}
.hsw-thumb.sm { width: 26px; height: 26px; border-radius: 7px; }
.hsw-meta { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; text-align: left; }
.hsw-eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.hsw-name { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.hsw-chev { color: var(--ink-3); display: inline-flex; transition: transform 0.18s; }
.hsw-chev.open { transform: rotate(180deg); }
.hsw-menu {
    position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-height: 440px; overflow: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3);
    padding: 8px; z-index: 60;
}
.hsw-menu-head { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); padding: 6px 8px 8px; }
.hsw-item { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 11px; text-decoration: none; color: inherit; }
.hsw-item:hover { background: var(--paper-2); }
.hsw-item.active { background: var(--violet-tint); }
.hsw-item-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsw-primary { font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--violet-ink); background: var(--violet-tint); padding: 2px 7px; border-radius: 6px; }
.hsw-add { display: flex; align-items: center; gap: 8px; padding: 9px 8px; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--violet-ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.hsw-add .icon-svg { width: 15px; height: 15px; }
.hsw-add:hover { background: var(--paper-2); }
.hsw-lookup { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.hsw-lookup-toggle { background: none; border: none; cursor: pointer; padding: 6px 8px; color: var(--violet-ink); font-weight: 700; font-size: 13px; }
.hsw-lookup-toggle:hover { text-decoration: underline; }
.hsw-lookup-body { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 8px; }

/* Account menu */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--ink-3); }
.acct-btn:hover { background: var(--paper-2); }
.acct-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-initials { display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.acct-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 8px; z-index: 60; }
.acct-id { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.acct-email { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.acct-item:hover { background: var(--paper-2); color: var(--ink); }
.acct-item .icon-svg { width: 16px; height: 16px; }
.acct-signout { color: color-mix(in oklch, var(--coral), black 10%); }

@media (max-width: 820px) {
    .console-topnav { gap: 12px; padding: 0 14px; }
    .console-topnav-links { order: 3; flex-basis: 100%; }
    .console-topnav { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
    .hsw-name { max-width: 110px; }
    .console-main { padding: 1rem; }
}

/* Mobile top bar + overlay are desktop-hidden by default. */
.console-topbar {
    display: none;
}

.console-sidebar-overlay {
    display: none;
}

/* ── Mobile: off-canvas sidebar drawer ───────────────────────────────── */
@media (max-width: 768px) {
    .console-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding: 0 1rem;
        background: var(--vio-bg, #fff);
        border-bottom: 1px solid var(--vio-border, #ddd7d5);
        z-index: 1001;
    }

    .console-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--vio-border, #ddd7d5);
        border-radius: 8px;
        background: transparent;
        color: var(--vio-text, #180c06);
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
    }

    .console-topbar-brand {
        font-weight: 600;
        font-size: 1rem;
        color: var(--vio-text, #180c06);
        text-decoration: none;
    }

    /* Sidebar slides in from the left, above content. */
    .console-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1003;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
    }

    .console-layout.sidebar-open .console-sidebar {
        transform: translateX(0);
    }

    .console-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1002;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .console-layout.sidebar-open .console-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* Content goes full-width, cleared below the fixed top bar. */
    .console-main {
        margin-left: 0;
        padding: 1rem;
        padding-top: calc(56px + 1rem);
    }
}

.console-main .container {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* ── Feedback ──────────────────────────────────────────────────────── */

.feedback-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    color: var(--vio-text-muted, #615a56);
    background: transparent;
    border: 1px solid var(--vio-border, #ddd7d5);
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.feedback-trigger-btn:hover {
    color: var(--vio-primary, #7130C9);
    border-color: var(--vio-primary, #7130C9);
    background: var(--violet-tint);
}

.feedback-trigger-btn .icon-svg {
    width: 14px;
    height: 14px;
}

.feedback-trigger-btn.compact {
    padding: 0.35rem;
    font-size: 0.7rem;
    min-width: 28px;
    min-height: 28px;
    justify-content: center;
}

.feedback-trigger-btn.compact span {
    display: none;
}

.feedback-trigger-float {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 1rem;
}

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.feedback-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.feedback-content {
    position: relative;
    z-index: 1;
    background: var(--vio-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    margin: 60px auto 2rem;
}

.feedback-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--vio-border, #ddd7d5);
    position: relative;
}

.feedback-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vio-text, #180c06);
    margin: 0;
}

.feedback-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--vio-text-muted, #615a56);
    cursor: pointer;
}

.feedback-close:hover {
    color: var(--vio-text, #180c06);
}

.feedback-body {
    padding: 24px;
}

.feedback-intro {
    font-size: 0.9rem;
    color: var(--vio-text-muted, #615a56);
    margin: 0 0 1.25rem;
}

.feedback-field {
    margin-bottom: 1.25rem;
}

.feedback-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--vio-text, #180c06);
    margin-bottom: 0.35rem;
}

.feedback-field textarea,
.feedback-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--vio-border, #ddd7d5);
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

.feedback-field textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-field textarea:focus,
.feedback-field input:focus {
    outline: none;
    border-color: var(--vio-primary, #7130C9);
}

.feedback-field input[readonly] {
    background: var(--vio-bg-light, #fcf7f5);
    color: var(--vio-text-muted, #615a56);
}

.feedback-char-count {
    display: block;
    font-size: 0.75rem;
    color: var(--vio-text-muted, #615a56);
    margin-top: 0.25rem;
}

.feedback-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.feedback-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.feedback-btn-cancel {
    background: transparent;
    border: 1px solid var(--vio-border, #ddd7d5);
    color: var(--vio-text-muted, #615a56);
}

.feedback-btn-cancel:hover {
    background: var(--vio-surface, #eee9e7);
    color: var(--vio-text, #180c06);
}

.feedback-btn-submit {
    background: var(--vio-primary, #7130C9);
    border: none;
    color: #fff;
}

.feedback-btn-submit:hover {
    background: var(--vio-primary-dark, #5700A9);
}

.feedback-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.feedback-message.success {
    background: rgba(46, 165, 74, 0.1);
    color: #0d441c;
}

.feedback-message.error {
    background: rgba(217, 27, 56, 0.1);
    color: #8b0f23;
}

/* ── Currency picker (nav) ─────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.currency-select-wrap { display: inline-flex; align-items: center; }
.currency-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface, #fff);
    border: 1px solid var(--line-2, #ddd6e2);
    border-radius: 8px;
    color: var(--ink-2, #565061);
    font-family: var(--font-ui, system-ui, sans-serif);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 26px 6px 10px;
    cursor: pointer;
    /* caret */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7689' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.15s, color 0.15s;
}
.currency-select:hover { border-color: var(--violet, #6c30cc); color: var(--ink, #2a2438); }
.currency-select:focus { outline: none; border-color: var(--violet, #6c30cc); box-shadow: 0 0 0 2px rgba(108, 48, 204, 0.12); }
