/*client-style.css*/
/* = GLOBAL RESETS AND UTILITIES = */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 1px;
}

body {
  padding: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* = HEADER (super-header, navigation) = */
.super-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px 20px 48px;
  background: linear-gradient(90deg,#0052cc 0%,#49a7e6 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,30,90,0.08);
  border-radius: 0 0 24px 24px;
  position: relative;
  z-index: 1010;
}
.sh-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.sh-logo a {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}
.sh-logo span {
  color: #ffe07a;
  font-weight: 600;
}
.sh-nav a {
  margin: 0 20px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color .15s;
}
.sh-nav a:hover {
  color: #ffe07a;
}
.sh-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sh-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ffe07a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.sh-avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0052cc;
  font-weight: bold;
  font-size: 1.3rem;
  border: 2px solid #ffe07a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.sh-logout {
  color: #ffe07a;
  font-size: 1.2rem;
  margin-left: 10px;
  transition: color .15s;
  text-decoration: none;
}
.sh-logout:hover {
  color: #fff;
}

/* = RESPONSIVE HEADER = */
@media (max-width: 700px) {
  .super-header { padding: 16px 10px 10px 10px; border-radius: 0 0 14px 14px; }
  .sh-left { gap: 16px; }
  .sh-logo a { font-size: 1.3rem; }
  .sh-nav a { margin: 0 8px; font-size: 1rem; }
  .sh-right { gap: 8px; }
  .sh-avatar, .sh-avatar.initials { width: 34px; height: 34px; font-size: 1rem; }
}

/* = HERO (index.php, main page) = */
.ch-hero {
  position: relative;
  height: 60vh;
  border-radius: 0 0 30px 30px;
  background-image: url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .ch-hero {
    background-image: url('assets/img/hero-bg@2x.jpg');
  }
}
.ch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.ch-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  color: #000000;
}
.ch-hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.ch-hero-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* = SEARCH BAR (index.php, booking) = */
.ch-search-form {
  display: flex;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ch-search-form .field {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-right: 1px solid #ddd;
}
.ch-search-form .field:last-of-type {
  border-right: none;
}
.ch-search-form .field i {
  margin-right: 8px;
  color: #0052cc;
}
.ch-search-form .field input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  width: 100%;
}
.ch-search-form .btn-search {
  background: #0052cc;
  border: none;
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
}
.ch-search-form .btn-search i {
  font-size: 1.2rem;
}

/* = SECTIONS, GRID, CARDS (index.php, properties list, restaurants) = */
.ch-section {
  padding: 60px 30px;
  text-align: center;
}
.ch-dark {
  background: #0052cc;
  color: #fff;
}
.ch-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
  margin-top: 30px;
}
.ch-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.ch-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.ch-card-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.ch-card-info h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.ch-card-info .price {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #0052cc;
}
.ch-card-info a {
  margin-top: auto;
  text-decoration: none;
  color: #fff;
  background: #0052cc;
  padding: 8px;
  border-radius: 4px;
  transition: background .2s;
}
.ch-card-info a:hover {
  background: #003d99;
}

/* = EXPLORE SECTION (index.php) = */
.ch-explore {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.ch-explore div {
  text-align: center;
}
.ch-explore img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 8px;
}

/* = BOOKING PAGE STYLES (booking.php, property view) = */
.booking-page-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.booking-left {
  flex: 2;
  min-width: 300px;
}
.booking-right {
  flex: 1;
  min-width: 280px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  height: fit-content;
}

/* Booking gallery */
.thumb-overlay {
  position: relative;
}
.thumb-overlay .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
}

/* Property info */
.property-title {
  font-size: 2rem;
  margin: 20px 0 5px;
}
.property-location {
  color: #555;
  margin-bottom: 20px;
}
.property-description h3,
.house-rules h3,
.facilities-icons h3,
.availability-calendar h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}
.property-description p,
.house-rules p {
  line-height: 1.6;
}
.policy-box {
  background: #fff;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 15px;
}
/* Facilities icons */
.facilities-icons ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}
.facilities-icons li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facilities-icons i {
  color: #0052cc;
  font-size: 1.2rem;
}
/* Availability calendar */
.availability-calendar table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.availability-calendar th,
.availability-calendar td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.availability-calendar th {
  background: #f0f0f0;
}
/* Price & Button */
.price-block {
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.price-block strong {
  font-size: 1.4rem;
  color: #0052cc;
}
.reserve-btn {
  display: block;
  background: #0052cc;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 15px;
}
.reserve-btn:hover {
  background: #003d99;
}
/* Map */
.map-container {
  margin-top: 20px;
  height: 240px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ccc;
}
/* Responsive booking page */
@media (max-width: 768px) {
  .booking-page-container {
    flex-direction: column;
    padding: 20px;
  }
  .booking-gallery-grid {
    grid-template-areas:
      "main"
      "thumb1"
      "thumb2"
      "thumb3"
      "thumb4";
  }
}

/* = BOOKING HISTORY PAGE STYLES (booking_history.php) = */
.booking-history-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0 30px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
.booking-history-table th,
.booking-history-table td {
  border: 1px solid #e9e9e9;
  padding: 14px 10px;
  text-align: left;
}
.booking-history-table th {
  background: #f0f6fa;
  color: #0052cc;
  font-weight: 600;
}
.booking-history-table tr:hover {
  background: #f7fbff;
}
.booking-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: bold;
}
.status-paid { background: #d4ffe4; color: #1b8c3b; }
.status-pending { background: #ffe9b3; color: #d97d00; }
.status-cancelled { background: #ffe0e0; color: #bb2c2c; }

/* = LOGIN & REGISTER PAGE STYLES (login.php, register.php, reset_password.php) = */
.ch-login-box, .register-form {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.ch-login-box h1, .register-form h1 {
  margin-bottom: 20px;
  color: #0052cc;
}
.ch-login-box label, .register-form label {
  display: block;
  text-align: left;
  margin-bottom: 15px;
  font-weight: 500;
}
.ch-login-box input, .register-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.ch-login-box button, .register-form button {
  width: 100%;
  padding: 12px;
  background: #0052cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.ch-login-box .error, .register-form .error-list {
  color: #b00;
}
.register-form .error-list ul { padding-left: 20px; text-align: left; }

@media(max-width:600px) {
  .ch-login-box, .register-form { margin: 40px 5px; padding: 16px; }
}

/* = SUCCESS PAGE STYLES (success.php) = */
.ch-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #0052cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* = COMMON ERROR STYLES = */
.error, .ch-login-box .error, .register-form .error-list { color: #b00; }
.info, .info-box { color: #078d1f; }

