@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --kijani: #1d9b5f;
  --blue: #125ea9;
  --njano: #f2c230;
  --white: #ffffff;
  --bg: #f4f8fb;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dce6f0;
}

* {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html { font-size: 13px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

.container { width: min(1150px, 92%); margin: 0 auto; }

.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 12px 0;
  border-bottom: 4px solid var(--njano);
}

.site-header h1 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  gap: 8px;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
}
.brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.site-header nav { display: flex; flex-wrap: wrap; gap: 10px; }

.site-header nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
}

.site-header nav a:hover { background: rgba(255, 255, 255, 0.14); }

.hero {
  /* Minimal gradient only for hero impact */
  background: linear-gradient(135deg, var(--blue), #0f4f8e);
  color: var(--white);
  padding: 40px 24px;
  border-radius: 14px;
  margin: 20px 0;
  box-shadow: 0 12px 30px rgba(18, 94, 169, 0.2);
}

.hero h2 { margin-top: 0; font-size: 1.55rem; }

.btn {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--njano);
  color: #2b2b2b;
  box-shadow: 0 6px 16px rgba(242, 194, 48, 0.35);
}

.btn-muted {
  background: var(--white);
  color: var(--blue);
  border-color: var(--border);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.room-grid-six {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.compact-card { padding: 12px; margin-bottom: 0; }
.stay-card {
  background: var(--white);
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.stay-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
}
.stay-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2b37;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 600;
}
.stay-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.room-card-image {
  width: 100%;
  max-width: 100%;
  height: 155px;
  object-fit: cover;
  margin-bottom: 0;
  border: none;
}
.stay-title {
  margin: 0 0 2px;
  font-size: 0.92rem;
  line-height: 1.25;
  color: #192633;
  font-weight: 600;
}
.stay-subtitle {
  margin: 0 0 2px;
  color: #556575;
  font-size: 0.8rem;
}
.stay-priceline {
  margin: 0 0 3px;
  font-size: 0.8rem;
  color: #3d4b5c;
}
.room-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #4b6078;
  font-size: 0.76rem;
  margin: 1px 0 8px;
}
.search-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}
.search-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.air-search {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(17, 66, 114, 0.08);
}
.air-field {
  position: relative;
  border-right: 1px solid #ebf1f7;
  padding: 6px 10px;
}
.air-field:last-child { border-right: none; }
.air-field label {
  margin: 0;
  font-size: 0.74rem;
  color: #3d4e61;
  font-weight: 700;
}
.air-field input {
  border: none;
  padding: 4px 0 0;
  margin: 0;
  background: transparent;
  font-size: 0.86rem;
}
.air-field input:focus { box-shadow: none; }
.who-field { position: relative; }
.who-toggle {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 5px 0 0;
  font-size: 0.86rem;
  color: #5a6775;
  cursor: pointer;
}
.who-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 320px;
  z-index: 40;
  background: #fff;
  border: 1px solid #e4edf6;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(11, 48, 87, 0.2);
  padding: 8px 14px;
}
.who-panel.open { display: block; }
.who-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef4fa;
}
.who-row:last-child { border-bottom: none; }
.who-row small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}
.counter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.counter button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #c7d5e6;
  background: #fff;
  color: #345;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.counter span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(15, 40, 70, 0.08);
  border: 1px solid #edf2f7;
  margin-bottom: 16px;
}

.card h3 { margin-top: 0; font-size: 1.02rem; color: var(--blue); }

.room-image {
  width: 100%;
  max-width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  margin-bottom: 10px;
  border: 2px solid #eef5fb;
}

.room-slider { position: relative; width: 100%; max-width: 100%; margin-bottom: 10px; }
.slider-image { display: none; margin-bottom: 0; max-width: 100%; width: 100%; }
.slider-image.is-active { display: block; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(18, 94, 169, 0.84);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  line-height: 28px;
  padding: 0;
  opacity: 0.85;
}

.slider-prev { left: 6px; }
.slider-next { right: 6px; }

form label { display: block; margin-top: 9px; font-weight: 600; font-size: 0.87rem; color: #243445; }

input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fcfeff;
  font-size: 0.9rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(18, 94, 169, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #edf1f5;
  font-size: 0.88rem;
}

th { background: #f6fbff; color: var(--blue); font-weight: 700; }

.flash {
  padding: 11px 12px;
  border-radius: 9px;
  margin: 14px 0;
  font-size: 0.9rem;
}

.success {
  background: #eaf9f1;
  color: #0f6b3a;
  border-left: 4px solid var(--kijani);
}

.error {
  background: #fff0f0;
  color: #8c1f1f;
  border-left: 4px solid #d24242;
}

.site-footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 16px;
  margin-top: 30px;
  font-size: 0.85rem;
}

.whatsapp-float {
  position: absolute;
  right: 0;
  bottom: 60px;
  background: var(--kijani);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(29, 155, 95, 0.28);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

.footer-relative {
  position: relative;
}

.admin-nav { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-headline .brand-title { color: var(--blue); }
.admin-headline .brand-logo {
  background: #f0f7ff;
  border: 1px solid #d9e7f7;
}
.admin-nav a {
  margin-right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--blue);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-nav a:hover { border-color: var(--blue); }
.brand-logo-preview {
  display: block;
  max-width: 280px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f8fbff;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  padding: 6px;
}

.services-hero {
  margin: 18px 0 14px;
  padding: 28px 22px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #11579b, #1d9b5f);
  box-shadow: 0 14px 32px rgba(12, 68, 119, 0.22);
}
.services-hero h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: #fff;
}
.services-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
}
.services-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.service-stat {
  background: #fff;
  border: 1px solid #e5eef8;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.service-stat strong {
  display: block;
  color: var(--blue);
  font-size: 1rem;
}
.service-stat span {
  display: block;
  color: #56667a;
  font-size: 0.78rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.service-tile {
  background: #fff;
  border: 1px solid #e8eff8;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(17, 66, 114, 0.06);
}
.service-tile h3 {
  margin: 0 0 5px;
  color: #154f8c;
  font-size: 0.9rem;
}
.service-tile p {
  margin: 0;
  color: #58677a;
  font-size: 0.8rem;
}
.service-cta {
  text-align: center;
}
.page-hero { margin-bottom: 12px; }
.auth-hero { margin-top: 16px; }
.auth-card {
  border: 1px solid #e6eef8;
  box-shadow: 0 12px 26px rgba(12, 62, 108, 0.1);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.gallery-tile {
  min-height: 140px;
  border-radius: 14px;
  border: 1px solid #e5edf8;
  background: linear-gradient(160deg, #ffffff, #f5faff);
  box-shadow: 0 8px 18px rgba(16, 69, 118, 0.08);
  padding: 14px;
}
.gallery-tile h3 {
  margin: 0 0 5px;
  color: #144f8d;
  font-size: 0.9rem;
}
.gallery-tile p {
  margin: 0;
  color: #5b6a7b;
  font-size: 0.8rem;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #ddd;
  padding: 5px 5px 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  color: #222;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.dropdown-trigger:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  width: 260px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  z-index: 2000;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.dropdown-menu.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  padding: 14px 20px;
  text-decoration: none;
  color: #222 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  text-align: left;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-menu a:hover {
  background: #f8fafc !important;
  color: var(--blue) !important;
}

.menu-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.logout-link {
  color: #c13511 !important;
}

@media (max-width: 900px) {
  .user-dropdown { margin-left: 0; margin-top: 10px; }
  .dropdown-menu { right: auto; left: 0; }
}
  .air-search {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .air-field { border-right: none; border-bottom: 1px solid #ebf1f7; }
  .air-field:last-child { border-bottom: none; }
  .who-panel { position: static; width: 100%; margin-top: 8px; }
  .room-grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .room-grid-six { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .room-grid-six { grid-template-columns: 1fr; }
  .services-stats { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
