
/*
  Base44 1:1 final layer
  Loaded last in base.html to normalize legacy cascade without !important.
*/

a {
  color: inherit;
}

/* Generic surfaces */

.musicians-page-shell,
.gigs-page-shell,
.venues-page-shell,
.ensembles-page-shell,
.vacancies-page-shell,
.profile-public-shell,
.vacancy-detail-page {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Forms */
.ui-form,
form.row.ui-form {
  margin: 0;
}

.row {
  margin-bottom: 0;
}

.row .col {
  padding-left: 8px;
  padding-right: 8px;
}

form .row:last-child {
  margin-bottom: 0;
}

/* Catalog/musicians compatibility selectors missing in ui-core */

.list-status-pill.is-accepted:not(.twds-status) {
  border-color: #a7f3d0;
  background: #d1fae5;
  color: #047857;
}

.list-status-pill.is-pending:not(.twds-status),
.list-status-pill.is-forming:not(.twds-status) {
  border-color: #ddd6fe;
  background: #ede9fe;
  color: #6d28d9;
}

.list-status-pill.is-filled:not(.twds-status) {
  border-color: #fecaca;
  background: #fee2e2;
  color: #b91c1c;
}

.vacancy-card:hover {
  box-shadow: var(--ui-shadow-lg);
}

/* Vacancies list */
.vacancies-page-shell .vacancies-page-header {
  align-items: center;
}

/* Vacancy details */
.vacancy-detail-page .page-title {
  font-size: clamp(2rem, 1.8rem + 1.1vw, 2.5rem);
}

/* Modals */
.sidenav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgb(15 23 42 / 0.58);
  backdrop-filter: blur(4px);
}

.video-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--ui-border-strong);
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.video-popup-close:hover {
  background: #f8fafc;
  color: #334155;
}

.video-popup-modal .video-popup-content {
  width: min(980px, calc(100% - 36px));
  max-height: calc(100vh - 36px);
  margin: 18px auto;
  padding: 14px;
  border-radius: 16px;
}

.video-popup-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
}

.video-popup-frame > iframe,
.video-popup-frame > video,
.video-popup-frame > audio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Utility */
.is-hidden,
.is-hidden.is-hidden,
nav .right > li.is-hidden,
.sidenav li.is-hidden {
  display: none;
}

.hide-on-med-and-down {
  display: block;
}

.show-on-medium-and-down {
  display: none;
}

.sidenav-trigger.show-on-medium-and-down {
  display: none;
}

body.sidenav-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  #mobile-menu.sidenav {
    display: none;
    transform: translateX(100%);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hide-on-med-and-down {
    display: none !important;
  }

  .show-on-medium-and-down {
    display: inline-flex;
    align-items: center;
  }

  .sidenav-trigger.show-on-medium-and-down {
    display: inline-flex;
  }

  .row .col {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 760px) {
  .vacancies-page-shell .vacancies-page-header {
    flex-direction: column;
    align-items: stretch;
  }

}

/* Catalog card media/head variants */
.catalog-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgb(124 58 237 / 0.16);
  background: #f5f3ff;
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.catalog-avatar .icon {
  font-size: 26px;
}

:is(.catalog-card-musician, .catalog-card-ensemble, .catalog-card-gig, .catalog-card-venue) .catalog-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

:is(.catalog-card-musician, .catalog-card-ensemble, .catalog-card-gig, .catalog-card-venue) .catalog-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-card-ensemble .catalog-description,
.catalog-card-gig .catalog-description,
.catalog-card-venue .catalog-description {
  margin-bottom: 0;
}

.vacancies-page-shell .vacancy-title {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.vacancies-page-shell .vacancy-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #64748b;
  font-size: 14px;
}

/* -------------------------------------------------------------------------- */
/* Base44 1:1 sweep (2026-03-04)                                              */
/* -------------------------------------------------------------------------- */

.gigs-filter-toggle {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  justify-content: center;
}

.vacancy-detail-head-main .list-status-pill {
  margin-bottom: 8px;
}

.vacancy-apply-summary {
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #f8faff;
  color: #42577f;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.vacancy-apply-actions {
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  display: flex;
  margin-top: 16px;
}

/* -------------------------------------------------------------------------- */
/* Base44 catalog parity pass (2026-03-04)                                    */
/* -------------------------------------------------------------------------- */

.has-leading-icon {
  position: relative;
}

.input-leading-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
  z-index: 2;
}

.input-field.has-leading-icon input[type="text"],
.input-field.has-leading-icon input[type="search"],
.input-field.has-leading-icon input[type="number"] {
  padding-left: 50px;
}

.catalog-media {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f3ff 0%, #ddd6fe 100%);
}

.catalog-media-venue { min-height: 188px; }

.catalog-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(15 23 42 / 0) 25%, rgb(15 23 42 / 0.45) 100%);
  pointer-events: none;
}

.catalog-media-empty .catalog-media-overlay {
  background: linear-gradient(180deg, rgb(124 58 237 / 0.08) 0%, rgb(91 33 182 / 0.28) 100%);
}

.catalog-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
}

.catalog-media-placeholder .icon {
  font-size: 64px;
}

.catalog-media-top {
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 2;
}

.catalog-card-venue .catalog-title,
.catalog-card-ensemble .catalog-title {
  font-size: 33px;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.catalog-price-main {
  color: #7c3aed;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.catalog-price-suffix {
  color: #64748b;
  font-size: 14px;
}

.catalog-card-head-collective {
  align-items: center;
  padding-top: 0;
}

.catalog-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid #ddd6fe;
  box-shadow: 0 0 0 2px #ffffff;
}

.catalog-avatar-text {
  letter-spacing: -0.02em;
  line-height: 1;
  color: #7c3aed;
  font-size: 25px;
  font-weight: 700;
}

.catalog-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.collective-available-icon {
  color: #10b981;
  font-size: 19px;
  flex-shrink: 0;
}

.vacancy-owner {
  margin-top: 6px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.vacancy-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.vacancy-role-badge .icon {
  font-size: 14px;
}

.vacancy-role-badge.is-musician {
  border-color: #ddd6fe;
  background: #ede9fe;
  color: #6d28d9;
}

.vacancy-role-badge.is-organizer {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #7c3aed;
}

.vacancy-role-badge.is-venue {
  border-color: #e9d5ff;
  background: #faf5ff;
  color: #5b21b6;
}

.vacancy-role-badge.is-neutral {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.vacancies-page-shell .vacancy-card {
  padding: 14px;
  min-height: 210px;
}

@media (max-width: 740px) {
  .catalog-card-venue .catalog-title,
  .catalog-card-ensemble .catalog-title {
    font-size: 30px;
  }
}

/* -------------------------------------------------------------------------- */
/* Base44 listings parity pass (2026-03-04, block B)                          */
/* -------------------------------------------------------------------------- */

.gigs-page-shell .gigs-advanced-field,
.ensembles-page-shell .ensembles-advanced-field {
  display: none;
}

.gigs-page-shell .search-section.advanced-mode .gigs-advanced-field,
.ensembles-page-shell .search-section.advanced-mode .ensembles-advanced-field {
  display: flex;
}

.catalog-description {
  line-height: 1.45;
  font-size: 14px;
  color: #475569;
  margin: 10px 0 0;
  margin-top: 8px;
}

.ensembles-page-shell .page-header,
.venues-page-shell .page-header,
.gigs-page-shell .page-header,
.vacancies-page-shell .page-header {
  margin-bottom: 14px;
}

/* -------------------------------------------------------------------------- */
/* Base44 1:1 pass (block F, final catalog harmonizer, 2026-03-05)            */
/* -------------------------------------------------------------------------- */
.musicians-page-shell .page-title,
.ensembles-page-shell .page-title,
.vacancies-page-shell .page-title {
  margin: 0 0 8px;
  display: block;
  color: rgb(15 23 42);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.musicians-page-shell .page-subtitle,
.ensembles-page-shell .page-subtitle,
.vacancies-page-shell .page-subtitle {
  margin: 0;
  color: rgb(71 85 105);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

/* -------------------------------------------------------------------------- */
/* Base44 1:1 pass (block E, catalogs + search rhythm, 2026-03-05)            */
/* -------------------------------------------------------------------------- */
.gigs-page-shell .search-section,
.venues-page-shell .search-section,
.ensembles-page-shell .search-section,
.vacancies-page-shell .search-section {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* Base44 1:1 pass (block D): gigs + venues catalogs and detail pages         */
/* -------------------------------------------------------------------------- */
.gigs-page-shell .page-title,
.venues-page-shell .page-title {
  margin: 0;
  display: block;
  color: rgb(15 23 42);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.gigs-page-shell .page-subtitle,
.venues-page-shell .page-subtitle {
  margin-top: 8px;
  color: rgb(71 85 105);
  font-size: 18px;
  line-height: 28px;
}


.gig-detail-page,
.venue-detail-page {
  max-width: 832px;
  margin: 0 auto;
}

.gig-detail-hero,
.venue-detail-hero,
.gig-detail-panel,
.venue-detail-panel {
  border: 1px solid rgb(229 231 235);
  border-radius: 12px;
  background: rgb(255 255 255);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px rgb(0 0 0 / 0.1);
}

.gig-detail-hero,
.venue-detail-hero {
  padding: 24px;
}

.gig-detail-hero-badges,
.venue-detail-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.gig-detail-page .page-title,
.venue-detail-page .page-title {
  margin: 0;
  display: block;
  color: rgb(15 23 42);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.gig-detail-meta,
.venue-detail-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gig-detail-meta span,
.venue-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(71 85 105);
  font-size: 14px;
  line-height: 20px;
}

.gig-detail-meta .icon,
.venue-detail-meta .icon {
  color: rgb(139 92 246);
}

.gig-detail-chip-row {
  margin-top: 16px;
}

.gig-detail-layout,
.venue-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.gig-detail-main-col {
  display: grid;
  gap: 24px;
}

.gig-detail-sidebar,
.venue-detail-sidebar {
  display: grid;
  gap: 24px;
  align-self: start;
}

.gig-detail-panel,
.venue-detail-panel {
  padding: 24px;
}

.gig-detail-panel h3,
.venue-detail-panel h3 {
  margin: 0 0 16px;
  color: rgb(15 23 42);
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gig-detail-text,
.venue-detail-text {
  margin: 0;
  color: rgb(71 85 105);
  font-size: 16px;
  line-height: 24px;
  white-space: pre-wrap;
}


.gig-owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgb(229 231 235);
  background: rgb(237 233 254);
  color: rgb(124 58 237);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}


.gig-owner-avatar .icon {
  font-size: 18px;
}

.gig-owner-name {
  color: rgb(15 23 42);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.gig-owner-contact {
  margin-top: 2px;
  color: rgb(100 116 139);
  font-size: 14px;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gig-owner-open,
.venue-owner-open {
  margin-top: 12px;
  width: 100%;
}

.gig-cta-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
}

.gig-cta-hint {
  margin: 0;
  color: rgb(100 116 139);
  font-size: 14px;
  line-height: 20px;
}

.venue-detail-contacts {
  display: grid;
  gap: 14px;
}

.venue-detail-contacts a,
.venue-detail-contacts div {
  color: rgb(71 85 105);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
}

.venue-detail-contacts a:hover {
  color: rgb(109 40 217);
}

.venue-detail-contacts .icon {
  color: rgb(100 116 139);
  font-size: 22px;
}

.venue-detail-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.venue-detail-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(15 23 42);
  font-size: 16px;
  line-height: 24px;
}

.venue-detail-features .icon {
  color: rgb(16 185 129);
}

@media (max-width: 1024px) {
  .venue-detail-sidebar,
  #venue-page-equipment-wrap,
  .venue-detail-layout > .venue-detail-panel:first-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .gig-detail-page .page-title,
  .venue-detail-page .page-title {
    font-size: 24px;
    line-height: 32px;
  }

  .gig-detail-meta,
  .venue-detail-meta,
  .venue-detail-features {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Catalog final overrides (v10, 2026-03-05)                                  */
/* -------------------------------------------------------------------------- */
.gigs-page-shell .catalog-card,
.venues-page-shell .catalog-card,
.ensembles-page-shell .catalog-card {
  min-height: 0;
}

/* -------------------------------------------------------------------------- */
/* Catalog parity block (v9, 2026-03-05)                                      */
/* -------------------------------------------------------------------------- */
.gigs-page-shell #jobs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .gigs-page-shell #jobs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gigs-page-shell #jobs-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .gigs-page-shell #jobs-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card {
  border: 0;
  border-radius: var(--twds-card-radius);
  background: rgb(var(--twds-surface));
  box-shadow: var(--twds-card-shadow);
  overflow: hidden;
}

:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card:hover {
  border-color: var(--twds-card-hover-border);
  box-shadow: var(--twds-card-shadow-hover);
  transform: none;
}

:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card .catalog-card-head,
:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card .catalog-card-body,
:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card .catalog-card-footer {
  padding-left: 24px;
  padding-right: 24px;
}

:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card .catalog-card-body {
  padding-top: 24px;
  padding-bottom: 18px;
}

:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card .catalog-title {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card .catalog-description {
  margin-top: 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

:is(.gigs-page-shell, .venues-page-shell, .ensembles-page-shell) .catalog-card .catalog-card-footer {
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
  padding-bottom: 18px;
}

.ensembles-page-shell .catalog-card-ensemble .catalog-card-head-collective {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ensembles-page-shell .catalog-card-ensemble .catalog-avatar-text {
  font-size: 25px;
  font-weight: 700;
}

.ensembles-page-shell .catalog-card-ensemble .catalog-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}


/* -------------------------------------------------------------------------- */
/* Catalog card parity pass (v8, 2026-03-05)                                  */
/* -------------------------------------------------------------------------- */
.ensembles-page-shell .catalog-card-ensemble .catalog-title {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

.catalog-title-truncate {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ensembles-page-shell .catalog-card-ensemble .catalog-description {
  margin: 10px 0 0;
}

.catalog-description.clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ensembles-page-shell .catalog-card-ensemble .catalog-avatar.catalog-avatar-lg {
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 0 0 2px rgb(124 58 237 / 0.16);
  border: 2px solid #ffffff;
  border-radius: 999px;
  width: 56px;
  height: 56px;
}

/* -------------------------------------------------------------------------- */
/* Collective detail parity block (base44 Collectives/Profile)                */
/* -------------------------------------------------------------------------- */
.ensemble-detail-page {
  width: min(1160px, 100%);
  margin: 0 auto;
}
