
/* DESIGN TOKENS */

:root {
  --brand-accent: #2563EB;
  --gray-900: #0F172A;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --bg-soft: #F8FAFC;
  --bg-overlay: rgba(0,0,0,0.45);

  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-700);
  background: white;
}

.container {
  width: 100%;
  max-width: none;
  padding-left: 80px;
  padding-right: 80px;
}

/* HEADER (Dynamic Switching) */
.site-header {
  width: 100%;
  z-index: 10;
  transition: 0.3s ease;
}

.top-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navbar */
.navbar {
  padding: 20px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
}

.site-name {
  font-size: 1.3rem;
  font-weight: 600;
}

/*  Circular User Profile */
.user-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.2s ease;
}

/* Container for the right side of the navbar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between Profile and Logout */
}

/* The Round Profile Circle */
.profile-circle {
    width: 40px;
    height: 40px;
    background-color: #8d6e63; /* The brown color from your image */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-circle:hover {
    background-color: #6d4c41; /* Darker brown on hover */
}

/* Remove underline from the profile link */
.profile-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.username-display {
    color: white; /* Adjust based on your navbar background */
    font-weight: bold;
}

/* ===============================
   LOGOUT LINK STYLING
================================ */
.logout-btn {
  /* Set color to a very dark gray/almost black */
  color: #1a1a1a; 
  
  /* Keep the original text styling */
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700; /* Made bolder for emphasis */
  
  /* Flex to align icon neatly */
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

/* Optional: Change color on hover (e.g., to your brand blue) */
.logout-btn:hover {
  color: var(--brand-accent); 
}

/* Ensure the icon stays the same color as the text */
.logout-btn i {
  font-size: 0.9rem;
}


.btn-primary {
  background: var(--brand-accent);
  color: white;
  border: none;
  padding: 16px 30px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

/* --- VARIANT A: Transparent Header (Home) --- */
.transparent-header {
  position: absolute;
  background: transparent;
}

.transparent-header .logo,
.transparent-header .site-name,
.transparent-header .nav-links a {
  color: white;
}

/* Glassy Circle for Home Page */
.transparent-header .user-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(5px);
}

.transparent-header .user-icon:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

/* --- VARIANT B: Static White Header (Results/Login) --- */
.static-header {
  position: relative;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--gray-300);
}

.static-header .logo,
.static-header .site-name,
.static-header .nav-links a {
  color: var(--gray-900);
}

/* Solid Gray Circle for White Pages */
.static-header .user-icon {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.static-header .user-icon:hover {
  background-color: var(--gray-300);
}

.static-header .top-header {
  border-bottom: 1px solid var(--gray-300);
}


/* ===============================
   HERO SECTION (Full Screen)
================================ */
.hero {
  min-height: 100vh;
  background: url("https://images.unsplash.com/photo-1566073771259-6a8506099945") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
}

.hero-content {
  position: relative;
  color: white;
  width: 100%;
}

.hero-welcome {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 3.75rem;
  font-weight: 700;
  max-width: 1100px;
}

.hero-subtext {
  font-size: 1.2rem;
  margin: 24px 0 40px;
  max-width: 900px;
}

/* ===============================
   SEARCH BAR
================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 12px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gray-300);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.input-group.date {
  flex: 1;
  min-width: 220px;
}

.input-group.destination {
  flex: 2.2;
  min-width: 360px;
}

.input-group i {
  font-size: 1.2rem;
  color: var(--gray-500);
}

.input-group input,
.input-group select {
  border: none;
  outline: none;
  font-size: 0.95rem;
  width: 100%;
}

.search-btn {
  height: 52px;
  background: var(--brand-accent);
  color: white;
  border: none;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===============================
   SECTION INTRO
================================ */
.section-intro {
  padding: 64px 0 48px;
  text-align: center;
}

.section-intro h2 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gray-900);
}

.section-intro p {
  font-size: 1.15rem;
  margin-top: 18px;
  color: var(--gray-500);
}

/* ===============================
   ROOM TYPES
================================ */
.room-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 72px;
}

.room-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: 0.25s ease;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.room-image {
  height: 280px;
  background: var(--gray-100);
}

.room-card h3 {
  padding: 22px;
  font-size: 1.4rem;
  font-weight: 600;
}

/* ===============================
   LOCATIONS
================================ */
.locations {
  padding-bottom: 72px;
}

.locations-header h2 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gray-900);
}

.locations-header p {
  font-size: 1.15rem;
  margin-top: 8px;
  color: var(--gray-500);
}

.location-card {
  display: flex;
  flex-direction: column; /* Stacks image on top, text below */
  align-items: center;    /* Centers items horizontally */
  text-align: center;     /* Ensures text itself is centered */
  justify-content: flex-start; 
  /* Decoration */
  border-radius: 8px;
  overflow: hidden;
  background: #fff;       /* Optional: White background looks cleaner */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding-bottom: 15px;
}

.location-image {
  height: 450px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.location-card span {
  display: block;
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gray-900);
}

/* ===============================
   NEW STATIC GRID LAYOUT
================================ */

/* Container for the 4 cards */
.location-grid {
    display: grid;
    /* Creates 4 equal columns */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 20px;
}

/* The Card Itself */
.simple-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    cursor: pointer;
    border: 1px solid #eee; /* Adds a subtle border */
}

.simple-card:hover {
    transform: translateY(-5px);
}

/* Image Container - Mandatory Height */
.card-img-wrapper {
    width: 100%;
    height: 200px; /* Fixed height forces alignment */
    background: #f0f0f0;
}

/* The Image Logic */
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    display: block;
}

/* Text Styling */
.card-text {
    padding: 15px;
    text-align: center;
}

.card-text h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.card-text p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }
}

@media (max-width: 600px) {
    .location-grid {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }
}

@media (max-width: 768px) {
    .location-card {
        min-width: calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
    }
}

/* ===============================
   FOOTER
================================ */
.footer {
  background-color: var(--bg-soft); /* Light gray background */
  padding-top: 60px;
  border-top: 1px solid var(--gray-300);
  margin-top: auto; /* Pushes footer to bottom if page is short */
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* 4 Columns */
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--gray-500);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--brand-accent);
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-links a {
  font-size: 1.2rem;
  color: var(--gray-900) !important;
}

.social-links a:hover {
  color: var(--brand-accent) !important;
}

/* Bottom Copyright Bar */
.footer-bottom {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #E5E7EB;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr; /* 1 column on phone */
    text-align: left;
  }
}

/* ===============================
   HOTEL DETAILS PAGE (Final)
================================ */

/* 1. Secondary Search Bar */
.secondary-search-bar {
  background-color: #E5E7EB;
  padding: 15px 0;
  border-bottom: 1px solid #D1D5DB;
  margin-bottom: 40px;
}
.search-strip-inner {
  display: flex;
  gap: 15px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.search-input-group {
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-input-group input, 
.search-input-group select {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: #374151;
  background: transparent;
}
.search-input-group.wide { width: 250px; }
.btn-mini-search {
  background: #D1D5DB;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Hotel Hero */
.hotel-details-container { max-width: 1200px; padding-bottom: 100px; margin: 0 auto; }

.hotel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.hotel-location { color: #6B7280; margin-top: 5px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.share-icon { font-size: 1.5rem; cursor: pointer; }

.btn-check-avail {
  background: #9CA3AF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* Image Grid */
.hotel-image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 15px;
  margin-bottom: 20px;
}

.img-main {
  background: #E5E7EB;
  grid-row: 1 / span 2;
  border-radius: 12px;
}
.img-side-top { background: #E5E7EB; border-radius: 12px; }
.img-side-bottom { background: #E5E7EB; border-radius: 12px; }

/* Amenities */
.amenities-section { margin: 30px 0; }
.amenities-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill {
  background: #F3F4F6;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #E5E7EB;
}

.hotel-description p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-divider { border: 0; border-top: 2px solid #E5E7EB; margin: 50px 0; }

/* 3. Room Selection */
.selection-header { display: flex; justify-content: space-between; align-items: center; }
.currency-tag span { background: #E5E7EB; padding: 4px 8px; border-radius: 4px; font-weight: bold; }

.filter-bar {
  background: #F9FAFB;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 40px 0;
  border: 1px solid #E5E7EB;
}

.filter-dates, .filter-guests { display: flex; align-items: center; gap: 15px; }

.date-tag {
  background: #E5E7EB;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.guest-counter {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
}
.guest-counter button { border: none; background: transparent; padding: 5px 10px; cursor: pointer; }
.guest-counter span { padding: 0 10px; font-weight: 600; }

/* UPDATED: Buttons share same style */
.btn-reserve-now,
.btn-change-search {
  background: #9CA3AF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* Room Table */
.room-table { 
  border: 1px solid #E5E7EB; 
  border-radius: 12px; 
  overflow: hidden; 
}

.rt-header {
  display: grid;
  /* Columns: Image | Type | Guests | Price | Select */
  grid-template-columns: 1.5fr 2fr 1fr 1fr 1fr; 
  
  /* ADDED: This creates the gap between columns */
  gap: 20px; 
  
  background: #D1D5DB;
  padding: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.rt-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1fr 1fr;
  
  /* ADDED: This aligns with the header gap */
  gap: 20px;
  
  padding: 20px 15px;
  border-bottom: 1px solid #E5E7EB;
  align-items: center;
}

/* Rest of the table styles remain the same... */
.rt-img .placeholder-img {
  width: 100%;
  height: 120px;
  background: #E5E7EB;
  border-radius: 8px;
}

.scarcity { color: #B91C1C; font-size: 0.8rem; font-weight: 600; margin-top: 5px; }

.rt-price { display: flex; flex-direction: column; }
.old-price { text-decoration: line-through; color: #9CA3AF; font-size: 0.85rem; }
.current-price { font-weight: 700; font-size: 1.1rem; }
.offer-tag { background: #E5E7EB; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; width: fit-content; margin-top: 4px; }

.rt-select select { padding: 5px; border-radius: 4px; border: 1px solid #D1D5DB; }
/* 4. Bottom Summary Card */
.booking-summary-card {
  background: #E5E7EB;
  border-radius: 20px;
  padding: 30px;
  margin-top: 60px;
}

.summary-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.summary-header h3 { margin: 0; font-size: 1.2rem; background: white; padding: 10px 20px; border-radius: 30px; width: fit-content; }
.btn-final-book {
  background: #6B7280;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

.summary-details-row { display: flex; justify-content: space-between; align-items: center; }

.summary-list { font-size: 0.9rem; width: 30%; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 5px; }

.summary-center { text-align: center; }
.summary-center p { font-size: 0.8rem; color: #4B5563; }

.summary-total { font-size: 1.8rem; font-weight: 700; }



/* ===============================
   RESULTS PAGE STYLES
================================ */
.bg-soft {
  background-color: #f5f5f5;
}

.results-container {
  display: grid;
  grid-template-columns: 260px 1fr; 
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Mini Search Bar in Header */
.mini-search {
  display: flex;
  background: var(--gray-100);
  padding: 6px;
  border-radius: var(--radius-md);
  gap: 8px;
}

.mini-input {
  display: flex;
  align-items: center;
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
  gap: 8px;
}

.mini-input input, .mini-input select {
  border: none;
  background: transparent;
  outline: none;
  width: 100px;
  font-size: 0.9rem;
}

.mini-btn {
  width: 40px;
  background: var(--brand-accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Sidebar Styles */
.filter-sidebar {
  background: #E5E7EB;
  padding: 24px;
  border-radius: var(--radius-md);
  height: fit-content;
}

.filter-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 10px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Results Content */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sort-box select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
}

/* Horizontal Hotel Card */
.hotel-list-card {
  display: flex;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  height: 220px;
}

.card-image {
  width: 280px;
  background: #9CA3AF;
  flex-shrink: 0;
}

.card-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.info-top h3 {
  font-size: 1.25rem;
}

.stars {
  font-size: 0.9rem;
  color: #F59E0B;
  margin-left: 8px;
}

.price-tag {
  background: var(--gray-700);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.location-text {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  font-weight: 500;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: auto;
}

.card-bottom {
  display: flex;
  justify-content: flex-end;
}

.btn-details {
  background: #9CA3AF;
  color: var(--gray-900);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-details:hover {
  background: var(--brand-accent);
  color: white;
}

.load-more {
  text-align: center;
  margin-top: 40px;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* ===============================
   LOGIN PAGE STYLES
================================ */
.login-main {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-banner {
  background: url("https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?q=80&w=2070&auto=format&fit=crop") center/cover no-repeat;
  width: 100%;
  height: 100%;
}

.login-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: white;
}

.login-card {
  background: #F3F4F6;
  width: 100%;
  max-width: 480px;
  padding: 48px;
  border-radius: 30px;
  text-align: center;
}

.login-card h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--gray-900);
}

.login-input-group {
  text-align: left;
  margin-bottom: 20px;
}

.login-input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: #E5E7EB;
  font-size: 1rem;
  outline: none;
}

.input-wrapper input:focus {
  background: white;
  border-color: var(--brand-accent);
}

.toggle-password {
  position: absolute;
  right: 16px;
  cursor: pointer;
  color: var(--gray-500);
}

.form-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: #D1D5DB;
  color: var(--gray-900);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 24px;
}

.btn-login:hover {
  background: var(--brand-accent);
  color: white;
}

.form-footer {
  font-size: 0.9rem;
  color: var(--gray-700);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-footer a {
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .login-main {
    grid-template-columns: 1fr;
  }
  .login-banner {
    display: none;
  }
}

/* ===============================
   DASHBOARD STYLES (Updated)
================================ */

.dashboard-container {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Header Area */
.dashboard-header {
  margin-bottom: 40px;
}
.dashboard-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* Profile Section */
.profile-section {
  margin-bottom: 80px;
  /* Centers the card if the screen is very wide */
  display: flex;
  justify-content: center; 
}

.profile-card {
  background: #F3F4F6;
  border-radius: 30px; /* Larger radius per wireframe */
  padding: 60px;
  
  /* --- FIX FOR STRETCHING --- */
  width: 100%;
  max-width: 1000px; /* Constrains the width */
  margin: 0 auto;
  /* -------------------------- */
}

.profile-card h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 500;
  color: var(--gray-900);
}

.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr; /* Avatar takes 220px, rest is form */
  gap: 40px;
}

/* Avatar Circle */
.profile-avatar-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.avatar-large {
  width: 160px;
  height: 160px;
  background: #D1D5DB; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 4px solid #F3F4F6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-large:hover {
  background: #9CA3AF;
}
.avatar-large i {
  font-size: 1.5rem;
}
.avatar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 2;
}

.avatar-large:hover .avatar-text {
    opacity: 1;
}

/* Info Details */
.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin-bottom: 16px;
  align-items: center;
}
.info-row .label {
  font-weight: 500;
  color: var(--gray-900);
  font-size: 1rem;
}
.info-row .value {
  background: #D1D5DB; 
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--gray-900);
  font-weight: 500;
}

.spacer-40 {
  height: 40px;
}

/* Form Rows */
.profile-form-row {
  margin-bottom: 20px;
}
.profile-form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray-700);
}
.input-with-btn {
  display: flex;
  gap: 12px;
}
.input-with-btn input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #E5E7EB; 
  outline: none;
  font-size: 1rem;
  transition: 0.2s;
}
.input-with-btn input:focus {
  background: white;
  box-shadow: 0 0 0 2px var(--brand-accent);
}
.btn-confirm {
  background: #D1D5DB;
  border: none;
  padding: 0 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  cursor: pointer;
  transition: 0.2s;
}
.btn-confirm:hover {
  background: var(--brand-accent);
  color: white;
}

/* Bookings Section */
.bookings-section {
  padding-top: 20px;
}
.section-title-line {
  border-bottom: 1px solid var(--gray-900);
  margin-bottom: 40px;
  padding-bottom: 16px;
}
.section-title-line h2 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--gray-900);
}

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.booking-card {
  background: #E5E7EB;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.booking-card:hover {
  transform: translateY(-5px);
}

.booking-image {
  height: 220px;
  background: white;
  margin: 16px 16px 0 16px;
  border-radius: 16px;
  overflow: hidden;
}
.booking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-content {
  padding: 20px 24px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.booking-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-900);
}

.booking-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1; /* Pushes footer down */
}

.booking-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Base Flash Message Style */
.flash-msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 500;
}

/* Success Theme (Green) */
.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #34d399;
}

/* Error/Default Theme (Red) */
.flash-error, .flash-message { 
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .profile-card {
    padding: 30px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .profile-avatar-area {
    margin-bottom: 10px;
  }
  .bookings-grid {
    grid-template-columns: 1fr;
  }
  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .input-with-btn {
    flex-direction: column;
  }
  .btn-confirm {
    padding: 12px;
    width: 100%;
  }
}



/* ===============================
   ADMIN DASHBOARD UTILITIES
================================ */

/* 1. Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

/* Specific Colors */
.stat-card.revenue { background-color: #374151; } /* Dark Gray */
.stat-card.bookings { background-color: #2563EB; } /* Blue */
.stat-card.users { background-color: #059669; }    /* Green */

.stat-card h3 {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 0 0;
}

/* 2. Role & Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

.badge-admin {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-user {
    background-color: #f3f4f6;
    color: #374151;
}

.text-price {
    color: #2563EB;
    font-weight: 700;
}

.text-success { color: #059669; font-weight: 600; }
.text-danger { color: #DC2626; font-weight: 600; }

/* 3. Table Action Buttons */
.action-btn-group {
    display: flex;
    gap: 8px;
}

.btn-mini {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-outline {
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
}
.btn-outline:hover {
    background: #f3f4f6;
}

.btn-danger-soft {
    border: none;
    background: #fee2e2;
    color: #991b1b;
}
.btn-danger-soft:hover {
    background: #fca5a5;
}

/* Mobile Responsive for Stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-section {
  margin-top: 60px;
}

/* Admin Tools in Profile */
.admin-tools-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-admin-tool {
  background: #D1D5DB; /* Wireframe gray */
  color: var(--gray-900);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s;
  text-align: center;
  flex: 1;
}

.btn-admin-tool:hover {
  background: var(--brand-accent);
  color: white;
}

/* Admin Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #E5E7EB; /* Light gray bg for whole table area */
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th {
  background: #D1D5DB; /* Darker gray header */
  color: var(--gray-900);
  font-weight: 600;
  padding: 14px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.admin-table td {
  padding: 14px;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #F3F4F6; /* Very light gray rows */
}

/* Action Buttons in Table */
.btn-xs {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-right: 4px;
}

.btn-update {
  background: #9CA3AF;
  color: white;
}
.btn-update:hover { background: var(--brand-accent); }

.btn-delete {
  background: #D1D5DB;
  color: var(--gray-900);
}
.btn-delete:hover { background: #EF4444; color: white; }

/* Hotel Report Area */
.report-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.report-controls label {
  font-weight: 600;
  color: var(--gray-900);
}

.select-gray {
  background: #D1D5DB;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--gray-900);
  outline: none;
  width: 300px;
}

.chart-placeholder {
  width: 100%;
  height: 350px;
  background: #D1D5DB;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

/* ===============================
   PRIVACY POLICY PAGE
================================ */

/* Top Gray Banner */
.privacy-banner {
  width: 100%;
  padding: 60px 0; 
  background: #E5E7EB;
  border-bottom: 1px solid var(--gray-300);
}

/* CENTERED Title Content */
.banner-content-wrapper {
  text-align: center; /* Centers text in the gray box */
}

.banner-content-wrapper h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.banner-content-wrapper .last-updated {
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* WIDER Main Content Area */
.privacy-container {
  max-width: 1100px; /* Increased width to take up more space */
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Typography */
.privacy-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  margin-top: 40px;
}

.privacy-content section:first-child h3 {
  margin-top: 0;
}

.privacy-content p, 
.privacy-content li {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-list {
  padding-left: 20px;
  margin-bottom: 20px;
}

.policy-list li {
  margin-bottom: 8px;
}

/* --- BOOKING PAGE STYLES --- */

.booking-container {
    padding: 40px 0;
}

.booking-wrapper {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: start;
}

/* Hotel Info Card (Left) */
.hotel-info-card {
    background: #f9f9f9; 
    padding: 30px; 
    border-radius: 10px; 
    border: 1px solid #eee;
}

.hotel-title {
    margin-top: 0; 
    color: #2c3e50;
}

.hotel-location-text {
    color: #666; 
    font-size: 1.1rem; 
    margin-bottom: 20px;
}

.divider-line {
    border: 0; 
    border-top: 1px solid #ddd; 
    margin: 20px 0;
}

.rates-list {
    list-style: none; 
    padding: 0; 
    line-height: 2;
}

.peak-note {
    color: #e67e22;
}

.multipliers-list {
    list-style: none; 
    padding: 0; 
    line-height: 1.6; 
    font-size: 0.9rem;
}

/* Booking Form Card (Right) */
.booking-form-card {
    background: #fff; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border: 1px solid #eee;
}

/* Form Elements */
.currency-picker-box {
    margin-bottom: 20px; 
    padding: 15px; 
    background: #f3f4f6; 
    border-radius: 8px; 
    border: 1px solid #e5e7eb;
}

.currency-select {
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-last {
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600; 
    display: block; 
    margin-bottom: 8px;
}

.form-control {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    background: white;
}

.form-actions {
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}

.btn-calculate {
    background: #2c3e50; 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600; 
    flex: 1;
    transition: background 0.2s;
}

.btn-calculate:hover {
    background: #34495e;
}

/* Price Result Box */
.price-result-box {
    margin-top: 30px; 
    background: #f0fdf4; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #bbf7d0;
}

.price-total {
    margin: 0 0 10px 0; 
    color: #166534;
}

.discount-tag {
    color: #15803d; 
    font-weight: 600; 
    margin: 0 0 15px 0;
}

.btn-confirm-pay {
    width: 100%; 
    padding: 15px; 
    font-size: 1.1rem; 
    justify-content: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .booking-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   RESPONSIVE OVERRIDES (Tablet & Mobile)
   Add this to the very bottom of style.css
========================================= */

/* --- TABLET VIEW (Max Width: 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem; /* Smaller heading */
    }

    /* Make room types 2 columns instead of 3 */
    .room-types {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

/* --- MOBILE VIEW (Max Width: 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Global Layout Adjustments */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 2. Navigation Bar (Stack items vertically) */
    .top-header-inner, .nav-inner {
        height: auto;
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        background: rgba(0,0,0,0.05); /* Slight background to separate menu */
        padding: 15px;
        border-radius: 8px;
    }

    .nav-right {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    /* 3. Hero Section & Main Search Bar */
    .hero {
        min-height: auto;
        padding-top: 140px; /* Extra space for the stacked navbar */
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Mobile friendly heading */
    }

    .search-bar {
        flex-direction: column; /* Stack inputs vertically */
        height: auto;
        padding: 20px;
    }

    .input-group {
        width: 100%; /* Full width inputs */
    }

    .search-btn {
        width: 100%;
        margin-top: 10px;
    }

    /* 4. Grids (Force 1 Column) */
    .room-types, 
    .locations-grid, 
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* 5. Results Page Mobile */
    .results-container {
        grid-template-columns: 1fr; /* Stack sidebar on top of results */
    }

    .hotel-list-card {
        flex-direction: column;
        height: auto;
    }

    .card-image {
        width: 100%;
        height: 200px;
    }

    .card-bottom {
        margin-top: 15px;
    }

    /* 6. Admin Dashboard Tables */
    /* Allows table to scroll sideways on phone without breaking layout */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto; 
    }
    
    .admin-table th, .admin-table td {
        white-space: nowrap; /* Keeps text on one line so row doesn't get too tall */
    }
}

.user-icon.has-img {
    background-size: cover;
    background-position: center;
    border: 2px solid #e5e7eb;
    color: transparent; /* Hides any text/icon color if present */
}

.user-icon.profile-pic-nav {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #e5e7eb;
    display: inline-block;
    width: 40px;  /* Match your header icon size */
    height: 40px;
    border-radius: 50%;
}

/* Ensure the default icon also looks consistent */
.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* --- UPDATED PROFILE PICTURE CSS --- */

/* 1. The Container (The Circle) */
.user-icon.profile-pic-nav {
    display: block;
    width: 42px;        /* Fixed Width */
    height: 42px;       /* Fixed Height */
    border-radius: 50%; /* Make it circular */
    overflow: hidden;   /* Crop the image if it spills out */
    border: 2px solid #e5e7eb; /* Light gray border */
    padding: 0;         /* Reset padding */
}

/* 2. The Image Itself */
.nav-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensures image fills circle without stretching */
    display: block;     /* Removes bottom spacing bugs */
}

/* Default Icon styling remains the same */
.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops the image to fill the box without stretching it */
    display: block;
}

/* --- Room Card Image Resizing --- */

/* 1. Set a fixed height for the image container */
.room-image {
    height: 250px; /* You can adjust this value to make the images taller or shorter */
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Optional: Rounds top corners to match card */
}

/* 2. Make the image fill the container without stretching */
.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key property! */
    display: block;    /* Removes any default bottom spacing */
}

.status-red { color: #ef4444; font-weight: bold; }
.status-green { color: #10b981; font-weight: bold; }

/* --- ROOM MANAGEMENT STATUS STYLES --- */

/* Row Backgrounds */
.row-maintenance {
    background-color: #f3f4f6 !important; /* Gray background */
    color: #6b7280;
}
.row-available {
    background-color: #ffffff;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-green {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-gray {
    background-color: #374151;
    color: white;
}

.badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Header for the room sections */
.room-section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
}

/* --- DASHBOARD HELPER CLASSES --- */

/* Hidden Inputs (for file upload) */
.hidden-input {
    display: none;
}

/* Booking Card Styles */
.booking-action-area {
    margin-top: 15px; 
    border-top: 1px solid #eee; 
    padding-top: 10px; 
    text-align: right;
}

.no-border-top {
    margin-top: 5px; 
    border-top: none; 
    padding-top: 0;
}

.price-highlight {
    color: #2563EB; 
    font-weight: bold;
}

/* Cancellation Fee Box */
.fee-notice {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #991b1b;
    background-color: #fee2e2;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.refund-status {
    font-style: italic;
}

/* Cancel Button */
.btn-cancel {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background-color: #dc2626;
}

/* No Bookings Placeholder */
.no-bookings-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px;
    background: #f9fafb;
    border-radius: 12px;
}

.link-browse {
    color: #2563EB;
    font-weight: bold;
    text-decoration: none;
}
.link-browse:hover {
    text-decoration: underline;
}

/* Avatar Styling Helpers */
.avatar-large {
    cursor: pointer; 
    position: relative; 
    overflow: hidden;
}