:root {
    --bg-dark: #191712;
    --card-bg: #23211c;
    --border: #3b352a;
    --accent-gold: #c7a446;
    --text-main: #ece9df;
    --text-muted: #aaa28f;
    --line: #3a352b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top, #25221b 0%, var(--bg-dark) 65%);
}

.container2 {
    display: flex;
    min-height: 100vh;
    padding: 10px;
    gap: 10px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 14px;
}

.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo img {
    width: 84px;
    height: 58px;
    object-fit: cover;
}

.logo p {
    margin: 10px 0 0;
    color: var(--accent-gold);
    font-size: 13px;
    letter-spacing: 1.2px;
}

.menu-list,
.nested-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-item a {
    color: inherit;
    text-decoration: none;
}

.menu-item i:first-child {
    width: 14px;
    font-size: 12px;
    text-align: center;
}

.menu-item:hover {
    color: var(--text-main);
    background: #2c281f;
}

.menu-item.active-menu {
    color: var(--text-main);
}

.has-dropdown .arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.has-dropdown.open .arrow {
    transform: rotate(180deg);
}

.nested-list {
    display: none;
    margin: 3px 0 8px;
    /* border-left: 1px solid #b3afa4; */
    margin-left: 18px;
    padding-left: 10px;
}

.nested-list::before{
    content: "";
    position: absolute;
    left: -2px;
    top: -1px;
    bottom: 18px;
    width: 1px;
    background: #b3afa4;
}

.nested-list.open-list {
    display: block;
}

.nested-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4cec1;
    padding: 8px 6px;
    border-radius: 7px;
    font-size: 13px;
}

.nested-item i {
    font-size: 10px;
    color: #8c836f;
}

.nested-arrow-icon {
    display: inline-flex;
    width: 13px;
    height: 16px;
    flex-shrink: 0;
    position: relative;
    left: -19px;
}

.nested-arrow-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nested-item a {
    color: inherit;
    text-decoration: none;
}

.nested-item.nested-link-item {
    padding: 0;
}

.nested-item-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    color: inherit;
    text-decoration: none;
    padding: 8px 6px;
    border-radius: 7px;
}

.nested-item-link:hover {
    color: inherit;
}

.nested-item:hover {
    background: #2c281f;
}

.badge {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--accent-gold);
    color: #1f1b12;
    font-size: 11px;
    font-weight: 700;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 0 0 10px;
    padding: 12px 18px;
}

.top-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.top-header-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.top-header-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: #d6d0c2;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.top-header-back-link i {
    font-size: 12px;
}

.top-header-back-link:hover {
    color: #f1ecde;
    text-decoration: none;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2b271f;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 10px;
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
}

.user-profile .name {
    display: block;
    font-size: 13px;
    line-height: 1.1;
}

.user-profile .role {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.user-profile .fa-chevron-down {
    color: #c8c2b4;
    font-size: 11px;
}

.menu-item.dashboard-active {
    color: #efe8d5;
    background: linear-gradient(180deg, #3b3424 0%, #343022 100%);
    border: 1px solid #5a4b2a;
    box-shadow: inset 0 0 0 1px rgba(210, 172, 80, 0.2);
}

.dashboard-shell {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.dashboard-chart-card {
    border: 1px solid #393427;
    border-radius: 14px;
    background: linear-gradient(180deg, #26231d 0%, #24211b 100%);
    padding: 10px 12px 12px;
}

.dashboard-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dashboard-filter-btn {
    height: 30px;
    border: 1px solid #3f3a2e;
    border-radius: 7px;
    background: #26231d;
    color: #ddd6c4;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    cursor: default;
}

.dashboard-filter-btn i {
    font-size: 10px;
    color: #9e9581;
}

.dashboard-filter-select-label {
    cursor: pointer;
    margin: 0;
    max-width: 100%;
}

.dashboard-region-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    max-width: 140px;
}

.dashboard-region-select:focus {
    outline: none;
}

.dashboard-filter-select-label:focus-within {
    outline: 2px solid rgba(190, 156, 63, 0.45);
    outline-offset: 2px;
    border-radius: 7px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-chart-wrap {
    position: relative;
}

.dashboard-apex-chart {
    width: 100%;
    height: 248px;
    border: 1px solid #343024;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(circle at 30% -130%, rgba(190, 156, 63, 0.18), transparent 65%), #25221b;
}

.dashboard-page .apexcharts-canvas {
    margin-top: 2px;
}

.dashboard-page .apexcharts-gridline {
    stroke: #3a352a;
}

.dashboard-page .apexcharts-xaxis line,
.dashboard-page .apexcharts-yaxis line,
.dashboard-page .apexcharts-yaxis-border {
    stroke: transparent;
}

.dashboard-page .apexcharts-marker {
    filter: drop-shadow(0 0 2px rgba(235, 228, 210, 0.65));
}

.dashboard-page .apexcharts-tooltip {
    background: transparent;
    border: none;
    box-shadow: none;
}

.dashboard-apex-tooltip {
    position: relative;
    background: #e9e6df;
    color: #1d1c18;
    border-radius: 10px;
    padding: 7px 10px;
    min-width: 78px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    font-size: 11px;
    line-height: 1.15;
}

.dashboard-apex-tooltip::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: rotate(45deg);
}

.dashboard-apex-tooltip-month {
    display: block;
    color: #69645a;
    margin-bottom: 2px;
}

.dashboard-apex-tooltip strong {
    font-size: 18px;
    font-weight: 600;
}

.dashboard-kpi-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-kpi-card {
    border: 1px solid #393427;
    border-radius: 12px;
    background: #26231d;
    padding: 12px 14px 12px;
    min-height: 112px;
}

.dashboard-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #b9b19f;
    font-size: 14px;
    margin-bottom: 14px;
}

.dashboard-kpi-head i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #252119;
    color: #8f8877;
    border: 1px solid #3a3529;
    font-size: 12px;
}

.dashboard-kpi-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-kpi-body h3 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 400;
    color: #ece6d8;
    letter-spacing: -0.5px;
}

.dashboard-kpi-card:nth-child(2) .dashboard-kpi-body h3,
.dashboard-kpi-card:nth-child(3) .dashboard-kpi-body h3 {
    font-size: 40px;
}

.dashboard-kpi-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.dashboard-kpi-dot i {
    font-size: 11px;
}

.dashboard-kpi-dot-blue {
    border-color: #2a4f63;
    color: #44a2d2;
}

.dashboard-kpi-dot-amber {
    border-color: #6c5019;
    color: #d79922;
}

.dashboard-kpi-dot-gold {
    border-color: #6d5a29;
    color: #b3933f;
}

.dashboard-kpi-dot-green {
    border-color: #285636;
    color: #3aa865;
}

.table-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
}

.table-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.add-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    background: var(--accent-gold);
    color: #1e1a10;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

thead tr {
    background: #27241d;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

td {
    color: #d6d2c7;
}

.user-td {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 180px;
}

.user-td img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.actions {
    white-space: nowrap;
}

.icon-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #4a4438;
    background: #2a261f;
    color: #b9b19f;
    cursor: pointer;
    margin-right: 6px;
    font-size: 12px;
}

.actions .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icon-btn:last-child {
    margin-right: 0;
}

.icon-btn:hover {
    color: #19150f;
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.user-link {
    color: #d6d2c7;
    text-decoration: none;
}

.user-link:hover {
    color: var(--accent-gold);
}

.user-details-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.details-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.details-breadcrumb .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d8d3c8;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 4px;
}

.details-breadcrumb p {
    margin: 0;
    font-size: 20px;
    color: #f0ece1;
}

.edit-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: var(--accent-gold);
    color: #221d12;
    border-radius: 7px;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.details-head-actions {
    display: inline-flex;
    align-items: center;
}

.details-edit-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.details-tabs {
    display: inline-flex;
    gap: 4px;
    background: #2a271f;
    border: 1px solid #3a3529;
    border-radius: 9px;
    padding: 3px;
    margin-bottom: 18px;
}

.tab-btn {
    border: none;
    background: transparent;
    color: #c1b8a5;
    padding: 7px 13px;
    border-radius: 6px;
    font-size: 12px;
}

.tab-btn.active {
    background: var(--accent-gold);
    color: #221d12;
}

.details-tab-panel {
    display: none;
}

.details-tab-panel.active-panel {
    display: block;
}

.profile-actions {
    max-width: 260px;
    margin-bottom: 18px;
}

.profile-actions .filepond--root {
    margin-bottom: 0;
}

.mini-btn {
    border: 1px solid #4a4335;
    background: #302b22;
    color: #ddd6c9;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 12px;
}

.mini-btn-gold {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #221d12;
}

.details-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 12px;
    color: #aca390;
}

.field-group input {
    width: 100%;
    border: 1px solid #3e382c;
    background: #2b271f;
    color: #ece6d8;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
}

.select-like,
.password-like {
    position: relative;
}

.field-group select {
    width: 100%;
    border: 1px solid #3e382c;
    background: #2b271f;
    color: #ece6d8;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
}

.select-like input,
.select-like select,
.password-like input {
    padding-right: 34px;
}

.select-like i,
.password-like i,
.password-toggle-btn {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #aea694;
}

.select-like i {
    pointer-events: none;
}

.password-toggle-btn {
    border: none;
    background: transparent;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.password-toggle-btn i {
    color: inherit;
}

.field-full {
    grid-column: 1 / -1;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    background-color: #2b271f;
    border: 1px solid #3e382c;
    border-radius: 8px;
    min-height: 44px;
    padding: 5px 8px;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #2b271f;
    opacity: 0.85;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0;
    border: 1px solid #5f5438;
    background: #302b22;
    color: #c4bb9f;
    border-radius: 8px;
    padding: 4px 8px 4px 8px;
    font-size: 12px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #a79c80;
    margin-right: 6px;
    border-right: none;
}

.select2-dropdown {
    background: #2b271f;
    border: 1px solid #3e382c;
}

.select2-container--default .select2-results__option {
    color: #d9d3c6;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #3a3428;
    color: #f0eadc;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #4a4335;
    background: #302b22;
    color: #ece6d8;
}

.filepond--root {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.filepond--panel-root {
    background-color: #2b271f;
    border: 1px solid #3e382c;
    border-radius: 12px;
}

.filepond--drop-label {
    color: #b7af9a;
}

.filepond--label-action {
    color: var(--accent-gold);
}

.filepond--file-action-button {
    background-color: rgba(24, 22, 18, 0.75);
}

.country-chips-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid #3e382c;
    border-radius: 8px;
    background: #2b271f;
    padding: 8px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #5f5438;
    border-radius: 8px;
    background: #302b22;
    color: #c4bb9f;
    font-size: 12px;
    padding: 4px 8px;
}

.country-chip i {
    font-size: 9px;
}

.payment-table-wrap {
    border: 1px solid #3e382c;
    border-radius: 10px;
    overflow: hidden;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.payment-table thead tr {
    background: #2b281f;
}

.payment-table th,
.payment-table td {
    border-bottom: 1px solid #3a352b;
    padding: 9px 12px;
}

.payment-table th {
    font-size: 12px;
    font-weight: 500;
    color: #aba38f;
}

.payment-table tbody tr:last-child td {
    border-bottom: none;
}

.payment-actions .icon-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.ticket-shell {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.ticket-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ticket-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2b271f;
    border: 1px solid #3a3529;
    border-radius: 9px;
    padding: 3px;
}

.ticket-tab-btn {
    border: none;
    background: transparent;
    color: #c1b8a5;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 12px;
}

.ticket-tab-btn.active {
    background: var(--accent-gold);
    color: #211b10;
    font-weight: 600;
}

.ticket-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticket-action-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    background: #353023;
    color: #d7cebd;
    font-size: 13px;
}

.ticket-action-btn.ticket-primary {
    background: var(--accent-gold);
    color: #201a0f;
    font-weight: 600;
}

.ticket-action-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ticket-panel {
    display: none;
    border: 1px solid #3b352a;
    border-radius: 10px;
    padding: 12px;
}

.ticket-panel.active-ticket-panel {
    display: block;
}

.ticket-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #353026;
    padding-bottom: 10px;
}

.ticket-duration-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ticket-label {
    font-size: 11px;
    color: #938a76;
}

.ticket-date-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #3e382c;
    background: #2b271f;
    color: #cfc7b6;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 11px;
    min-width: 102px;
}

.ticket-status-select {
    min-width: 112px;
    border: 1px solid #3e382c;
    background: #2b271f;
    color: #cfc7b6;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 11px;
    outline: none;
}

.ticket-grid {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #3a352b;
    border-radius: 8px;
    overflow: hidden;
}

.ticket-grid thead tr {
    background: #2a261e;
}

.ticket-grid th,
.ticket-grid td {
    border-bottom: 1px solid #373126;
    padding: 10px 10px;
    text-align: left;
    font-size: 13px;
}

.ticket-grid th {
    color: #a79f8b;
    font-size: 12px;
    font-weight: 500;
}

.ticket-grid tbody tr:last-child td {
    border-bottom: none;
}

.view-col {
    width: 88px;
    text-align: center;
}

.view-col .icon-btn {
    margin-right: 0;
}

.ticket-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.2;
}

.ticket-status-pill i {
    font-size: 8px;
}

.status-pending {
    border-color: #7a5b1e;
    color: #efc56b;
    background: rgba(162, 118, 27, 0.14);
}

.status-confirmed {
    border-color: #2b7049;
    color: #81d2a0;
    background: rgba(24, 111, 73, 0.14);
}
.status-soldout {
    border-color: purple;
    color: purple;
    background: rgba(24, 34, 111, 0.14);
}

.status-cancelled {
    border-color: #7b2f2f;
    color: #e28d8d;
    background: rgba(137, 44, 44, 0.14);
}

.booking-ref-code {
    font-size: 12px;
    color: #d7cebd;
    background: #2b271f;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #3e382c;
}

/* ticket.php: Bookings tab is default — hide Tickets actions until that tab is selected */
.ticket-shell .ticket-actions[data-tab-action="tickets"] {
    display: none;
}

.attraction-detail-shell {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.attraction-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d7cfbf;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 10px;
}

.attraction-detail-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.attraction-detail-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.attraction-info-save-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.attraction-detail-panel {
    display: none;
}

.attraction-detail-panel.active-attraction-panel {
    display: block;
}

.attraction-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}

.attraction-info-textarea {
    width: 100%;
    border: 1px solid #3e382c;
    background: #2b271f;
    color: #ece6d8;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    resize: vertical;
}

/* ── Page Details form ── */
.page-details-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-fieldset {
    border: 1px solid #3e382c;
    border-radius: 12px;
    padding: 20px;
    margin: 0;
}

.pd-fieldset legend {
    color: #c7a446;
    font-size: 16px;
    font-weight: 600;
    padding: 0 8px;
}

.pd-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
}

.pd-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 10px;
}

.pd-sub-heading {
    color: #aca390;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #3e382c;
}

.pd-hint {
    color: #817a6d;
    font-size: 12px;
    margin: 0 0 10px;
}

.pd-thumb img {
    max-height: 80px;
    border-radius: 6px;
    border: 1px solid #3e382c;
}

.pd-remove-label {
    font-size: 11px !important;
    color: #e47272 !important;
    cursor: pointer;
}

.attraction-url-preview {
    opacity: 0.92;
    cursor: not-allowed;
}

.slug-check-feedback {
    font-size: 12px;
    margin: 6px 0 0;
}

.slug-check-feedback--ok {
    color: #8fbc8f;
}

.slug-check-feedback--taken {
    color: #e47272;
}

/* ── Repeater cards ── */
.repeater-card {
    background: #23201a;
    border: 1px solid #3e382c;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.repeater-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.repeater-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #c7a446;
}

.repeater-remove-btn {
    background: none;
    border: 1px solid #5a3a3a;
    color: #e47272;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

.repeater-remove-btn:hover {
    background: #3d2020;
}

.repeater-inline-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.repeater-inline-row input {
    flex: 1;
}

.repeater-add-btn,
.repeater-add-inline-btn {
    background: #2b271f;
    border: 1px dashed #5a5344;
    color: #c7a446;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.repeater-add-btn:hover,
.repeater-add-inline-btn:hover {
    background: #353023;
    border-color: #c7a446;
}

.repeater-add-inline-btn {
    padding: 5px 12px;
    font-size: 12px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .pd-grid-2,
    .pd-grid-4 {
        grid-template-columns: 1fr;
    }
}

.attraction-icon-field {
    position: relative;
}

.attraction-icon-field input {
    padding-right: 36px;
}

.attraction-input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #b6ad99;
    font-size: 13px;
}

.calendar-accordion {
    border: 1px solid #3b352a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #242119;
}

.calendar-accordion:not(.is-open) .calendar-accordion-body {
    display: none;
}

.calendar-accordion-header {
    cursor: pointer;
}

.calendar-accordion-toggle .fa-chevron-down {
    transition: transform 0.2s ease;
}

.calendar-accordion.is-open .calendar-accordion-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.calendar-accordion-body {
    border-top: 1px solid #3b352a;
    background: #1f1c17;
}

.calendar-ticket-card {
    border: 1px solid #3b352a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.calendar-ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #2b281f;
}

.calendar-ticket-head h4 {
    margin: 0;
    font-size: 21px;
    font-weight: 300;
    color: #efe8da;
}

.calendar-ticket-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calendar-ticket-actions .icon-btn {
    margin-right: 0;
}

.calendar-ticket-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-ticket-table thead tr {
    background: #2a261e;
}

.calendar-ticket-table th,
.calendar-ticket-table td {
    border-bottom: 1px solid #373126;
    padding: 10px 12px;
    text-align: left;
}

.calendar-ticket-table th {
    color: #a79f8b;
    font-size: 12px;
    font-weight: 500;
}

.calendar-ticket-table tbody tr:last-child td {
    border-bottom: none;
}

.calendar-details-modal .modal-content {
    background: #26231d;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 14px;
}

.calendar-details-modal .modal-header {
    border-bottom: 1px solid #3a352b;
    padding: 14px 18px;
}

.calendar-details-modal .modal-title {
    font-size: 22px;
    font-weight: 500;
    color: #f0ebe0;
}

.calendar-details-modal .modal-body {
    padding: 16px 18px 20px;
}

.calendar-modal-title-field {
    margin-bottom: 16px;
}

.calendar-modal-title-field label {
    font-size: 12px;
    color: #aca390;
    margin-bottom: 6px;
    display: block;
}

.calendar-modal-title-field input {
    width: 100%;
    border: 1px solid #3e382c;
    background: #2b271f;
    color: #ece6d8;
    border-radius: 8px;
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
}

.calendar-modal-table-wrap {
    border: 1px solid #3b352a;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.calendar-modal-table thead tr {
    background: #2a261e;
}

.calendar-modal-table th,
.calendar-modal-table td {
    border-bottom: 1px solid #373126;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.calendar-modal-table th {
    color: #a79f8b;
    font-size: 12px;
    font-weight: 500;
}

.calendar-modal-table tbody tr:last-child td {
    border-bottom: none;
}

.calendar-modal-day-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    color: #e3dccd;
    font-weight: 400;
}

.calendar-modal-day-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.calendar-modal-time,
.calendar-modal-interval {
    width: 100%;
    max-width: 140px;
    border: 1px solid #3e382c;
    background: #2b271f;
    color: #ece6d8;
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 10px;
    outline: none;
}

.calendar-modal-interval {
    cursor: pointer;
}

.calendar-modal-time:disabled,
.calendar-modal-interval:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.calendar-modal-table .mini-btn {
    white-space: nowrap;
}

.attraction-ticket-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.attraction-mini-card {
    border: 1px solid #3b352a;
    border-radius: 10px;
    overflow: hidden;
    background: #242119;
}

.attraction-mini-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #373126;
}

.attraction-mini-card-head h4 {
    margin: 0;
    padding: 10px 12px;
    font-size: 28px;
    font-weight: 300;
    color: #ece5d6;
    flex: 1;
    min-width: 0;
}

.attraction-mini-card-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 0;
}

.attraction-mini-card-head-actions .mini-btn {
    white-space: nowrap;
}

input.ticket-category-title-locked {
    cursor: not-allowed;
    opacity: 0.72;
}

.attraction-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.attraction-mini-table thead tr {
    background: #2a261e;
}

.attraction-mini-table th,
.attraction-mini-table td {
    border-bottom: 1px solid #373126;
    padding: 10px 10px;
    font-size: 13px;
    text-align: left;
}

.attraction-mini-table th {
    color: #a79f8b;
    font-size: 12px;
    font-weight: 500;
}

.attraction-mini-table tbody tr:last-child td {
    border-bottom: none;
}

.attraction-mini-table .actions .icon-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.attraction-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.2;
}

.attraction-status-pill.active {
    border-color: #2b7049;
    color: #81d2a0;
    background: rgba(24, 111, 73, 0.14);
}

.attraction-status-pill.inactive {
    border-color: #7b2f2f;
    color: #e28d8d;
    background: rgba(137, 44, 44, 0.14);
}

.attraction-ticket-heading {
    margin: 14px 0 10px;
    font-size: 28px;
    font-weight: 300;
    color: #ece5d6;
}

#attraction-tickets-panel:not(.is-tickets-editing) .js-ticket-cell-edit {
    display: none !important;
}

#attraction-tickets-panel.is-tickets-editing .js-ticket-cell-display {
    display: none !important;
}

.attraction-price-input {
    width: 100%;
    max-width: 7rem;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #3b352a;
    background: #1a1814;
    color: #ece5d6;
    font-size: 13px;
}

.attraction-ticket-calendar-select {
    width: 100%;
    max-width: 14rem;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #3b352a;
    background: #1a1814;
    color: #ece5d6;
    font-size: 12px;
}

.attraction-ticket-media-edit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.attraction-ticket-upload-label {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.attraction-ticket-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.attraction-ticket-clear-media {
    font-size: 12px;
    color: #a79f8b;
    cursor: pointer;
    margin: 0;
}

.attraction-pdf-btn-link {
    text-decoration: none;
    display: inline-flex;
}

.attraction-price-wrap {
    border: 1px solid #3b352a;
    border-radius: 10px;
    overflow: auto;
}

.attraction-price-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.attraction-price-table thead tr {
    background: #2a261e;
}

.attraction-price-table th,
.attraction-price-table td {
    border-bottom: 1px solid #373126;
    padding: 10px 10px;
    text-align: left;
    font-size: 13px;
}

.attraction-price-table th {
    color: #a79f8b;
    font-size: 12px;
    font-weight: 500;
}

.attraction-price-table tbody tr:last-child td {
    border-bottom: none;
}

.attraction-ticket-calendar-cell {
    vertical-align: top;
}

.calendar-slot-inventory {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #a69f8c;
}

.calendar-slot-inventory div + div {
    margin-top: 2px;
}

.attraction-pdf-btn {
    border: 1px solid #5f563f;
    border-radius: 6px;
    background: #2f2a1f;
    color: #d8d0bd;
    font-size: 11px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.attraction-pdf-btn i {
    font-size: 11px;
}

.buy-ticket-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.buy-ticket-card .ticket-tab-btn[role="presentation"] {
    display: inline-flex;
    align-items: center;
    cursor: default;
    user-select: none;
}

.buy-ticket-panel {
    border: 1px solid #3b352a;
    border-radius: 10px;
    padding: 14px;
}

.buy-ticket-form-section {
    margin-bottom: 18px;
}

.buy-ticket-form-section:last-child {
    margin-bottom: 0;
}

.buy-ticket-form-section h3 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 300;
    color: #e8e2d4;
}

.buy-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.buy-ticket-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.buy-ticket-field.full {
    grid-column: 1 / -1;
}

.buy-ticket-field label {
    font-size: 12px;
    color: #b2a996;
}

.buy-ticket-input-wrap {
    position: relative;
}

.buy-ticket-input-wrap input,
.buy-ticket-input-wrap textarea {
    width: 100%;
    border: 1px solid #3e382c;
    border-radius: 8px;
    background: #2d2921;
    color: #ede6d8;
    font-size: 14px;
    outline: none;
}

.buy-ticket-input-wrap input {
    height: 40px;
    padding: 10px 36px 10px 12px;
}

.buy-ticket-input-wrap textarea {
    min-height: 96px;
    resize: none;
    padding: 10px 36px 10px 12px;
    line-height: 1.4;
}

.buy-ticket-copy-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbc2b1;
    font-size: 13px;
    pointer-events: none;
}

.buy-ticket-input-wrap.area .buy-ticket-copy-icon {
    top: 14px;
    transform: none;
}

.buy-ticket-attachments {
    border: 1px solid #3d3628;
    border-radius: 10px;
    overflow: hidden;
}

.buy-ticket-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: #2b271f;
    border-bottom: 1px solid #3d3628;
}

.buy-ticket-file-item:last-child {
    border-bottom: none;
}

.buy-ticket-file-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buy-ticket-file-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #554c39;
    background: #342f25;
    color: #d4c38a;
    font-size: 13px;
}

.buy-ticket-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.buy-ticket-file-name {
    font-size: 19px;
    line-height: 1;
    color: #ece5d6;
    font-weight: 300;
}

.buy-ticket-file-sub {
    font-size: 11px;
    color: #9e947f;
}

.buy-ticket-download {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid #8f7530;
    background: var(--accent-gold);
    color: #201a0f;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.status-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 9, 6, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1400;
}

.status-modal-overlay.open-status-modal {
    display: flex;
}

.status-modal-card {
    width: min(760px, 100%);
    background: #26231c;
    border: 1px solid #4a4335;
    border-radius: 14px;
    padding: 14px 16px 12px;
    position: relative;
}

.status-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #d5cebe;
    font-size: 13px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
}

.status-modal-card h4 {
    margin: 0 0 12px;
    font-size: 31px;
    line-height: 1.1;
    font-weight: 300;
    color: #eee6d8;
}

.status-modal-field {
    margin-bottom: 12px;
}

.status-modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 23px;
    font-weight: 300;
    color: #d8d0bf;
}

.status-select-wrap {
    position: relative;
}

.status-modal-select,
.status-modal-input,
.status-modal-textarea {
    width: 100%;
    border: 1px solid #3f392c;
    border-radius: 8px;
    background: #2d2920;
    color: #e8e1d2;
    outline: none;
}

.status-modal-select,
.status-modal-input {
    height: 42px;
    padding: 9px 36px 9px 10px;
    font-size: 14px;
}

.status-select-wrap i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b9af9d;
    font-size: 12px;
    pointer-events: none;
}

.status-modal-textarea {
    min-height: 80px;
    resize: none;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.soldout-hours-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.soldout-hour-chip {
    border: 1px solid #7f6b2f;
    border-radius: 8px;
    background: #574c26;
    color: #f0e8d7;
    font-size: 12px;
    line-height: 1;
    padding: 8px 12px;
}

.soldout-hour-add {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #927d35;
    background: var(--accent-gold);
    color: #201a0f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    padding: 0;
}

.status-variant-panel {
    display: none;
}

.status-variant-panel.active-status-panel {
    display: block;
}

.status-upload-drop {
    border: 1px dashed #9b863c;
    border-radius: 10px;
    min-height: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2c281f;
    text-align: center;
}

.status-upload-icon {
    position: relative;
    display: inline-flex;
    margin-bottom: 8px;
    color: #d7cfbe;
    font-size: 31px;
}

.status-upload-icon .fa-circle-plus {
    position: absolute;
    right: -8px;
    bottom: -1px;
    color: var(--accent-gold);
    font-size: 13px;
}

.status-upload-drop p {
    margin: 0 0 3px;
    color: #e3ddcf;
    font-size: 13px;
}

.status-upload-drop small {
    color: #a89f8c;
    font-size: 10px;
}

.status-upload-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-upload-item {
    border: 1px solid #3e382b;
    border-radius: 10px;
    padding: 8px 10px;
    background: #2b271f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}

.status-upload-meta {
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-upload-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #5a513e;
    background: #322d24;
    color: #d4c588;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.status-upload-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-upload-file-name {
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
    color: #ebe4d5;
}

.status-upload-file-sub {
    font-size: 10px;
    color: #9f957f;
}

.status-file-action {
    border: none;
    background: transparent;
    color: #d5cebd;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
}

.status-file-action.danger {
    color: #e55e5e;
}

.status-loading-side {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-upload-percent {
    font-size: 11px;
    color: #bcb29f;
}

.status-upload-item.is-loading {
    padding-bottom: 14px;
}

.status-upload-progress {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: #4b432f;
    overflow: hidden;
}

.status-upload-progress span {
    display: block;
    height: 100%;
    width: 80%;
    background: var(--accent-gold);
}

.status-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.calendar-shell {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.calendar-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.calendar-breadcrumb-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d7d0c2;
    font-size: 13px;
}

.calendar-back-link i {
    font-size: 11px;
    color: #b8af9c;
}

.calendar-breadcrumb-wrap h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 500;
    color: #f0ece1;
}

.calendar-filter-row {
    margin-bottom: 12px;
}

.calendar-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.calendar-filter-label {
    font-size: 28px;
    font-weight: 300;
    color: #d8d2c4;
}

.calendar-select {
    min-width: 250px;
    border: 1px solid #4f4739;
    background: #2c281f;
    color: #d2cab8;
    border-radius: 8px;
    padding: 10px 34px 10px 12px;
    font-size: 13px;
    outline: none;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    border: 1px solid #3e382c;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-grid-wrap {
    padding: 14px;
    border-right: 1px solid #3a352b;
}

.calendar-month-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}

.month-nav-btn {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid #484132;
    background: #302b22;
    color: #c6bda9;
    font-size: 10px;
}

.month-text {
    font-size: 21px;
    font-weight: 300;
    color: #d2ccbd;
}

.calendar-week-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 4px;
}

.calendar-week-head span {
    background: #302b22;
    border: 1px solid #4d4537;
    border-radius: 8px 8px 0 0;
    color: #d8d2c3;
    text-align: center;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    padding: 10px 6px;
}

.calendar-dates-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-day {
    border: 1px solid transparent;
    border-radius: 10px;
    min-height: 107px;
    text-align: left;
    padding: 8px 10px;
    color: #f7f7f7;
    font-size: 28px;
    font-weight: 300;
}

.calendar-day span {
    display: inline-block;
    line-height: 1;
}

.date-available {
    background: #2d8649;
}

.date-unavailable {
    background: #c13d3d;
}

.date-booking-blocked {
    background: #c13d3d;
}

.calendar-day.active-date {
    border-color: #e0bb55;
    box-shadow: inset 0 0 0 1px rgba(21, 18, 12, 0.28);
}

.calendar-day:disabled {
    cursor: not-allowed;
}

.calendar-day-spacer {
    min-height: 107px;
    border-radius: 10px;
}

.calendar-hours-wrap {
    padding: 14px;
}

.hours-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hours-head-row h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    color: #d8d2c4;
}

.hours-shift-tabs {
    display: inline-flex;
    align-items: center;
    background: #2b271f;
    border: 1px solid #4a4335;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.shift-tab {
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #a69f8c;
    font-size: 11px;
    padding: 4px 10px;
}

.shift-tab.active {
    background: var(--accent-gold);
    color: #201a0f;
}

.hours-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.hour-slot-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #f2f2f2;
    padding: 11px 6px;
}

.hour-available {
    background: #2f8951;
}

.hour-unavailable {
    background: #c53e3e;
}

/* Scraping calendar hours panel: clear green/red (Bootstrap loads after style.css) */
.calendar-hours-wrap .hour-slot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.calendar-hours-wrap .hour-slot-btn.hour-available {
    background: #2f8951 !important;
    color: #f2f2f2 !important;
    border-color: rgba(30, 70, 40, 0.45);
    flex-direction:column;
}

.calendar-hours-wrap .hour-slot-btn.hour-unavailable {
    background: #b83232 !important;
    color: #fff !important;
    border: 1px solid rgba(120, 30, 30, 0.85);
    /* box-shadow: inset 4px 0 0 #ff6b6b; */
}

.calendar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 5, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1200;
}

.calendar-modal-overlay.open-modal {
    display: flex;
}

.calendar-modal-card {
    width: min(560px, 100%);
    background: #2a261f;
    border: 1px solid #4b4436;
    border-radius: 12px;
    padding: 18px;
    position: relative;
}

.calendar-modal-card h5 {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 300;
    color: #ede7d8;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #c3baa8;
    font-size: 11px;
}

.modal-field {
    margin-bottom: 13px;
}

.modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 23px;
    font-weight: 300;
    color: #d6cebc;
}

.modal-date-wrap {
    position: relative;
}

.modal-date-wrap input {
    width: 100%;
    border: 1px solid #4a4335;
    border-radius: 8px;
    background: #2f2b22;
    color: #e8e1d2;
    padding: 11px 36px 11px 12px;
    font-size: 14px;
    outline: none;
}

.modal-date-wrap i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bdb4a2;
    font-size: 13px;
}

.availability-switch {
    display: inline-flex;
    align-items: center;
}

.availability-switch input {
    display: none;
}

.switch-slider {
    width: 44px;
    height: 24px;
    border-radius: 99px;
    background: #514c3d;
    border: 1px solid #5d543f;
    position: relative;
}

.switch-slider::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 2px;
    background: #998f79;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.availability-switch input:checked+.switch-slider::before {
    transform: translateX(20px);
    background: var(--accent-gold);
}

.modal-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.modal-slot-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #5a523f;
    border-radius: 8px;
    background: #3a3428;
    color: #ded6c3;
    font-size: 12px;
    padding: 7px 8px;
    min-height: 34px;
}

.modal-slot-item input {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-gold);
}

.modal-slot-item:has(input:checked) {
    border-color: var(--accent-gold);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.modal-save-btn {
    border: none;
}

@media (max-width: 1200px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-kpi-body h3 {
        font-size: 34px;
    }

    .dashboard-kpi-card:nth-child(2) .dashboard-kpi-body h3,
    .dashboard-kpi-card:nth-child(3) .dashboard-kpi-body h3 {
        font-size: 30px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 980px;
    }

    .payment-table {
        min-width: 760px;
    }

    .ticket-shell {
        overflow-x: auto;
    }

    .ticket-grid {
        min-width: 980px;
    }

    .attraction-detail-shell {
        overflow-x: auto;
    }

    .attraction-ticket-top-grid {
        grid-template-columns: 1fr;
    }

    .attraction-price-table {
        min-width: 980px;
    }

    .calendar-filter-label,
    .month-text,
    .hours-head-row h4 {
        font-size: 20px;
    }

    .calendar-week-head span {
        font-size: 18px;
    }

    .calendar-day {
        min-height: 82px;
        font-size: 22px;
    }

    .hours-slot-grid,
    .modal-slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calendar-modal-card h5,
    .modal-field label {
        font-size: 20px;
    }

    .buy-ticket-form-section h3 {
        font-size: 22px;
    }

    .buy-ticket-file-name {
        font-size: 15px;
    }

    .status-modal-card h4,
    .status-modal-field label,
    .status-upload-file-name {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .dashboard-page .top-header {
        padding: 4px 0 10px;
    }

    .dashboard-page .top-header h2 {
        font-size: 24px;
    }

    .dashboard-shell {
        padding: 10px;
    }

    .dashboard-apex-chart {
        height: 220px;
    }

    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .container2 {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .details-head-row {
        flex-direction: column;
        gap: 10px;
    }

    .details-form-grid {
        grid-template-columns: 1fr;
    }

    .ticket-head-row,
    .ticket-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .attraction-detail-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .attraction-info-grid {
        grid-template-columns: 1fr;
    }

    .calendar-head-row {
        flex-direction: column;
    }

    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .calendar-grid-wrap {
        border-right: none;
        border-bottom: 1px solid #3a352b;
    }

    .calendar-hours-wrap {
        border-right: none;
    }

    .hours-slot-grid,
    .modal-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buy-ticket-grid {
        grid-template-columns: 1fr;
    }

    .status-modal-card {
        padding: 12px;
    }

    .status-modal-field label {
        font-size: 16px;
    }
}

/* ---------- Login (standalone gate) ---------- */

body.login-page {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.login-outer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-shell {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.login-brand {
    position: relative;
    padding: 44px 36px;
    background:
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(199, 164, 70, 0.22), transparent 55%),
        linear-gradient(165deg, #2a261c 0%, #1c1a15 100%);
    border-right: 1px solid var(--line);
}

.login-brand-inner {
    max-width: 320px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.login-brand-logo {
    width: 96px;
    height: auto;
    object-fit: contain;
    align-self: flex-start;
}

.login-brand-tagline {
    margin: 0;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.login-brand-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.login-form-panel {
    padding: 44px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-main);
}

.login-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.45;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .field-group input:focus {
    border-color: rgba(199, 164, 70, 0.55);
    box-shadow: 0 0 0 2px rgba(199, 164, 70, 0.12);
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: -4px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.login-forgot {
    font-size: 13px;
    color: var(--accent-gold);
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
    color: #d4b85a;
}

.login-submit-btn {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-gold);
    color: #1f1b12;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.login-submit-btn:hover {
    background: #d4b85a;
}

.login-submit-btn:active {
    transform: translateY(1px);
}

@media (max-width: 767.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .login-brand {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 28px 24px;
    }

    .login-brand-inner {
        max-width: none;
    }

    .login-form-panel {
        padding: 28px 22px 32px;
    }
}

/* Attraction admin: ES field + translate trigger */
.attraction-i18n-input-group .form-control,
.attraction-i18n-input-group textarea.form-control {
    min-height: 38px;
}

.attraction-i18n-input-group .attraction-i18n-trigger {
    flex-shrink: 0;
}

/* Translations modal above ticket category / calendar modals when both are open */
#attractionI18nModal.modal {
    z-index: 2060;
}