@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Source Sans 3', sans-serif;
}

html, body {
  height: 100%;
  max-width: 100%;
  background-color: #f0f5f9;
  color: #151d36;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ================ Loading Screen Styles ================ */
.loading-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1rem;
  text-align: center;
}

.loading-spinner {
  width: clamp(30px, 4vw, 40px);
  height: clamp(30px, 4vw, 40px);
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ================ Loading Screen Styles ================ */

/* ================ Login Page Styles ================ */
.login-page {
  width: 100%;
  min-height: 100vh;
  background-color: #f0f5f9;
}

.login-page .container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0 auto;
}

.header__nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
  padding: 0;
  margin: 0;
}

.header__nav--login {
  background: none;
  border: none;
  color: #014161;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
  border-radius: 6px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.login-page .header,
.login-page .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(15px, 2vw, 20px) 5vw;
  background: white;
  z-index: 1000;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 20px);
}

.login-page .header {
  position: sticky;
  top: 0;
}

.login-page .footer {
  flex-direction: column;
  text-align: center;
}

.login-page .header img {
  height: clamp(40px, 5vw, 53px);
  max-height: 53px;
  flex-shrink: 0;
}

.hero {
  text-align: center;
  padding: clamp(40px, 10vw, 60px);
  max-width: 95vw;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  color: #151d36;
  margin-bottom: clamp(15px, 3vw, 20px);
  max-width: 900px;
  margin-inline: auto;
  line-height: 1.1;
}

.hero h1 span {
  color: #014161;
}

.hero p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: #485273;
  margin-bottom: clamp(20px, 3vw, 30px);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.4;
}

.banner {
  max-width: 100dvw;
  margin-bottom: clamp(20px, 10vw, 80px);
  /* padding-block: clamp(20px, 10vw, 80px);
  background-color: #fcfcfc; */
  flex: 1 1 0;
}

.banner__img img {
  display: block;
  margin-inline: auto;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  padding: 0 10px;
  mix-blend-mode: multiply;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer__content img {
  height: clamp(40px, 5vw, 53px);
  max-height: 53px;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.footer__content--copyright {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  color: #999;
  text-align: center;
  width: 100%;
  user-select: none;
  letter-spacing: 0.05em;
  font-weight: 400;
}
/* ================ Login Page Styles ================ */

/* ================ Main Chat Interface Styles ================ */
.gradient-container-wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: #f0f5f9;
  position: relative;
  overflow-x: hidden;
}

.gradient-container {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.gradient-container-wrapper .container {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0 auto;
  z-index: 10;
}

.gradient-container-wrapper .header,
.gradient-container-wrapper .footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: clamp(8vh, 10dvh, 10vh);
  background-color: #000120;
  z-index: 1000;
  justify-content: center;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.gradient-container-wrapper .footer {
  color: #f8fafc;
  font-size: clamp(0.8rem, 1vw, 1rem);
  text-align: center;
}

.gradient-container-wrapper>.container>.row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 90dvw;
  margin-inline: auto;
  gap: clamp(1rem, 2vw, 1rem);
  padding-block: clamp(3rem, 3vw, 3rem);
  flex: 1 1 0;
}

.column {
  background-color: white;
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.column-left {
  grid-column: span 2;
  border: 1px solid #d6ddf1;
}

.column-right {
  position: relative;
  grid-column: span 1;
  border: 1px solid #d6ddf1;
  max-width: 100%;
  padding: clamp(1rem, 1vw, 1rem);
  box-shadow: 0 0 13px rgba(0, 0, 0, 0.11);
  border-radius: 9px;
}

/* Header Row (row-one) */
.row-one {
  background-color: #fff6ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  padding-inline: clamp(1rem, 3vw, 1rem);
  height: clamp(70px, 10vw, 92px);
  border-bottom: 1px solid #d6ddf1;
  gap: clamp(0.5rem, 1vw, 1rem);
  overflow: hidden;
}

.header-title-container {
  display: flex;
  gap: clamp(0.5rem, 1vw, 0.5rem);
  align-items: center;
}

.header-title-container img {
  width: clamp(18px, 2vw, 23px);
  object-fit: cover;
  filter: brightness(0);
}

.header-title {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  color: #151d36;
}

.header-description {
  font-size: clamp(12px, 1vw, 14px);
  color: #1a274f;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.disclaimer {
  font-size: clamp(12px, 1vw, 14px);
  color: #989898;
  font-style: italic;
}

.contact-us {
  position: absolute;
  bottom: 15px;
  font-size: clamp(10px, 0.8vw, 12px);
  text-align: center;
  color: #485273;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
}

/* Links */
a.link {
  color: #CA1ECC;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.link:hover,
a.link:focus {
  color: #9b149c;
  outline: none;
}

/* Features List */
.features-text {
  color: #485273;
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.4;
  margin-top: clamp(0.3rem, 1vw, 0.5rem);
  align-items: center;
}

.features-text>strong {
  margin-bottom: 5px;
  display: block;
}

.features-list {
  margin: clamp(1rem, 1vw, 1rem) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.5rem);
}

.features-list div {
  display: flex;
  column-gap: clamp(0.3rem, 0.5vw, 0.5rem);
  align-items: center;
}

.features-list>div>img {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(39%) sepia(44%) saturate(5032%) hue-rotate(287deg) brightness(101%) contrast(102%);
}

.features-list p {
  color: #485273;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.2;
  margin: 0;
}

/* Deploy Button */
.deploy-btn {
  border-radius: 8px;
  border: 1px solid #d5dbee;
  background: #fff;
  box-shadow: 0 1px 6px rgba(212, 217, 233, 0.6);
  width: fit-content;
  padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 18px);
  margin-block: clamp(1rem, 2vw, 1.5rem);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.deploy-btn:hover,
.deploy-btn:focus {
  background-color: #f1652c;
  border-color: #f1652c;
  color: white;
  outline: none;
}

.deploy-text {
  text-decoration: none;
  color: #f90;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
}

/* Header Keywords */
.header-keywords {
  display: flex;
  gap: clamp(8px, 1vw, 15px);
  flex-wrap: nowrap;
  min-width: 0;
  flex-shrink: 0;
}

.keyword {
  border-radius: 200px;
  border: 1px solid #ffdaff;
  background: #fff;
  padding: clamp(4px, 0.5vw, 6px) clamp(10px, 1vw, 12px);
  color: #485273;
  font-size: clamp(10px, 0.8vw, 12px);
  white-space: nowrap;
}

/* Row Two - Centered content */
.row-two {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  background-color: white;
  border-radius: 15px;
  padding: clamp(0.5rem, 1vw, 0.5rem);
}

/* Row Three and Last Row styling */
.row-three,
.last-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.5rem, 1vw, 1rem);
  background-color: #f9f9f9;
  border-radius: 15px;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1vw, 1rem);
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Input and Button */
.query-input {
  flex-grow: 1;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(5em, 5vw, 5rem) clamp(0.75rem, 1.5vw, 1rem) clamp(0.75rem, 1.5vw, 1rem);
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: clamp(12px, 1vw, 12px);
  max-height: 52px;
  overflow-y: auto;
  resize: none;
}

.query-input::-webkit-scrollbar {
  width: 6px;
}

.query-input::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

.query-input::-webkit-scrollbar-track {
  background-color: transparent;
}

.query-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.query-button {
  position: absolute;
  right: clamp(10px, 1vw, 10px);
  border: none;
  cursor: pointer;
  background: url('http://d2w1arv075h9sc.cloudfront.net/assets/ask_btn.png') no-repeat center;
  width: clamp(35px, 4vw, 40px);
  height: clamp(35px, 4vw, 40px);
  transition: filter 0.3s ease;
}

.query-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.query-button:hover:not(:disabled),
.query-button:focus:not(:disabled) {
  filter: brightness(1.1);
  outline: none;
}

/* Link Cards on Right Column */
.column-right .link-card {
  background-color: #fff6ff;
  border-radius: 8px;
  border: 1px solid #ffebff;
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.5rem, 1vw, 0.75rem);
  display: flex;
  gap: clamp(0.5rem, 1vw, 1rem);
  margin-block: clamp(0.5rem, 1vw, 0.5rem);
  align-items: center;
  height: clamp(3.5rem, 5vw, 3.5rem);
}

.column-right .link-card .logo img {
  width: clamp(40px, 4vw, 55px);
  max-width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.column-right .link-card .content p {
  font-size: clamp(10px, 0.8vw, 11px);
  color: #485273;
  margin: 0;
  line-height: 1.2;
}

/* Separator */
.speartor {
  border: none;
  border-top: 3px dotted #d9e4ed;
  margin: clamp(1rem, 2vw, 1rem) 0;
}

/* Footer adjustments inside Right Column */
.column-right .footer {
  margin-top: auto;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .gradient-container-wrapper>.container>.row {
    grid-template-columns: 1fr;
    max-width: 90vw;
    gap: clamp(1rem, 3vw, 2rem);
  }

  .column-left,
  .column-right {
    grid-column: auto !important;
    max-width: 100%;
    min-width: 0;
  }

  .column-right {
    padding: clamp(1rem, 4vw, 2rem);
    max-width: 100%;
    margin-top: clamp(1rem, 3vw, 2rem);
    border-radius: 12px;
  }
}

/* =====================================
   Chat Container and Messages
   ===================================== */
.chat-container {
  width: 100%;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 60dvh;
}

.message {
  max-width: 60%;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #e9dfdb;
}

.system-message {
  align-self: flex-start;
  background-color: #fffaff;
  color: #333;
  border: 1px solid;
  border-color: #ffe6ff;
  font-weight: 500;
  line-height: 17px;
  font-size: 14px;
  width: 600px;
}

.message.system-message .rationale-dropdown {
  margin-top: 0;
  margin-bottom: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8f9fa;
  font-size: 13px;
  max-height: 180px !important;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
}

.message.system-message .active-text-content {
  margin-bottom: 10px;
  line-height: 1.4;
}

.message.system-message .finalized-text-content {
  margin-bottom: 15px;
  line-height: 1.4;
  margin-inline: 15px;
}

.message.system-message .response-text {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message.system-message .flights-container {
  margin: 15px 0;
  width: 100%;
}

.message.system-message .flight-card {
  margin-bottom: 15px;
}

.message.system-message > * {
  margin-bottom: 10px;
}

.message.system-message > *:last-child {
  margin-bottom: 0;
  margin-inline: 15px;
}

.message.system-message[data-streaming="true"] .cursor {
  color: #007bff;
  font-weight: bold;
  animation: blink 1s infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.message.system-message:not([data-streaming]) .cursor {
  display: none;
}

.system-message.error {
  border-color: #ff0000;
  background-color: #ff1e003d;
}

.user-message {
  align-self: flex-end;
  background-color: #007bff;
  color: white;
  background-color: #ffffff;
  border-color: #e8dedb;
  color: #000000;
  line-height: 17px;
  font-size: 14px;
}

/* =====================================
   Streaming Message Styles
   ===================================== */
.streaming-message {
  border-color: #667eea !important;
  background-color: #f0f4ff !important;
  position: relative;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.streaming-content {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.4;
  flex: 1;
}

.cursor {
  animation: blink 1s infinite;
  font-weight: bold;
  color: #667eea;
  margin-left: 2px;
  display: inline-block;
}

/* =====================================
   Agent Rationale Dropdown Styles
   ===================================== */
.rationale-dropdown {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8f9fa;
  font-size: 13px;
  max-height: 180px !important;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
}

.rationale-header {
  padding: 8px 12px;
  background: #f3f3f3;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex-shrink: 0;
}

.rationale-header:hover {
  background: #e8eaed;
}

.rationale-chevron {
  font-size: 12px;
  color: #5f6368;
  transition: transform 0.2s;
  display: inline-block;
  width: 12px;
  flex-shrink: 0;
}

.rationale-title {
  font-weight: 500;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rationale-content {
  background: white;
  border-top: 1px solid #e5e7eb;
  height: 138px !important;
  min-height: 138px !important;
  max-height: 138px !important;
  overflow-y: auto;
  overflow-x: hidden;
}

.rationale-content[style*="block"] {
  display: block !important;
  visibility: visible !important;
}

.rationale-text {
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #f8fafc;
  margin: 8px;
  border-radius: 4px;
  min-height: auto;
}

.rationale-dropdown .rationale-content[style*="none"] {
  display: none !important;
}

.rationale-content::-webkit-scrollbar {
  width: 6px;
}

.rationale-content::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

.rationale-content::-webkit-scrollbar-track {
  background-color: transparent;
}

.streaming-message .rationale-dropdown {
  position: relative;
  z-index: 5;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 15px;
}

/* =====================================
   Scrollbar styling
   ===================================== */
.chat-container::-webkit-scrollbar {
  width: 6px;
  height: 3px;
}

.chat-container::-webkit-scrollbar-thumb {
  background-color: #e4e4e4;
  border-radius: 10px;
}

.chat-container::-webkit-scrollbar-track {
  background-color: transparent;
}

/* =====================================
   Flight Card Styles (PRESERVED)
   ===================================== */
.flights-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 20px;
}

.flight-card {
  border: 1px solid #d6ddf1;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 80%;
  padding: 14px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  background-color: white;
}

.flight-info {
  display: flex;
  align-items: center;
}

.flight-icon {
  font-size: 26px;
  color: #5e6b85;
  align-self: flex-start;
  padding-right: 10px;
}

.flight-time {
  font-size: 18px;
  font-weight: 600;
  color: #151d36;
  display: flex;
}

.flight-route {
  color: #5e6b85;
  font-size: 14px;
  margin: 3px 0;
}

.flight-duration {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.flight-airline {
  font-size: 14px;
  color: #5e6b85;
}

.stopover {
  color: #5e6b85;
  font-size: 12px;
}

.flight-price {
  text-align: right;
}

.flight-price .amount {
  font-size: 22px;
  font-weight: bold;
  color: #151d36;
  font-weight: 600;
}

.flight-price .info {
  font-size: 12px;
  color: #5e6b85;
}

.stopover {
  margin-top: 4px;
}

.stopover-item {
  font-weight: 400;
  margin-top: 1px;
}

.time-separator {
  display: flex;
  align-items: center;
  margin: 0 6px;
}

.time-divider {
  border-top: 2px solid #009688;
  width: 40px;
  border-radius: 4px;
}

/* =====================================
   WORKING HOTEL CARD STYLES
   ===================================== */

/* Hotel Container */
.hotel-container {
  display: flex;
  gap: 15px;
  padding: 10px;
  flex-wrap: wrap;
  width: 100%;
}

/* Hotel Card - Essential Working Structure */
.hotel-card {
  width: 450px;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
  margin: 10px;
  border-radius: 10px;
  border: 1px solid #d6ddf1;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  background-color: white;
}

/* Card Inner - Critical for Flip Animation */
.hotel-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* The Flip Effect - Key Rule */
.hotel-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Front and Back Faces - Critical Properties */
.hotel-card .card-front,
.hotel-card .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 14px;
  background-color: white;
}

.hotel-card .card-back {
  transform: rotateY(180deg);
}

/* Room Carousel */
.hotel-card .carousel-container {
  height: 100%;
  position: relative;
}

.hotel-card .carousel-item {
  display: none;
  height: 100%;
}

.hotel-card .carousel-item.active {
  display: block;
}

/* Room Navigation */
.hotel-card .room-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.hotel-card .room-actions button {
  height: 37px;
  width: 37px;
  border-radius: 50%;
  background-color: #f8f9fa;
  border: 1px solid #d6ddf1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hotel-card .room-actions button:hover {
  background-color: #e9ecef;
  transform: scale(1.05);
}

.hotel-card .room-actions button i {
  font-size: 12px;
  color: #495057;
}

/* Layout Classes */
.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-header h2 {
  font-size: 18px;
  color: #151d36;
  font-weight: 600;
  max-width: 280px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card-header p {
  font-size: 16px;
  font-weight: bold;
  color: #151d36;
  margin: 0;
  white-space: nowrap;
}

.card-location {
  margin-bottom: 8px;
}

.country {
  font-size: 14px;
  color: #485273;
  margin: 0;
}

.rating {
  color: #485273;
  font-size: 14px;
  margin-bottom: 8px;
}

.card-details {
  margin-top: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-amenities {
  flex: 1;
}

.card-amenities p {
  color: #485273;
  font-size: 15px;
  display: flex;
  align-items: center;
  margin: 3px 0;
}

.card-amenities p i {
  width: 16px;
  font-size: 14px;
  margin-right: 5px;
}

.card-amenities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 55px;
  overflow: hidden;
  margin: 5px 0;
  padding: 0;
  list-style: none;
}

.card-amenities-item {
  border: 1px solid #d6ddf1;
  border-radius: 200px;
  padding: 4px 12px;
  font-size: 13px;
  color: #485273;
  background-color: white;
  white-space: nowrap;
}

/* Copy Button */
.copy-button {
  background: transparent;
  padding: 3px;
  border: none;
  cursor: pointer;
  margin-right: 8px;
}

.copy-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.copy-button i {
  font-size: 16px;
  color: #485273;
}

/* Small Text Styles */
.night {
  font-weight: 400;
  font-size: 12px;
  color: #485273;
}

.default {
  font-size: 12px;
  color: #f90;
  font-weight: 600;
}

.no-cost {
  color: #888;
  font-style: italic;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #f2f2f2;
  white-space: nowrap;
}

/* Integration with Messages */
.streaming-message .hotel-container,
.message.system-message .hotel-container {
  margin: 15px 0;
  width: 100%;
}

.streaming-message .hotel-card,
.message.system-message .hotel-card {
  margin-bottom: 15px;
}

/* =====================================
   Summary Styles (PRESERVED)
   ===================================== */
.summary-card {
  border-radius: 10px;
  border: 1px solid #d6ddf1;
  padding: 14px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  background-color: white;
  max-width: 450px;
  margin: 10px;
}

.summary-header h2 {
  font-size: 22px;
  color: #151d36;
}

.summary-header button {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #485273;
}

.summary-header button:hover {
  text-decoration: underline;
  cursor: pointer;
}

.summary-overview {
  margin-top: 15px;
}

.summary-overview p {
  display: flex;
  align-items: center;
  margin: 0;
  margin-bottom: 8px;
  color: #485273;
}

.summary-overview i {
  width: 18px;
  font-size: 17px;
  text-align: center;
  margin-right: 8px;
}

.summary-overview div {
  display: flex;
  align-items: center;
}

.summary-overview div p {
  margin: 0 8px 0 0;
}

.summary-overview div p:last-child {
  margin-right: 0;
}

.summary-price {
  margin-top: 15px;
  border-top: 3px dotted #d6ddf1;
  padding-top: 10px;
  color: #151d36;
}

.summary-price p {
  font-weight: 500;
}

.fa-solid {
  margin-right: 4px;
}

/* Modal Styles */
.summary-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.summary-modal-content {
  background-color: white;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  position: relative;
  height: 80vh;
  overflow: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.summary-modal-content::-webkit-scrollbar {
  display: none;
}

.summary-details {
  margin-top: 30px;
}

.summary-details h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-summary-price {
  margin-top: 35px;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
}

.close-btn:hover {
  cursor: pointer;
}

/* =====================================
   Itinerary Styles (PRESERVED)  
   ===================================== */
.timeline {
  font-family: Arial, sans-serif;
  width: 300px;
  position: relative;
  padding: 20px;
  padding-left: 40px;
}

.timeline-date {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.timeline-date i {
  margin-right: 10px;
  font-size: 1.3em;
  color: #0056b3;
}

.timeline-entries {
  position: relative;
}

.timeline-entry {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 20px;
  bottom: 0;
  width: 2px;
  background-color: #3f51b5;
}

.timeline-entry .dot {
  width: 12px;
  height: 12px;
  background-color: #3f51b5;
  border-radius: 50%;
  margin: 0 10px;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-time {
  font-weight: bold;
  width: 40px;
  text-align: right;
  margin-right: 10px;
  color: #333;
}

.timeline-activity {
  font-weight: normal;
  color: #0056b3;
  cursor: pointer;
  position: relative;
}

.tooltip {
  display: none;
  position: absolute;
  top: -5px;
  left: 120%;
  background: #333;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9em;
  width: 200px;
  z-index: 10;
  white-space: normal;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 10px;
  left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.timeline-activity:hover .tooltip {
  display: block;
}

.timeline-footnote {
  font-size: 0.8em;
  color: #666;
  margin-top: 25px;
}

.timeline-heading {
  color: #333;
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
}

/* =====================================
   Notification Banner Styles
   ===================================== */
.notification-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f1652c 0%, #f78606 100%);
  color: white;
  padding: 12px 20px;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notification-banner.hidden {
  transform: translateY(-100%);
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
}

.notification-message {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.notification-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.notification-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

/* =====================================
   Text Content Styles
   ===================================== */
.active-text-content {
  margin-bottom: 10px;
  line-height: 1.4;
}

.finalized-text-content {
  margin-bottom: 15px;
  line-height: 1.4;
}

.text-content {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.streaming-message > * {
  margin-bottom: 10px;
}

.streaming-message > *:last-child {
  margin-bottom: 0;
}

.streaming-message .flights-container {
  margin: 15px 0;
}

.streaming-message {
  border-color: #e8dedb !important;
  background-color: #fff9f7 !important;
  color: #333 !important;
  font-weight: 500 !important;
  line-height: 17px !important;
  font-size: 14px !important;
  position: relative !important;
  min-height: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.streaming-message .cursor {
  animation: blink 1s infinite !important;
  font-weight: bold !important;
  color: #667eea !important;
  margin-left: 2px !important;
  display: inline-block !important;
}

.system-message .cursor {
  display: none !important;
}

.cursor {
  color: #007bff;
  font-weight: bold;
  animation: blink 1s infinite;
  margin-left: 1px;
}

.streaming-message .rationale-dropdown,
.system-message .rationale-dropdown {
  max-height: 180px !important;
  margin-top: 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #f8f9fa !important;
  overflow: hidden !important;
}

.streaming-message .rationale-header,
.system-message .rationale-header {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 8px 12px !important;
  background: #f1f3f4 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.streaming-message .rationale-content,
.system-message .rationale-content {
  height: 138px !important;
  min-height: 138px !important;
  max-height: 138px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}



/*******************************************/
.logout-btn {
  background: linear-gradient(90deg, #f1652c 0%, #f78606 100%);
  color: white !important;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.logout-btn:hover {
  transform: translateY(-1px);
}
/*******************************************/

.card-amenities ul {
  max-height: 45px !important; /* Reduced to make room for buttons */
  overflow-y: auto !important; /* Allow scrolling instead of hiding */
  overflow-x: hidden !important;
}

/* Add subtle scrollbar styling */
.card-amenities ul::-webkit-scrollbar {
  width: 3px;
}

.card-amenities ul::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 2px;
}

.card-amenities ul::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Fix 2: Ensure booking sections don't overlap content */
.hotel-booking-section-minimal {
  margin-top: 8px !important; /* Add fixed margin instead of auto */
}

.room-booking-section-minimal {
  margin-top: 8px !important; /* Add fixed margin instead of auto */
}

/* Fix 3: Adjust card content to respect button space */
.card-details {
  max-height: 70px !important; /* Constrain to leave room for buttons */
  overflow: hidden !important;
}

/* Fix 4: Ensure amenities items don't get too tall */
.card-amenities-item {
  font-size: 11px !important; /* Slightly smaller text */
  padding: 3px 10px !important; /* Tighter padding */
  line-height: 1.2 !important;
}

/* Fix 5: Move room navigation buttons up to avoid booking button */
.hotel-card .room-actions {
  bottom: 45px !important; /* Move up from original position */
}

/* Fix 6: Ensure proper spacing in card layout */
.card-amenities {
  margin-bottom: 8px !important; /* Add bottom margin */
}

/* Fix 7: For mobile - ensure buttons don't overlap */
@media (max-width: 768px) {
  .card-amenities ul {
    max-height: 40px !important;
  }
  
  .card-details {
    max-height: 65px !important;
  }
  
  .hotel-card .room-actions {
    bottom: 40px !important;
  }
}

/* =====================================
   CARD BACK FIX: Room Details Overlap
   Add this to your styles.css (for the flip side)
   ===================================== */

/* Fix: Room details content area - prevent overlap with booking button */
.carousel-item .card-details {
  max-height: 60px !important; /* Constrain room details height */
  overflow: hidden !important;
}

/* Fix: Room amenities list - make scrollable like hotel amenities */
.carousel-item .card-amenities ul {
  max-height: 40px !important; /* Smaller than front to account for room button */
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Fix: Room booking section spacing */
.carousel-item .room-booking-section-minimal {
  margin-top: 8px !important; /* Add fixed spacing instead of auto */
  padding-top: 8px !important;
}

/* Fix: Ensure carousel item content doesn't overflow */
.carousel-item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 14px !important;
  box-sizing: border-box !important;
}

/* Fix: Room content should take available space */
.carousel-item > *:not(.room-booking-section-minimal):not(.room-actions) {
  flex-shrink: 1 !important; /* Allow room content to shrink */
}

/* Fix: Room booking section should stay at bottom */
.carousel-item .room-booking-section-minimal {
  flex-shrink: 0 !important; /* Don't let booking section shrink */
  margin-top: auto !important; /* Push to bottom but with proper spacing */
  padding-top: 8px !important;
  border-top: 1px solid #e9ecef !important;
  background-color: rgba(248, 249, 250, 0.8) !important;
}

/* Fix: Room amenities items - smaller to fit better */
.carousel-item .card-amenities-item {
  font-size: 10px !important; /* Smaller than hotel amenities */
  padding: 2px 8px !important; /* Tighter padding */
}

/* Fix: Room actions positioning to avoid overlap */
.carousel-item .room-actions {
  bottom: 45px !important; /* Move up to avoid booking button */
  right: 10px !important;
}

/* Fix: Room header and details spacing */
.carousel-item .card-header {
  margin-bottom: 6px !important; /* Tighter spacing */
}

.carousel-item .card-location {
  margin-bottom: 6px !important;
}

.carousel-item .rating {
  margin-bottom: 6px !important;
}

/* Fix: Room amenities description text */
.carousel-item .card-amenities p {
  margin: 2px 0 !important; /* Tighter margins */
  font-size: 14px !important;
}

/* Mobile specific fixes for room details */
@media (max-width: 768px) {
  .carousel-item .card-details {
    max-height: 55px !important;
  }
  
  .carousel-item .card-amenities ul {
    max-height: 35px !important;
  }
  
  .carousel-item .room-actions {
    bottom: 40px !important;
  }
}
