:root {
    --bg: #eef6ff;
    --surface: #ffffff;
    --surface-alt: #f6fbff;
    --line: #d4e5f8;
    --text: #1b3655;
    --muted: #6a86a5;
    --primary: #4ea3ff;
    --primary-dark: #2776ca;
    --danger: #d95165;
    --success: #2c9c7d;
    --shadow: 0 20px 45px rgba(66, 121, 181, 0.12);
    --radius: 5px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(78, 163, 255, 0.25), transparent 28%), linear-gradient(180deg, #f5fbff 0%, #eaf3fb 100%);
    color: var(--text);
}
body.client-shell,
body.client-shell * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
body.client-shell img,
body.client-shell a {
    -webkit-user-drag: none;
    user-drag: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { padding: 24px; border-right: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); display: flex; flex-direction: column; justify-content: space-between; }
.brand-card, .table-card, .form-card, .welcome-card, .content-page, .category-card, .category-editor, .richtext-card, .client-topbar { background: var(--surface); border: 1px solid rgba(212,229,248,.9); box-shadow: var(--shadow); border-radius: var(--radius); }
.brand-card { padding: 20px; margin-bottom: 24px; }
.admin-brand-logo { width: 100%; height: auto; object-fit: contain; }
.sidebar-brand-logo { max-width: 190px; margin: 0 auto 14px; }
.auth-brand-logo { max-width: 260px; margin: 0 auto; }
.auth-brand-card { display: flex; justify-content: center; }
.nav-links { display: grid; gap: 10px; }
.nav-links a { padding: 12px 14px; border-radius: 4px; color: var(--muted); }
.nav-links a.active, .nav-links a:hover { background: var(--surface-alt); color: var(--primary-dark); }
.sidebar-footer { padding-top: 16px; color: rgba(27, 54, 85, 0.52); font-size: 0.82rem; }
.sidebar-footer p { margin: 10px 0 0; }
.sidebar-credit { color: rgba(27, 54, 85, 0.48); }
.sidebar-credit:hover { color: rgba(27, 54, 85, 0.72); }
.sidebar-divider { height: 1px; background: rgba(212, 229, 248, 0.95); }
.content { padding: 28px; }
.page-header, .client-topbar, .language-head, .category-editor-head, .form-actions, .page-title-block { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-header { margin-bottom: 24px; }
.eyebrow, .subtle { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #b8d5ef; border-radius: 4px; padding: 12px 18px; cursor: pointer; font-weight: 600; }
.button.primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.button.secondary { background: var(--surface-alt); color: var(--primary-dark); }
.button.danger { background: #ffe8ec; color: var(--danger); }
.button.small { padding: 8px 12px; font-size: .9rem; }
.button.large { padding: 14px 28px; }
.table-card, .form-card { padding: 22px; }
.filter-card { margin-bottom: 18px; display: grid; gap: 16px; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr { transition: background-color .18s ease; }
.data-table tbody tr:hover { background: rgba(78, 163, 255, 0.08); }
.external-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.external-link svg { flex: 0 0 auto; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.property-actions { flex-wrap: nowrap; align-items: center; white-space: nowrap; }
.property-actions form { display: inline-flex; margin: 0; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; padding: 5px 10px; border-radius: 4px; font-size: 0.84rem; font-weight: 700; }
.status-pill.active { background: #e5f7f1; color: #1c7f63; }
.status-pill.inactive { background: #eef1f5; color: #778393; }
.ownerrez-status-cell { display: flex; align-items: center; min-height: 26px; }
.ownerrez-id-occupied { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid rgba(44, 156, 125, .36); border-radius: 4px; background: #e5f7f1; color: #1c7f63; font-weight: 700; cursor: help; }
.occupancy-check { justify-content: center; min-width: 28px; }
.thumb, .preview { width: 88px; height: 88px; object-fit: cover; border-radius: 5px; }
.field-grid { display: grid; gap: 18px; margin-bottom: 20px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 8px; }
input[type="text"], input[type="password"], input[type="number"], input[type="file"], input[type="date"], input[type="datetime-local"], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 12px 14px; color: var(--text); }
textarea { resize: vertical; }
.property-settings-section { min-width: 0; margin: 0 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.property-settings-section legend { padding: 0 8px; color: var(--primary-dark); font-size: 1.05rem; font-weight: 700; }
.property-settings-section .field-grid { margin-bottom: 0; }
.slideshow-source-section > p { margin: 0 0 16px; }
.slideshow-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slideshow-source-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-alt); cursor: pointer; }
.slideshow-source-option input { margin: 0; }
.slideshow-source-option span { display: grid; gap: 3px; min-width: 0; }
.slideshow-source-option strong { overflow-wrap: anywhere; }
.slideshow-source-option small { color: var(--muted); }
.slideshow-source-option:has(input:checked) { border-color: #6ba8d6; background: #e5f3ff; }
.reservation-override-panel { padding: 18px; margin-bottom: 20px; border: 1px solid #b8d5ef; border-radius: 5px; background: #edf7ff; }
.reservation-override-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.reservation-override-head h2, .reservation-override-head p { margin: 0; }
.reservation-override-head p { margin-top: 5px; }
.reservation-link-badge { flex: 0 0 auto; padding: 6px 10px; border-radius: 4px; background: #d8ebfb; color: #1f659f; font-size: .84rem; font-weight: 700; }
.reservation-link-badge.manual { background: #e5f7f1; color: #1c7f63; }
.reservation-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.reservation-context-card { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid #cfe2f3; border-radius: 5px; background: #fff; }
.reservation-context-card small { color: var(--muted); }
.reservation-sync-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin: -4px 0 8px; }
.reservation-sync-clear-option { display: flex; grid-template-columns: none; align-items: center; gap: 8px; cursor: pointer; }
.reservation-sync-clear-option input { margin: 0; }
.reservation-sync-help { margin: 0 0 18px; text-align: right; }
.reservation-override-divider { height: 1px; margin: 0 0 18px; border: 0; background: #c5dced; }
.reservation-override-fields { margin-bottom: 0; }
.reservation-override-log { margin-top: 18px; border-top: 1px solid #c5dced; padding-top: 14px; }
.reservation-override-log summary { cursor: pointer; font-weight: 700; }
.reservation-override-log .table-scroll { overflow-x: auto; margin-top: 12px; }
.reservation-override-log table { width: 100%; border-collapse: collapse; background: #fff; }
.reservation-override-log th, .reservation-override-log td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: .86rem; vertical-align: top; }
.property-delete-zone { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 20px 22px; border: 1px solid #edbdc5; border-radius: 5px; background: #fff7f8; }
.property-delete-zone h2, .property-delete-zone p { margin: 0; }
.property-delete-zone h2 { color: #9a3548; }
.property-delete-zone p { margin-top: 6px; color: #76535a; }
.property-delete-zone form { flex: 0 0 auto; }
.language-panel, .alert, .tabs, .category-selector, .gallery-grid { margin-bottom: 20px; }
.category-shortcode-help { display: grid; gap: 6px; margin: -8px 0 20px; }
.category-shortcode-help p { margin: 0; }
.category-editor-head h2 { margin-top: 0; }
.room-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 0; }
.language-panel { padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-alt); }
.language-badge, .lang-pill, .guest-pill, .chip span { border-radius: 4px; background: #e1f0ff; color: var(--primary-dark); padding: 6px 12px; }
.alert { padding: 14px 16px; border-radius: 5px; }
.alert.error { background: #ffe8ec; color: #9a3548; }
.alert.success { background: #e5f7f1; color: #1c7f63; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab { padding: 10px 16px; border: 0; border-radius: 4px; background: rgba(255,255,255,.7); color: var(--muted); cursor: pointer; }
.tab.active { border: 1px solid #b8d5ef; background: #dff0ff; color: var(--primary-dark); }
.tab-panel { display: none; }
.tab-panel.show { display: block; }
.chip { display: inline-flex; margin: 0 10px 10px 0; }
.chip input { display: none; }
.chip input:checked + span { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.category-editor, .richtext-card { padding: 18px; margin-bottom: 18px; }
.richtext-card.inner { padding: 14px; margin-bottom: 0; }
.editor-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.editor-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.rich-editor { min-height: 180px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.rich-editor-input { display: none; }
.gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.photo-gallery-upload-card { margin-bottom: 20px; }
.admin-photo-gallery-grid { align-items: start; }
.gallery-manage-item { padding: 14px; background: var(--surface); border: 1px solid rgba(212,229,248,.9); box-shadow: var(--shadow); border-radius: var(--radius); }
.gallery-manage-item img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; }
.property-gallery-upload { margin-bottom: 20px; }
.property-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.property-gallery-title-form { display: grid; gap: 12px; }
.property-gallery-delete-form { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.category-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.category-grid-client { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.gallery-item { display: grid; gap: 12px; }
.gallery-item img, .detail-banner { width: 100%; border-radius: 5px; object-fit: cover; }
.client-app { min-height: 100vh; padding: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; }
.welcome-screen { grid-template-rows: 1fr; gap: 0; position: relative; }
.client-topbar { margin-bottom: 0; padding: 10px; }
.client-logo {  height: 60px; object-fit: cover; border-radius: 5px; }
.welcome-card { overflow: hidden; border-radius: 0; }
.welcome-slideshow { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; }
.welcome-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 2.2s ease-in-out; }
.welcome-slide::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(13, 33, 56, 0.22); pointer-events: none; }
.welcome-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.welcome-slide.active { opacity: 1; }
.welcome-hero {
    min-height: 100vh;
    background-color: #dfeaf6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border: 0;
    position: relative;
    border-radius: 0;
}
.welcome-hero-topbar {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}
.welcome-hero-topbar .language-switcher {
    margin-bottom: 0;
}
.welcome-hero-topbar .lang-pill {
    background: rgba(255, 255, 255, 0.82);
}
.language-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}
.language-switcher-label {
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    padding-right: 4px;
    border-right: 1px solid rgba(39, 118, 202, 0.18);
}
.language-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 86px;
    min-height: 36px;
    border: 1px solid rgba(212, 229, 248, 0.95);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 800;
    padding: 7px 10px;
    box-shadow: 0 10px 24px rgba(24, 58, 94, 0.12);
    font-size: 0.9rem;
}
.language-dropdown-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    object-fit: contain;
}
.language-dropdown-dark .language-dropdown-toggle {
    min-width: 148px;
    min-height: 44px;
    justify-content: center;
    padding: 8px 14px;
    border-color: rgba(255, 255, 255, 0.34);
    background: transparent;
    color: #fff;
    box-shadow: none;
    text-transform: uppercase;
}

.category-detail-language .language-dropdown-dark .language-dropdown-toggle {
    color: #071d36;
    border-color: rgba(7, 29, 54, 0.22);
}

.category-detail-language .language-dropdown-dark .language-dropdown-icon {
    filter: none;
}
.language-dropdown-dark .language-dropdown-icon {
    filter: brightness(0) invert(1);
}
.language-dropdown-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform .16s ease;
}
.language-dropdown.open .language-dropdown-caret {
    transform: rotate(180deg);
}
.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    display: none;
    padding: 6px;
    border: 1px solid rgba(212, 229, 248, 0.95);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 45px rgba(66, 121, 181, 0.18);
}
.language-dropdown.open .language-dropdown-menu {
    display: grid;
}
.language-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--text);
}
.language-dropdown-item small {
    color: var(--muted);
    font-size: 0.78rem;
}
.language-dropdown-item.active,
.language-dropdown-item:hover {
    background: #e1f0ff;
    color: var(--primary-dark);
}
.language-dropdown-item.active small,
.language-dropdown-item:hover small {
    color: var(--primary-dark);
}
.welcome-content-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px 28px 72px;
}
.welcome-content-panel {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 5px;
    padding: 18px;
    width: min(100%, 760px);
}
.welcome-content { padding: 6px 6px 0; display: grid; gap: 16px; justify-items: center; text-align: center; background: transparent; border-radius: 5px; }
.welcome-brand-logo { width: 300px; height: auto; max-width: 100%; object-fit: contain; border-radius: 5px; }
.welcome-brand-corner {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 300px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.76);
}
.welcome-content h1 { margin: 0; text-align: center; font-size: clamp(2rem, 4vw, 3rem); }
.welcome-greeting-card,
.welcome-content .guest-pill {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 5px;
    padding: 12px 20px;
}
.welcome-greeting-card { display: grid; justify-items: center; width:100%;}
.welcome-greeting-card h1 {
    margin: 0;
    padding: 0;
    background: transparent;
}
.welcome-weather-card {
    width: 100%;
    display: grid;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.72);
    color: #173657;
}
.welcome-weather-card h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.welcome-weather-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.welcome-weather-day {
    display: grid;
    gap: 5px;
    justify-items: center;
    padding: 10px 12px;
    border-radius: 5px;
    background: rgba(225, 240, 255, 0.7);
}
.weather-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.welcome-weather-label,
.welcome-weather-condition,
.welcome-weather-note {
    font-size: .88rem;
    color: #376181;
}
.welcome-weather-temp {
    font-size: 1.55rem;
    line-height: 1.1;
}
.welcome-weather-note {
    margin: 0;
}
.welcome-content .eyebrow { color: #173657; font-weight: 600; }
.guest-pill { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 1.15rem; padding: 10px 18px; width:100%;}
.stay-interval { margin: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 0; background: transparent; border: 0; color: #173657; font-size: 1.25rem; font-weight: 700; }
.content-page { padding: 24px; }
.detail-title-block { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-title-block h1 { margin: 0; text-align: left; }
.category-card { padding: 16px; display: grid; gap: 14px; transition: transform .2s ease; min-height: 100%; }
.category-card-overlay { position: relative; overflow: hidden; min-height: 260px; padding: 0; align-items: stretch; background: #dfeaf6; }
.category-card-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 33, 56, 0.12) 0%, rgba(13, 33, 56, 0.34) 100%); pointer-events: none; }
.category-card-overlay img, .category-card-fallback { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.category-card-fallback { background: linear-gradient(135deg, #dcecff 0%, #bfdcff 100%); }
.category-card-title-wrap { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.category-card-title { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 12px 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.35); color: #173657; font-size: 1.2rem; line-height: 1.35; max-width: min(100%, 280px); }
.category-card:hover { transform: translateY(-3px); }
.rich-content { line-height: 1.7; }
.category-detail-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    background: #fbfaf7;
    color: #071d36;
}
.category-detail-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 96px;
    padding: 16px 7vw;
    border-bottom: 1px solid #d9d1c6;
    background: rgba(255, 255, 255, 0.72);
}
.category-back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    font-weight: 800;
    line-height: 1;
}
.category-back-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-1px);
}
.category-back-link strong {
    line-height: 1;
}
.category-detail-logo {
    width: min(270px, 34vw);
    max-height: 70px;
    object-fit: contain;
}
.category-detail-language {
    justify-self: end;
}
.category-detail-language .language-dropdown-menu {
    border-color: rgba(216, 208, 197, 0.9);
}
.category-detail-content {
    padding: 28px 7vw 44px;
}
.category-detail-title-block {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0 auto 24px;
    text-align: center;
}
.category-detail-title-block h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
}
.category-title-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 160px);
}
.category-title-rule::before,
.category-title-rule::after {
    content: '';
    width: 58px;
    height: 1px;
    background: #c9bda9;
}
.category-title-rule span {
    width: 8px;
    height: 8px;
    margin: 0 10px;
    border-radius: 50%;
    background: #071d36;
}
.category-detail-title-block p {
    max-width: 620px;
    margin: 0;
    color: #1f334a;
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    line-height: 1.45;
}
.category-detail-content .rich-content {
    width: min(100%, 1080px);
    margin: 0 auto;
}
.weather-page-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    background: #f7f9fa;
    color: #071d36;
}
.weather-page-content { padding: 28px 7vw 52px; }
.weather-page-title { margin-bottom: 28px; }
.weather-forecast-grid {
    width: min(100%, 1080px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.weather-forecast-card {
    min-height: 210px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    align-items: center;
    gap: 8px;
    padding: 18px;
    border: 1px solid #d8e0e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(7, 29, 54, 0.08);
    text-align: center;
}
.weather-today-card {
    grid-column: 1 / -1;
    min-height: 180px;
    grid-template-columns: 1fr 150px 1fr;
    grid-template-rows: 1fr;
    padding: 24px 40px;
    border-color: #123d65;
    background: #082f52;
    color: #fff;
}
.weather-forecast-heading, .weather-forecast-values { display: grid; gap: 7px; }
.weather-forecast-heading strong { font-size: 1.35rem; }
.weather-forecast-heading span { color: #64768a; font-size: 0.92rem; }
.weather-forecast-icon { width: 92px; height: 92px; object-fit: contain; }
.weather-forecast-values strong { font-size: 1.75rem; line-height: 1; }
.weather-forecast-values span { color: #31455d; }
.weather-today-card .weather-forecast-heading strong { font-size: 1.65rem; }
.weather-today-card .weather-forecast-heading span,
.weather-today-card .weather-forecast-values span { color: rgba(255, 255, 255, 0.78); }
.weather-today-card .weather-forecast-icon { width: 120px; height: 120px; filter: brightness(0) invert(1); }
.weather-today-card .weather-forecast-values strong { font-size: 2.5rem; }
.weather-unavailable-message { margin: 60px auto; text-align: center; color: #64768a; font-size: 1.1rem; }
.lang-pill.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.client-footer { padding: 0 4px; color: var(--muted); }
.welcome-screen .client-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}
code { background: #edf6ff; padding: 3px 7px; border-radius: 4px; }
.translatable-box { display: grid; gap: 14px; }
.lang-selector { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.lang-selector-btn { min-width: 48px; padding: 9px 12px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-weight: 700; }
.lang-selector-btn:last-child { border-right: 0; }
.lang-selector-btn.active { background: #dff0ff; color: var(--primary-dark); }
.lang-pane { display: none; gap: 12px; }
.lang-pane.active { display: grid; }
.lang-pane-head { display: flex; justify-content: flex-start; }
.language-head.compact { margin-bottom: 0; }
.empty-state { padding: 18px; border: 1px dashed var(--line); border-radius: 5px; background: #f9fcff; color: var(--muted); margin-bottom: 20px; }
.hidden { display: none !important; }
.connection-banner {
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 100;
    transform: translateX(-50%);
    padding: 9px 16px;
    border-radius: 5px;
    background: rgba(23, 54, 87, 0.9);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(24, 58, 94, 0.18);
}
.offline-cache-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 140;
    height: 3px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}
.offline-cache-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d5a243 0%, #67c2df 100%);
    box-shadow: 0 0 12px rgba(103, 194, 223, 0.55);
    transition: width .18s ease;
}
.screensaver-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    overflow: hidden;
    background: #071d36;
    color: #fff;
    cursor: pointer;
}
.screensaver-slides,
.screensaver-slide,
.screensaver-shade {
    position: absolute;
    inset: 0;
}
.screensaver-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.screensaver-slide.active {
    opacity: 1;
}
.screensaver-shade {
    background: linear-gradient(180deg, rgba(7, 29, 54, 0.14) 0%, rgba(7, 29, 54, 0.52) 100%);
}
.screensaver-ui {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    padding: clamp(30px, 5vw, 58px);
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.42);
}
.display-clock {
    display: grid;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}
.display-clock strong {
    position: relative;
    font-size: clamp(1.96rem, 4.9vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
}
.screensaver-time { font-size: 3rem; }
.display-clock sup {
    position: absolute;
    margin-left: 0.2em;
    font-size: 0.6em;
    line-height: 1.5;
    vertical-align: baseline;
}
.screensaver-clock {
    position: absolute;
    top: clamp(28px, 5vw, 58px);
    left: clamp(30px, 5vw, 58px);
}
.screensaver-logo {
    position: absolute;
    top: clamp(24px, 4vw, 48px);
    left: 50%;
    width: min(360px, 40vw);
    max-height: 120px;
    transform: translateX(-50%);
    object-fit: contain;
}
.weather-display {
    display: flex;
    align-items: center;
    gap: 14px;
}
.weather-display-icon {
    width: clamp(52px, 8vw, 76px);
    height: clamp(52px, 8vw, 76px);
    object-fit: contain;
}
.weather-display-copy {
    display: grid;
    gap: 7px;
}
.weather-display strong {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
}
.weather-display-condition {
    display: block;
    font-size: 1.08rem;
    line-height: 1.2;
}
.screensaver-weather {
    position: absolute;
    top: clamp(30px, 5vw, 60px);
    right: clamp(30px, 5vw, 58px);
    color: #fff;
}
.screensaver-weather .weather-display-icon {
    filter: brightness(0) invert(1);
}
.screensaver-welcome {
    position: absolute;
    left: clamp(30px, 5vw, 58px);
    bottom: clamp(100px, 9vh, 170px);
    display: grid;
    justify-items: start;
    max-width: min(620px, calc(100vw - 60px));
    text-align: left;
}
.screensaver-welcome > span {
    color: #fff;
    font-size: clamp(1rem, 1.15vw, 1rem);
    font-weight: 400;
    text-transform: uppercase;
}
.screensaver-welcome > span,
.screensaver-welcome h1,
.screensaver-welcome p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}
.screensaver-welcome h1 {
    margin: 0;
    padding-bottom: 0;
    color: #fff;
    font-size: clamp(3rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.05;
}
.screensaver-welcome p {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(1rem, 1.15vw, 1rem);
}
.screensaver-enter-button {
    margin-top: 24px;
    min-width: 190px;
    padding: 13px 22px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: rgba(7, 29, 54, 0.62);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: pointer;
}
.screensaver-image-title {
    position: absolute;
    left: 50%;
    bottom: clamp(20px, 3vw, 34px);
    width: calc(100% - clamp(60px, 10vw, 116px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: clamp(0.86rem, 2vw, 1.15rem);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.screensaver-image-title-line {
    flex: 1 1 0;
    height: 1px;
    background: #fff;
}
.screensaver-image-title-text {
    flex: 0 1 auto;
    max-width: min(70vw, 620px);
}
.checkout-info-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 36px;
    background: #fbfaf7;
    color: #071d36;
}
.checkout-info-panel {
    display: grid;
    justify-items: center;
    text-align: center;
}
.checkout-info-panel h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.05;
}
.configuration-image-preview {
    width: min(360px, 100%);
    aspect-ratio: 16 / 9;
    margin-top: 8px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid var(--line);
}
.checkout-page-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    padding: 22px 38px 20px;
    background-color: #123452;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #071d36;
    position: relative;
}
.checkout-page-app::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 21, 39, 0.38) 0%, rgba(4, 21, 39, 0.1) 45%, rgba(255, 255, 255, 0.85) 66%, rgba(255, 255, 255, 0.96) 100%);
    pointer-events: none;
}
.checkout-guide-back {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background: rgba(0, 35, 72, 0.82);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(4, 21, 39, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.checkout-guide-back span {
    line-height: 0.7;
}
.checkout-page-content {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
}
.checkout-hero {
    max-width: 820px;
    margin: 0 auto 18px;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}
.checkout-logo {
    width: min(230px, 34vw);
    margin: 0 auto 8px;
}
.checkout-hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4.55vw, 4.25rem);
    line-height: 1;
    font-weight: 700;
}
.checkout-title-rule {
    width: 230px;
    height: 1px;
    margin: 12px auto;
    background: linear-gradient(90deg, transparent, rgba(218, 168, 72, 0.95), transparent);
}
.checkout-message {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.32;
    font-weight: 700;
}
.checkout-message p {
    margin: 0 0 9px;
}
.checkout-message strong {
    display: block;
    color: #e3b24d;
    font-size: 1.08rem;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 0.86fr 1.48fr;
    gap: 20px;
    align-items: stretch;
}
.checkout-time-card,
.checkout-checklist-card,
.checkout-care-card,
.checkout-discount-card,
.checkout-support-card {
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(7, 29, 54, 0.18);
}
.checkout-time-card {
    min-height: 0;
    height: 100%;
    padding: 22px 28px;
    background: linear-gradient(155deg, rgba(0, 50, 91, 0.98), rgba(0, 23, 54, 0.98));
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
}
.checkout-big-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 12px;
    padding-bottom: 7px;
    display: grid;
    place-items: center;
    border: 4px solid rgba(100, 184, 226, 0.78);
    border-radius: 50%;
    color: #78c9ef;
    font-size: 3rem;
    line-height: 1;
}
.checkout-time-card h2,
.checkout-checklist-card h2,
.checkout-care-card h2,
.checkout-discount-card h2,
.checkout-support-card h2 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0;
    color: inherit;
}
.checkout-time-card h2 {
    font-size: 1.35rem;
}
.checkout-time-card strong {
    display: block;
    margin: 8px 0 14px;
    color: #73c7ef;
    font-size: 3.75rem;
    line-height: 1;
}
.checkout-time-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.34;
}
.checkout-checklist-card {
    padding: 20px 34px;
    background: rgba(255, 255, 255, 0.96);
    height: 100%;
}
.checkout-checklist-card h2 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.55rem;
}
.checkout-checklist-card ul,
.checkout-care-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checkout-checklist-card li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 46px;
    border-top: 1px solid rgba(7, 29, 54, 0.16);
    font-size: 1.02rem;
    line-height: 1.18;
}
.checkout-checklist-card li:first-child {
    border-top: 0;
}
.checkout-checklist-card li span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(34, 136, 188, 0.28);
    color: #2288bc;
    font-size: 0.95rem;
    font-weight: 900;
    text-align: center;
}
.checkout-care-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.94);
    text-align: center;
    min-height: 0;
    height: 100%;
}
.checkout-care-card h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}
.checkout-care-card p {
    margin: 0 0 9px;
    line-height: 1.24;
}
.checkout-care-card li {
    margin: 4px 0;
    font-weight: 700;
}
.checkout-care-card li::before {
    content: '\2713';
    margin-right: 8px;
    color: #2288bc;
}
.checkout-discount-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 32px;
    background: rgba(232, 247, 255, 0.95);
    min-height: 0;
    height: 100%;
}
.checkout-star {
    width: 82px;
    height: 82px;
    padding-bottom: 7px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #55b8e3, #248fc1);
    color: #fff;
    font-size: 3.1rem;
    text-shadow: 0 2px 4px rgba(7, 29, 54, 0.24);
}
.checkout-discount-card h2 {
    font-size: 1.42rem;
}
.checkout-discount-card p {
    margin: 6px 0 14px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}
.checkout-discount-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    border-radius: 6px;
    background: #002b58;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}
.checkout-discount-button span {
    line-height: 1;
}
.checkout-support-card {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 100px 1fr 360px;
    gap: 26px;
    align-items: center;
    padding: 16px 28px;
    background: linear-gradient(155deg, #00345f, #001c43);
    color: #fff;
}
.checkout-support-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(112, 202, 240, 0.7);
    border-radius: 50%;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 900;
}
.checkout-support-card h2 {
    color: #f2c160;
    font-size: 1.05rem;
}
.checkout-support-card p {
    margin: 5px 0 0;
    font-size: 0.92rem;
    line-height: 1.25;
}
.checkout-support-contact {
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}
.checkout-support-contact strong,
.checkout-support-contact span,
.checkout-support-contact small {
    display: block;
}
.checkout-support-contact strong {
    font-size: 1rem;
}
.checkout-support-contact span {
    color: #73c7ef;
    font-size: 1.45rem;
    font-weight: 800;
}
.checkout-support-contact small {
    font-size: 0.88rem;
}
.checkout-footer {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px 42px 0;
    color: #071d36;
}
.checkout-footer > span {
    color: #d4a13f;
    font-size: 3rem;
    line-height: 1;
}
.checkout-footer strong {
    font-size: 0.98rem;
}
.checkout-footer p {
    margin: 2px 0 0;
    font-size: 0.9rem;
}
@media (min-width: 768px) and (max-width: 1100px) {
    .category-grid-client { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
    .category-grid-client { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .property-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slideshow-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
    .field-grid.two { grid-template-columns: 1fr; }
    .field-grid.three { grid-template-columns: 1fr; }
    .reservation-context-grid { grid-template-columns: 1fr; }
    .reservation-override-head { display: grid; }
    .reservation-sync-actions { align-items: stretch; flex-direction: column; }
    .reservation-sync-help { text-align: left; }
    .property-delete-zone { display: grid; align-items: stretch; }
    .property-delete-zone form, .property-delete-zone .button { width: 100%; }
    .weather-page-content { padding: 24px 30px 46px; }
    .filter-card { grid-template-columns: 1fr; }
    .language-head { align-items: flex-start; flex-direction: column; }
    .client-topbar { align-items: center; }
    .welcome-hero { min-height: 100vh; }
    .welcome-content-wrap { padding: 16px 16px 10px; }
    .welcome-content-panel { width: 100%; }
    .welcome-hero-topbar { top: 14px; right: 14px; }
    .welcome-brand-corner { top: 14px; left: 14px; width: min(220px, 52vw); padding: 10px 12px; }
    .language-dropdown { gap: 6px; }
    .language-switcher-label { font-size: 0.76rem; }
    .language-dropdown-toggle { min-width: 0; }
    .checkout-page-app { padding: 0 28px 16px; }
    .checkout-logo { width: min(210px, 34vw); }
    .checkout-grid { grid-template-columns: 0.92fr 1.48fr; gap: 18px; }
    .checkout-hero { margin-bottom: 30px; }
    .checkout-hero h1 { font-size: 3.15rem; }
    .checkout-message { font-size: 0.95rem; line-height: 1.25; }
    .checkout-time-card { min-height: 330px; padding: 8px 20px; }
    .checkout-time-card strong { font-size: 3.15rem; }
    .checkout-checklist-card { padding: 8px 24px; }
    .checkout-checklist-card li { grid-template-columns: 42px 1fr; gap: 10px; min-height: 42px; font-size: 0.92rem; }
    .checkout-checklist-card li span { width: 34px; height: 34px; font-size: 0.86rem; }
    .checkout-care-card { padding: 8px 20px; }
    .checkout-discount-card { grid-template-columns: 80px 1fr; padding: 8px 24px; }
    .checkout-star { width: 70px; height: 70px; font-size: 2.6rem; }
    .checkout-support-card { grid-template-columns: 70px 1fr 230px; gap: 14px; padding: 8px 22px; }
    .checkout-support-contact span { font-size: 1.25rem; }
    .checkout-footer { padding: 36px 42px 0; }
}

@media (max-width: 520px) {
    .property-gallery-grid { grid-template-columns: 1fr; }
    .slideshow-source-grid { grid-template-columns: 1fr; }
}
body .note-editor.note-frame,
body .note-editor.note-airframe {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
}

body .note-toolbar {
    background: #f8fbff;
    border-bottom: 1px solid var(--line);
}

body .note-btn {
    border-radius: 4px;
}

body .note-editing-area .note-editable {
    min-height: 220px;
    color: var(--text);
}

body .note-modal-content,
body .note-popover {
    border-radius: 5px;
}


.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 34, 56, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-card {
    width: min(100%, 520px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212,229,248,.95);
    border-radius: 5px;
    box-shadow: var(--shadow);
    padding: 22px;
}
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.modal-head h2 {
    margin: 0;
    font-size: 1.4rem;
}
.modal-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.discount-form {
    display: grid;
    gap: 14px;
}
.discount-form-inline {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid rgba(212,229,248,.95);
    border-radius: 5px;
    background: rgba(246, 251, 255, 0.92);
}
.discount-form.is-offline-disabled {
    color: #8a98a8;
    background: rgba(242, 246, 250, 0.95);
    border-color: rgba(190, 203, 216, 0.9);
}
.discount-form.is-offline-disabled input,
.discount-form.is-offline-disabled textarea,
.discount-form.is-offline-disabled select {
    background: #edf1f5;
    color: #8a98a8;
    border-color: #cdd7e2;
}
.discount-form.is-offline-disabled button {
    background: #d7dde5;
    color: #7f8a98;
    cursor: not-allowed;
}
.discount-form-message {
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 0.95rem;
}
.discount-form-message.success {
    background: #e5f7f1;
    color: #1c7f63;
}
.discount-form-message.error {
    background: #ffe8ec;
    color: #9a3548;
}










.compact-category-grid {
    gap: 22px 18px;
}
.category-card-compact {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    padding: 18px 14px;
    min-height: 0;
    text-align: center;
}
.category-card-compact:hover {
    transform: translateY(-2px);
}
.category-icon-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}
.category-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.category-icon-fallback {
    border-radius: 5px;
    background: linear-gradient(135deg, #dcecff 0%, #bfdcff 100%);
}
.category-card-compact-title {
    display: block;
    color: #173657;
    font-size: 1rem;
    line-height: 1.35;
    text-align: center;
}
@media (min-width: 768px) and (max-width: 1100px) {
    .category-grid-client {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .category-icon {
        width: 86px;
        height: 86px;
    }
}
@media (min-width: 1101px) {
    .category-grid-client {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    .category-icon {
        width: 100px;
        height: 100px;
    }
}

.compact-category-grid {
    align-content: center;
    justify-content: center;
    grid-auto-rows: 220px;
    min-height: auto;
}

.category-card-compact {
    height: 220px;
    min-height: 220px;
    align-self: center;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .compact-category-grid {
        grid-auto-rows: 210px;
    }

    .category-card-compact {
        height: 210px;
        min-height: 210px;
    }
}

@media (max-width: 767px) {
    .compact-category-grid {
        min-height: auto;
        grid-auto-rows: 190px;
        align-content: start;
    }

    .category-card-compact {
        height: 190px;
        min-height: 190px;
    }
}

.category-page-body {
    min-height: 0;
    height: 100%;
    display: grid;
    align-content: center;
    gap: 18px;
    padding:0 10px;
}

.compact-category-grid {
    min-height: auto;
}

@media (max-width: 767px) {
    .category-page-body {
        min-height: auto;
        align-content: start;
    }
}




.welcome-content-wrap {
    position: relative;
    z-index: 1;
}




.category-icon {
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.category-grid-client {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) and (max-width: 1100px) {
    .category-grid-client {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-page-body,
    .compact-category-grid {
        align-content: start;
    }
}

@media (min-width: 1101px) {
    .category-grid-client {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}


.welcome-slide-controls {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 2;
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.welcome-slide-control {
    min-width: 40px;
    height: 40px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-dark);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(24, 58, 94, 0.14);
}

.welcome-slide-control.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}
@media (max-width: 767px) {
    .welcome-slide-controls {
        bottom: 14px;
        gap: 8px;
    }

    .welcome-slide-control {
        min-width: 34px;
        height: 34px;
        font-size: 0.92rem;
    }
}

.nested-table-card {
    padding: 0;
    box-shadow: none;
    border: 0;
}

.translation-list {
    display: grid;
    gap: 16px;
}

.translation-item {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
}

.translation-item textarea[readonly],
.data-table input[readonly] {
    background: #f6fbff;
    color: var(--muted);
}

@media (min-width: 900px) {
    .translation-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 460px);
    display: grid;
    gap: 18px;
}

.auth-brand-card,
.auth-form-card {
    margin: 0;
}

.auth-form-card {
    display: grid;
    gap: 16px;
}

.auth-actions {
    justify-content: flex-end;
}

.sidebar-logout-button {
    width: 100%;
    margin-bottom: 14px;
}

.public-home-panel {
    width: min(100%, 680px);
}

.public-home-screen .welcome-content-wrap {
    align-items: center;
    padding: 28px;
}

.public-home-content {
    min-height: 260px;
    align-content: center;
}

.public-home-logo {
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.76);
}

.welcome-content .subtle,.welcome-content .guest-pill {margin:0;}
.welcome-refresh-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.welcome-refresh-frame {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
}

.new-welcome-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: end;
    padding: 56px 8vw 26px;
    background-color: #0b2947;
    color: #fff;
}

.new-welcome-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 30, 56, 0.26) 0%, rgba(7, 30, 56, 0.08) 46%, rgba(7, 30, 56, 0.74) 100%),
        linear-gradient(90deg, rgba(7, 30, 56, 0.36) 0%, rgba(7, 30, 56, 0.02) 55%, rgba(7, 30, 56, 0.24) 100%);
    z-index: 0;
    pointer-events: none;
}

.new-welcome-hero > * {
    position: relative;
    z-index: 1;
}

.new-welcome-hero .welcome-hero-topbar {
    position: absolute;
    top: 42px;
    right: 7vw;
    left: auto;
}

.welcome-page-clock {
    position: absolute;
    top: 42px;
    left: 7vw;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}
.new-welcome-hero .language-dropdown-toggle,
.guide-menu-header .language-dropdown-toggle {
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.new-welcome-hero .language-switcher-label {
    color: #fff;
    border-right-color: rgba(255, 255, 255, 0.28);
}

.new-welcome-hero .language-dropdown-toggle {
    min-width: 148px;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.92rem;
    text-transform: uppercase;
}

.new-home-content {
    align-self: start;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(100%, 760px);
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

.new-home-logo {
    width: min(300px, 38vw);
    max-height: 120px;
    object-fit: contain;
}

.new-home-content h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.02;
}

.new-home-greeting span {
    display: block;
}

.new-home-greeting-label {
    font-size: 0.72em;
    font-weight: 600;
}

.new-home-guest-name {
    margin-top: 3px;
}

.new-stay-interval {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 430px);
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    font-weight: 600;
}

.new-stay-interval::before,
.new-stay-interval::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: currentColor;
    opacity: 0.8;
}

.new-location {
    display: grid;
    justify-content: center;
    margin: 0;
    font-size: clamp(1rem, 1.9vw, 1.55rem);
    font-weight: 700;
    line-height: 1.18;
}

.new-location .location-text strong {
    font-weight: 600;
    text-transform: uppercase;
}

.location-text {
    display: grid;
    gap: 3px;
    text-align: center;
}

.location-text strong,
.location-text small {
    display: block;
}

.location-text small {
    font-size: 0.78em;
    font-weight: 600;
    opacity: 0.9;
}

.new-home-lower {
    display: grid;
    gap: 12px;
    width: min(100%, 860px);
    margin: 0 auto;
}

.new-weather-card {
    display: block;
    width: min(100%, 700px);
    margin: 0 auto;
    padding: 20px 28px;
    border-radius: 8px;
    background: rgba(4, 38, 67, 0.86);
    color: #fff;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.new-weather-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-weather-day {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 18px;
    padding: 4px 24px;
}

.new-weather-day + .new-weather-day {
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.new-weather-day .weather-icon {
    width: 70px;
    height: 70px;
    filter: brightness(0) invert(1);
}

.new-weather-day strong,
.new-weather-day span,
.new-weather-day small {
    display: block;
}

.new-weather-day strong {
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1;
}

.new-weather-day span {
    margin-top: 8px;
    font-size: 1.15rem;
}

.new-weather-day small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
}

.new-home-panel {
    display: grid;
    gap: 12px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.new-enter-button {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    width: min(100% - 86px, 560px);
    margin: 0 auto;
    padding: 14px 24px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: linear-gradient(180deg, #082e52 0%, #031f3a 100%);
    color: #fff;
    font-size: clamp(1.05rem, 1.85vw, 1.55rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(5, 28, 51, 0.28);
}

.new-home-icon {
    padding-bottom: 5px;
    color: #fff;
    font-size: 1.35em;
}

.wifi-access-card {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(190px, 0.9fr);
    align-items: center;
    gap: 26px;
    padding: 22px 34px;
    background: #eaf2fb;
    color: #071d36;
}

.new-home-panel .wifi-access-card {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(5, 28, 51, 0.2);
}

.wifi-access-card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.wifi-access-card p {
    margin: 0;
    color: #1a2f49;
    font-size: 1rem;
    line-height: 1.42;
}

.wifi-qr {
    width: 142px;
    height: 142px;
    object-fit: contain;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(8, 32, 55, 0.12);
}

.wifi-details {
    display: grid;
    gap: 18px;
}

.wifi-details p {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.wifi-details strong {
    font-size: 1.05rem;
}

.wifi-details span {
    color: #1a2f49;
}

.guide-menu-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 34px 6.6vw;
    background-color: #fbfaf7;
    background-image: url('/public/assets/img/fundal-categ.png');
    background-position: left top;
    background-repeat: no-repeat;
    background-size: min(360px, 42vw) auto;
    color: #071d36;
}

.guide-menu-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 26px;
}

.guide-menu-primary {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.guide-menu-primary-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 26px;
}

.guide-page-clock {
    color: #071d36;
}

.guide-header-tools {
    display: grid;
    justify-items: end;
    gap: 46px;
}

.guide-menu-brand {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-left: clamp(8px, 1.6vw, 26px);
}

.guide-menu-intro {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    text-align: center;
}


.guide-menu-logo {
    width: min(430px, 56vw);
    max-height: 165px;
    object-fit: contain;
}

.guide-menu-intro h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 600;
    line-height: 1.04;
}

.guide-menu-property-name {
    margin: 0;
    color: #173657;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.guide-location {
    margin: 10px 0 0;
    display: grid;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 100;
    line-height: 1.22;
}

.guide-menu-header .language-dropdown-toggle {
    background: rgba(255, 255, 255, 0.72);
    color: #071d36;
    border-color: #d8d0c5;
    min-width: 142px;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.92rem;
}

.guide-weather-card {
    min-width: 250px;
    padding-left: 30px;
    border-left: 1px solid #d9d1c6;
    color: #071d36;
}

.guide-menu-body {
    display: grid;
    align-content: start;
    gap: 24px;
    padding-top: 26px;
}

.guide-menu-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    color: #071d36;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 1.1rem;
}

.guide-menu-title span {
    height: 1px;
    background: #d9d1c6;
}

.guide-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.guide-category-card {
    display: grid;
    grid-template-columns: 122px 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 152px;
    padding: 20px 22px;
    border: 1px solid rgba(216, 208, 197, 0.76);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(31, 42, 56, 0.08);
    transition: border-color .18s ease;
}

.guide-weather-category-card {
    /* grid-column: 1 / -1; */
}

.guide-category-card:hover {
    border-color: #071d36;
}

.guide-category-icon-wrap {
    width: 122px;
    height: 122px;
    display: grid;
    place-items: center;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.guide-category-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guide-category-icon-fallback {
    background: transparent;
}

.guide-category-card strong {
    display: block;
    font-size: clamp(1.1rem, 1.9vw, 1.55rem);
    line-height: 1.15;
}

.guide-category-card p {
    margin: 8px 0 0;
    color: #1f334a;
    font-size: clamp(0.95rem, 1.5vw, 1.18rem);
    line-height: 1.42;
}

.guide-category-arrow {
    color: #101820;
    font-size: 2.5rem;
    line-height: 1;
}

.guide-wifi-card {
    border-radius: 8px;
    margin-top: 2px;
}

.guide-language-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(7, 29, 54, 0.14);
}

.guide-language-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #071d36;
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: uppercase;
}

.guide-language-label img {
    width: 19px;
    height: 19px;
}

.guide-language-footer .language-dropdown-toggle {
    min-height: 38px;
    padding: 7px 14px;
    border-color: rgba(7, 29, 54, 0.18);
    background: rgba(255, 255, 255, 0.7);
    color: #071d36;
    box-shadow: none;
}

.guide-language-footer .language-dropdown-icon {
    display: none;
}

.guide-language-footer .language-dropdown-menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.guide-wifi-card-language-only {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .new-welcome-hero {
        padding: 44px 32px 22px;
    }

    .new-welcome-hero .welcome-hero-topbar {
        top: 26px;
        right: 32px;
    }

    .new-home-logo {
        width: min(300px, 38vw);
        max-height: 120px;
    }

    .new-home-lower {
        width: 100%;
    }

    .new-weather-card {
        width: min(100%, 700px);
    }

    .new-enter-button {
        width: min(100% - 72px, 620px);
    }

    .wifi-access-card {
        grid-template-columns: 1fr auto 1fr;
        padding: 22px 28px;
    }

    .guide-menu-app {
        padding: 30px 38px;
    }

    .guide-category-card {
        grid-template-columns: 104px 1fr auto;
        min-height: 138px;
    }

    .guide-category-icon-wrap {
        width: 104px;
        height: 104px;
    }
}

@media (min-width: 720px) and (max-width: 1180px) {
    .new-welcome-hero {
        grid-template-rows: auto 1fr;
        padding: 18px 7vw 30px;
    }

    .new-welcome-hero .welcome-hero-topbar {
        position: absolute;
        top: 28px;
        right: 7vw;
        left: auto;
    }

    .new-welcome-hero .language-dropdown-toggle {
        min-width: 146px;
        min-height: 42px;
        padding: 7px 13px;
        font-size: 0.9rem;
    }

    .new-home-content {
        width: min(100%, 740px);
        gap: 14px;
        padding-top: 0;
    }

    .new-home-logo {
        width: min(300px, 38vw);
        max-height: 120px;
    }

    .new-home-content h1 {
        font-size: clamp(3rem, 6vw, 4.15rem);
    }

    .new-stay-interval {
        font-size: clamp(1.45rem, 2.7vw, 1.95rem);
    }

    .new-location {
        font-size: clamp(1.15rem, 2.35vw, 1.45rem);
    }

    .new-home-lower {
        width: min(100%, 840px);
        gap: 12px;
    }

    .new-weather-card {
        width: min(100%, 700px);
        padding: 20px 28px;
    }

    .new-weather-day {
        grid-template-columns: 72px 1fr;
        gap: 16px;
        padding: 4px 22px;
    }

    .new-weather-day .weather-icon {
        width: 66px;
        height: 66px;
    }

    .new-enter-button {
        width: min(100% - 96px, 560px);
        margin: 18px auto;
        padding: 14px 24px;
        font-size: clamp(1.12rem, 2.35vw, 1.5rem);
    }

    .wifi-access-card {
        grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 0.9fr);
        gap: 22px;
        padding: 20px 30px;
    }

    .guide-menu-app {
        padding: 24px clamp(52px, 6.6vw, 74px) 30px;
    }

    .guide-menu-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 28px;
    }

    .guide-header-tools {
        justify-items: end;
        gap: 26px;
    }

    .guide-menu-logo {
        width: min(360px, 44vw);
        max-height: 128px;
    }

    .guide-menu-brand {
        gap: 6px;
    }

    .guide-menu-intro h1 {
        font-size: clamp(2.25rem, 4.25vw, 3rem);
    }

    .guide-location {
        margin-top: 8px;
        font-size: clamp(1rem, 2vw, 1.28rem);
    }

    .guide-weather-card {
        min-width: 240px;
        gap: 16px;
        padding-left: 28px;
    }

    .guide-menu-body {
        gap: 24px;
        padding-top: 18px;
    }

    .guide-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .guide-category-card {
        grid-template-columns: 116px 1fr auto;
        gap: 20px;
        min-height: 174px;
        padding: 20px 22px;
    }

    .guide-category-icon-wrap {
        width: 116px;
        height: 116px;
    }

    .guide-category-card strong {
        font-size: clamp(1.18rem, 2.25vw, 1.45rem);
    }

    .guide-category-card p {
        font-size: clamp(0.96rem, 1.8vw, 1.12rem);
    }

    .category-detail-header {
        min-height: 90px;
        padding: 14px 7vw;
    }

    .category-detail-logo {
        width: min(250px, 32vw);
        max-height: 66px;
    }

    .category-detail-content {
        padding: 26px 7vw 42px;
    }

    .category-detail-title-block {
        gap: 11px;
        margin-bottom: 22px;
    }
}

@media (min-width: 720px) and (max-width: 860px) {
    .guide-menu-app {
        padding: 20px 30px 26px;
    }

    .guide-menu-header {
        gap: 18px;
    }

    .guide-menu-logo {
        width: min(290px, 42vw);
    }

    .guide-header-tools {
        gap: 18px;
    }

    .guide-weather-card {
        min-width: 190px;
        gap: 12px;
        padding-left: 18px;
    }

    .guide-weather-card .weather-display-icon {
        width: 52px;
        height: 52px;
    }

    .guide-weather-card strong {
        font-size: 2.1rem;
    }

    .guide-category-grid {
        gap: 16px;
    }

    .guide-category-card {
        grid-template-columns: 86px 1fr auto;
        gap: 14px;
        min-height: 146px;
        padding: 16px;
    }

    .guide-category-icon-wrap {
        width: 86px;
        height: 86px;
    }

    .guide-category-arrow {
        font-size: 2rem;
    }

    .wifi-access-card {
        grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 0.9fr);
        gap: 18px;
        padding: 20px 24px;
    }

    .wifi-qr {
        width: 118px;
        height: 118px;
    }
}

@media (max-width: 719px) {
    .weather-page-content { padding: 22px 16px 42px; }
    .weather-forecast-grid { grid-template-columns: 1fr; }
    .weather-today-card {
        grid-column: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        padding: 20px;
    }

    .new-welcome-hero {
        padding: 92px 18px 18px;
    }

    .new-welcome-hero .welcome-hero-topbar {
        top: 16px;
        right: 16px;
    }

    .new-home-content {
        gap: 10px;
    }

    .new-home-logo {
        width: min(300px, 70vw);
    }

    .new-weather-card {
        padding: 14px;
    }

    .new-weather-days,
    .guide-category-grid {
        grid-template-columns: 1fr;
    }

    .new-weather-day {
        grid-template-columns: 58px 1fr;
        padding: 10px;
    }

    .new-weather-day + .new-weather-day {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.32);
    }

    .new-weather-day .weather-icon {
        width: 54px;
        height: 54px;
    }

    .new-enter-button {
        width: calc(100% - 24px);
        gap: 12px;
        padding: 14px 16px;
        font-size: 1.05rem;
    }

    .wifi-access-card {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 18px;
        padding: 20px;
    }

    .wifi-qr {
        width: 132px;
        height: 132px;
    }

    .guide-menu-app {
        padding: 22px 16px;
    }

    .guide-menu-header {
        display: grid;
        gap: 18px;
    }

    .guide-header-tools {
        justify-items: start;
        gap: 16px;
    }

    .guide-weather-card {
        min-width: 0;
        padding-left: 0;
        border-left: 0;
    }

    .guide-menu-logo {
        width: min(310px, 76vw);
    }

    .guide-menu-title {
        gap: 12px;
        font-size: 0.95rem;
    }

    .guide-category-card {
        grid-template-columns: 86px 1fr auto;
        gap: 16px;
        min-height: 118px;
        padding: 16px;
    }

    .guide-category-icon-wrap {
        width: 86px;
        height: 86px;
    }

    .category-detail-header {
        grid-template-columns: 1fr auto;
        min-height: 78px;
        padding: 12px 16px;
    }

    .category-detail-logo {
        grid-column: 1 / -1;
        grid-row: 1;
        width: min(180px, 44vw);
        max-height: 52px;
        justify-self: center;
    }

    .category-back-link {
        grid-column: 1;
        grid-row: 1;
        gap: 8px;
        font-size: 0.85rem;
    }

    .category-back-link span {
        width: 16px;
        height: 16px;
        font-size: 1.45rem;
    }

    .category-detail-language {
        grid-column: 2;
        grid-row: 1;
    }

    .category-detail-content {
        padding: 22px 16px 34px;
    }
}

.language-dropdown-dark .language-dropdown-toggle {
    min-width: 148px;
    min-height: 44px;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    box-shadow: none;
    font-size: 0.92rem;
    text-transform: uppercase;
}

.language-dropdown-dark .language-dropdown-icon {
    filter: brightness(0) invert(1);
}

.category-detail-language .language-dropdown-dark .language-dropdown-toggle {
    color: #071d36;
    border-color: rgba(7, 29, 54, 0.22);
}

.category-detail-language .language-dropdown-dark .language-dropdown-icon {
    filter: none;
}
@media (max-width: 900px) {
    .welcome-page-clock {
        top: 26px;
        left: 32px;
    }

    .guide-menu-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (min-width: 720px) and (max-width: 1180px) {
    .welcome-page-clock {
        top: 28px;
        left: 7vw;
    }

    .guide-menu-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 719px) {
    .welcome-page-clock {
        top: 16px;
        left: 16px;
    }

    .welcome-page-clock .screensaver-time,
    .guide-page-clock .screensaver-time {
        font-size: 2.25rem;
    }

    .guide-menu-header {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .guide-page-clock {
        grid-column: 1;
        grid-row: 1;
    }

    .guide-menu-brand {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-left: 0;
    }

    .guide-header-tools {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Shared clock, logo and weather header used by the guide and screensaver. */
.status-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 2.4vw, 30px);
    width: 100%;
}

.status-header-cell {
    min-width: 0;
}

.status-header-clock {
    justify-self: start;
}

.status-header-brand {
    display: flex;
    justify-content: center;
    justify-self: stretch;
}

.status-header-logo {
    display: block;
    width: min(100%, 360px);
    height: clamp(72px, 12vw, 120px);
    object-fit: contain;
}

.status-header-weather {
    justify-self: end;
}

.status-header-weather .weather-display {
    justify-content: flex-end;
}

.status-header-guide {
    color: #071d36;
}

.status-header-screensaver {
    position: absolute;
    top: clamp(24px, 4vw, 48px);
    left: clamp(30px, 5vw, 58px);
    right: clamp(30px, 5vw, 58px);
    width: auto;
    color: #fff;
}

.status-header-screensaver .weather-display-icon {
    filter: brightness(0) invert(1);
}

.guide-menu-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

@media (max-width: 719px) {
    .status-header {
        gap: 8px;
    }

    .status-header-logo {
        height: 76px;
    }

    .status-header .screensaver-time {
        font-size: 2.1rem;
    }

    .status-header .weather-display {
        gap: 7px;
    }

    .status-header .weather-display-icon {
        width: 42px;
        height: 42px;
    }

    .status-header .weather-display strong {
        font-size: 1.6rem;
    }

    .status-header .weather-display-condition {
        font-size: 0.82rem;
    }
}
/* Welcome header: clock, logo and language in equal columns. */
.new-welcome-hero {
    grid-template-rows: auto auto minmax(0, 1fr);
    align-items: start;
}

.new-home-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 2.4vw, 30px);
    width: 100%;
}

.new-welcome-hero > .new-home-header {
    position: relative;
    z-index: 2;
}

.new-home-header-cell {
    min-width: 0;
}

.new-home-header-clock {
    justify-self: start;
}

.new-home-header-brand {
    display: flex;
    justify-content: center;
    justify-self: stretch;
}

.new-home-header-language {
    justify-self: end;
}

.new-home-header .welcome-page-clock,
.new-home-header .welcome-hero-topbar {
    position: static;
}

.new-home-header .new-home-logo {
    display: block;
    width: min(100%, 300px);
    height: clamp(72px, 12vw, 120px);
    object-fit: contain;
}

.new-home-header .language-dropdown-item {
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.new-home-header .language-dropdown-item:hover,
.new-home-header .language-dropdown-item:focus-visible {
    outline: none;
    background-color: #cfe6ff;
    color: #071d36;
    box-shadow: inset 3px 0 0 #2776ca;
}

.new-home-header .language-dropdown-item:hover small,
.new-home-header .language-dropdown-item:focus-visible small {
    color: #071d36;
}

.new-home-content {
    align-self: start;
}

.new-home-lower {
    align-self: end;
}

@media (max-width: 719px) {
    .new-home-header {
        gap: 8px;
    }

    .new-home-header-language,
    .new-home-header .welcome-hero-topbar,
    .new-home-header .language-dropdown {
        width: 100%;
        max-width: 100%;
    }

    .new-home-header .new-home-logo {
        height: 76px;
    }

    .new-home-header .welcome-page-clock .screensaver-time {
        font-size: 2.1rem;
    }

    .new-home-header .language-dropdown-toggle {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 3px;
        padding: 7px 5px;
        font-size: 0.78rem;
    }

    .new-home-header .language-dropdown-icon {
        width: 16px;
        height: 16px;
    }

    .new-home-header .language-dropdown-caret {
        border-right-width: 4px;
        border-left-width: 4px;
    }

    .new-home-header .language-dropdown-toggle > span:not(.language-dropdown-caret) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
