﻿/* ══════════════════════════════════════════════
   Maple Leaf Resort — styles.css
   Bootstrap 5 + Custom Theme
══════════════════════════════════════════════ */

:root {
  --resort: #8B6914;
  --resort-dark: #6B4F0F;
  --resort-light: #F5EDD6;
  --resort-soft: #FEF9EE;
  --bg-page: #F7F8FA;
  --text-primary: #1A1A2E;
  --text-muted: #6C757D;
  --border-color: #E8EAED;
  --sidebar-width: 220px;
  --topbar-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; }

/* ── Typography ── */
.resort-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.ls-wide { letter-spacing: 0.15em; }

/* ── Custom colours ── */
.text-resort { color: var(--resort) !important; }
.bg-resort { background: var(--resort) !important; }

/* ── PAGE SYSTEM ── */
.page { display: none; }
.page.active { display: block; }

/* ══════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════ */
.login-bg {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1540541338287-41700207dee6?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.login-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 420px;
  max-width: calc(100vw - 2rem);
  position: relative;
  z-index: 1;
}
.resort-logo-icon {
  width: 64px; height: 64px;
  background: var(--resort);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 1.8rem;
  color: #fff;
}
.resort-brand { color: var(--resort); }

/* ══════════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════════ */
.topbar-resort {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  min-height: var(--topbar-height);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 100;
}
.resort-nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #F5EDD6 !important;
  letter-spacing: 0.5px;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar-resort {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--border-color);
  padding: 1.2rem 0.75rem;
  flex-shrink: 0;
  min-height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
}
.sidebar-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #adb5bd;
  font-weight: 600;
  padding: 0 0.5rem 0.4rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: #495057;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--resort-light); color: var(--resort); }
.sidebar-link.active { background: var(--resort-light); color: var(--resort); font-weight: 600; }
.sidebar-link i { width: 20px; }

/* ══════════════════════════════════════════════
   CONTENT AREA
══════════════════════════════════════════════ */
.content-area { background: var(--bg-page); }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-resort {
  background: var(--resort);
  color: #fff;
  border: 1px solid var(--resort-dark);
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
}
.btn-resort:hover { background: var(--resort-dark); color: #fff; transform: translateY(-1px); }
.btn-resort:active { transform: translateY(0); }

.btn-outline-resort {
  border: 1.5px solid var(--resort);
  color: var(--resort);
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.btn-outline-resort:hover { background: var(--resort); color: #fff; }

/* ══════════════════════════════════════════════
   HOME PAGE HERO
══════════════════════════════════════════════ */
.hero-section {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero-section:hover .hero-img { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 2rem;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--resort-light); font-weight: 500;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 1.15rem; font-weight: 300;
  color: rgba(255,255,255,0.85);
}

/* Quick booking bar */
.quick-book-bar {
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.quick-book-bar .form-control,
.quick-book-bar .form-select { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.quick-book-bar .form-label { color: rgba(255,255,255,0.7); }
.quick-book-bar .form-control::placeholder { color: rgba(255,255,255,0.4); }
.quick-book-bar .form-select option { background: #1A1A2E; color: #fff; }

/* Stats strip */
.stat-strip-item { padding: 1rem; }
.stat-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }

/* Home room cards */
.home-room-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.home-room-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.home-room-img {
  height: 220px; background-size: cover; background-position: center;
  transition: transform 0.4s;
}
.home-room-card:hover .home-room-img { transform: scale(1.04); }
.home-room-body { padding: 1.25rem; }
.badge-room-type {
  background: var(--resort-light); color: var(--resort);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: 20px; padding: 0.25rem 0.75rem;
}
.room-price-tag { font-size: 1.15rem; font-weight: 700; color: var(--resort); }
.room-price-tag span { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* Facilities */
.facility-tile {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.facility-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.facility-icon {
  width: 56px; height: 56px;
  background: var(--resort-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem; color: var(--resort);
}

/* Gallery */
.gallery-img {
  background-size: cover; background-position: center;
  border-radius: 8px; overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}
.gallery-img:hover { transform: scale(1.02); }

/* Testimonials */
.testimonial-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid var(--resort);
}
.avatar-circle {
  width: 40px; height: 40px;
  background: var(--resort); color: #fff;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}

/* Footer */
.resort-footer { background: #1A1A2E; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--resort-light); }
.social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.15s; }
.social-icon:hover { background: var(--resort); color: #fff; }

/* ══════════════════════════════════════════════
   PAGE HERO MINI (sub-pages)
══════════════════════════════════════════════ */
.page-hero-mini {
  height: 180px; position: relative;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.page-hero-mini-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 100%);
}
.page-hero-mini-content { position: relative; z-index: 1; padding: 1.5rem 2rem; }
.page-hero-mini-content .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════
   ROOM CARDS (rooms page)
══════════════════════════════════════════════ */
.room-card-resort {
  background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  height: 100%;
}
.room-card-resort:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,0.14); }
.room-card-resort-img {
  height: 190px; background-size: cover; background-position: center;
  position: relative;
}
.room-card-resort-img .room-type-pill {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 20px; letter-spacing: 0.05em;
}
.room-card-resort-img .room-unavail-banner {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.room-card-body-resort { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.room-price-resort { font-size: 1.25rem; font-weight: 700; color: var(--resort); }
.room-price-resort span { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.feature-pill {
  font-size: 0.72rem; padding: 0.15rem 0.5rem;
  background: var(--bg-page); border: 1px solid var(--border-color);
  border-radius: 20px; color: #555;
}

/* ══════════════════════════════════════════════
   STEP BADGES
══════════════════════════════════════════════ */
.step-badge {
  width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: var(--text-muted);
  flex-shrink: 0;
}
.step-badge.active { border-color: var(--resort); background: var(--resort); color: #fff; }
.step-line {
  flex: 1; height: 2px; background: var(--border-color);
  max-width: 60px;
}
.step-line.done { background: var(--resort); }

/* ══════════════════════════════════════════════
   BOOKING SUMMARY
══════════════════════════════════════════════ */
.selected-room-banner {
  background: linear-gradient(135deg, var(--resort-soft) 0%, #FFF8E7 100%);
  border: 1.5px solid var(--resort-light);
}
.room-mini-icon {
  width: 44px; height: 44px;
  background: var(--resort); color: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.badge-room-type-sm {
  background: var(--resort-light); color: var(--resort);
  font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.5rem;
  border-radius: 10px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.3rem 0; font-size: 0.875rem; color: #555;
  border-bottom: 1px solid #f0f0f0;
}
.summary-row:last-child { border-bottom: none; }
.summary-total { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* ══════════════════════════════════════════════
   STAT CARDS (dashboard)
══════════════════════════════════════════════ */
.stat-card {
  background: #fff; border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.stat-card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; font-weight: 600; }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); }

/* Soft background colours */
.bg-primary-soft   { background: rgba(13,110,253,0.1); }
.bg-success-soft   { background: rgba(25,135,84,0.1); }
.bg-warning-soft   { background: rgba(255,193,7,0.12); }
.bg-info-soft      { background: rgba(13,202,240,0.1); }
.bg-danger-soft    { background: rgba(220,53,69,0.1); }
.bg-resort-soft    { background: rgba(139,105,20,0.12); }
.bg-secondary-soft { background: rgba(108,117,125,0.1); }
.bg-dark-soft      { background: rgba(33,37,41,0.08); }

/* Border colours for stat cards */
.border-resort { border-left-color: var(--resort) !important; }

/* ══════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════ */
.table th {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700;
  color: #6c757d; border-top: none;
}
.table td { font-size: 0.875rem; vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--resort-soft); }

/* ── DataTables overrides ── */
div.dataTables_wrapper div.dataTables_filter input { font-size: 0.875rem; border-radius: 6px; }
div.dataTables_wrapper div.dataTables_length select { font-size: 0.875rem; border-radius: 6px; }
div.dataTables_paginate .paginate_button.current,
div.dataTables_paginate .paginate_button.current:hover {
  background: var(--resort) !important; border-color: var(--resort-dark) !important; color: #fff !important; border-radius: 6px !important;
}
div.dataTables_paginate .paginate_button:hover {
  background: var(--resort-light) !important; color: var(--resort) !important; border-radius: 6px !important; border-color: var(--resort-light) !important;
}

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.badge-confirmed  { background: #d1f3e0; color: #0f5132; }
.badge-pending    { background: #fff3cd; color: #664d03; }
.badge-cancelled  { background: #f8d7da; color: #842029; }
.badge-checked-in { background: #cff4fc; color: #055160; }
.badge-paid       { background: #d1f3e0; color: #0f5132; }
.badge-unpaid     { background: #f8d7da; color: #842029; }
.badge-partial    { background: #fff3cd; color: #664d03; }

.status-badge {
  display: inline-block; padding: 0.25rem 0.65rem;
  border-radius: 20px; font-size: 0.72rem; font-weight: 600;
  text-transform: capitalize; letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════ */
.alert { border-radius: 8px; font-size: 0.875rem; }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card { border-radius: 12px; }
.card-header { font-size: 0.875rem; }

/* ══════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════ */
.modal-content { border-radius: 14px; border: none; }
.modal-header { border-bottom: 1px solid var(--border-color); }
.modal-footer { border-top: 1px solid var(--border-color); }

/* ══════════════════════════════════════════════
   FORM CONTROLS
══════════════════════════════════════════════ */
.form-control, .form-select {
  border-color: var(--border-color); border-radius: 8px;
  font-size: 0.875rem; color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--resort); box-shadow: 0 0 0 0.2rem rgba(139,105,20,0.15);
}
.input-group-text { background: #f8f9fa; border-color: var(--border-color); }

/* ══════════════════════════════════════════════
   CONFIRMATION PAGE
══════════════════════════════════════════════ */
.success-checkmark i { animation: popIn 0.5s cubic-bezier(0.68,-0.55,0.27,1.55) both; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ══════════════════════════════════════════════
   COUNTER ANIMATION
══════════════════════════════════════════════ */
.counter { transition: all 0.3s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .sidebar-resort { display: none !important; }
  .hero-section { min-height: 65vh; }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 1.5rem; }
  .quick-book-bar { padding: 1rem; }
}

@media (max-width: 767.98px) {
  .login-card { width: 100%; margin: 1rem; padding: 1.75rem; }
  .hero-section { min-height: 55vh; }
  .hero-title { font-size: 2rem; }
  .stat-value { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════
   SCROLL & UTILS
══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--resort); }

.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
