/*
Theme Name:   MyListing Child
Theme URI:    https://band-union.ch/
Description:  Child theme for MyListing. Registers a custom "HTML Field" listing field type.
Author:       Hassan
Template:     my-listing
Version:      1.0.0
Text Domain:  my-listing-child
*/

/* Add custom CSS below this line. */

.page-id-502 {
 	--gap: 14px;
    --c: #111;
    --muted: #6b7280;
    --bd: #e5e7eb;
    --bg: #fff;
    --focus: #111;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--c);
}

.page-id-502 .element.form-section {
	border: 1px solid var(--bd);
    padding: 18px;
    margin: 18px 0;
    border-radius: 14px;
    background: var(--bg);
}

.page-id-502 .form-section .pf-head {
	padding:0px !important;
}

.page-id-502 .form-section .pf-head i {
	display:none !important;
}

.page-id-502 #submit-job-form .round-icon .title-style-1 {
	margin-left: 15px !important;
    margin-top: -26px !important;
}

.page-id-502 #submit-job-form .form-section {
    overflow: visible !important;
    border: 1px solid var(--bd);
    border-radius: 14px;
    background: var(--bg);
    padding-bottom: 15px;
}

.page-id-502 #submit-job-form .element .pf-body {
	padding-top:0px !important;
}

.page-id-502 #submit-job-form .form-group:first-child {
	border:none !important;
}

.page-id-502 #submit-job-form .round-icon .title-style-1 h5,
.page-id-502 #submit-job-form .round-icon .title-style-1__heading {
	width: auto;
    background: white;
    padding: 10px;
}

.page-id-502 #submit-job-form .field-type-html label {
    display: block;
    width: 100%;
    clear: both;
    margin: 14px 0 8px 0;
    font-weight: 700;
	font-size:16px;
}

.page-id-502 #submit-job-form .field-type-html label small {
	display:none;
}

.page-id-502 #submit-job-form .field-type-html.form-group + .form-group {
    border-top: none !important;
    padding-top: 0;
}

/* ===== Custom "Info Table" content block (Bandinfos / Formation) ===== */
.info-table-block .info-table-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px 32px;
}
.info-table--cols-2 .info-table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-table--cols-3 .info-table-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-table--list  .info-table-grid { grid-template-columns: 1fr; gap: 14px; }
.info-table-label { font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.info-table-value { opacity: .82; line-height: 1.45; }
@media (max-width: 680px) {
	.info-table--cols-2 .info-table-grid,
	.info-table--cols-3 .info-table-grid { grid-template-columns: 1fr; }
}

.genres_list {
	margin-top: 40px;
    margin-bottom: 20px;
}

.genres_list .info-table-label {
	margin-bottom: 30px;
}

.disc-row {
    border: 1px solid #bcb4b4;
    margin-bottom: 20px;
    padding: 10px;
}

.disc-row input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff;
    outline: none;
    transition: border .2s, box-shadow .2s;
    margin-bottom: 10px;
}

#submit-job-form .disc-row .select2-selection--multiple>ul:before,
#submit-job-form .disc-row .select2-selection--single>ul:before,
.field-type-group-open .disc-row .select2-selection--single>ul:before,
.field-type-group-open .disc-row .select2-selection--multiple>ul:before {
    content: '' !important;
}

.disc-row .select2-container--default .select2-selection--single,
.field-type-group-open .select2-container--default .select2-selection--single {
    margin-left: 10px;
}

.disc-row .select2-container--default .select2-selection--single .select2-selection__arrow,
.field-type-group-open .select2-container--default .select2-selection--single .select2-selection__arrow {
    bottom: auto;
    right: 10px;
}

#submit-job-form .disc-row .select2-container,
.field-type-group-open .select2-container {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
}

#submit-job-form .disc-row .select2-selection--multiple .select2-search__field {
    border: none !important;
}

.streams-block .details-block-content li {
    margin-bottom: 0px;
}

.streams-block .details-block-content li a {
    text-decoration: none !important;
}

.streams-block .details-block-content .wp-editor-content {
    margin-top: 0px;
}

.streams-block .details-block-content{
    padding-left: 20px !important;
}

.quick-listing-actions {
    margin-top: 0px !important;
}

.field-type-group-open,
.field-type-group-close > .field-head > label,
.field-type-group-open > .field-head > label {
    display: none;
}

#submit-job-form .field-type-group-open.form-group .form-group:not(.field-type-checkbox) {
    border-top: 1px solid rgba(0, 0, 0, .1);
    border-right: 2px solid transparent;
    padding: 0px !important;
    padding-bottom: 20px !important;
}

#submit-job-form .field-type-group-open.form-group .field > input,
#submit-job-form .field-type-group-open.form-group .field > textarea {
    border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
    padding-top: 15px !important;
    padding-bottom: 0px !important;
}

.field-type-group-open.form-group {
    border: 1px solid rgba(0, 0, 0, .1) !important;
    margin: 20px;
}

#submit-job-form .field-type-group-open.form-group .form-group.field-type-checkbox {
    border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
    margin-bottom: 15px;
}

.fieldset-p1_inst_perc_text {
    border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
    padding-left: 0px;
    padding-right: 0px;
}


/* =====================================================================
   Client change requests (single band profile)
   ===================================================================== */

/* --- #1: Black hero bar — keep it black, reduce height by ~2/3 --------
   The hero is the "cover none" section (.profile-cover-no-img); the band
   name/logo overlaps it. Shrinking its min-height pulls the name up and
   leaves a thin black strip. Original hero ~430px -> ~150px (~1/3).
   Nudge the px value if the client wants it a touch taller/shorter.      */
.single-job-listing .profile-cover.profile-cover-no-img {
    min-height: 150px !important;
}
.single-job-listing .main-info-desktop .listing-main-info {
    padding-top: 22px;
    padding-bottom: 22px;
}
@media (max-width: 767px) {
    .single-job-listing .profile-cover.profile-cover-no-img {
        min-height: 120px !important;
    }
}

/* --- #3: Move Stagerider / Mail / Share / PDF into the grey tab bar ----
   listing.php now renders the quick-actions inside .profile-header, right
   after the tabs. Lay the tab row + actions on one line: tabs left,
   action pills right.                                                     */
.profile-header .col-md-12 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.profile-header .profile-menu {
    flex: 1 1 auto;
    min-width: 0;
}
/* The quick-actions template wraps itself in .container — neutralise that
   so it sits inline within the grey bar instead of a new full-width row. */
.profile-header .qla-container.container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}
.profile-header .quick-listing-actions {
    margin: 0 !important;
}
.profile-header .quick-listing-actions .cts-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
/* Hide the carousel prev/next arrows inside the compact tab-bar context. */
.profile-header .quick-listing-actions .cts-prev,
.profile-header .quick-listing-actions .cts-next {
    display: none !important;
}
@media (max-width: 767px) {
    .profile-header .col-md-12 { justify-content: flex-start; }
    .profile-header .qla-container.container { width: 100%; }
    .profile-header .quick-listing-actions .cts-carousel { justify-content: flex-start; }
}

/* --- #4: "Profil als PDF speichern" — real print-to-PDF ---------------
   The action (class .ml-print-profile) triggers window.print() via JS.
   These print styles strip the site chrome and expand every tab so the
   whole profile prints / saves as one clean PDF.                         */
.ml-print-profile { cursor: pointer; }

@media print {
    #wpadminbar,
    .site-header, .main-header, header.main-nav, .header-container,
    .footer, footer, .site-footer,
    .profile-menu,
    .qla-container, .quick-listing-actions,
    .listing-main-buttons,
    .cts-prev, .cts-next,
    .similar-listings, .similar-listings-section,
    #comments, .comments-area, .add-review, .listing-reviews,
    .compare-listings, .bookmark-listing,
    .cookie-notice, #cookie-notice {
        display: none !important;
    }
    /* Expand all tab panels so the full profile is printed. */
    .listing-tabs .listing-tab { display: block !important; }
    /* Thin black header on paper, white page background. */
    .profile-cover.profile-cover-no-img { min-height: 0 !important; }
    body, .single-job-listing { background: #fff !important; }
    a[href]:after { content: "" !important; } /* don't append raw URLs */
}

.profile-header .profile-menu ul li a {
    height: 40px !important;
    margin-top: 10px;
}

.quick-listing-actions>ul>li {
    padding: 0px !important;
}

.profile-header .profile-menu ul li a {
    padding: 20px !important;
}

.profile-body {
    padding-top: 0px !important;
}

body.logged-in .my-login-page {
	display:none;
}

form.sign-in-form .form-group label {
	left: 14px !important;
}

form.sign-in-form .form-group input {
	    padding: 14px !important;
}

/* Flex container */
.grid-two {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	gap: 15px; /* Adjust spacing between fields as needed */
	width: 100%;
	margin-bottom: 15px;
}

/* Flex items (50/50 split) */
.grid-two .grid-left,
.grid-two .grid-right {
	flex: 1 1 50%;
	min-width: 0; /* Prevents input overflow from breaking flex layout */
}

/* Make inputs inside stretch to fill their grid column */
.grid-two label {
	display: flex;
	flex-direction: column;
	width: 100%;
	font-weight:400 !important;
}

.grid-two input[type="text"],
.grid-two select {
	width: 100%;
	box-sizing: border-box;
}

/* Optional Mobile Breakpoint: Stack vertically on small screens */
@media (max-width: 600px) {
	.grid-two {
		flex-direction: column;
	}
	
	.grid-two .grid-left,
	.grid-two .grid-right {
		width: 100%;
	}
}

.inst-group .inline-chips {
    margin-top: 10px
}

#submit-job-form ul.c27-term-checklist label {
    font-size: 14px;
    font-weight: 400
}

.md-checkbox input[type=checkbox]:checked+label:before, .md-checkbox input[type=radio]:checked+label:before {
    background: var(--accent);
    border: none;
}

.grid-two input[type="text"], 
.grid-two select,
.inst-group input[type="text"],
.grid-two select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff;
    outline: none;
    transition: border .2s, box-shadow .2s;
    margin-bottom: 10px;
}
 
.grid-two .select2-container {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
	padding: 0 10px;
}

.grid-two .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
}

/* Instruments <details> styling */
.lineup-row details.inst{border:1px dashed var(--bd);border-radius:10px;padding:10px;margin:8px 0;background:#fafafa}
.lineup-row details.inst summary{cursor:pointer;font-weight:600;margin-bottom:6px}
.lineup-row .inst-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:980px){.lineup-row .inst-grid{grid-template-columns:1fr}}

.lineup-row .inst-group label {
	font-weight:400 !important;
}

.lineup-row .inst-group .md-checkbox {
	margin-bottom:0px;
}
.lineup-row .inst-group{border:1px solid var(--bd);border-radius:10px;padding:10px;background:#fff}
.lineup-row .inst-group h5{margin:0 0 8px 0}
.lineup-row .inline-chips{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	margin-top: -8px;
    margin-bottom: 15px;
}

.profile-header {
	margin-bottom: 50px;
}

#submit-job-form .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    flex: 1;
    min-height: 40px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
    cursor: pointer;
    display: flex !important;
    font-weight: bold;
    margin-right: 2px;
}

#submit-job-form .select2-container--default .select2-selection--multiple,
#submit-job-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	padding-left: 5px !important;
}

.element .pf-body {
    padding-top: 15px;
    width: 100%;
    word-break: break-all;
}

@media print {
  /* 1. Force print background graphics and colors */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* 2. Set Paper Size to A4 and define margins */
  @page {
    size: A4 portrait;
    margin: 8mm; /* Adjust margin around the page edges */
  }

  /* 3. Prevent full-page clipping (Fixes content getting cut off) */
  html, body, 
  #page, #content, site-header, footer,
  main, .elementor, .voxel-single-listing {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
    position: static !important;
    float: none !important;
  }

  /* 4. Ensure wide grid/flex containers fit the A4 width */
  body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 5. Prevent key content cards from splitting awkwardly across page breaks */
  .elementor-widget, 
  .ts-preview-card, 
  section, 
  .info-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
}

.genres-grid span {
    display: block;
    line-height: 1.4;
}

/* Tablet */
@media (max-width: 991px) {
    .genres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .genres-grid {
        grid-template-columns: 1fr;
    }
}