@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./fonts/PlusJakartaSans.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #eef2f7;
  --border-color: #dce4f0;
  --border-strong: #c3d0e3;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --brand-primary: #003b95;
  --brand-primary-light: #0057d9;
  --brand-primary-soft: #e8f1ff;
  --brand-accent: #0ea5e9;

  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;

  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;

  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --purple-border: #ddd6fe;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Topbar */
.topbar {
  background: linear-gradient(135deg, #002b6b 0%, #003b95 55%, #0353c9 100%);
  color: #ffffff;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0, 43, 107, 0.22);
}

.topbar-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffb700;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.84);
}

.topbar-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pill strong {
  color: #fde047;
}

.btn-topbar-snap {
  background: #ffb700;
  color: #0f172a;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-topbar-snap:hover {
  background: #facc15;
  transform: translateY(-1px);
}

/* Stepper Navigation */
.stepper-Wrap {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stepper-nav {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.step-tab {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.16s ease;
  color: var(--text-secondary);
}

.step-tab:hover {
  border-color: var(--brand-primary-light);
  background: var(--brand-primary-soft);
}

.step-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 59, 149, 0.22);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-tab.active .step-num {
  background: #ffb700;
  color: #0f172a;
}

.step-info {
  overflow: hidden;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-sub {
  font-size: 0.73rem;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Container */
.main-container {
  max-width: 1380px;
  margin: 24px auto 64px;
  padding: 0 24px;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

/* Cards & Sections */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.badge-red {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.badge-purple {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

/* Booking URL Inspector Bar */
.booking-hero-box {
  background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
  border: 2px solid #b8d2ff;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
}

.url-input-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.url-input {
  flex: 1;
  min-width: 280px;
  padding: 13px 16px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  background: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.url-input:focus {
  outline: none;
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 3px rgba(0, 87, 217, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-primary-light);
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
}

.btn-emerald:hover {
  background: #047857;
}

.btn-amber {
  background: #f59e0b;
  color: #0f172a;
}

.btn-amber:hover {
  background: #d97706;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-primary-light);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.btn-danger-soft {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
}

.btn-danger-soft:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.example-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.example-btn {
  background: #ffffff;
  border: 1px solid #b8d2ff;
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.example-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.inspect-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  display: none;
}

.inspect-feedback.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Editable AL Form Grid */
.al-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 3px rgba(0, 87, 217, 0.12);
}

/* Amenities Pills */
.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.amenity-pill input {
  accent-color: var(--emerald);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.amenity-pill.checked {
  background: var(--emerald-bg);
  border-color: var(--emerald);
  color: #065f46;
}

/* Criteria Sliders */
.criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.criterion-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.criterion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.criterion-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.criterion-slider {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

/* Passo 2: Progress Bar & 1-by-1 Validation */
.approval-progress-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.comparison-arena {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: stretch;
}

.my-al-summary-card {
  background: #f0f6ff;
  border: 2px solid #bdd6ff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.candidate-detail-card {
  background: var(--bg-surface);
  border: 2px solid var(--brand-primary-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.candidate-visual-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.candidate-svg-thumb {
  width: 100%;
  height: 145px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #e2e8f0;
}

.candidate-svg-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.amenity-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.diff-col {
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.83rem;
}

.diff-col.equal {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
}

.diff-col.their-adv {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
}

.diff-col.your-adv {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
}

.diff-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.notes-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 16px 0;
}

.notes-textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 0.9rem;
  margin-top: 6px;
  resize: vertical;
}

.quick-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-nota-rapida {
  background: #ffffff;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-nota-rapida:hover {
  background: #fef3c7;
}

.decision-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* Candidates Grid View */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.candidate-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.candidate-mini-card.approved {
  border: 2px solid var(--emerald);
  background: #f8fffc;
}

.candidate-mini-card.rejected {
  opacity: 0.62;
  background: #f8fafc;
}

/* KPI Grid (Passo 3, 4, 5) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
}

.kpi-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Matrix Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.matrix-table th {
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.matrix-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.88rem;
}

.matrix-table tr:hover td {
  background: #f8fbff;
}

.mini-days-row {
  display: inline-flex;
  gap: 3px;
  margin-top: 5px;
}

.day-dot {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  user-select: none;
}

.day-dot.occupied {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.day-dot.comp-occupied {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
  cursor: default;
}

.inline-price-input {
  width: 78px;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-weight: 700;
  text-align: right;
}

.occ-bar-wrap {
  width: 100%;
  max-width: 160px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 5px 0;
}

.occ-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* Modals (Warning <15 Competitors & Weekly Drill-down) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 1080px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.modal-warning-box {
  max-width: 620px;
  border: 3px solid #f59e0b;
  background: #fffbeb;
}

.private-note-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Snapshot comparison controls */
.snapshot-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Recommendation Cards */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.rec-card.rec-danger {
  border-left-color: var(--red);
  background: #fffafa;
}

.rec-card.rec-opportunity {
  border-left-color: var(--emerald);
  background: #f7fee7;
}

.rec-card.rec-warning {
  border-left-color: var(--amber);
  background: #fffdf5;
}

.rec-card.rec-ideal {
  border-left-color: var(--blue);
}

/* Responsive Mobile (390px) */
@media (max-width: 960px) {
  .stepper-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-arena {
    grid-template-columns: 1fr;
  }
  .candidate-visual-header {
    grid-template-columns: 1fr;
  }
  .amenity-diff-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 12px 14px;
  }
  .main-container {
    padding: 0 12px;
    margin-top: 14px;
  }
  .stepper-nav {
    grid-template-columns: 1fr;
    padding: 8px 12px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
}

@media print {
  .topbar, .stepper-Wrap, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff;
  }
  .step-panel {
    display: block !important;
    page-break-after: always;
  }
}

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .al-form-grid {
    grid-template-columns: 1fr !important;
  }
  .al-form-grid > .form-group {
    grid-column: span 1 !important;
  }
  .url-input {
    min-width: 0 !important;
    width: 100%;
  }
  .criteria-list {
    grid-template-columns: 1fr !important;
  }
}

/* Photo Carousel & Full Description Styles */
.photo-carousel-box {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: relative;
}

.photo-carousel-main {
  position: relative;
  width: 100%;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  overflow: hidden;
}

.photo-carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.15s ease;
}

.carousel-nav-btn:hover {
  background: var(--brand-primary);
}

.carousel-nav-btn.prev {
  left: 10px;
}

.carousel-nav-btn.next {
  right: 10px;
}

.carousel-counter-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  z-index: 4;
}

.carousel-caption-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  max-width: 68%;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 4;
}

.carousel-thumbs-strip {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #1e293b;
  overflow-x: auto;
}

.carousel-thumb-item {
  width: 58px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all 0.15s ease;
}

.carousel-thumb-item.active,
.carousel-thumb-item:hover {
  border-color: #ffb700;
  opacity: 1;
}

.carousel-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.full-description-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  max-height: 210px;
  overflow-y: auto;
}

/* Clean two-row topbar adjustments: status bar below, left-aligned with top row */
.topbar-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}
.topbar-row-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}
.brand-block .brand-title {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.15;
}
.brand-block .brand-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}
.topbar-status {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 0;
  padding-left: 0;
}
@media (max-width: 960px) {
  .topbar-row-top,
  .topbar-status {
    flex-wrap: wrap;
  }
}
