:root {
  --bg: #0b0c10;
  --panel: #111317;
  --muted: #9aa4af;
  --ink: #e8edf2;
  --accent: #4f46e5;
  --border: #20232a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, #1b1f2a 0%, #0b0c10 60%);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  padding-bottom: 100px; /* Space for fixed footer */
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

header h1 small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

/* Panel */
.panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Scroll area (messages) */
.scroll {
  flex: 1 1 auto;
  height: 60vh;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  padding-bottom: 8em;
}

/* Entries */
.entry {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.entry .bubble {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  max-width: 70%;
  white-space: pre-wrap;
  word-break: break-word;
}

/* User → right aligned, blue bubble */
.entry.user {
  justify-content: flex-end;
}
.entry.user .bubble {
  background: #303030;
  border-color: #1a1e25;
  color: #fff;
  text-align: right;
}

/* Assistant → left aligned, dark bubble */
.entry.assistant {
  justify-content: flex-start;
}
.entry.assistant .bubble {
  /*background: #0b1220;
  border-color: #1a2132;*/
  color: var(--ink);
  text-align: left;
}

/* Processing messages - smaller font and faded color */
.entry.assistant .bubble.processing {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

/* Markdown inside assistant bubbles */
.entry.assistant .bubble h1,
.entry.assistant .bubble h2,
.entry.assistant .bubble h3,
.entry.assistant .bubble h4,
.entry.assistant .bubble p,
.entry.assistant .bubble ul,
.entry.assistant .bubble ol {
  margin: 0;
  padding: 0;
}

/* Optional: tiny spacing between paragraphs */
.entry.assistant .bubble p + p {
  margin-top: 4px;
}

/* Optional: indent lists slightly */
.entry.assistant .bubble ul,
.entry.assistant .bubble ol {
  margin-left: 1.2em;
}

h1, h2, h3, h4, ol, ul, p {
  padding: 0;
  margin: 0;
}

/* Hide list bullets */
h1, h2, h3, h4, ol, ul, p {
  padding: 0;
  margin: 0;
}

/* Hide list bullets */
.entry.assistant .bubble ul,
.entry.assistant .bubble ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.entry.assistant .bubble ul li,
.entry.assistant .bubble ol li {
  padding-left: 0;
  margin-left: 0;
}

/* Responsive images */
.entry.assistant .bubble img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 4px 0;
  border-radius: 8px;
}

/* Images inside assistant bubbles: never overflow */
.entry.assistant .bubble img {
  max-width: 100%;   /* stay within bubble width */
  height: auto;      /* keep aspect ratio */
  display: block;
  margin: 4px 0;
  border-radius: 8px; /* looks nicer, optional */
}


.entry small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}

/* Composer at bottom */
/* Composer at bottom – pill-style input with inline icons */
.composer {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Composer centered state (initial) */
.composer.composer-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  min-width: 300px;
  z-index: 10;
}

/* Composer fixed at bottom state (after first message) */
.composer.composer-fixed {
  position: fixed;
  bottom: 55px; /* Space for footer */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 960px;
  background: var(--bg);
  z-index: 10;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  transition: all 0.3s ease;
}

.composer-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-align: center;
  display: block;
}

.composer.composer-fixed .composer-title {
  display: none;
}

.composer-inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #303030;
  border-radius: 999px;
  border: 1px solid #1a1e25;
  padding: 0 50px 0 14px; /* space on the right for mic button */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  width: 100%;
}

/* Make textarea wider when composer is centered */
.composer.composer-centered .composer-inner {
  width: 100%;
  max-width: 100%;
}

.composer input[type="text"] {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  height: 40px;
  padding: 35px 15px;
  color: var(--ink);
  font: inherit;
}

/* Icons inside the pill */
.composer-inner .composer-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.composer-inner .composer-icon:hover {
  color: #fff;
}

#mic-btn {
  right: 10px;
}

#mic-btn svg {
  width: 20px;
  height: 20px;
}

/* Recording visual state for mic */
#mic-btn.recording {
  background: #b91c1c;
  color: #fff;
  animation: pulse 1s infinite;
}

#mic-btn.recording svg {
  color: #fff;
}


.composer button {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #2b3040;
  background: linear-gradient(180deg, #3b82f6, #4f46e5);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.composer button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mic button specific style */
#mic-btn {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #2b3040;
  background: #111827;
  color: #e5e7eb;
  font-size: 16px;
  cursor: pointer;
}

#mic-btn.recording {
  background: #b91c1c;
  color: #fff;
  animation: pulse 1s infinite;
}

/*
#stop-voice {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #2b3040;
  background: #111827;
  color: #f97373;
  font-size: 16px;
  cursor: pointer;
}

#stop-voice:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
*/

/* Welcome screen */
#welcome {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.welcome-card {
  text-align: center;
  padding: 32px 40px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(12, 14, 18, 0.9);
  color: var(--muted);
}

.welcome-card p {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

/* Par défaut on masque/affiche via JS */
.welcome-hidden {
  display: none;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.8);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}


/* Pills & inline code */
.pill {
  background: #0b1220;
  border: 1px solid #182033;
  color: #b7c6ff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
}

code.inline {
  background: #10141c;
  border: 1px solid #202635;
  padding: 2px 6px;
  border-radius: 6px;
}

.error {
  color: #ffb4b4;
}


/* Typing indicator bubble (assistant side) */
.entry.assistant.typing .bubble {
  /*background: #0b1220;
  border-color: #1a2132;*/
  padding: 8px 10px;
  max-width: fit-content;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #9aa4af;
  opacity: 0.4;
  animation: typing-bounce 1s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}


.icon-btn {
  background: #0e1118;
  border: 1px solid #1d2330;
  color: #9aa4af;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s ease;
}

.icon-btn:hover {
  background: #141822;
  color: #fff;
  border-color: #2b3140;
}

.icon-btn:active {
  transform: scale(0.92);
}



/* Horizontal slider for room availability cards */
.entry.assistant .bubble .availability-slider,
.entry.assistant.slider-entry .availability-slider,
.entry.assistant.slider-entry .rooms-slider,
.entry.assistant.slider-entry .services-slider,
.entry.assistant.slider-entry .rates-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0;
  margin: 4px 0 8px;
}

.entry.assistant .bubble .room-card,
.entry.assistant.slider-entry .room-card,
.entry.assistant.slider-entry .service-card {
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 8px;
}

.room-card-title,
.service-card-title,
.room-info-card-title {
  order: 2;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.room-card-capacity-line {
  order: 2.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 400;
}

.room-card-capacity {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.room-card-units {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.entry.assistant .bubble .room-card,
.entry.assistant.slider-entry .room-card,
.entry.assistant .bubble .service-card,
.entry.assistant.slider-entry .service-card,
.entry.assistant .bubble .room-info-card,
.entry.assistant.slider-entry .room-info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.room-card-image,
.service-card-image {
  margin-bottom: 6px;
  order: 1;
}

.availability-slider .room-card-image {
  order: 1;
}

.service-card-image {
  order: 1;
}

.room-card-image img,
.service-card-image img {
  width: 100%;
  max-width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 4px;
}

.room-card-summary,
.service-card-description,
.room-card-description,
.room-info-card-description {
  order: 3;
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--muted);
}

.availability-summary-bubble {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.room-card-price,
.service-card-price {
  order: 4;
  font-weight: 600;
  margin: 2px 0 2px;
}

.room-card-packages {
  order: 5;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.room-card-packages-text {
  flex: 1;
}

.room-card-packages-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.room-card-packages-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.room-card-packages-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}

.room-card-packages-toggle .toggle-icon {
  display: inline-block;
  font-weight: 600;
  user-select: none;
}

.room-card-packages-list {
  order: 6;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-card-package-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 13px;
}

.room-card-package-name {
  color: var(--ink);
  flex: 1;
}

.room-card-package-price {
  color: var(--ink);
  font-weight: 600;
  margin-left: 8px;
}

/* Horizontal slider for services/extras */
.entry.assistant .bubble .services-slider,
.entry.assistant .bubble .rooms-slider,
.entry.assistant.slider-entry .rooms-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0;
  margin: 4px 0 8px;
}

.entry.assistant .bubble .service-card,
.entry.assistant.slider-entry .service-card,
.entry.assistant .bubble .room-info-card,
.entry.assistant.slider-entry .room-info-card {
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 8px;
}

.service-card-title {
  order: 2;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-card-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 6px;
}

.service-card-description {
  order: 3;
  font-size: 13px;
  margin-bottom: 4px;
}

.service-card-price {
  order: 4;
  font-size: 13px;
  font-weight: 600;
}


/* Horizontal slider for room info (hotel://rooms) */

.room-info-card-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 6px;
}

.room-info-card-capacity {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--muted);
}

.room-info-card-description {
  font-size: 13px;
}

/* Room details toggle button */
.room-details-toggle {
  order: 5;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
  width: 100%;
}

.room-details-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.room-details-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}

.room-details-toggle-text {
  flex: 1;
  text-align: left;
}

.room-details-toggle-icon {
  font-size: 16px;
  font-weight: 600;
  user-select: none;
  line-height: 1;
}

/* Room details section */
.room-info-card-details {
  order: 6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.room-details-section {
  margin-bottom: 12px;
}

.room-details-section:last-child {
  margin-bottom: 0;
}

.room-details-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.room-details-value {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.room-details-description {
  line-height: 1.6;
  color: var(--muted);
}

/* SUMMARY CARD STYLES */
.summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.summary-card-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.summary-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-card-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-card-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-card-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.summary-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  min-width: 80px;
}

.summary-card-value {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}

.summary-card-summary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.summary-card-summary .summary-card-value {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.summary-card-price {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.summary-card-price .summary-card-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

/* AUTO-INJECTED COMPACT CARD RULES */

.entry.assistant .bubble .room-card,
.entry.assistant .bubble .service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 12px 12px 14px;
}

.room-card-image img,
.service-card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.room-card-title,
.service-card-title {
  order: 2;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.room-card-summary,
.service-card-description {
  margin:0;
  font-size:13px;
  line-height:1.3;
}

.room-card-price,
.room-card-extra,
.room-card-packages,
.service-card-price {
  margin:0;
  font-size:12px;
}

/* COMPACT CARD FIXES */
.entry.assistant .bubble .room-card,
.entry.assistant .bubble .service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px;
}

.room-card-image img,
.service-card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.room-card-title,
.service-card-title {
  margin:0;
  font-size:14px;
  font-weight:600;
}

.room-card-summary,
.service-card-description {
  margin:0;
  font-size:13px;
  line-height:1.3;
}

.room-card-price,
.room-card-packages,
.room-card-extra,
.service-card-price {
  margin:0;
  font-size:12px;
}


/* Ensure availability cards stack correctly:
   IMAGE → TITLE → TEXT → PRICE → PACKAGES  */

.entry.assistant .bubble .room-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;           /* small vertical spacing */
}

/* Explicit ordering of children */
.entry.assistant .bubble .room-card .room-card-image {
  order: 1;
}

.entry.assistant .bubble .room-card .room-card-title {
  order: 2;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.entry.assistant .bubble .room-card .room-card-summary {
  order: 3;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.entry.assistant .bubble .room-card .room-card-price {
  order: 4;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.entry.assistant .bubble .room-card .room-card-packages,
.entry.assistant .bubble .room-card .room-card-extra {
  order: 5;
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.entry.assistant .bubble .room-card .room-card-packages-text,
.entry.assistant.slider-entry .room-card .room-card-packages-text {
  flex: 1;
}

.entry.assistant .bubble .room-card .room-card-packages-toggle,
.entry.assistant.slider-entry .room-card .room-card-packages-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.entry.assistant .bubble .room-card .room-card-packages-toggle:hover,
.entry.assistant.slider-entry .room-card .room-card-packages-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.entry.assistant .bubble .room-card .room-card-packages-toggle:active,
.entry.assistant.slider-entry .room-card .room-card-packages-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}

.entry.assistant .bubble .room-card .room-card-packages-toggle .toggle-icon,
.entry.assistant.slider-entry .room-card .room-card-packages-toggle .toggle-icon {
  display: inline-block;
  font-weight: 600;
  user-select: none;
}

.entry.assistant .bubble .room-card .room-card-packages-list,
.entry.assistant.slider-entry .room-card .room-card-packages-list {
  order: 6;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entry.assistant .bubble .room-card .room-card-package-item,
.entry.assistant.slider-entry .room-card .room-card-package-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 13px;
}

.entry.assistant .bubble .room-card .room-card-package-name,
.entry.assistant.slider-entry .room-card .room-card-package-name {
  color: var(--ink);
  flex: 1;
}

.entry.assistant .bubble .room-card .room-card-package-price,
.entry.assistant.slider-entry .room-card .room-card-package-price {
  color: var(--ink);
  font-weight: 600;
  margin-left: 8px;
}

/* Full-width slider entries (no standard bubble) */
.entry.assistant.slider-entry {
  width: 100%;
  margin: 16px 0;
}

/* Container that replaces the bubble */
.entry.assistant.slider-entry .slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent; /* let the page background show */
  padding: 0;
}

/* Horizontal slider layout */
.entry.assistant.slider-entry .card-slider,
.entry.assistant.slider-entry .availability-slider,
.entry.assistant.slider-entry .rooms-slider,
.entry.assistant.slider-entry .services-slider,
.entry.assistant.slider-entry .rates-slider {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0;
}

.entry.assistant.slider-entry .card-slider::-webkit-scrollbar,
.entry.assistant.slider-entry .availability-slider::-webkit-scrollbar,
.entry.assistant.slider-entry .rooms-slider::-webkit-scrollbar,
.entry.assistant.slider-entry .services-slider::-webkit-scrollbar,
.entry.assistant.slider-entry .rates-slider::-webkit-scrollbar {
  display: none;
}

/* Navigation buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.slider-btn-prev { left: 8px; }
.slider-btn-next { right: 8px; }

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}


/* Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  z-index: 5;
}

.footer-text {
  font-size: 12px;
  color: var(--muted);
}

#model-pill-footer {
  font-size: 11px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
