/* Configure the links between the login and register pages */
a.login-link, a.register-link {
    color: #a59055;
    text-transform: uppercase;
}

a.login-link:hover, a.register-link:hover {
    color: #000;
}

.agent-content-wrapper .agent-content a {
    color: #000;
}

.agent-content-wrapper .agent-content a:hover {
    color: #fff;
}

.agent-content-wrapper .agent-content {
    overflow: hidden;
}

/* Add a consistent margin to the main container under the menu */
section#main-container, section#primary {
    margin-top: 50px;
}

/* Listings filter blends into the top bar */
section#main-container.listings-filter {
    margin-top: 0px;
}

/* Make the blog padding match elementor default padding */
.main-blog, .sidebar-blog {
    padding: 10px;
}

/* Make sure listing buttons above sidebar take up no vertical space */
.sidebar-listing .widget.widget_apus_listing_buttons {
    display: none;
}

/* Remove the Recaptcha badge that appears on every page */
.grecaptcha-badge {
    display: none !important;
}

/* Reduce the padding around images in the lightbox */
div.elementor-lightbox .elementor-lightbox-item {
    padding: 10px;
}

/* Remove the lightbox footer as we dont have titles and descriptions anyway */
footer.elementor-slideshow__footer {
    display: none;
}

/* Align the clear location icon properly */
span.clear-location i {
    vertical-align: middle;
}

.double-select-label{
    position: relative;
}

.double-select-label span{
    background-color: black;
    position: relative;
    z-index: 2;
    display: inline-block;
    padding-left: 3px;
    padding-right: 3px;
}

.double-select-label:after{
    border-top: 2px solid #a59055;
    border-right: 2px solid #a59055;
    border-left: 2px solid #a59055;
    content: '';
    height: 50%;
    width: 60%;
    position: absolute;
    bottom:0;
    left:50%;
    transform: translateX(-50%);
    z-index: 1;
}

.select2-container .select2-selection--single .select2-selection__rendered{
    font-size: 10px;
    padding-left: 5px !important;
    padding-right: 15px !important;
}

.inner-search-advance .form-group-search {
    padding-top:37px;
}

/* Hide Breadcrumbs */
.apus-breadscrumb {
	display: none;
}

nav.apus-megamenu .menu-item.site-flags {
    margin-right: 0;
}

nav.apus-megamenu .menu-item.site-flags a {
	font-size: 0;
}

nav.apus-megamenu .menu-item.site-flags img {
	width: 38px;
    margin-left: 0;
    border: 2px solid transparent;
}

nav.apus-megamenu .menu-item.site-flags.current-site img {
    border: 2px solid #a59055
}

form.form-search.filter-listing-form .search-form-inner .advance-search-wrapper {
    margin-top: 10px;
}

form.form-search.filter-listing-form .search-form-inner .advance-search-wrapper .advance-search-wrapper-fields {
    background-color: inherit;
    border: 0;
}

.listings-filter-top-sidebar-wrapper {
    min-height: 187px;
    background-color: #000000;
}

div.listings-listing-wrapper .listings-ordering-wrapper {
    flex-direction: row;
    display: flex;
    gap: 15px;
}

div.listings-listing-wrapper .listings-ordering-wrapper .results-count {
    flex-grow: 1;
    text-align: right;
}

div.listings-listing-wrapper .listings-ordering-wrapper .ordering-display-mode-wrapper {
    align-items: flex-start;
}

div.listings-listing-wrapper .listings-ordering-wrapper {
    margin: 15px 0;
}

div.listings-listing-wrapper .listings-wrapper .row {
    margin-left: -10px;
    margin-right: -10px;
}

div.listings-listing-wrapper .listings-wrapper .row > div {
    padding: 0px 10px;
}

div.listings-listing-wrapper .listings-wrapper .row article.listing-item {
    margin-bottom: 20px;
}

.site-main article.listing-item {
    background-color: #ccc;
    border-color: #ccc;
}

.site-main article.listing-item .listing-title {
	text-transform: uppercase;
    font-size: 18px;
    font-family: "bebas-neue", sans-serif;
}

.site-main article.listing-item .listing-title a {
    color: #000;
}

.site-main article.listing-item .listing-price, .site-main article.listing .listing-price {
    color: #000;
}

.site-main article.listing-item .listing-title a:hover {
    color: #a59055;
}

.site-main article.listing-item:has(.pills span.featured) .listing-title a:hover {
    color: #fff;
}

.site-main article.listing-item:has(.pills span.featured) {
    background-color: #a59055;
    border-color: #a59055;
}

.site-main article.listing-item .top-info .listing-information {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 12px 10px 0px;
    line-height: 1.7;
}

.site-main article.listing-item .top-info .listing-title {
    flex-basis: 100%;
    margin: 0;
}

.site-main article.listing-item .top-info .listing-price {
    flex-basis: 70%;
}

.site-main article.listing-item .top-info .listing-distance {
    flex-basis: 30%;
    text-align: right;
}


.site-main .pills {
    text-align: center;
    color: #fff;
}

.site-main .pills span {
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    z-index: 1;
}

.site-main .pills span:after {
    content: '';
    width: 0;
    height: 0;
}

.site-main .pills .featured {
    left: 8px;
    top: 8px;
    background-color: #a59055;
}

.site-main .pills .staff-pick {
    right: 8px;
    top: 8px;
    background-color: #b70000;
}

.site-main .pills .at-the-shed {
    right: 8px;
    bottom: 8px;
    background-color: #d88000;
}

.site-main .pills .in-the-uk {
    bottom: 8px;
    left: 8px;
    background-color: #012169;
}

.site-main .pills span {
    font-size: 8px;
    padding: 1px 8px;
    border-radius: 8px;
}

.modal-dialog {
  margin-top: 0;
  margin-bottom: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal.fade .modal-dialog {
  transform: translate(0, -100%);
}

.modal.in .modal-dialog {
  transform: translate(0, 0);
}

/* Render the reset button as text */
div.widget-listing-search-form .reset-search-btn {
    background: none;
    font-weight: 600;
    text-transform: capitalize;
    color: #a59055;
    margin-left: 0px;
    margin-top: 0px;
    margin-bottom: 12px;
    padding: 0px;
}

/* Render search and reset as a reversed column */
div.widget-listing-search-form.v1-1 .flex-middle:has(>.reset-search-btn) {
    flex-direction: column-reverse;
}

/* Reset padding on search and reset buttons */
div.widget-listing-search-form.v1-1 .form-group-search {
    padding-top: 0px;
}

@media only screen and (max-width: 767px) {
    div.listings-listing-wrapper .listings-ordering-wrapper {
        flex-direction: column;
    }

    div.listings-listing-wrapper .listings-ordering-wrapper .ordering-display-mode-wrapper {
        margin-top: 0;
        margin-left: auto;
    }

    div.listings-listing-wrapper .listings-ordering-wrapper .results-count {
        text-align: right;
    }

    div[data-display_mode="list"] .pills span {
        font-size: 6px;
        padding: 1px 6px;
        border-radius: 10px;
    }
    .site-main .pills .at-the-shed {
        right: 5px;
        bottom: 5px;
    }
    .site-main .pills .staff-pick {
        right: 5px;
        top: 5px;
    }
    .site-main .pills .featured {
        left: 5px;
        top: 5px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    div[data-display_mode="list"] .pills span {
        font-size: 8px;
        padding: 1px 8px;
        border-radius: 20px;
    }
}

@media only screen and (max-width: 991px) {
    form.form-search.filter-listing-form .search-form-inner .advance-search-wrapper .advance-search-wrapper-fields .form-group-center-location .heading-label {
        display: none;
    }
    form.form-search.filter-listing-form .search-form-inner .advance-search-wrapper .advance-search-wrapper-fields .form-group-center-location {
        padding-top:5px;
    }
    form.form-search.filter-listing-form .search-form-inner .advance-search-wrapper .form-group {
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    form.form-search.filter-listing-form .search-form-inner .advance-search-wrapper {
        margin-top: 0;
    }
}

@media only screen and (max-width: 991px) {
    div.widget-listing-search-form .reset-search-btn {
        display: block;
        width: 100%;
        padding: 12px 30px;
        margin: 0 0 0 10px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: #fff;
        text-align: center;
        color: #a59055;
        cursor: pointer;
        transition: all 0.3s ease-in-out 0s;
    }

    div.widget-listing-search-form .reset-search-btn:hover {
        background: #a59055;
        color: #000;
    }

    /* Render search and reset as a row */
    div.widget-listing-search-form.v1-1 .flex-middle:has(>.reset-search-btn) {
        flex-direction: row;
        padding-top: 5px;
    }
}

/* --- Brand-color overrides for menus + messages ---
   ROOT-LEVEL FIX: voiture ships with --voiture-theme-color and
   --voiture-link-hover-color set to blue/purple in the customizer. They're
   referenced in 200+ places throughout the theme (menus, tabs, button
   highlights, hover states, accents). Rather than chase each one,
   redefine the variables here so the brand gold (#a59055) propagates
   automatically. --voiture-theme-hover-color goes slightly darker so
   "gold-on-gold" hovers still have visual feedback. */
:root {
    --voiture-theme-color: #a59055 !important;
    --voiture-link-hover-color: #a59055 !important;
    --voiture-theme-hover-color: #8a774a !important;
}

/* 1) Dashboard sidebar menu — hover uses --voiture-second-color (yellow),
      a separate variable not touched above. Override BG + force white text/icon
      for contrast (matches the active item's black-bg/white-text treatment). */
.inner-dashboard .menu_short_profile li:hover > a,
.inner-dashboard .menu_short_profile li:hover > a i {
    background: #a59055 !important;
    color: #ffffff !important;
}
.inner-dashboard .menu_short_profile li:hover > a i {
    background: transparent !important;
}

/* 2) "Upload File" / "Upload Files" / "Upload Image" buttons in submit form +
      edit profile — voiture uses the customizer link color (blue) by default
      and there is no specific rule using --voiture-theme-color we could rely on. */
.upload-file-btn {
    color: #a59055 !important;
    border-color: #a59055 !important;
}
.upload-file-btn:hover {
    background: #a59055 !important;
    color: #ffffff !important;
    border-color: #a59055 !important;
}

/* 4) Sent messages (yourself-reply) — was purple, now plain black for legibility. */
.yourself-reply,
.yourself-reply .post-content,
.yourself-reply .post-date,
.yourself-reply .user-name {
    color: #000000 !important;
}

/* --- Package picker redesign (template-paid-listings/choose-package-form.php) ---
   Make the user's existing packages the primary CTA when they have any.
   Demote the "buy more" section visually so users don't double-pay. */
.package-picker-help {
    margin: 8px 0 24px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}
.package-picker-help--quiet {
    color: #888;
    font-size: 13px;
}
.package-picker-divider {
    text-align: center;
    margin: 48px 0 32px;
    position: relative;
}
.package-picker-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}
.package-picker-divider > span {
    position: relative;
    background: #fafafa;
    padding: 0 20px;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* When user HAS packages, shrink the "buy more" section so it doesn't compete
   for attention with the primary "use existing" CTA. */
.package-picker--has-packages .package-picker-secondary .widget-packages {
    transform: scale(0.92);
    transform-origin: top center;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.package-picker--has-packages .package-picker-secondary .widget-packages:hover {
    opacity: 1;
}
.package-picker--has-packages .package-picker-secondary .subwoo-inner {
    padding: 20px !important;
}
.package-picker--has-packages .package-picker-secondary .subwoo-inner .price {
    font-size: 22px !important;
}
.package-picker--has-packages .package-picker-secondary .subwoo-inner .title {
    font-size: 16px !important;
}

/* Make the primary "Use this for my listing" CTA bigger + impossible to miss
   when the user already has packages. */
.package-picker--has-packages .bottom-packages {
    text-align: center;
    margin-top: 24px;
}
.package-picker--has-packages .bottom-packages .btn-theme {
    background: #a59055 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    border-radius: 8px !important;
}
.package-picker--has-packages .bottom-packages .btn-theme:hover {
    background: #8a774a !important;
}

/* Existing-package cards: clearer selected state + remaining-listings emphasis. */
.inner-user-listing-packaged .des-package--remaining {
    font-weight: 600;
    color: #333;
    display: block;
    margin-top: 4px;
}
.inner-user-listing-packaged .des-package--duration {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
}
.inner-user-listing-packaged input[type="radio"]:checked + label {
    border-color: #a59055 !important;
    background: rgba(165, 144, 85, 0.05) !important;
}

/* Featured-listing badge: voiture ships this as a red pill (#D0473A). Marketing
   copy refers to it as "Gold Box" so make the visual match the marketing -- and
   the brand. The shape stays the same; only the color changes. */
.featured-listing {
    background-color: #a59055 !important;
}

/* =============================================================
   MOBILE HEADER REDESIGN (items 1, 3, 5, 7 from the audit)
   - Logo shrunk to ~50px (was eating ~25% of viewport)
   - Logo strip background unified to black (was white-on-black mismatch)
   - Add Listing button: red -> brand gold, no question mark glyph
   - "Menu" / "Close" text -> hamburger / X icon
   Items 2 and 4 (menu structure) are wp-admin work, see comment below.
   ============================================================= */

@media (max-width: 991px) {

    /* 1) Shrink the logo. Selectors cover voiture's stock + Elementor image widgets. */
    .apus-header .logo img,
    .apus-header .site-logo img,
    .apus-header .elementor-widget-image img,
    .apus-header img.logo,
    .apus-header .elementor-element[data-widget_type*="image"] img {
        max-height: 50px !important;
        width: auto !important;
        height: auto !important;
    }

    /* 7) Unify header background -- whole top is dark, no more white-strip-then-black */
    .apus-header,
    .apus-header > section,
    .apus-header section.elementor-element,
    .apus-header .elementor-section,
    .apus-header .elementor-container,
    .apus-header .elementor-widget-image,
    .apus-header .elementor-widget-image-wrap {
        background: #000 !important;
        background-color: #000 !important;
    }

    /* 3) Add Listing button: brand gold, no exclamation/question mark. The text
          itself ("+ Add Listing?") needs to change in Elementor; see notes below. */
    .apus-header .btn-submit,
    #apus-mobile-menu .btn-submit,
    .apus-header a.btn-submit,
    .apus-header .elementor-button {
        background-color: #a59055 !important;
        color: #ffffff !important;
        border: 0 !important;
    }
    .apus-header .btn-submit:hover,
    #apus-mobile-menu .btn-submit:hover {
        background-color: #8a774a !important;
    }

    /* 5) Replace "Menu" / "Close" text on the mobile toggle with hamburger / X.
          Targets the most common voiture/apus selectors -- if your DevTools shows
          something else, paste that selector and we extend the list. */
    .show-mobile-menu,
    .icon-bar-action,
    .mobile-menu-toggle,
    .apus-mobile-menu-toggle,
    [class*="show-menu-mobile"] {
        font-size: 0 !important;
        line-height: 1 !important;
    }
    .show-mobile-menu::before,
    .icon-bar-action::before,
    .mobile-menu-toggle::before,
    .apus-mobile-menu-toggle::before,
    [class*="show-menu-mobile"]::before {
        content: "\2630" !important;   /* triple bar hamburger */
        font-size: 24px !important;
        color: #fff !important;
        font-family: inherit;
    }
    /* When the menu is open, swap to X. wp-cardealer/apus usually toggle a
       parent class like body.show-mobile-menu or .menu-active. Catches both. */
    body.show-mobile-menu .show-mobile-menu::before,
    body.menu-active .show-mobile-menu::before,
    .menu-active .show-mobile-menu::before,
    .show-mobile-menu.active::before {
        content: "\2715" !important;   /* multiplication X */
    }
}