* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --green: #1e4530;
  --green-light: #2a5c3f;
  --beige: #f5e6a3;
  --bg: #f4f6f5;
  --white: #fff;
  --text: #1a2e20;
  --text-light: #6b7c72;
  --text-muted: #6b7c72;
  --border: #e4ebe6;
  --sidebar-w: 240px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--green);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.sidebar-logo-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--beige);
  font-weight: 400
}

.sidebar-logo-sub {
  display: block;
  font-size: .55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-top: 3px
}

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
  overflow-y: auto
}

.nav-section {
  font-size: .5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  padding: 16px 24px 6px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .5px;
  transition: .2s;
  border-left: 2px solid transparent
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06)
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-left-color: var(--beige)
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin: 4px 0
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 230, 163, .15);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(245, 230, 163, .25);
  letter-spacing: .5px;
  line-height: 1
}

.sidebar-user-info {
  overflow: hidden;
  flex: 1;
  min-width: 0
}

.sidebar-user-name {
  display: block;
  font-size: .73rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.sidebar-user-role {
  display: block;
  font-size: .52rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 230, 163, .45);
  margin-top: 2px
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 19;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  flex-shrink: 0;
  line-height: 0
}

/* ─── MAIN ─── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0
}

/* ─── TOPBAR ─── */
.topbar {
  background: var(--white);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 12px;
  min-width: 0
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden
}

.topbar-left>div {
  min-width: 0;
  overflow: hidden
}

.topbar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.topbar-date {
  font-size: .65rem;
  color: var(--text-light);
  margin-top: 2px;
  text-transform: capitalize
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.topbar-count {
  font-size: .65rem;
  color: var(--text-light);
  letter-spacing: 1px;
  white-space: nowrap
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0
}

.btn-new {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 9px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap
}

.btn-new:hover {
  background: var(--green-light)
}

.lang-switch form {
  display: inline
}

.lang-switch button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-size: .58rem;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: .2s;
  text-transform: uppercase
}

.lang-switch button:hover {
  border-color: var(--green);
  color: var(--green)
}

/* ─── MESSAGES ─── */
.messages-wrapper {
  padding: 16px 32px 0
}

.alert {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: .75rem;
  margin-bottom: 8px
}

.alert-success {
  background: #e8f5ee;
  color: #1e4530;
  border-left: 3px solid #1e4530
}

.alert-error {
  background: #fdf2f2;
  color: #922b21;
  border-left: 3px solid #922b21
}

/* ─── PAGE LAYOUT ─── */
.page-content {
  padding: 28px 32px
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text)
}

.btn-back {
  font-size: .65rem;
  letter-spacing: 1px;
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: .2s
}

.btn-back:hover {
  border-color: var(--green);
  color: var(--green)
}

/* ─── STATS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 32px 0
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border)
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

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

.stat-icon-green {
  background: #e8f5ee;
  color: #1e4530
}

.stat-icon-yellow {
  background: #fef9e7;
  color: #b7950b
}

.stat-icon-blue {
  background: #eaf3fb;
  color: #1a5276
}

.stat-icon-purple {
  background: #f4ecf7;
  color: #6c3483
}

.stat-label {
  font-size: .6rem;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 4px
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text)
}

/* ─── CONTENT GRID ─── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 20px 32px 32px
}

.card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden
}

.card-large {
  overflow: auto
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text)
}

.card-link {
  font-size: .62rem;
  letter-spacing: 1px;
  color: var(--green-light);
  text-decoration: none
}

.card-link:hover {
  text-decoration: underline
}

.card-body {
  padding: 22px
}

/* ─── TABLES ─── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
  min-width: 520px
}

.data-table thead {
  background: #f8faf9
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: .58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle
}

.data-table tr:last-child td {
  border: none
}

.data-table tr:hover td {
  background: #f8faf9
}

.td-name {
  font-weight: 500
}

.td-sub {
  display: block;
  font-size: .62rem;
  color: var(--text-light);
  margin-top: 2px
}

.td-id {
  font-size: .65rem;
  color: var(--text-light);
  font-family: monospace
}

.td-empty {
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: 32px !important
}

/* Sticky first column */
.data-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8faf9
}

.data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff
}

.data-table tr:nth-child(even) td:first-child {
  background: #fbfcfb
}

.data-table tr:hover td:first-child {
  background: #f8faf9
}

/* ─── BADGES ─── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .58rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap
}

.badge-type {
  background: #e8f5ee;
  color: #1e4530
}

.badge-pending {
  background: #fef9e7;
  color: #b7950b
}

.badge-partially_paid {
  background: #fef3e2;
  color: #d68910
}

.badge-confirmed {
  background: #e8f5ee;
  color: #1e4530
}

.badge-cancelled {
  background: #fdf2f2;
  color: #922b21
}

.badge-completed {
  background: #f0f4f2;
  color: #4a6b55
}

.badge-failed {
  background: #fdf2f2;
  color: #922b21
}

/* ─── ACTION BUTTONS ─── */
.action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap
}

.btn-action {
  font-size: .6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: .2s;
  font-weight: 500;
  white-space: nowrap
}

.btn-view {
  background: #e8f5ee;
  color: #1e4530
}

.btn-view:hover {
  background: #d0eadb
}

.btn-edit {
  background: #eaf3fb;
  color: #1a5276
}

.btn-edit:hover {
  background: #d0e8f5
}

.btn-delete {
  background: #fdf2f2;
  color: #922b21
}

.btn-delete:hover {
  background: #f9dede
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
  transition: .15s;
  flex-shrink: 0;
  text-decoration: none
}

.action-btn-green {
  background: rgba(30, 69, 48, .07);
  color: var(--green)
}

.action-btn-green:hover {
  background: rgba(30, 69, 48, .18)
}

.action-btn-gold {
  background: rgba(180, 140, 40, .08);
  color: #b07e20
}

.action-btn-gold:hover {
  background: rgba(180, 140, 40, .2)
}

.action-btn-red {
  background: rgba(180, 40, 40, .07);
  color: #b03030
}

.action-btn-red:hover {
  background: rgba(180, 40, 40, .18)
}

.action-btn-disabled {
  background: rgba(0, 0, 0, .03);
  color: var(--border);
  cursor: not-allowed
}

/* ─── TABLE TOOLBAR ─── */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap
}

.search-wrap {
  position: relative
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  stroke: var(--text-light)
}

.search-input {
  padding: 7px 14px 7px 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  width: 220px;
  transition: border-color .2s
}

.search-input::placeholder {
  color: var(--text-light)
}

.search-input:focus {
  border-color: var(--green)
}

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

.filter-label {
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light)
}

.filter-btn {
  font-size: .65rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-light);
  border: 1px solid var(--border);
  transition: .2s;
  white-space: nowrap
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

.filter-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  letter-spacing: .5px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: .15s;
  white-space: nowrap
}

.filter-pill:hover {
  border-color: var(--green);
  color: var(--green)
}

.filter-pill.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

/* ─── BOOKING TABS ─── */
.booking-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap
}

.booking-tab {
  padding: 10px 18px;
  font-size: .68rem;
  letter-spacing: .5px;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0
}

.booking-tab:hover {
  color: var(--green)
}

.booking-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 500
}

.tab-count {
  background: var(--bg);
  color: var(--text-light);
  padding: 1px 8px;
  border-radius: 20px;
  font-size: .6rem
}

.tab-pending {
  background: #fef9e7;
  color: #b7950b
}

.tab-confirmed {
  background: #e8f5ee;
  color: #1e4530
}

.tab-cancelled {
  background: #fdf2f2;
  color: #922b21
}

.topbar-count {
  font-size: .65rem;
  color: var(--text-light);
  letter-spacing: 1px;
  white-space: nowrap
}

/* ─── ROLES ─── */
.role-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .68rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 600
}

.role-super,
.role-staff {
  background: rgba(245, 230, 163, .25);
  color: #8a6010;
  border: 1px solid rgba(245, 230, 163, .5)
}

.role-client {
  background: rgba(0, 0, 0, .04);
  color: var(--text-muted);
  border: 1px solid var(--border)
}

/* ─── ROOMS LIST ─── */
.rooms-list {
  padding: 8px 0
}

.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border)
}

.room-row:last-child {
  border: none
}

.room-row:hover {
  background: #f8faf9
}

.room-row-name {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text)
}

.room-row-type {
  font-size: .65rem;
  color: var(--text-light);
  margin-top: 2px
}

.room-capacity {
  font-size: .65rem;
  color: var(--green-light);
  background: #e8f5ee;
  padding: 3px 10px;
  border-radius: 20px
}

/* ─── FORM ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.form-label {
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500
}

.form-label-required {
  color: #c0392b
}

.form-control {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .85rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  outline: none
}

.form-control:focus {
  border-color: var(--green)
}

.form-control.is-invalid {
  border-color: #c0392b
}

.form-error {
  font-size: .74rem;
  color: #c0392b
}

.form-grid-dash {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.form-card .card-body {
  padding: 22px
}

.dash-field {
  margin-bottom: 18px
}

.dash-label {
  display: block;
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 500
}

.dash-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  color: var(--text);
  outline: none;
  transition: .2s;
  background: #fff
}

.dash-input:focus {
  border-color: var(--green)
}

.dash-hint {
  font-size: .62rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic
}

.dash-error {
  font-size: .65rem;
  color: #922b21;
  margin-top: 4px
}

.dash-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px
}

.form-preview-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  max-height: 180px;
  margin-bottom: 14px
}

.gallery-formset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.gallery-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg)
}

.gallery-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 32px
}

.btn-save {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: .2s
}

.btn-save:hover {
  background: var(--green-light)
}

.btn-cancel {
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .68rem;
  color: var(--text-light);
  transition: .2s
}

.btn-cancel:hover {
  border-color: var(--green);
  color: var(--green)
}

/* ─── DETAIL VIEW ─── */
.detail-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start
}

.detail-row:last-child {
  border: none
}

.detail-row-full {
  flex-direction: column;
  gap: 6px
}

.detail-label {
  font-size: .58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  min-width: 100px;
  font-weight: 500;
  padding-top: 2px
}

.detail-desc {
  font-size: .78rem;
  line-height: 1.8;
  color: var(--text)
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px
}

.amenity-tag {
  background: #e8f5ee;
  color: #1e4530;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .62rem;
  letter-spacing: 1px
}

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

.gallery-thumb-lg {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px
}

.delete-confirm-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0
}

.delete-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 48px 40px
}

.delete-icon {
  font-size: 2.5rem;
  margin-bottom: 16px
}

.delete-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px
}

.delete-desc {
  font-size: .75rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 32px
}

.delete-actions {
  display: flex;
  justify-content: center;
  gap: 14px
}

.btn-delete-confirm {
  background: #922b21;
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: .2s
}

.btn-delete-confirm:hover {
  background: #7b241c
}

.room-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px
}

.room-thumb-placeholder {
  width: 56px;
  height: 42px;
  background: var(--bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .7rem
}

/* ─── ROOM DETAIL ─── */
.room-detail-hero {
  position: relative;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px
}

.room-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.room-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 45, 30, .85) 0%, rgba(20, 45, 30, .1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px
}

.room-detail-type {
  font-size: .55rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(245, 230, 163, .8);
  margin-bottom: 6px
}

.room-detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px
}

.room-detail-capacity {
  font-size: .7rem;
  color: rgba(255, 255, 255, .7);
  letter-spacing: 1px
}

.room-detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px
}

.room-detail-main,
.room-detail-side {
  display: flex;
  flex-direction: column
}

.room-detail-main .card .card-body {
  padding: 28px 32px
}

.room-detail-desc {
  font-size: .82rem;
  line-height: 1.9;
  color: var(--text-light)
}

.side-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  min-width: 0
}

.side-info-row:last-child {
  border: none
}

.side-info-label {
  font-size: .58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  flex-shrink: 0
}

.side-info-val {
  font-size: .78rem;
  color: var(--text);
  font-weight: 500;
  min-width: 0;
  word-break: break-word;
  text-align: right
}

.side-info-slug {
  font-family: monospace;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .72rem
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: .72rem;
  color: var(--text);
  text-decoration: none;
  transition: .2s
}

.quick-action-btn svg {
  width: 15px;
  height: 15px;
  color: var(--text-light);
  flex-shrink: 0
}

.quick-action-btn:hover {
  background: var(--bg);
  color: var(--green)
}

.quick-action-btn:hover svg {
  color: var(--green)
}

.quick-action-danger {
  color: #922b21
}

.quick-action-danger svg {
  color: #922b21
}

.quick-action-danger:hover {
  background: #fdf2f2;
  color: #7b241c
}

.room-booking-count {
  font-size: .65rem;
  background: #e8f5ee;
  color: #1e4530;
  padding: 3px 12px;
  border-radius: 20px
}

/* ─── BOOKING DETAIL ─── */
.booking-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px
}

.booking-detail-main,
.booking-detail-side {
  display: flex;
  flex-direction: column
}

/* ─── CALENDAR ─── */
.cal-card {
  margin-bottom: 24px;
  overflow: visible
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 16px
}

.cal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  min-width: 180px;
  text-align: center
}

.cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center
}

.cal-nav-btn:hover {
  border-color: var(--green);
  color: var(--green)
}

.cal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.cal-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .62rem;
  color: var(--text-light)
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0
}

.cal-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.cal-inner {
  min-width: 480px
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg);
  padding: 8px 0
}

.cal-days-header span {
  text-align: center;
  font-size: .58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border)
}

.cal-cell {
  background: #fff;
  min-height: 90px;
  padding: 8px 6px;
  position: relative;
  overflow: hidden
}

.cal-cell:hover {
  background: #f8faf9
}

.cal-empty {
  background: var(--bg)
}

.cal-today .cal-day-num {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center
}

.cal-day-num {
  font-size: .72rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center
}

.cal-event {
  display: block;
  font-size: .58rem;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  text-decoration: none;
  transition: opacity .2s
}

.cal-event:hover {
  opacity: .85
}

/* ─── MODALS ─── */
.modal-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px 0
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
  z-index: -1
}

.modal-box {
  position: relative;
  background: #f9f9f7;
  border-radius: 12px;
  padding: 32px 28px 24px;
  width: calc(100% - 40px);
  max-width: 420px;
  margin: auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2)
}

.modal-box-wide {
  max-width: 520px;
  text-align: left
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px
}

.modal-icon-red {
  background: rgba(180, 40, 40, .1);
  color: #b03030
}

.modal-icon-gold {
  background: rgba(180, 140, 40, .1);
  color: #b07e20
}

.modal-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text)
}

.modal-body {
  margin: 0 0 16px;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6
}

.modal-warning {
  padding: 10px 14px;
  background: rgba(180, 140, 40, .08);
  border: 1px solid rgba(180, 140, 40, .2);
  border-radius: 8px;
  font-size: .78rem;
  color: #8a6010;
  margin-bottom: 20px;
  line-height: 1.5
}

.modal-warning-red {
  background: rgba(180, 40, 40, .07);
  border-color: rgba(180, 40, 40, .2);
  color: #b03030
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px
}

.modal-btn-cancel {
  padding: 9px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: .82rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: .15s
}

.modal-btn-cancel:hover {
  border-color: var(--green);
  color: var(--green)
}

.modal-btn-danger {
  padding: 9px 22px;
  border: none;
  border-radius: 6px;
  background: #b03030;
  color: #fff;
  font-size: .82rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: .15s
}

.modal-btn-danger:hover {
  background: #8a2020
}

.modal-btn-gold {
  padding: 9px 22px;
  border: none;
  border-radius: 6px;
  background: #b07e20;
  color: #fff;
  font-size: .82rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: .15s
}

.modal-btn-gold:hover {
  background: #8a6010
}

/* ─── TOAST ─── */
.toast {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: .83rem;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15)
}

/* ═══ BREAKPOINTS ═══ */
@media(max-width:1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:900px) {
  .content-grid {
    grid-template-columns: 1fr
  }

  .room-detail-grid {
    grid-template-columns: 1fr
  }

  /* Sidebar (Info + Actions) floats to top on stacked layout */
  .room-detail-side {
    order: -1
  }

  .room-detail-hero {
    height: 220px
  }

  .booking-detail-grid {
    grid-template-columns: 1fr
  }

  .form-grid-dash {
    grid-template-columns: 1fr
  }

  .gallery-formset {
    grid-template-columns: repeat(2, 1fr)
  }

  .detail-gallery {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:768px) {

  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1)
  }

  .sidebar.open {
    transform: translateX(0)
  }

  .sidebar-overlay {
    display: block
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center
  }

  .main {
    margin-left: 0
  }

  /* ── Topbar pleine largeur sur mobile ── */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 15
  }

  .main {
    margin-left: 0;
    padding-top: 56px
  }

  .topbar-left {
    flex: 1;
    min-width: 0
  }

  .topbar-title {
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .topbar-right {
    gap: 6px;
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: flex-end
  }

  .topbar-right .btn-new,
  .topbar-right .btn-back,
  .topbar-right .btn-action {
    padding: 6px 10px;
    font-size: .56rem;
    letter-spacing: .5px
  }

  .topbar-count {
    display: none
  }

  .topbar-avatar {
    width: 30px;
    height: 30px;
    font-size: .65rem
  }

  /* Messages */
  .messages-wrapper {
    padding: 12px 16px 0
  }

  /* Page */
  .page-content {
    padding: 14px 14px 24px
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px;
    gap: 10px
  }

  .stat-card {
    padding: 14px;
    gap: 10px
  }

  .stat-value {
    font-size: 1.2rem
  }

  .content-grid {
    padding: 14px;
    gap: 12px
  }

  /* Calendar */
  .cal-header {
    padding: 12px 14px
  }

  .cal-legend {
    gap: 8px
  }

  .cal-legend-item {
    font-size: .58rem
  }

  .cal-cell {
    min-height: 60px;
    padding: 4px
  }

  /* Table toolbar */
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
    gap: 8px
  }

  .search-input {
    width: 100%
  }

  .search-wrap {
    width: 100%
  }

  .filter-group {
    flex-wrap: wrap
  }

  /* Gallery */
  .gallery-formset {
    grid-template-columns: 1fr 1fr
  }

  .delete-card {
    padding: 28px 20px
  }

  /* Room detail */
  .room-detail-hero {
    height: 180px;
    margin-bottom: 16px
  }

  .room-detail-hero-overlay {
    padding: 20px
  }

  .room-detail-name {
    font-size: 1.6rem
  }

  .room-detail-grid {
    gap: 12px
  }

  .detail-gallery {
    grid-template-columns: repeat(2, 1fr)
  }

  /* Hide Nights column and email sub on narrow screens */
  .room-booking-table .col-nights {
    display: none
  }

  .room-booking-table .td-sub {
    display: none
  }
}

@media(max-width:480px) {
  .stats-grid {
    grid-template-columns: 1fr
  }

  /* Sur très petit écran, cacher le btn dans le topbar — une action flottante suffit */
  .topbar-count {
    display: none
  }
}

/* ─── CLIENT DETAIL ─── */
.client-detail-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start
}

.client-detail-main,
.client-detail-side {
  display: flex;
  flex-direction: column
}

.client-card-gap {
  margin-top: 16px
}

.client-info-body {
  padding: 0
}

.client-notes-body {
  padding: 24px 28px
}

.client-notes-text {
  font-size: .82rem;
  line-height: 1.9;
  color: var(--text-light);
  white-space: pre-wrap
}

.client-link {
  color: var(--green);
  text-decoration: none
}

.client-link:hover {
  text-decoration: underline
}

.client-empty-bookings {
  padding: 28px;
  text-align: center;
  color: var(--text-light);
  font-size: .8rem
}

@media(max-width:768px) {
  .client-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .client-detail-side {
    order: -1
  }

  .client-notes-body {
    padding: 16px 18px
  }
}