/**
 * Nearly Perfect Design System - Component Library
 * Reusable CSS component classes
 *
 * Usage:
 *   <link rel="stylesheet" href="variables/colors.css">
 *   <link rel="stylesheet" href="variables/typography.css">
 *   <link rel="stylesheet" href="variables/components.css">
 *
 *   <button class="np-btn np-btn-main">Book Now</button>
 *
 * Figma source: UHAKrCf1s8dyZ5vNpOfymS (node 903:1093)
 * Last updated: April 2026
 */

/* ============================================================
 * FOUNDATION TOKENS
 * Neutral grays used by the component system (from Figma)
 * ============================================================ */
:root {
  --color-neutral-100: #F2F4F7;
  --color-neutral-200: #E8EBEF;
  --color-neutral-300: #D0D5DD;
  --color-neutral-400: #98A2B3;
  --color-neutral-500: #7D8898;
  --color-neutral-600: #667085;
  --color-neutral-700: #475467;
  --color-neutral-800: #2F3845;
  --color-neutral-900: #1D2939;

  /* Component sizing */
  --np-control-height: 48px;
  --np-control-height-sm: 36px;
  --np-control-height-lg: 56px;
  --np-radius: 16px;
  --np-radius-sm: 12px;
  --np-radius-lg: 20px;
  --np-radius-full: 9999px;

  /* Transitions */
  --np-transition: 200ms ease;
  --np-transition-fast: 150ms ease;
}


/* ============================================================
 * BUTTONS
 * Types: Main, Secondary, Tertiary, Ghost
 * States: default, hover, press/active, disabled
 * Variants: with left icon, right icon, icon-only
 * Figma: 951:25324
 * ============================================================ */

.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--np-control-height);
  padding: 16px 24px;
  border-radius: var(--np-radius);
  border: none;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  transition: background-color var(--np-transition),
              box-shadow var(--np-transition),
              opacity var(--np-transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  min-height: 44px; /* WCAG touch target */
}

.np-btn:focus-visible {
  outline: 2px solid var(--color-indigo-400);
  outline-offset: 2px;
}

/* -- Main (Primary) -- */
.np-btn-main {
  background-color: var(--color-indigo-500);
  color: white;
  box-shadow: inset 0px 1px 2px 0px rgba(255, 255, 255, 0.5);
}
.np-btn-main:hover {
  background-color: var(--color-indigo-600);
  box-shadow: inset 0px 1px 2px 0px rgba(255, 255, 255, 0.5),
              0 4px 12px rgba(18, 11, 164, 0.25);
}
.np-btn-main:active {
  background-color: var(--color-indigo-700);
}
.np-btn-main:disabled,
.np-btn-main[aria-disabled="true"] {
  background-color: var(--color-neutral-200);
  color: var(--color-neutral-400);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Secondary (Outlined) -- */
.np-btn-secondary {
  background-color: white;
  color: var(--color-neutral-800);
  border: 1px solid var(--color-neutral-200);
}
.np-btn-secondary:hover {
  border-color: var(--color-indigo-400);
  color: var(--color-indigo-500);
}
.np-btn-secondary:active {
  border-color: var(--color-indigo-500);
  background-color: var(--color-indigo-50);
}
.np-btn-secondary:disabled,
.np-btn-secondary[aria-disabled="true"] {
  background-color: var(--color-neutral-100);
  border-color: var(--color-neutral-200);
  color: var(--color-neutral-400);
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Tertiary -- */
.np-btn-tertiary {
  background-color: var(--color-indigo-400);
  color: white;
}
.np-btn-tertiary:hover {
  background-color: var(--color-indigo-300);
}
.np-btn-tertiary:active {
  background-color: var(--color-indigo-500);
}
.np-btn-tertiary:disabled,
.np-btn-tertiary[aria-disabled="true"] {
  background-color: var(--color-neutral-200);
  color: var(--color-neutral-400);
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Ghost -- */
.np-btn-ghost {
  background-color: transparent;
  color: var(--color-neutral-600);
}
.np-btn-ghost:hover {
  background-color: var(--color-neutral-100);
  color: var(--color-indigo-500);
}
.np-btn-ghost:active {
  background-color: var(--color-neutral-200);
}
.np-btn-ghost:disabled,
.np-btn-ghost[aria-disabled="true"] {
  color: var(--color-neutral-300);
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Button sizes -- */
.np-btn-sm {
  height: var(--np-control-height-sm);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--np-radius-sm);
}

.np-btn-lg {
  height: var(--np-control-height-lg);
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--np-radius-lg);
}

/* -- Icon-only button -- */
.np-btn-icon {
  width: var(--np-control-height);
  padding: 0;
  justify-content: center;
}
.np-btn-icon.np-btn-sm {
  width: var(--np-control-height-sm);
}

/* -- Full-width -- */
.np-btn-block {
  width: 100%;
}

/* -- Pill shape (legacy/CTA variant) -- */
.np-btn-pill {
  border-radius: var(--np-radius-full);
}

/* -- Button with nav accent (mint border) -- */
.np-btn-nav {
  border: 2px solid var(--color-mint-300);
}

/* -- Bottom button pair -- */
.np-btn-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-btn-pair .np-btn-cancel {
  background: transparent;
  color: var(--color-neutral-600);
  border: none;
  padding: 12px 16px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.np-btn-pair .np-btn-cancel:hover {
  color: var(--color-neutral-800);
}


/* ============================================================
 * INPUTS & SEARCH
 * States: default, active, fill, disabled, error, success, search
 * Figma: 903:1511
 * ============================================================ */

.np-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-neutral-800);
  display: flex;
  align-items: center;
  gap: 4px;
}

.np-label-required::after {
  content: "*";
  color: var(--color-coral-500);
}

.np-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--np-control-height);
  padding: 0 16px;
  border-radius: var(--np-radius-sm);
  border: 1px solid var(--color-neutral-200);
  background: white;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  color: var(--color-neutral-800);
  transition: border-color var(--np-transition),
              box-shadow var(--np-transition);
  width: 100%;
  box-sizing: border-box;
}

.np-input::placeholder {
  color: var(--color-neutral-400);
}

.np-input:focus,
.np-input-active {
  border-color: var(--color-indigo-500);
  box-shadow: 0 0 0 3px rgba(18, 11, 164, 0.1);
  outline: none;
}

.np-input-error {
  border-color: var(--color-coral-500);
  background-color: var(--color-coral-50);
}
.np-input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 60, 94, 0.1);
}

.np-input-success {
  border-color: var(--color-mint-500);
}
.np-input-success:focus {
  box-shadow: 0 0 0 3px rgba(93, 207, 173, 0.1);
}

.np-input:disabled,
.np-input-disabled {
  background-color: var(--color-neutral-100);
  border-color: var(--color-neutral-200);
  color: var(--color-neutral-400);
  cursor: not-allowed;
}

.np-input-caption {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  color: var(--color-neutral-500);
}

.np-input-caption-error {
  color: var(--color-coral-500);
}

.np-input-caption-success {
  color: var(--color-mint-700);
}

/* Input with icons */
.np-input-group {
  position: relative;
}
.np-input-group .np-input {
  padding-left: 44px;
}
.np-input-group .np-input-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-neutral-400);
  pointer-events: none;
}
.np-input-group .np-input-icon-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Textarea */
.np-textarea {
  min-height: 96px;
  padding: 12px 16px;
  border-radius: var(--np-radius-sm);
  border: 1px solid var(--color-neutral-200);
  background: white;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  color: var(--color-neutral-800);
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--np-transition);
}
.np-textarea:focus {
  border-color: var(--color-indigo-500);
  box-shadow: 0 0 0 3px rgba(18, 11, 164, 0.1);
  outline: none;
}

/* -- Hero Search Bar -- */
.np-search-hero {
  background-color: var(--color-warm-100);
  border-radius: var(--np-radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 16px 24px;
}
.np-search-hero .np-search-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .np-search-hero .np-search-fields {
    grid-template-columns: 1fr;
  }
}
.np-search-hero .np-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.np-search-hero .np-search-hint {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  color: var(--color-neutral-500);
}

/* -- Compact Search Bar -- */
.np-search-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-warm-100);
  border-radius: var(--np-radius-full);
  border: 1px solid var(--color-warm-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 8px 8px 8px 20px;
}
.np-search-compact .np-search-summary {
  flex: 1;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-warm-700);
}


/* ============================================================
 * FORM CONTROLS
 * Tabs, Alerts, Radio, Checkbox, Toggle
 * Figma: 924:21728
 * ============================================================ */

/* -- Tabs -- */
.np-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-neutral-200);
}
.np-tab {
  padding: 10px 16px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-neutral-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--np-transition),
              border-color var(--np-transition);
  white-space: nowrap;
}
.np-tab:hover {
  color: var(--color-indigo-500);
}
.np-tab-active,
.np-tab[aria-selected="true"] {
  color: var(--color-indigo-500);
  border-bottom-color: var(--color-indigo-500);
  font-weight: 600;
}

/* Pill-style tabs */
.np-tabs-pill {
  gap: 4px;
  border-bottom: none;
}
.np-tabs-pill .np-tab {
  border-radius: var(--np-radius-sm);
  border-bottom: none;
  padding: 8px 16px;
}
.np-tabs-pill .np-tab-active,
.np-tabs-pill .np-tab[aria-selected="true"] {
  background-color: var(--color-indigo-500);
  color: white;
}

/* -- Alerts -- */
.np-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--np-radius-sm);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
}
.np-alert-action {
  margin-left: auto;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.np-alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
}
.np-alert-close:hover {
  opacity: 1;
}

.np-alert-info {
  background-color: var(--color-periwinkle-100);
  color: var(--color-periwinkle-800);
}
.np-alert-info .np-alert-action { color: var(--color-periwinkle-800); }

.np-alert-success {
  background-color: var(--color-mint-100);
  color: var(--color-mint-800);
}
.np-alert-success .np-alert-action { color: var(--color-mint-800); }

.np-alert-error {
  background-color: var(--color-coral-100);
  color: var(--color-coral-800);
}
.np-alert-error .np-alert-action { color: var(--color-coral-800); }

.np-alert-warning {
  background-color: #FEF3C7;
  color: #92400E;
}
.np-alert-warning .np-alert-action { color: #92400E; }

/* -- Selection controls -- */
.np-radio,
.np-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-neutral-300);
  background: white;
  cursor: pointer;
  transition: all var(--np-transition-fast);
  flex-shrink: 0;
}
.np-radio {
  border-radius: 50%;
}
.np-checkbox {
  border-radius: 6px;
}
.np-radio:checked {
  border-color: var(--color-indigo-500);
  background: white;
  box-shadow: inset 0 0 0 4px var(--color-indigo-500);
}
.np-checkbox:checked {
  border-color: var(--color-indigo-500);
  background-color: var(--color-indigo-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.np-radio:disabled,
.np-checkbox:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.np-radio:focus-visible,
.np-checkbox:focus-visible {
  outline: 2px solid var(--color-indigo-400);
  outline-offset: 2px;
}

/* Toggle switch */
.np-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background-color: var(--color-neutral-200);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color var(--np-transition-fast);
  flex-shrink: 0;
}
.np-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform var(--np-transition-fast);
}
.np-toggle:checked {
  background-color: var(--color-mint-500);
}
.np-toggle:checked::after {
  transform: translateX(20px);
}
.np-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Control with label */
.np-control-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-neutral-700);
  cursor: pointer;
}
.np-control-label:has(:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============================================================
 * TABLES
 * Types: Booking Summary, Room Comparison, Amenities, Reservation List
 * Figma: 903:1718
 * ============================================================ */

.np-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-neutral-800);
}
.np-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-neutral-200);
}
.np-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-neutral-100);
  vertical-align: middle;
}
.np-table tr:last-child td {
  border-bottom: none;
}
.np-table tbody tr:hover {
  background-color: var(--color-neutral-100);
}

/* Key-value table (Booking Summary) */
.np-table-kv td:first-child {
  color: var(--color-neutral-500);
  font-weight: 400;
}
.np-table-kv td:last-child {
  text-align: right;
  font-weight: 500;
}
.np-table-kv tr:last-child td {
  font-weight: 700;
  border-top: 1px solid var(--color-neutral-200);
  padding-top: 16px;
}

/* Comparison table */
.np-table-compare th:not(:first-child),
.np-table-compare td:not(:first-child) {
  text-align: center;
}

/* Table states */
.np-table-empty,
.np-table-loading {
  padding: 48px 24px;
  text-align: center;
  background-color: var(--color-warm-50);
  border-radius: var(--np-radius-sm);
}
.np-table-empty-title {
  font-weight: 600;
  color: var(--color-neutral-800);
  margin-bottom: 4px;
}
.np-table-empty-text {
  font-size: 14px;
  color: var(--color-neutral-500);
}
.np-table-loading-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}
.np-table-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-neutral-400);
  animation: np-dot-pulse 1.4s infinite ease-in-out both;
}
.np-table-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.np-table-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes np-dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}


/* ============================================================
 * CARDS & DIALOGS
 * Figma: 997:27949
 * ============================================================ */

.np-card {
  background: white;
  border-radius: var(--np-radius);
  box-shadow: var(--np-card-shadow, 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1));
  overflow: hidden;
}

.np-card-padded {
  padding: 24px;
}

/* Dialog/modal card */
.np-dialog {
  background: white;
  border-radius: var(--np-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
}
.np-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.np-dialog-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-neutral-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-dialog-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-neutral-400);
  border-radius: 4px;
}
.np-dialog-close:hover {
  color: var(--color-neutral-600);
  background-color: var(--color-neutral-100);
}
.np-dialog-body {
  padding: 12px 20px 20px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-neutral-600);
  line-height: 1.5;
}
.np-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 20px;
}

/* Dialog with status icon */
.np-dialog-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.np-dialog-icon-success {
  background-color: var(--color-mint-100);
  color: var(--color-mint-700);
}
.np-dialog-icon-error {
  background-color: var(--color-coral-100);
  color: var(--color-coral-700);
}
.np-dialog-icon-info {
  background-color: var(--color-periwinkle-100);
  color: var(--color-periwinkle-700);
}

/* Dialog sizes */
.np-dialog-sm { max-width: 320px; }
.np-dialog-lg { max-width: 540px; }

/* Room card (warm surface) */
.np-room-card {
  background-color: var(--color-warm-100);
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--np-transition);
}
.np-room-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.np-room-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.np-room-card-body {
  padding: 16px;
}
.np-room-card-title {
  font-family: var(--font-display, 'Geist', sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-indigo-500);
  margin-bottom: 4px;
}
.np-room-card-desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-warm-600);
  margin-bottom: 12px;
}
.np-room-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.np-room-card-price {
  font-family: var(--font-display, 'Geist', sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-indigo-500);
}
.np-room-card-price-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-warm-600);
}


/* ============================================================
 * CHIPS & TAGS
 * Families: Informational, Signal, Filter, Removable, Action, Status
 * Figma: 903:2036
 * ============================================================ */

.np-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--np-radius-full);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: all var(--np-transition-fast);
}

/* Informational (outlined, neutral) */
.np-chip-info {
  background: var(--color-warm-50);
  border: 1px solid var(--color-warm-300);
  color: var(--color-warm-700);
}

/* Signal: Match (periwinkle) */
.np-chip-match {
  background: var(--signal-match-bg);
  border: 1px solid var(--color-periwinkle-200);
  color: var(--signal-match-text);
}

/* Signal: Human Verified (mint) */
.np-chip-human {
  background: var(--signal-human-bg);
  border: 1px solid var(--color-mint-200);
  color: var(--signal-human-text);
}

/* Signal: Value & Timing (coral) */
.np-chip-value {
  background: var(--signal-value-bg);
  border: 1px solid var(--color-coral-200);
  color: var(--signal-value-text);
}

/* Signal: Room Character (warm) */
.np-chip-character {
  background: var(--signal-character-bg);
  color: var(--signal-character-text);
  border: 1px solid transparent;
}

/* Filter chip (toggle) */
.np-chip-filter {
  background: white;
  border: 1px solid var(--color-neutral-300);
  color: var(--color-neutral-700);
  cursor: pointer;
  min-height: 36px;
  padding: 6px 16px;
}
.np-chip-filter:hover {
  border-color: var(--color-indigo-400);
  color: var(--color-indigo-500);
}
.np-chip-filter-active,
.np-chip-filter[aria-pressed="true"] {
  background-color: var(--color-indigo-500);
  border-color: var(--color-indigo-500);
  color: white;
}

/* Removable chip */
.np-chip-removable {
  background-color: var(--color-indigo-100);
  color: var(--color-indigo-700);
  border: 1px solid transparent;
  padding-right: 8px;
}
.np-chip-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  display: inline-flex;
}
.np-chip-remove:hover {
  opacity: 1;
}

/* Action chip */
.np-chip-action {
  background: white;
  border: 1px solid var(--color-indigo-200);
  color: var(--color-indigo-600);
  cursor: pointer;
}
.np-chip-action:hover {
  background-color: var(--color-indigo-50);
  border-color: var(--color-indigo-400);
}

/* Status chip (text-only) */
.np-chip-status {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 500;
}
.np-chip-status-confirmed { color: var(--color-mint-700); }
.np-chip-status-pending { color: var(--color-periwinkle-600); }
.np-chip-status-limited { color: var(--color-coral-600); }
.np-chip-status-cancelled { color: var(--color-neutral-500); }

/* Chip sizes */
.np-chip-sm {
  padding: 2px 8px;
  font-size: 12px;
}
.np-chip-lg {
  padding: 8px 16px;
  font-size: 16px;
}

/* Tags (small filled pills, e.g. percentage labels) */
.np-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--np-radius-full);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: white;
  background-color: var(--color-indigo-500);
}
.np-tag-periwinkle { background-color: var(--color-periwinkle-500); }
.np-tag-mint { background-color: var(--color-mint-600); }
.np-tag-coral { background-color: var(--color-coral-500); }
.np-tag-neutral { background-color: var(--color-neutral-500); color: white; }


/* ============================================================
 * SELECT / DROPDOWN
 * Figma: 958:26160
 * ============================================================ */

.np-select {
  position: relative;
}
.np-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--np-control-height);
  padding: 0 16px;
  border-radius: var(--np-radius-sm);
  border: 1px solid var(--color-neutral-200);
  background: white;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  color: var(--color-neutral-800);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.np-select-trigger:hover {
  border-color: var(--color-neutral-300);
}

.np-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--np-radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 50;
  padding: 4px;
  min-width: 200px;
}
.np-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-neutral-800);
  cursor: pointer;
  transition: background-color var(--np-transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.np-dropdown-item:hover {
  background-color: var(--color-neutral-100);
}
.np-dropdown-item-active {
  background-color: var(--color-indigo-50);
  color: var(--color-indigo-600);
}
.np-dropdown-item-desc {
  font-size: 12px;
  color: var(--color-neutral-500);
}
.np-dropdown-divider {
  height: 1px;
  background-color: var(--color-neutral-100);
  margin: 4px 0;
}

/* Date picker trigger */
.np-datepicker-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--np-radius-sm);
  border: 1px solid var(--color-neutral-200);
  background: white;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-neutral-800);
  cursor: pointer;
}


/* ============================================================
 * IMAGE-AWARE SURFACES
 * Chip/overlay surfaces that adapt to underlying imagery
 * Figma: 958:26160
 * ============================================================ */

.np-surface-light-frost {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-neutral-800);
}

.np-surface-dark-mist {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
}

.np-surface-neutral-glass {
  background: rgba(245, 242, 239, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-neutral-800);
}


/* ============================================================
 * MATCH DIAMOND
 * Rotated square badge for match percentage
 * ============================================================ */

.np-match-diamond {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-match-diamond-shape {
  width: 80px;
  height: 80px;
  background-color: var(--color-indigo-500);
  transform: rotate(45deg);
  border-radius: 4px;
}
.np-match-diamond-content {
  position: absolute;
  text-align: center;
  color: white;
  z-index: 1;
}
.np-match-diamond-value {
  font-family: var(--font-display, 'Geist', sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.np-match-diamond-label {
  font-family: var(--font-display, 'Geist', sans-serif);
  font-size: 12px;
  color: var(--color-indigo-200);
}

/* Small variant */
.np-match-diamond-sm .np-match-diamond-shape {
  width: 36px;
  height: 36px;
}
.np-match-diamond-sm .np-match-diamond-value {
  font-size: 12px;
}
.np-match-diamond-sm .np-match-diamond-label {
  display: none;
}


/* ============================================================
 * STICKY BOTTOM BAR
 * Fixed bottom bar for room detail pages
 * ============================================================ */

.np-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(245, 242, 239, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-warm-200);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.np-sticky-bar-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}


/* ============================================================
 * HEADER & FOOTER
 * ============================================================ */

.np-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-warm-100);
  border-bottom: 1px solid var(--color-warm-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.np-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.np-header-logo {
  height: 40px;
}
.np-header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.np-footer {
  background-color: #1a1a1a;
  color: white;
  padding: 48px 16px 96px;
}
.np-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.np-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .np-footer-grid {
    grid-template-columns: 1fr;
  }
}
.np-footer-title {
  font-family: var(--font-display, 'Geist', sans-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.np-footer-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-warm-500);
}
.np-footer-heading {
  font-family: var(--font-display, 'Geist', sans-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.np-footer-link {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-warm-500);
  text-decoration: none;
  transition: color var(--np-transition-fast);
}
.np-footer-link:hover {
  color: white;
}
.np-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-warm-800);
  text-align: center;
  font-size: 12px;
  color: var(--color-warm-600);
}


/* ============================================================
 * ACCORDION / FAQ
 * ============================================================ */

.np-accordion {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--np-radius-sm);
  overflow: hidden;
}
.np-accordion + .np-accordion {
  margin-top: 8px;
}
.np-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border: none;
  cursor: pointer;
  font-family: var(--font-display, 'Geist', sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-indigo-500);
  text-align: left;
  min-height: 44px;
  transition: background-color var(--np-transition-fast);
}
.np-accordion-trigger:hover {
  background-color: var(--color-neutral-100);
}
.np-accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--np-transition);
  color: var(--color-indigo-500);
}
.np-accordion[open] .np-accordion-icon {
  transform: rotate(180deg);
}
.np-accordion-content {
  padding: 0 20px 16px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-warm-700);
  line-height: 1.6;
}


/* ============================================================
 * UTILITY CLASSES
 * ============================================================ */

/* Icon sizing */
.np-icon { width: 20px; height: 20px; flex-shrink: 0; }
.np-icon-sm { width: 16px; height: 16px; }
.np-icon-lg { width: 24px; height: 24px; }

/* Icon container (circled icon for feature cards) */
.np-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-periwinkle-400);
}
.np-icon-circle svg {
  width: 32px;
  height: 32px;
  color: var(--color-periwinkle-400);
}
.np-icon-circle-mint {
  border-color: var(--color-mint-400);
}
.np-icon-circle-mint svg {
  color: var(--color-mint-400);
}
.np-icon-circle-indigo {
  border-color: var(--color-indigo-500);
}
.np-icon-circle-indigo svg {
  color: var(--color-indigo-500);
}

/* Signal chip overlay positioning */
.np-chip-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Flex/grid helpers for chip lists */
.np-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Status dot */
.np-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.np-status-dot-success { background-color: var(--color-mint-500); }
.np-status-dot-warning { background-color: #F59E0B; }
.np-status-dot-error { background-color: var(--color-coral-500); }
.np-status-dot-info { background-color: var(--color-periwinkle-500); }
