/*
 Theme Name:   My Listing Child
 Theme URI:    http://mylisting.27collective.net/my-city/
 Description:  MyListing Child Theme
 Author:       27collective
 Author URI:   https://27collective.net/
 Template:     my-listing
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  my-listing-child
*/

body.single-job_listing .artwork-template,
body.single-job_listing .craftsperson-template,
body.single-job_listing .laboratory-template {
    color: #012545;
    font-size: 16px;
}

body.single-job_listing .artwork-template h1,
body.single-job_listing .artwork-template h2,
body.single-job_listing .artwork-template h3,
body.single-job_listing .craftsperson-template h1,
body.single-job_listing .craftsperson-template h2,
body.single-job_listing .craftsperson-template h3,
body.single-job_listing .laboratory-template h1,
body.single-job_listing .laboratory-template h2,
body.single-job_listing .laboratory-template h3 {
    color: #014783;
    font-family: "Source Serif 4", Sans-serif;
    font-weight: 500;
}

body.single-job_listing .artwork-template p,
body.single-job_listing .craftsperson-template p,
body.single-job_listing .artwork-template li,
body.single-job_listing .craftsperson-template li,
body.single-job_listing .laboratory-template p,
body.single-job_listing .laboratory-template li {
    color: #012545;
    font-size: 16px;
    font-family: "Roboto Flex", Sans-serif;
}

body.single-job_listing .artwork-template a,
body.single-job_listing .craftsperson-template a,
body.single-job_listing .laboratory-template a,
body.single-job_listing .activity-template a {
    color: #014783;
}

body.single-job_listing .artwork-template a:hover,
body.single-job_listing .craftsperson-template a:hover,
body.single-job_listing .laboratory-template a:hover,
body.single-job_listing .activity-template a:hover {
    color: #028AFF;
}

body.single-job_listing .artwork-template i.mi,
body.single-job_listing .craftsperson-template i.mi,
body.single-job_listing .laboratory-template i.mi,
body.single-job_listing .activity-template i.mi {
    color: #014783;
}

.lf-item i.mi.person,
.xp-user-menu-login .mi.person,
.xp-user-menu-login .mi,
.xp-user-menu-toggle .mi.person {
    color: #014783 !important;
}

/* ── Listing form buttons (add-listing pages) ── */
.listing-form-submit-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.listing-form-submit-btn .buttons {
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    height: 48px;
    flex: 1 1 0;
    min-width: 180px;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
}

/* First button (Submit listing) — blue */
.listing-form-submit-btn button.skip-preview-btn {
    background: #014783 !important;
    color: #FFFFFFCC !important;
}

.listing-form-submit-btn button.skip-preview-btn:hover {
    background: #013B6E !important;
    color: #fff !important;
}

/* Other buttons (Preview, Save as draft) — gray */
.listing-form-submit-btn button.preview-btn,
.listing-form-submit-btn button.save-listing-button {
    background: #f0f0f0 !important;
    color: #014783 !important;
}

.listing-form-submit-btn button.preview-btn:hover,
.listing-form-submit-btn button.save-listing-button:hover {
    background: #e4e4e8 !important;
    color: #014783 !important;
}

/* ── WP Editor on listing forms ── */
#submit-job-form .wp-editor-wrap {
    border: 1px solid #d0d0d5;
    border-radius: 6px;
    overflow: hidden;
}

#submit-job-form div.mce-toolbar-grp {
    background: #f9f9fb;
    border-bottom: 1px solid #d0d0d5;
}

#submit-job-form div.mce-panel {
    border: none;
    background: transparent;
}

#submit-job-form div.mce-edit-area {
    border-top: none;
}

#submit-job-form .mce-toolbar .mce-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#submit-job-form .mce-toolbar .mce-btn:hover {
    background: #e4e4e8 !important;
}

#submit-job-form .mce-toolbar .mce-ico {
    color: #333 !important;
    background-color: transparent !important;
}

#submit-job-form .mce-toolbar .mce-btn button {
    background-color: transparent !important;
}

#submit-job-form .mce-toolbar .mce-btn i {
    background-color: transparent !important;
    color: #333 !important;
}

#submit-job-form .wp-editor-container textarea {
    border: none;
    border-radius: 0 0 6px 6px;
}

/* Form section headings — style h5 as h3 */
#submit-job-form .title-style-1 h5 {
    font-family: "Source Serif 4", sans-serif;
    font-weight: 500;
    color: #014783;
    font-size: 22px;
}

#submit-job-form .element .pf-head {
    padding: 30px 20px!important;
    background: #f0f0f0 !important;
    transition: background 0.2s, color 0.2s;
}

#submit-job-form .round-icon .title-style-1 {
    background: #f0f0f0 !important;
    transition: background 0.2s, color 0.2s;
    padding-bottom: 20px;
}

#submit-job-form .element .pf-body {
    padding-top: 0;
}

#submit-job-form .form-section {
    width: unset !important;
    transform: none!important;
    transition: none!important;

}

#submit-job-form .form-section-wrapper.active+.form-footer .form-section, #submit-job-form .form-section-wrapper.active .form-section, body.elementor-editor-active #submit-job-form .form-section {
    transform: none!important;
}

.add-listing-step #submit-job-form {
    padding-bottom: 0px!important;
}

.add-listing-step .i-section {
    padding-bottom: 0px!important;
}

.xp-profile__content .i-section {
    padding: 0px!important;
}

/* ── User menu shortcode [xp_user_menu] ── */
.xp-user-menu-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #012545;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background .2s;
}
.xp-user-menu-login:hover {
    background: rgba(1, 37, 69, .08);
    color: #012545;
    text-decoration: none;
}
.xp-user-menu-login .mi {
    font-size: 22px;
}

.xp-user-menu {
    position: relative;
    display: inline-block;
}
.xp-user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #012545 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background .2s;
}
.xp-user-menu-toggle:hover,
.xp-user-menu-toggle:focus,
.xp-user-menu-toggle:active {
    background: rgba(1, 37, 69, .08) !important;
    color: #012545 !important;
}
.xp-user-menu-toggle .mi {
    font-size: 22px;
}
.xp-user-menu-arrow {
    font-size: 18px !important;
    transition: transform .2s;
}
.xp-user-menu:hover .xp-user-menu-arrow {
    transform: rotate(180deg);
}

.xp-user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    animation-duration: .3s;
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.xp-user-menu:hover .xp-user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.xp-user-menu-name {
    padding: 12px 16px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #012545;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xp-user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #012545;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}
.xp-user-menu-dropdown a:hover {
    background: #f5f5f5;
    color: #012545;
    text-decoration: none;
}
.xp-user-menu-dropdown a .mi {
    font-size: 20px;
    color: #012545;
}
.xp-user-menu-dropdown a:hover .mi {
    color: #012545;
}

.elementor-widget-shortcode.profile-button{
    width: auto !important;
}

.xp-owner-select {
    width: 200px !important;
}

.edit-listing-form .job-manager-error, .edit-listing-form .job-manager-info, .edit-listing-form .job-manager-message {
    left: auto !important;
}

.edit-listing-form .job-manager-error, .edit-listing-form .job-manager-info, .edit-listing-form .job-manager-message {
    max-width: unset !important;
}

button {
    border-radius: 4px!important;
}

#submit-job-form .field-head label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #012545 !important;
    margin-bottom: 6px !important;
    display: block;
    text-transform: capitalize;
}

#submit-job-form .field > input,
#submit-job-form .field > textarea {
    padding: 15px !important;
}

.elementor-element.elementor-element-1622a6f.e-con-full.artisans-count.e-flex.e-con.e-child,
.elementor-element.elementor-element-45c1460.e-con-full.workshops-count.e-flex.e-con.e-child {
    padding: 0px;
    align-content: center;
    text-align: center;
    color: #FFFFFF;
}

.lf-type-2 .lf-item {
    height: 85px!important;
}

.infoBox .lf-item {
    height: 85px!important;
}

/* ── xp_menu – header dropdown ── */
.xp-header-menu {
    position: relative;
    display: inline-flex;
}
.xp-header-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #012545 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background .2s;
    white-space: nowrap;
}
.xp-header-menu__toggle:hover,
.xp-header-menu__toggle:focus {
    background: rgba(1, 37, 69, .08) !important;
}
.xp-header-menu__arrow {
    font-size: 18px !important;
    transition: transform .2s;
}
.xp-header-menu:hover .xp-header-menu__arrow {
    transform: rotate(180deg);
}
.xp-header-menu__dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    animation-duration: .3s;
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.xp-header-menu:hover .xp-header-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.xp-header-menu__dropdown a {
    display: block;
    padding: 10px 16px;
    color: #012545;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.xp-header-menu__dropdown a:hover,
.xp-header-menu__dropdown a.active {
    background: #f5f5f5;
    color: #012545;
    text-decoration: none;
}

/* ── Notifications ── */
.xp-user-menu-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.xp-notifications {
    position: relative;
    display: inline-block;
}
.xp-notifications-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #012545 !important;
    padding: 8px;
    border-radius: 4px;
    transition: background .2s;
    position: relative;
}
.xp-notifications-toggle:hover {
    background: rgba(1, 37, 69, .08) !important;
}
.xp-notifications-toggle .mi {
    font-size: 22px;
    color: #014783;
}
@media (max-width: 1024px) {
    .xp-notifications-toggle .mi {
        font-size: 23px;
    }
    .xp-notifications-badge {
        top: -3px!important;
        right: -3px!important;
    }
}
.xp-notifications-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #b71c1c !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}
.xp-notifications-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 320px;
    max-height: 480px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .15);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.xp-notifications:hover .xp-notifications-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.xp-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 600;
    color: #012545;
}
.xp-notifications-mark-read {
    background: none !important;
    border: none !important;
    color: #014783 !important;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.xp-notifications-mark-read:hover {
    color: #012545 !important;
}
.xp-notifications-list {
    max-height: 380px;
    overflow-y: auto;
    flex: 1;
}
.xp-notifications-empty {
    padding: 24px 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.xp-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8f8f8;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.xp-notification-item:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: inherit;
}
.xp-notification-item:last-child {
    border-bottom: none;
}
.xp-notification-item.xp-unread {
    background: #f0f7ff;
}
.xp-notification-item > .mi {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.xp-notification-item[data-type="approved"] > .mi,
.xp-notification-item[data-type="changes_approved"] > .mi {
    color: #43a047;
}
.xp-notification-item[data-type="rejected"] > .mi,
.xp-notification-item[data-type="changes_rejected"] > .mi {
    color: #e53935;
}
.xp-notification-item[data-type="update_required"] > .mi,
.xp-notification-item[data-type="listing_updated"] > .mi {
    color: #f57c00;
}
.xp-notification-item[data-type="new_submission"] > .mi,
.xp-notification-item[data-type="aitisi_submission"] > .mi {
    color: #1976d2;
}
.xp-notification-content {
    flex: 1;
    min-width: 0;
}
.xp-notification-type-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #014783 !important;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.xp-notification-message {
    font-size: 13px;
    color: #012545;
    line-height: 1.4;
    word-break: break-word;
}
.xp-notification-reason {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
    font-style: normal;
    background: #f7f8fa;
    padding: 6px 10px;
    border-radius: 5px;
    border-left: 2px solid #ddd;
}
.xp-notification-time {
    font-size: 11px;
    color: #6b6b6b !important;
    margin-top: 4px;
}
.xp-notifications-footer {
    border-top: 1px solid #f0f0f0;
    text-align: center;
    padding: 10px 16px;
}
.xp-notifications-footer a {
    font-size: 13px;
    font-weight: 600;
    color: #014783;
    text-decoration: none;
}
.xp-notifications-footer a:hover {
    color: #012545;
    text-decoration: underline;
}

/* ── All Notifications Page ── */
.xp-all-notifications {
    max-width: 1400px;
    margin: 0 auto;
}
.xp-all-notifications .xp-admin-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-bottom: 24px;
}
.xp-all-notifications .xp-admin-search > i.mi {
    position: absolute;
    left: 18px;
    font-size: 22px;
    color: #014783;
    pointer-events: none;
}
.xp-all-notifications .xp-admin-search__input {
    padding: 10px 20px 10px 50px;
    border: 1px solid #d4d9df;
    border-radius: 4px;
    font-size: 15px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f4f6f8;
    color: #1d1d23;
}
.xp-all-notifications .xp-admin-search__input:focus {
    border-color: #014783;
    background: #fff;
    box-shadow: 0 1px 6px rgba(1, 71, 131, 0.1);
}
.xp-all-notifications .xp-admin-search__input::placeholder {
    color: #8896a4;
}
.xp-all-notifications-empty {
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 60px 0;
}
.xp-all-notifications-list {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.xp-all-notifications-list .xp-notification-item {
    border-bottom: 1px solid #f3f3f3;
    padding: 18px 22px;
    border-radius: 0;
    transition: background 0.15s;
}

.xp-all-notifications-list .xp-notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}
.xp-all-notifications-list .xp-notification-item:only-child {
    border-radius: 12px;
}
.xp-all-notifications-list .xp-notification-item:hover {
    background: #f9fbfd;
}
.xp-all-notifications-list .xp-notification-item.xp-unread {
    background: #f5faff;
    border-left: 3px solid #01478357;
}
.xp-all-notifications-list .xp-notification-type-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a5d70 !important;
    margin-bottom: 3px;
}
.xp-all-notifications-list .xp-notification-message {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 450;
}
.xp-all-notifications-list .xp-notification-reason {
    font-size: 12.5px;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
    font-style: normal;
    background: #f7f8fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 2px solid #ddd;
}
.xp-all-notifications-list .xp-notification-time {
    font-size: 11px;
    color: #5f6b78 !important;
    margin-top: 6px;
}
.xp-all-notifications-list .xp-notification-item > .mi {
    font-size: 22px;
    margin-top: 1px;
}

/* Pagination */
.xp-all-notifications .xp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 0 8px;
}
.xp-all-notifications .xp-pagination .xp-pagination__btn {
    margin: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e2e2 !important;
    background: #fff !important;
    color: #555 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}
.xp-all-notifications .xp-pagination .xp-pagination__btn:hover:not([disabled]):not(.xp-pagination__btn--active) {
    background: #f5faff !important;
    border-color: #014783 !important;
    color: #014783 !important;
}
.xp-all-notifications .xp-pagination .xp-pagination__btn--active {
    background: #014783 !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-color: #014783 !important;
    cursor: default !important;
}
.xp-all-notifications .xp-pagination .xp-pagination__btn--nav {
    background: #fff !important;
    color: #014783 !important;
    border-color: #e2e2e2 !important;
}
.xp-all-notifications .xp-pagination .xp-pagination__btn--nav:hover:not([disabled]) {
    background: #f5faff !important;
    border-color: #014783 !important;
}
.xp-all-notifications .xp-pagination .xp-pagination__btn--nav[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #fafafa !important;
    color: #bbb !important;
    border-color: #eee !important;
}
.xp-all-notifications .xp-pagination .xp-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    color: #999;
    background: transparent;
    user-select: none;
    pointer-events: none;
}

.container {
    padding: 0px;
    width: auto!important;
}

/* A11y: WP admin-bar search label uses .screen-reader-text (visually hidden,
   clipped off-screen). It inherits a dark color and has a transparent
   background, so contrast audits compare it against whatever is behind it
   (often the white page) and flag white-on-white. Give the label its own
   solid dark background plus white text so the pair always passes the
   contrast check; the element stays clipped off-screen, so no visual change. */
#wpadminbar .screen-reader-text {
    color: #fff !important;
    background-color: #1d2327 !important;
}

/* A11y: footer newsletter email placeholder uses #87888A on white (~3:1),
   failing WCAG AA. Darken it. Override here (child theme) so it survives
   Elementor CSS regeneration. */
.hc-footer-newsletter input[type="email"]::placeholder,
.tnp-subscription-minimal input.tnp-email::placeholder {
    color: #6b6c6e !important;
    opacity: 1;
}

/* A11y: Select2 keeps the native <select> in the DOM but clips it off-screen
   (.select2-hidden-accessible: clip-path: inset(50%), 1px box, overflow hidden).
   The theme additionally applies opacity:0 to these selects, which contrast
   audits fold into the text-color alpha (#012545 -> rgba(1,37,69,0)) and flag
   as a failure even though the control is never visible. The selects also have
   a transparent background, so the audit compares the dark text against the
   surrounding container (dark in some forms) and still fails. Force a solid
   dark-on-light pair and full opacity; the clip-path keeps it invisible, so
   there is no visual change while the contrast check now passes. */
select.select2-hidden-accessible,
select.select2-hidden-accessible option {
    color: #012545 !important;
    background-color: #fff !important;
    opacity: 1 !important;
}

.mi.play_arrow{
    color: #fff !important;
}
