:root {
  --rrh-primary: #1f7a6e;
  --rrh-primary-dark: #155e54;
  --rrh-primary-light: #e7f3f1;
  --rrh-accent: #e0a458;
  --rrh-dark: #1c2b2a;
  --rrh-muted: #6b7c7a;
  --rrh-bg: #f5f7f7;
  --rrh-border: #e3e9e8;
  --rrh-success: #2e9e6b;
  --rrh-danger: #d9534f;
  --rrh-warning: #e0a458;
}

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  background: var(--rrh-bg);
  color: var(--rrh-dark);
}

a { text-decoration: none; }

/* ===== Buttons & accents ===== */
.btn-primary {
  background: var(--rrh-primary);
  border-color: var(--rrh-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--rrh-primary-dark);
  border-color: var(--rrh-primary-dark);
}
.btn-outline-primary {
  color: var(--rrh-primary);
  border-color: var(--rrh-primary);
}
.btn-outline-primary:hover {
  background: var(--rrh-primary);
  border-color: var(--rrh-primary);
}
.text-primary { color: var(--rrh-primary) !important; }
.bg-primary-soft { background: var(--rrh-primary-light); }
.text-accent { color: var(--rrh-accent) !important; }

/* ===== Public navbar ===== */
.rrh-navbar {
  background: #fff;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}
.rrh-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--rrh-primary);
}
.rrh-brand .badge {
  background: var(--rrh-accent);
  font-size: .6rem;
  vertical-align: middle;
}

/* ===== Hero ===== */
.rrh-hero {
  background: linear-gradient(135deg, var(--rrh-primary) 0%, var(--rrh-primary-dark) 100%);
  color: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}
.rrh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 80L80 0' stroke='%23ffffff10' stroke-width='2'/%3E%3C/svg%3E");
  opacity: .4;
}
.rrh-hero > * { position: relative; z-index: 1; }

/* ===== Rest house cards ===== */
.rh-card {
  background: #fff;
  border: 1px solid var(--rrh-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.rh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}
.rh-card .rh-thumb {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.rh-price {
  font-weight: 800;
  color: var(--rrh-primary);
}
.rh-chip {
  background: var(--rrh-primary-light);
  color: var(--rrh-primary-dark);
  border-radius: 50rem;
  padding: .2rem .7rem;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ===== Gallery ===== */
.rh-gallery-main {
  border-radius: 1rem;
  height: 380px;
  width: 100%;
  object-fit: cover;
}
.rh-gallery-thumb {
  border-radius: .6rem;
  height: 84px;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s;
}
.rh-gallery-thumb:hover,
.rh-gallery-thumb.active { opacity: 1; outline: 3px solid var(--rrh-primary); }

/* ===== Calendar legend ===== */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .25rem;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-inline-end: .25rem;
  font-size: .8rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--rrh-border);
  border-radius: 999px;
  padding: .15rem .6rem;
}
.cal-dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.cal-dot.available { background: var(--rrh-success); }
.cal-dot.booked { background: var(--rrh-danger); }
.cal-dot.blocked { background: #9aa5a3; }

/* ===== Calendar card ===== */
#calendar {
  background: #fff;
  border: 1px solid var(--rrh-border);
  border-radius: 14px;
  padding: .6rem;
  box-shadow: 0 4px 14px rgba(28, 43, 42, .05);
}
.fc { font-size: .9rem; }
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: .75rem; }
.fc .fc-toolbar-title { font-size: 1.05rem; font-weight: 700; color: var(--rrh-dark); }
.fc .fc-button-primary {
  background: var(--rrh-primary-light);
  border-color: var(--rrh-primary-light);
  color: var(--rrh-primary-dark);
  padding: .25rem .5rem;
  box-shadow: none;
}
.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--rrh-primary);
  border-color: var(--rrh-primary);
  color: #fff;
}
.fc .fc-button-primary:focus { box-shadow: 0 0 0 .15rem rgba(31, 122, 110, .25); }
.fc .fc-col-header-cell-cushion {
  font-weight: 700;
  font-size: .78rem;
  color: var(--rrh-muted);
  padding: .35rem 0;
}
.fc .fc-daygrid-day-frame {
  position: relative;
  min-height: 54px;
  padding: 2px;
}
.fc .fc-daygrid-day-top { justify-content: center; }
.fc .fc-daygrid-day-number {
  font-weight: 700;
  font-size: .82rem;
  padding: .2rem;
  color: var(--rrh-dark);
}
.fc .fc-day-today { background: transparent !important; }
.fc .fc-day-today .fc-daygrid-day-number {
  background: var(--rrh-primary);
  color: #fff;
  border-radius: 50%;
  width: 1.55rem; height: 1.55rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Status background tints */
.fc .fc-day-available { background: #eef9f3 !important; cursor: pointer; }
.fc .fc-day-booked { background: #fdecec !important; }
.fc .fc-day-blocked {
  background: repeating-linear-gradient(-45deg, #eef1f0, #eef1f0 6px, #e6eae9 6px, #e6eae9 12px) !important;
}
.fc .fc-day-available:hover { background: #ddf2e8 !important; }
.fc .fc-daygrid-day.fc-day-selected { outline: 2px solid var(--rrh-primary); outline-offset: -2px; border-radius: 8px; }

/* Status label inside each cell */
.fc-status-tag {
  position: absolute;
  inset-inline: 3px;
  bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  padding: .12rem .15rem;
  border-radius: 5px;
  white-space: nowrap;
}
.fc-status-tag i { font-size: .62rem; }
.fc-day-available-tag { background: rgba(46, 158, 107, .15); color: #1d7a50; }
.fc-day-booked-tag { background: rgba(217, 83, 79, .16); color: #b53c38; }
.fc-day-blocked-tag { background: rgba(108, 124, 122, .18); color: #5a6664; }

/* Price tag inside available cells */
.fc-day-price-tag {
  background: rgba(46, 158, 107, .14);
  color: #1d7a50;
  gap: .12rem;
}
.fc-day-price-tag .tag-price { font-weight: 800; font-size: .62rem; }
.fc-day-price-tag .tag-cur { font-size: .5rem; opacity: .8; }

/* Booking summary box */
.booking-summary {
  background: var(--rrh-primary-light);
  border: 1px solid var(--rrh-border);
  border-radius: 12px;
  padding: .75rem .9rem;
}

@media (max-width: 575.98px) {
  #calendar { padding: .4rem; }
  .fc { font-size: .82rem; }
  .fc .fc-toolbar-title { font-size: .95rem; }
  .fc .fc-daygrid-day-frame { min-height: 46px; }
  .fc .fc-daygrid-day-number { font-size: .75rem; }
  .fc-status-tag .tag-txt { display: none; }
  .fc-status-tag { inset-inline: auto; inset-inline-end: 3px; bottom: 3px; padding: .1rem; }
  .fc-status-tag i { font-size: .72rem; }
  .fc-day-price-tag { inset-inline: 2px; bottom: 2px; padding: .08rem; }
  .fc-day-price-tag .tag-price { font-size: .56rem; }
  .fc-day-price-tag .tag-cur { display: none; }
  .cal-legend span { font-size: .72rem; padding: .1rem .45rem; }
}

/* ===== Admin layout ===== */
.admin-body { background: var(--rrh-bg); }
.admin-sidebar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 260px;
  height: 100vh;
  background: var(--rrh-dark);
  color: #cdd8d6;
  padding: 1rem 0;
  overflow-y: auto;
  z-index: 1040;
  transition: transform .25s;
}
.admin-sidebar .sb-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  padding: .5rem 1.5rem 1.25rem;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar .sb-brand .badge { background: var(--rrh-accent); }
.admin-sidebar .nav-link {
  color: #aebbb9;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  border-inline-start: 3px solid transparent;
}
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(31,122,110,.25);
  border-inline-start-color: var(--rrh-primary);
}
.admin-sidebar .sb-section {
  font-size: .72rem;
  text-transform: uppercase;
  color: #6b7c7a;
  padding: 1rem 1.5rem .3rem;
  letter-spacing: .05em;
}

.admin-main {
  margin-inline-start: 260px;
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.admin-content { padding: 1.5rem; }

.stat-card {
  background: #fff;
  border: 1px solid var(--rrh-border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: .8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-value { font-size: 1.8rem; font-weight: 800; }

.card-soft {
  background: #fff;
  border: 1px solid var(--rrh-border);
  border-radius: 1rem;
}

.table thead th {
  color: var(--rrh-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.badge-status { font-size: .72rem; padding: .35rem .6rem; border-radius: 50rem; }
.badge-pending { background: #fff3e0; color: #b9760d; }
.badge-confirmed { background: #e3f6ec; color: #1d7a4c; }
.badge-rejected { background: #fbeaea; color: #b13b37; }
.badge-completed { background: #e7eef9; color: #2d4a7c; }

/* ===== Star rating ===== */
.star-rate { direction: rtl; display: inline-flex; gap: .25rem; font-size: 1.6rem; }
.star-rate i { color: #d9c48a; cursor: pointer; transition: transform .1s; }
.star-rate i.on { color: #e0a458; }
.star-rate i:hover { transform: scale(1.15); }
.star-static i { color: #e0a458; font-size: 1rem; }
.star-static i.off { color: #d6dcdb; }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1035;
}

@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(100%); }
  [dir="ltr"] .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-inline-start: 0; }
  .sidebar-backdrop.show { display: block; }
}

/* ===== Docs ===== */
.docs-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.docs-sidebar .nav-link {
  color: var(--rrh-muted);
  padding: .3rem .75rem;
  border-radius: .4rem;
  font-size: .92rem;
}
.docs-sidebar .nav-link:hover { background: var(--rrh-primary-light); color: var(--rrh-primary-dark); }
.docs-sidebar .nav-link.active { background: var(--rrh-primary); color: #fff; }
.docs-section { scroll-margin-top: 80px; }
.docs-section h2 {
  border-bottom: 2px solid var(--rrh-primary-light);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  color: var(--rrh-primary-dark);
}
.mermaid {
  background: #fff;
  border: 1px solid var(--rrh-border);
  border-radius: .75rem;
  padding: 1rem;
  text-align: center;
  margin: 1rem 0;
}
.footer-note {
  color: var(--rrh-muted);
  font-size: .85rem;
}

/* ===== Account / Tenant area ===== */
.rrh-card {
  background: #fff;
  border-radius: 1rem;
}
.rrh-account-nav .list-group-item {
  color: var(--rrh-dark);
  padding: .65rem .85rem;
  margin-bottom: .15rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rrh-account-nav .list-group-item i { color: var(--rrh-primary); width: 1.1rem; text-align: center; }
.rrh-account-nav .list-group-item:hover { background: var(--rrh-primary-light); }
.rrh-account-nav .list-group-item.active {
  background: var(--rrh-primary);
  border-color: var(--rrh-primary);
  color: #fff;
}
.rrh-account-nav .list-group-item.active i { color: #fff; }

/* ===== Account dashboard ===== */
.rrh-dash-hero { padding-bottom: 1.25rem; border-bottom: 1px solid #eef2f1; }
.rrh-dash-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
  border: 2px solid var(--rrh-primary-light);
}
.rrh-dash-avatar--empty {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rrh-primary-light); color: var(--rrh-primary); font-size: 1.6rem;
}

.rrh-stat {
  position: relative; height: 100%;
  background: #fff; border: 1px solid #eef2f1; border-radius: 1rem;
  padding: 1rem; text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
.rrh-stat:hover { box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.06); transform: translateY(-2px); }
.rrh-stat > i { font-size: 1.4rem; }
.rrh-stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1.1; margin-top: .25rem; }
.rrh-stat-label { font-size: .82rem; color: var(--rrh-muted); }
.rrh-stat--primary > i { color: var(--rrh-primary); }
.rrh-stat--warning > i { color: #d99405; }
.rrh-stat--success > i { color: #1a8754; }
.rrh-stat--info > i    { color: #2a8fb7; }

.rrh-action {
  background: #fff; border: 1px solid #eef2f1; border-radius: 1rem;
  padding: 1.25rem;
}
.rrh-action-icon {
  width: 44px; height: 44px; border-radius: .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rrh-primary-light); color: var(--rrh-primary);
  font-size: 1.25rem; margin-bottom: .75rem;
}
.rrh-action-icon--alt { background: #fff3e0; color: #d99405; }

.rrh-section {
  background: #fff; border: 1px solid #eef2f1; border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

/* ===== Home feature stage (slideshow + compact search) ===== */
.rrh-stage { position: relative; padding-bottom: 2.6rem; }
.rrh-stage .carousel-item { transition: opacity .9s ease; }
.rrh-slide {
  position: relative; min-height: 480px; overflow: hidden;
  display: flex; align-items: center; color: #fff;
}
.slide-a { background: linear-gradient(120deg, #0f6f63 0%, #16443f 100%); }
.slide-b { background: linear-gradient(120deg, #19586e 0%, #102a3a 100%); }
.slide-c { background: linear-gradient(120deg, #6a4d12 0%, #2a2012 100%); }
.slide-body { position: relative; z-index: 3; max-width: 760px; }
.slide-tag {
  display: inline-block; background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 50rem;
  padding: .35rem 1rem; font-weight: 700; font-size: .85rem; margin-bottom: 1rem;
}
.slide-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.slide-text { font-size: 1.15rem; max-width: 620px; opacity: .92; margin-bottom: 1.6rem; }
.slide-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.slide-url { font-size: .95rem; opacity: .85; }
.slide-url b { color: var(--rrh-accent); }
.slide-ghost {
  position: absolute; inset-inline-start: 4%; bottom: -2rem; font-size: 22rem;
  color: rgba(255,255,255,.06); z-index: 1; pointer-events: none;
}
/* floating orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; opacity: .5; animation: orbFloat 14s ease-in-out infinite; }
.orb1 { width: 240px; height: 240px; background: rgba(255,255,255,.12); top: -60px; inset-inline-end: 6%; }
.orb2 { width: 150px; height: 150px; background: rgba(255,255,255,.10); bottom: 10%; inset-inline-end: 28%; animation-delay: -4s; }
.orb3 { width: 90px; height: 90px; background: var(--rrh-accent); opacity: .25; top: 22%; inset-inline-end: 44%; animation-delay: -8s; }
@keyframes orbFloat { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-28px) translateX(14px); } }
/* entrance animation, replayed via JS on each slide */
[data-anim] { opacity: 0; }
.anim-in { animation: slideUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.slide-title.anim-in { animation-delay: .12s; }
.slide-text.anim-in { animation-delay: .24s; }
.slide-cta.anim-in { animation-delay: .36s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.rrh-dots { margin-bottom: 3.2rem; }
.rrh-dots button { width: 28px !important; height: 4px !important; border-radius: 4px; }
/* compact horizontal search bar overlapping the stage */
.rrh-searchbar {
  position: relative; z-index: 4; margin-top: -2.6rem;
  background: #fff; border-radius: 1rem; box-shadow: 0 18px 45px rgba(0,0,0,.14);
  display: flex; gap: .5rem; padding: .6rem; flex-wrap: wrap;
}
.sb-field { flex: 1 1 180px; display: flex; align-items: center; gap: .5rem; padding: .25rem .85rem; border-radius: .7rem; background: var(--rrh-bg); }
.sb-field i { color: var(--rrh-primary); }
.sb-field select, .sb-field input { border: 0; background: transparent; width: 100%; outline: none; font-family: inherit; }
.sb-go { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; padding-inline: 1.6rem; border-radius: .7rem; }
@media (max-width: 575px) { .rrh-slide { min-height: 420px; } .sb-go span { display: none; } }



