/* ================= VARIABLES (LIGHT ONLY) ================= */
:root {
  --chamois: #F0E0C1;
  --water-leaf: #A6EDE5;
  --tropical-rain-forest: #007366;
  --text-dark: #2c3e50;
  --text-muted: #7c8a91;
  --light-bg: #f8f5f0;
  --white: #ffffff;
  --line: rgba(0, 60, 55, 0.12);
  --shadow: 0 10px 30px rgba(0, 115, 102, 0.12);
}

/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  background-color: #f3f7f5;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 115, 102, 0.1) 1px, transparent 0),
    linear-gradient(160deg, #eef7f4 0%, #f7f4ec 55%, #eef2f6 100%);
  background-size: 24px 24px, 100% 100%;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ================= MAIN CONTAINER ================= */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
}

/* ================= HEADER ================= */
header {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--tropical-rain-forest);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.08);
}

header h1 {
  margin: 0;
  color: var(--tropical-rain-forest);
  font-size: 2.4rem;
  font-weight: 700;
}

header p {
  color: var(--tropical-rain-forest);
  font-weight: 600;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ================= TABS ================= */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  border: 2px solid var(--water-leaf);
  background: var(--white);
  color: var(--tropical-rain-forest);
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--tropical-rain-forest);
  color: white;
  border-color: var(--tropical-rain-forest);
}

.tab-panel.hidden {
  display: none;
}

/* ================= SECTIONS ================= */
section {
  background: var(--white);
  padding: 28px;
  margin-bottom: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--tropical-rain-forest);
  transition: transform 0.2s ease;
}

section:hover {
  transform: translateY(-3px);
}

h2 {
  color: var(--tropical-rain-forest);
  margin-bottom: 18px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= SELECTS (FLOOR / FACILITY) ================= */
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--water-leaf);
  font-size: 16px;
  font-weight: 600;
  background-color: var(--light-bg);
  color: var(--tropical-rain-forest);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

select:focus {
  border-color: var(--tropical-rain-forest);
  box-shadow: 0 0 0 4px rgba(0, 115, 102, 0.15);
}

/* ================= FLOOR / FACILITY DATA ================= */
#floorData,
#facilityData {
  margin-top: 25px;
  display: grid;
  gap: 16px;
}

/* ================= ROOM / FACILITY CARD (DIVIDED SEGMENTS) ================= */
.room-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--tropical-rain-forest);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  animation: cardReveal 0.4s ease both;
  transition: box-shadow 0.25s ease, border-left-width 0.25s ease;
}

.room-card:hover {
  border-left-width: 10px;
  box-shadow: 0 10px 22px rgba(0, 115, 102, 0.16);
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.room-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--line);
}

.room-card-header strong {
  font-size: 1.15rem;
  color: var(--tropical-rain-forest);
}

.room-card-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--tropical-rain-forest);
  color: white;
}

.room-card-badge.nonac {
  background: #b9722c;
}

.room-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.room-card-cell {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.room-card-cell:last-child {
  border-right: none;
}

.room-card-cell .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.room-card-cell .value {
  font-weight: 600;
  color: var(--text-dark);
}

.value-open {
  color: #1a8a4a;
}

.value-closed {
  color: #c0392b;
}

.room-card.facility-card {
  border-left-color: #8e44ad;
}

.room-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--text-muted);
}

/* ================= CHAT BOX ================= */
#chat-box {
  height: 380px;
  overflow-y: auto;
  border: 2px solid var(--water-leaf);
  border-radius: 16px;
  padding: 20px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--water-leaf) transparent;
}

/* Chat Messages */
.user {
  align-self: flex-end;
  background: var(--chamois);
  color: var(--tropical-rain-forest);
  padding: 12px 18px;
  border-radius: 20px 20px 4px 20px;
  max-width: 80%;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bot {
  align-self: flex-start;
  background: var(--tropical-rain-forest);
  color: white;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 4px;
  max-width: 80%;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 115, 102, 0.25);
}

/* Typing indicator */
.bot.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 20px;
}

.bot.typing span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.bot.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.bot.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ================= INPUT AREA ================= */
.input-area {
  display: flex;
  gap: 12px;
}

.input-area input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 50px;
  border: 2px solid var(--water-leaf);
  font-size: 16px;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.input-area input:focus {
  border-color: var(--tropical-rain-forest);
  box-shadow: 0 0 0 4px rgba(166, 237, 229, 0.3);
}

.input-area button {
  padding: 0 28px;
  border: none;
  background: var(--tropical-rain-forest);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.input-area button:hover {
  background: #005c52;
  transform: translateY(-2px);
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  font-size: 14px;
  color: var(--tropical-rain-forest);
  margin-top: 30px;
  opacity: 0.85;
  font-weight: 500;
}

/* ================= EXAMPLES / QUICK-REPLY CHIPS ================= */
.examples {
  margin-top: 15px;
  padding: 14px;
  background: var(--water-leaf);
  border-radius: 14px;
  font-size: 14px;
  border-left: 5px solid var(--tropical-rain-forest);
  box-shadow: 0 4px 12px rgba(0, 115, 102, 0.1);
}

.examples p {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--tropical-rain-forest);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: none;
  background: var(--white);
  color: var(--tropical-rain-forest);
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--tropical-rain-forest);
  color: white;
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 650px) {
  .container {
    margin: 15px auto;
    padding: 15px;
  }

  header h1 {
    font-size: 1.7rem;
  }

  .tab-btn {
    min-width: 100%;
  }

  section {
    padding: 22px;
  }

  .input-area {
    flex-direction: column;
  }

  .input-area button {
    padding: 16px;
  }

  #chat-box {
    height: 320px;
  }
}
