/*
 Theme Name:   ListingPro Child
 Template:     listingpro
 Version:      1.0.5
 Text Domain:  listingpro-child
*/

/* ========================================================
   Global Header
   ======================================================== */

/* User avatar in header: force square + cover */
.lp-join-user-info img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    aspect-ratio: 1/1 !important;
    border-radius: 50% !important;
}

/* Hide "Registra azienda" button for logged-in users */
body.logged-in .lp-add-listing-btn {
    display: none !important;
}

/* ========================================================
   Dashboard - Sidebar
   ======================================================== */

/* Background: white with green side border */
#sidebar-wrapper,
.lp-dashboard-new,
.lp-dashboard-new #sidebar-wrapper,
.lp-dashboard-new #sidebar {
    background: #fff !important;
}

#sidebar-wrapper {
    border-right: 2px solid #2d6a4f !important;
    min-height: 100vh !important;
}

/* All sidebar links: green on white */
.lp-dashboard-new .sidebar-nav li a,
.lp-dashboard-new #sidebar_menu li a,
.lp-dashboard-new.active .sidebar-nav li a,
#wrapper.active .lp-dashboard-new .sidebar-nav li a {
    background: #fff !important;
    color: #2d6a4f !important;
    border-left: 5px solid transparent !important;
}

.lp-dashboard-new .sidebar-nav li a .fa,
.lp-dashboard-new .sidebar-nav li a i {
    color: #2d6a4f !important;
}

/* Brand area */
.lp-dashboard-new .sidebar-nav > .sidebar-brand,
.lp-dashboard-new #sidebar_menu {
    background: #fff !important;
}

.lp-dashboard-new .sidebar-nav > .sidebar-brand {
    border-bottom: 2px solid #2d6a4f !important;
}

/* Hamburger icon */
.lp-dashboard-new #main_icon {
    color: #2d6a4f !important;
}

/* Hover: green bg, white text */
.lp-dashboard-new .sidebar-nav li a:hover,
.lp-dashboard-new.active .sidebar-nav li a:hover,
.lp-dashboard-new .sidebar-nav > li:hover > a,
#wrapper.active .lp-dashboard-new .sidebar-nav li a:hover {
    background: #2d6a4f !important;
    color: #fff !important;
}

.lp-dashboard-new .sidebar-nav li a:hover .fa,
.lp-dashboard-new .sidebar-nav li a:hover i,
.lp-dashboard-new .sidebar-nav > li:hover > a .fa,
.lp-dashboard-new .sidebar-nav > li:hover > a i {
    color: #fff !important;
}

/* Active item: green bg, white text */
.lp-dashboard-new .sidebar-nav li a.active-dash-menu,
.lp-dashboard-new.active .sidebar-nav li a.active-dash-menu,
.lp-dashboard-new.active .sidebar-wrapper ul li a.active-dash-menu,
#wrapper.active .sidebar-nav li a.active-dash-menu,
.lp-dashboard-new.active .active-dash-menu {
    background: #2d6a4f !important;
    border-left: 5px solid #2d6a4f !important;
    color: #fff !important;
}

.lp-dashboard-new .sidebar-nav li a.active-dash-menu .fa,
.lp-dashboard-new .sidebar-nav li a.active-dash-menu i,
.lp-dashboard-new.active .active-dash-menu .fa,
.lp-dashboard-new.active .active-dash-menu i {
    color: #fff !important;
}

/* Tooltip icons (collapsed sidebar) */
.lp-dashboard-new .sidebar-nav li .sub_iconsecond .fa,
.lp-dashboard-new .sidebar-nav li .sub_iconsecond i {
    color: #2d6a4f !important;
}

.lp-dashboard-new .sidebar-nav li:hover .sub_iconsecond .fa,
.lp-dashboard-new .sidebar-nav li:hover .sub_iconsecond i {
    color: #fff !important;
}

/* ========================================================
   Dashboard - General
   ======================================================== */

/* Section wrapper: remove aliceblue bg */
section.aliceblue {
    background: #fff !important;
}

/* Content area: full height, clean background */
.lp-dashboard-new .dashboard-content .right-panel {
    min-height: 100vh !important;
    background: #fff !important;
}

/* Padding under dashboard panels */
.right-panel .tab-pane {
    padding-bottom: 40px !important;
}


/* Top header bar: green border matching sidebar */
.lp-dashboard-new .lp-user-header {
    border-bottom: 2px solid #2d6a4f !important;
}

/* Dashboard page titles: green */
.ag-welcome h2,
.ag-main-screen h2,
.ag-card h3,
.ag-step2-header h2,
.ag-step2-wrap .ag-section h3,
.right-panel > h2,
.right-panel > h1,
#lp-listings h5,
.lp-dashboard-tabs .panel-heading h5 {
    color: #2d6a4f !important;
}

/* Empty state sections (reviews, etc.) */
.lp-blank-section,
.lp-blank-section .blank-left-side,
.lp-all-reviews-outer .panel-body,
.lp-all-reviews-outer,
.lp-dashboard-tabs .panel-body {
    background: #fff !important;
}

.lp-blank-section {
    padding: 40px 20px !important;
    min-height: auto !important;
}

.lp-blank-section h1 {
    color: #2d6a4f !important;
    font-size: 22px !important;
}

.lp-blank-section p {
    color: #666 !important;
    font-size: 14px !important;
}

/* Remove excessive height on empty panels */
.lp-all-reviews-outer.padding-bottom-50 {
    padding-bottom: 0 !important;
}

.lp-all-reviews-outer .panel-body {
    min-height: auto !important;
}

/* ========================================================
   Dashboard - My Profile page
   ======================================================== */

/* Hide unnecessary form rows: address, city, about, social */
.form-group:has(#address),
.form-group:has(#city),
.form-group:has(#about),
.form-group:has(#facebook),
.form-group:has(#linkedin),
.form-group:has(#pinterest) {
    display: none !important;
}

/* Hide Download Profile and Delete Account */
#lp_delete_user_profile {
    display: none !important;
}

/* Profile titles: green, no gray background */
.tab-header h3,
.lp-update-password-outer,
.lp-update-password-outer h3,
.lp-update-profile .tab-header,
.lp-update-profile .tab-header h3,
.lp-update-profile .lp-update-password-outer,
.lp-update-profile .lp-update-password-outer h3 {
    color: #2d6a4f !important;
    background: #fff !important;
    background-color: #fff !important;
}

/* Profile photo area: white background */
.lp-update-profile .user-avatar-upload {
    background: #fff !important;
}

/* Profile avatar: cover fit */
.user-avatar-preview img.author-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Header avatar: cover fit */
.lp-user-meta .user-meta-image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* All dashboard buttons: AG green */
.lp-secondary-big-btn,
.btn-first-hover,
.upload-photo .btn-first-hover,
.lp-update-profile .btn-first-hover {
    background: #2d6a4f !important;
    background-color: #2d6a4f !important;
    border-color: #2d6a4f !important;
    color: #fff !important;
}

/* Hide Google Analytics field */
#lp-user-g-analytics {
    display: none !important;
}

/* Hide "Contact Support" button in header */
.lp-contact-support-outer {
    display: none !important;
}

/* ========================================================
   Dashboard - Listings page
   ======================================================== */

/* Main panel: card style matching AG sections */
.lp-dashboard-tabs.panel-default {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* Panel heading: tabs area */
.lp-dashboard-tabs .panel-heading {
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 20px 25px 0 !important;
}

/* Page title */
.lp-dashboard-tabs .panel-heading h5 {
    font-size: 20px !important;
    color: #2d6a4f !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

/* Tabs */
.lp-dashboard-tabs .nav-tabs {
    border-bottom: 2px solid #e0e0e0 !important;
}

.lp-dashboard-tabs .nav-tabs > li > a {
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 18px !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: color 0.2s, border-color 0.2s !important;
    background: transparent !important;
}

.lp-dashboard-tabs .nav-tabs > li > a:hover {
    color: #2d6a4f !important;
    background: transparent !important;
    border-bottom-color: #2d6a4f !important;
}

.lp-dashboard-tabs .nav-tabs > li.active > a,
.lp-dashboard-tabs .nav-tabs > li.active > a:hover,
.lp-dashboard-tabs .nav-tabs > li.active > a:focus {
    color: #2d6a4f !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #2d6a4f !important;
}

/* Panel body */
.lp-dashboard-tabs .panel-body {
    padding: 0 !important;
}

/* Column headers */
.lp-dashboard-tabs .lp-main-title {
    background: #f8faf9 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 12px 15px !important;
    margin: 0 !important;
}

.lp-dashboard-tabs .lp-main-title p {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #2d6a4f !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

/* Listing rows */
.lp-listing-outer-container {
    padding: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background 0.15s !important;
}

.lp-listing-outer-container:last-child {
    border-bottom: none !important;
}

.lp-listing-outer-container:hover {
    background: #f8faf9 !important;
}

/* Hide listing thumbnail placeholder */
.lp-listing-outer-container .lp-image-container {
    display: none !important;
}

/* Listing title link */
.lp-listing-outer-container .lp-cat-name-first {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.lp-listing-outer-container .lp-cat-name-first:hover {
    color: #2d6a4f !important;
}

/* Listing category */
.lp-listing-image-section .lp-left-content-container a {
    font-size: 12px !important;
    color: #888 !important;
}

/* Status text */
.lp-status-container p {
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Expiry column: prevent overflow */
.lp-listing-expire-section p {
    font-size: 13px !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
}

/* Three dots dropdown - prevent clipping */
.lp-dot-extra-buttons {
    position: relative;
}

.lp-dot-extra-buttons > img {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.lp-dot-extra-buttons:hover > img {
    opacity: 0.8;
}

.lp-dot-extra-buttons .lp-user-menu {
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    border: 1px solid #e0e0e0 !important;
    z-index: 100 !important;
}

.lp-dot-extra-buttons .lp-user-menu li a {
    font-size: 13px !important;
    padding: 8px 15px !important;
    background: #fff !important;
}

.lp-dot-extra-buttons .lp-user-menu li a:hover {
    background: #f0faf5 !important;
    color: #2d6a4f !important;
}

/* Pay button */
.lp-listing-pay-button {
    background: #2d6a4f !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    padding: 4px 12px !important;
}

/* ========================================================
   Dashboard - Subscription page
   ======================================================== */

/* Wrapper: match AG card style */
.subscriptions {
    padding: 20px 25px !important;
}

.subscriptions .lp-dashboard-tabs {
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.subscriptions .lp-dashboard-tabs > h5 {
    padding: 20px 25px !important;
    margin: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Unsubscribe button */
.subscriptions .delete-subsc-btn,
.subscriptions .unsubscribe-btn {
    display: inline-block !important;
    background: #fff !important;
    color: #d32f2f !important;
    border: 1px solid #d32f2f !important;
    border-radius: 4px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s !important;
}

.subscriptions .delete-subsc-btn:hover,
.subscriptions .unsubscribe-btn:hover {
    background: #d32f2f !important;
    color: #fff !important;
}

/* Row data styling */
.subscriptions .lp-listing-outer-container {
    font-size: 13px !important;
    color: #333 !important;
    align-items: center !important;
}

/* Panel body: remove extra padding */
.subscriptions .lp-new-packages {
    padding: 0 !important;
}

.subscriptions .tab-content {
    padding: 0 !important;
}

/* ========================================================
   Login/Signup Modal
   ======================================================== */

/* Header bar: AG green instead of blue */
.login-form-pop-tabs,
.modal-header,
.modal-content .modal-header {
    background: #2d6a4f !important;
}

/* Tab links: all white on green */
.login-form-pop-tabs ul li a,
.login-form-pop-tabs ul li a.signInClick,
.login-form-pop-tabs ul li a.signUpClick {
    color: #fff !important;
    opacity: 0.7 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.login-form-pop-tabs ul li a.active,
.login-form-pop-tabs ul li a:hover {
    opacity: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Center modal vertically */
.style2-popup-login {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.style2-popup-login .modal-dialog {
    transform: none !important;
    margin: 0 auto !important;
}

/* Hide signup form (redirects to AG registration) */
.siginupcontainer2 {
    display: none !important;
}

/* Forgot password form: translate and cancel */
.forgetpasswordcontainer2 .lp-secondary-btn {
    background: #2d6a4f !important;
    background-color: #2d6a4f !important;
    border-color: #2d6a4f !important;
}

.forgetpasswordcontainer2 .cancelClick {
    color: #2d6a4f !important;
}

/* Close button */
.login-form-pop-tabs .md-close,
.login-form-pop-tabs .md-close i {
    color: #fff !important;
}

/* Submit button: AG green */
.login-form-popup-outer .btn,
.login-form-popup-outer input[type="submit"],
.login-form-popup-outer .lp-login-btn,
.siginincontainer2 .btn,
.siginupcontainer2 .btn {
    background: #2d6a4f !important;
    background-color: #2d6a4f !important;
    border-color: #2d6a4f !important;
}

/* Forgot password link */
.login-form-popup-outer a {
    color: #2d6a4f !important;
}

/* ========================================================
   Checkout
   ======================================================== */

/* Hide recurring toggle (forced ON via JS) */
.lp-checkout-recurring-wrap {
    display: none !important;
}

/* Hide listing image */
.lp-user-listings .col-md-3:has(img.img-responsive) {
    display: none !important;
}
.lp-user-listings .col-md-7 {
    width: 75% !important;
}

/* --- Step indicators --- */
.lp-checkout-steps li .number {
    background: #b0bec5 !important;
    border-color: #b0bec5 !important;
    color: #fff !important;
    font-weight: 600;
}
.lp-checkout-steps li.current .number {
    background: #2d6a4f !important;
    border-color: #2d6a4f !important;
}
.lp-checkout-steps li.completed .number {
    background: #2d6a4f !important;
    border-color: #2d6a4f !important;
}
.lp-checkout-steps li .description {
    color: #555 !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.lp-checkout-steps li.current .description,
.lp-checkout-steps li.completed .description {
    color: #2d6a4f !important;
    font-weight: 600;
}

/* --- Heading --- */
.lp_select_listing_heading {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2d6a4f !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 15px !important;
}

/* --- Listing card --- */
.lp-user-listings {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: border-color 0.2s;
}
.lp-user-listings.active-checkout-listing {
    border-color: #2d6a4f !important;
    background: #f0f7f4 !important;
    box-shadow: 0 0 0 2px rgba(45,106,79,0.15) !important;
}
#lp-checkout-lisiting-heading {
    color: #2d6a4f !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}
.lp-checkout-page-outer-new .lp-booking-dt p,
.lp-checkout-page-outer-new .lp-persons p,
.lp-checkout-page-outer-new .lp-duration p {
    color: #555 !important;
    font-size: 13px !important;
}
.lp-checkout-price-currency {
    color: #2d6a4f !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* --- Radio buttons green --- */
.radio.radio-danger input[type="radio"]:checked + label::before,
.radio.radio-danger input[type="radio"]:checked + label::after {
    border-color: #2d6a4f !important;
}
.radio.radio-danger input[type="radio"]:checked + label::after {
    background-color: #2d6a4f !important;
}

/* --- Price summary --- */
.checkout-item-price-total {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    overflow: hidden;
}
.checkout-item-price-total li:first-child {
    background: #f5f5f5 !important;
}
.checkout-item-price-total .item-price-total-right b {
    color: #2d6a4f !important;
}

/* --- Payment methods sidebar --- */
.lp-rightbnk-transfer-msg,
.lp-rightbnk-transfer-msg-new {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: #fff !important;
}
.lp-method-wrap {
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background 0.2s;
}
.lp-method-wrap:hover {
    background: #f0f7f4 !important;
}
.lp-method-wrap p {
    font-weight: 500 !important;
    color: #333 !important;
}

/* --- Proceed button --- */
.lp_payment_step_next {
    background: #b0bec5 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    padding: 12px 20px !important;
    transition: background 0.2s !important;
}
.lp_payment_step_next.active,
.lp_payment_step_next:not(:disabled) {
    background: #2d6a4f !important;
}
.lp_payment_step_next.active:hover,
.lp_payment_step_next:not(:disabled):hover {
    background: #1b4332 !important;
}

/* --- Terms & conditions --- */
.lp-new-term-style {
    font-size: 12px !important;
    color: #777 !important;
}
.lp-new-term-style a,
.lpcheckouttac {
    color: #2d6a4f !important;
}

/* --- Coupon code input --- */
.lp-checkout-coupon-code input[type="text"] {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
}
.lp-checkout-coupon-code button,
.lp-checkout-coupon-code input[type="submit"] {
    background: #2d6a4f !important;
    border-radius: 6px !important;
    border: none !important;
    color: #fff !important;
}

/* ========================================================
   Single Listing Page - AziendeGreen Theme
   All selectors prefixed with body.single-listing for
   maximum specificity against ListingPro dynamic CSS.
   ======================================================== */

/* --- Hide unwanted elements --- */
body.single-listing .lp_confirmation,
body.single-listing .unhidebar-section {
    display: none !important;
}

/* Hide claim & report sections */
body.single-listing .claim-area {
    display: none !important;
}

/* Hide "Indicazioni" / Get Direction */
body.single-listing .get-direction,
body.single-listing .get-directions {
    display: none !important;
}

/* Hide "Salva" / Favorite button */
body.single-listing #fav-container {
    display: none !important;
}

/* Hide top "Scrivi Recensione" button (review form is below) */
body.single-listing #clicktoreview {
    display: none !important;
}

/* Hide "Scrivi la prima recensione!" / "Be the first to rate!" */
body.single-listing .no-review,
body.single-listing .lp-no-review-btn {
    display: none !important;
}

/* --- Title bar --- */
body.single-listing .post-meta-info-classic {
    background: #fff !important;
    background-color: #fff !important;
}

body.single-listing .single_listing h1,
body.single-listing .post-meta-left-box h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #2d6a4f !important;
}

/* Breadcrumb */
body.single-listing .lp-listing-top-meta a {
    color: #888 !important;
    font-size: 13px !important;
}

body.single-listing .lp-listing-top-meta a:hover {
    color: #2d6a4f !important;
}

/* --- CTA Buttons --- */

/* Scrivi Recensione: green filled */
body.single-listing .lp-review-btn,
body.single-listing .lp-review-btn.btn-second-hover,
body.single-listing input.lp-review-btn,
body.single-listing .review-submit-btn {
    background: #2d6a4f !important;
    background-color: #2d6a4f !important;
    border: 2px solid #2d6a4f !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.single-listing .lp-review-btn:hover,
body.single-listing input.lp-review-btn:hover,
body.single-listing .review-submit-btn:hover {
    background: #1b4332 !important;
    background-color: #1b4332 !important;
    border-color: #1b4332 !important;
    color: #fff !important;
}

/* Condividi: green filled button */
body.single-listing .post-stat .reviews-quantity,
body.single-listing .post-stat .reviews-quantity a {
    background: #2d6a4f !important;
    background-color: #2d6a4f !important;
    border: 2px solid #2d6a4f !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
}

body.single-listing .post-stat .reviews-quantity:hover,
body.single-listing .post-stat .reviews-quantity a:hover {
    background: #1b4332 !important;
    background-color: #1b4332 !important;
    border-color: #1b4332 !important;
    color: #fff !important;
}

/* --- Content area --- */
body.single-listing .post-detail-content,
body.single-listing .classic-post-detail-contant {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

/* --- Sidebar (classic) --- */
body.single-listing .sidebar-post-classic .widget-classic-box {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
}

body.single-listing .sidebar-post-classic .list-st-img li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

body.single-listing .sidebar-post-classic .list-st-img li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Contact icons: green */
body.single-listing .sidebar-post-classic i.fa-location-dot,
body.single-listing .sidebar-post-classic i.fa-phone,
body.single-listing .sidebar-post-classic i.fa-envelope,
body.single-listing .sidebar-post-classic i.fa-globe,
body.single-listing .sidebar-post-classic .fa-solid {
    color: #2d6a4f !important;
    margin-right: 8px !important;
}

/* Phone link */
body.single-listing .sidebar-post-classic .lp-listing-phone a {
    color: #333 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

body.single-listing .sidebar-post-classic .lp-listing-phone a:hover {
    color: #2d6a4f !important;
}

/* Sidebar text: dark */
body.single-listing .sidebar-post-classic .list-st-img li p,
body.single-listing .sidebar-post-classic .list-st-img li a,
body.single-listing .sidebar-post-classic .list-st-img li span {
    color: #333 !important;
    font-size: 14px !important;
}

/* Report section: hidden */
body.single-listing #lp-report-listing {
    display: none !important;
}

/* Price area / claim widgets */
body.single-listing .listing-price {
    border: none !important;
    box-shadow: none !important;
}

/* --- Review section --- */

/* Review header: clean underline */
body.single-listing .comment-reply-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

body.single-listing .comment-reply-title i {
    color: #2d6a4f !important;
}

/* Rating star boxes */
body.single-listing .form-review-stars {
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
}

body.single-listing .form-review-stars p {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 4px !important;
}

/* Image upload */
body.single-listing .submit-images label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

body.single-listing a.browse-imgs {
    display: inline-block !important;
    background: #2d6a4f !important;
    background-color: #2d6a4f !important;
    color: #fff !important;
    border-color: #2d6a4f !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.single-listing a.browse-imgs:hover {
    background: #1b4332 !important;
    background-color: #1b4332 !important;
    color: #fff !important;
}

/* Review form: inherit site font (Poppins) */
body.single-listing #rewies_form,
body.single-listing #rewies_form label,
body.single-listing #rewies_form input,
body.single-listing #rewies_form textarea,
body.single-listing #rewies_form select,
body.single-listing #rewies_form .form-control,
body.single-listing #rewies_form p,
body.single-listing .form-review-stars p,
body.single-listing .lp_privacy_policy_Wrap,
body.single-listing .lp_privacy_policy_Wrap label,
body.single-listing .form-submit.post-reletive input {
    font-family: 'Poppins', sans-serif !important;
}

/* Form labels: dark, NOT theme color */
body.single-listing #rewies_form label,
body.single-listing #rewies_form .form-group label,
body.single-listing .classic-review-form label,
body.single-listing .classic-review-form .form-group label,
body.single-listing .review-form label,
body.single-listing .review-form .form-group label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

/* Required asterisk */
body.single-listing .lp-requires-filed {
    color: #d32f2f !important;
}

/* Form inputs: white bg, clean border */
body.single-listing #rewies_form .form-control,
body.single-listing .classic-review-form .form-control,
body.single-listing #rewies_form input[type="text"],
body.single-listing #rewies_form input[type="email"],
body.single-listing #rewies_form textarea,
body.single-listing #rewies_form select {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #333 !important;
}

body.single-listing #rewies_form .form-control:focus,
body.single-listing .classic-review-form .form-control:focus {
    border-color: #2d6a4f !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.15) !important;
    background: #fff !important;
}

/* Hint text below textarea */
body.single-listing #rewies_form .form-group > p:not(:first-child),
body.single-listing .classic-review-form .form-group > p {
    font-size: 12px !important;
    color: #888 !important;
    margin-top: 6px !important;
}

/* Terms checkbox: inline with label */
body.single-listing .lp_privacy_policy_Wrap {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 15px !important;
}

body.single-listing .lp_privacy_policy_Wrap input[type="checkbox"] {
    accent-color: #2d6a4f !important;
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

body.single-listing .lp_privacy_policy_Wrap label {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

body.single-listing .lp_privacy_policy_Wrap a.help {
    color: #2d6a4f !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

body.single-listing .lp_privacy_policy_Wrap .help-text {
    margin-left: 4px !important;
}

/* Submit button area: proper alignment and spacing */
body.single-listing .form-submit.post-reletive {
    margin-top: 20px !important;
    padding: 0 15px !important;
    clear: both !important;
}

body.single-listing .form-submit.post-reletive input.lp-review-btn,
body.single-listing .form-submit.post-reletive input.lp-review-btn.btn-second-hover,
body.single-listing p.form-submit input[type="submit"].lp-review-btn,
body.single-listing #rewies_form input.lp-review-btn.btn-second-hover {
    background: #2d6a4f !important;
    background-color: #2d6a4f !important;
    border: 2px solid #2d6a4f !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 30px !important;
    width: auto !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.single-listing .form-submit.post-reletive input.lp-review-btn:hover,
body.single-listing .form-submit.post-reletive input.lp-review-btn.btn-second-hover:hover,
body.single-listing #rewies_form input.lp-review-btn.btn-second-hover:hover {
    background: #1b4332 !important;
    background-color: #1b4332 !important;
    border-color: #1b4332 !important;
    color: #fff !important;
}

/* --- Azienda certificata badge: green --- */
body.single-listing .ag-cert-section {
    margin: 15px 0 !important;
}

body.single-listing .ag-cert-badge {
    display: inline-block !important;
    background: #e8f5e9 !important;
    color: #2d6a4f !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #2d6a4f !important;
}

body.single-listing .ag-cert-badge i.fa-certificate {
    color: #2d6a4f !important;
    margin-right: 6px !important;
}

body.single-listing .ag-cert-badge a {
    color: #2d6a4f !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* --- Gallery --- */
body.single-listing .gallery-img-container img,
body.single-listing .listing-slider img {
    border-radius: 8px !important;
}

/* --- General links --- */
body.single-listing .single_listing a:not(.lp-review-btn):not(.reviews-quantity):not(.add-to-fav-v2):not(.remove-fav-v2):not(.browse-imgs):not(.phone-number) {
    color: #2d6a4f !important;
}

/* Social icons */
body.single-listing .widget-social a {
    color: #666 !important;
}

body.single-listing .widget-social a:hover {
    color: #2d6a4f !important;
}

/* --- Override ListingPro dynamic CSS theme color on form elements --- */
body.single-listing input,
body.single-listing .form-group label {
    color: #333 !important;
}

body.single-listing input.lp-review-btn {
    color: #fff !important;
    background-color: #2d6a4f !important;
    border-color: #2d6a4f !important;
}

body.single-listing a.browse-imgs {
    color: #fff !important;
    border-color: #2d6a4f !important;
}

body.single-listing .form-review-stars i,
body.single-listing .form-review-stars a {
    color: #ccc !important;
}

/* Star rating: filled stars gold */
body.single-listing .form-review-stars .fa-star.rated,
body.single-listing .form-review-stars .rating-tooltip[value]:not([value="0"]) ~ .fa-star {
    color: #f5a623 !important;
}

/* ========================================================
   Mobile Navigation Bar - Hidden on desktop
   ======================================================== */

.ag-mobile-nav {
    display: none;
}

/* ========================================================
   Mobile Responsive - Dashboard
   ======================================================== */

@media (max-width: 767px) {

    /* --- Mobile dashboard: hide sidebar, full-width content --- */
    /* Simply hide the sidebar entirely and let content fill the screen.
       The hamburger menu remains in the header bar for navigation. */

    #wrapper,
    #wrapper.active {
        padding-left: 0 !important;
    }

    #sidebar-wrapper {
        display: none !important;
    }

    #page-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        float: none !important;
    }

    /* --- Top header bar --- */
    .lp-user-header {
        padding: 8px 12px !important;
    }

    .lp-user-header .pull-right.lp-section-app-head-area {
        float: none !important;
        text-align: right !important;
    }

    .lp-user-meta ul li p {
        display: none !important;
    }

    .lp-user-meta .user-meta-image img {
        width: 30px !important;
        height: 30px !important;
    }

    /* --- Mobile bottom navigation bar (only exists in dashboard template) --- */
    .ag-mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        border-top: 2px solid #2d6a4f !important;
        z-index: 10000 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.08) !important;
    }

    .ag-mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        min-width: 0 !important;
        padding: 8px 4px 6px !important;
        color: #666 !important;
        text-decoration: none !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        transition: color 0.2s !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .ag-mobile-nav-item i {
        font-size: 18px !important;
        margin-bottom: 3px !important;
        color: inherit !important;
    }

    .ag-mobile-nav-item span {
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .ag-mobile-nav-item.ag-mobile-nav-active,
    .ag-mobile-nav-item:hover {
        color: #2d6a4f !important;
        background: #f0faf5 !important;
    }

    /* Add bottom padding to content so it's not hidden behind nav bar */
    .page-content.dashboard-content {
        padding-bottom: 80px !important;
    }

    /* --- Dashboard content area: uniform padding on all pages --- */
    .dashboard-content .right-panel {
        padding: 15px 12px !important;
    }

    /* --- AG Main screen (home) --- */
    .ag-main-screen {
        padding: 5px 0 !important;
    }

    .ag-welcome h2 {
        font-size: 20px !important;
    }

    .ag-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .ag-completion-circle {
        width: 90px !important;
        height: 90px !important;
    }

    .ag-circle-text {
        font-size: 20px !important;
    }

    /* --- Complete profile form --- */
    .ag-step2-wrap {
        padding: 5px 0 !important;
    }

    .ag-step2-header h2 {
        font-size: 20px !important;
    }

    .ag-step2-wrap .ag-section {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .ag-step2-wrap .ag-section h3 {
        font-size: 15px !important;
    }

    /* Stack all field rows vertically */
    .ag-step2-wrap .ag-field-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Address fields: allow inline for small fields */
    .ag-step2-wrap .ag-field[style*="flex:0 0 100px"],
    .ag-step2-wrap .ag-field[style*="flex:0 0 120px"] {
        flex: 1 !important;
    }

    /* Keywords: stack on mobile */
    .ag-step2-wrap .ag-keywords-grid {
        flex-direction: column !important;
    }

    .ag-step2-wrap .ag-keywords-grid input[type="text"] {
        min-width: 100% !important;
    }

    /* Servizi checkboxes: full width */
    .ag-step2-wrap .ag-checkbox-label {
        display: flex !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Submit button full width */
    .ag-step2-wrap .ag-btn-lg {
        width: 100% !important;
        padding: 14px 20px !important;
    }

    /* --- Listings / Invoices / Subscriptions: mobile label bars --- */
    /* Parent theme uses ::before with data-content as inline labels.
       Override gray (#b3c0ce) to match AG green theme. */

    .lp-dashboard-tabs .panel-heading {
        padding: 15px 12px 0 !important;
    }

    .lp-dashboard-tabs .panel-heading h5 {
        font-size: 18px !important;
    }

    .lp-dashboard-tabs .nav-tabs > li > a {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    /* Listings panel: remove col-md-11 offset, full width */
    .lp-dashboard-tabs.col-md-11 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Mobile label bars: green instead of gray */
    .lp-dashboard-new #lp-listings .lp-listing-outer-container .col-md-6::before,
    .lp-dashboard-new #lp-listings .lp-listing-outer-container .col-md-3::before,
    .lp-dashboard-new #lp-listings .lp-listing-outer-container .col-md-2::before,
    .lp-dashboard-new #lp-listings .lp-listing-outer-container .col-md-1::before,
    .lp-new-packages .lp-listing-outer-container .col-md-3::before,
    .lp-new-packages .lp-listing-outer-container .col-md-2::before,
    .lp-new-invoices .lp-listing-outer-container .col-md-3::before,
    .lp-new-invoices .lp-listing-outer-container .col-md-6::before,
    .subscriptions .lp-listing-outer-container [class*="col-md-"]::before {
        background: #2d6a4f !important;
        border-radius: 4px !important;
    }

    /* --- Subscriptions page --- */
    .subscriptions {
        padding: 15px 10px !important;
    }

    .subscriptions .lp-dashboard-tabs > h5 {
        padding: 15px 12px !important;
        font-size: 18px !important;
    }

    /* Hide column headers on mobile */
    .subscriptions .lp-main-title {
        display: none !important;
    }

    /* Hide ALL ::before bars in subscriptions (uses #lp-listings id from parent) */
    .subscriptions .lp-listing-outer-container .col-md-1::before,
    .subscriptions .lp-listing-outer-container .col-md-2::before,
    .subscriptions .lp-listing-outer-container .col-md-3::before,
    .subscriptions .lp-listing-outer-container .col-md-6::before,
    .lp-dashboard-new .subscriptions #lp-listings .lp-listing-outer-container .col-md-1::before,
    .lp-dashboard-new .subscriptions #lp-listings .lp-listing-outer-container .col-md-2::before,
    .lp-dashboard-new .subscriptions #lp-listings .lp-listing-outer-container .col-md-3::before,
    .lp-dashboard-new .subscriptions #lp-listings .lp-listing-outer-container .col-md-6::before {
        display: none !important;
        content: none !important;
    }

    /* Subscription cols: full width stacked */
    .subscriptions .lp-listing-outer-container [class*="col-md-"] {
        width: 100% !important;
        float: none !important;
        padding: 3px 15px !important;
        text-align: left !important;
    }

    /* Hide the row number col (first child) */
    .subscriptions .lp-listing-outer-container > .col-md-1:first-child {
        display: none !important;
    }

    /* Subscription row: card style */
    .subscriptions .lp-listing-outer-container {
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
        padding: 12px 0 !important;
    }

    .subscriptions .delete-subsc-btn,
    .subscriptions .unsubscribe-btn {
        width: 100% !important;
        text-align: center !important;
        margin-top: 8px !important;
    }

    /* Subscription panel: full width */
    .subscriptions .lp-dashboard-tabs.col-md-11 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- Reviews page --- */
    .lp-blank-section {
        padding: 30px 15px !important;
    }

    .lp-blank-section h1 {
        font-size: 18px !important;
    }

    /* --- My Profile page --- */
    .lp-update-profile {
        padding: 0 !important;
    }

    .lp-update-profile .tab-header,
    .lp-update-profile .lp-update-password-outer {
        padding: 15px !important;
    }

    .lp-update-profile .tab-header h3,
    .lp-update-profile .lp-update-password-outer h3 {
        font-size: 18px !important;
    }

    /* Avatar area: stack vertically, center */
    .lp-update-profile .user-avatar-upload {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }

    .lp-update-profile .user-avatar-preview {
        margin: 0 auto 15px !important;
        float: none !important;
    }

    .lp-update-profile .user-avatar-description {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Form fields: full width, clean spacing */
    .lp-update-profile .form-group {
        padding: 0 !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }

    .lp-update-profile .form-group .col-sm-3,
    .lp-update-profile .form-group .col-sm-4,
    .lp-update-profile .form-group .col-sm-6,
    .lp-update-profile .form-group .col-sm-9,
    .lp-update-profile .form-group .col-sm-12 {
        width: 100% !important;
        float: none !important;
        padding: 5px 15px !important;
    }

    .lp-update-profile .form-group label {
        margin-bottom: 4px !important;
    }

    .lp-update-profile .form-group .form-control {
        margin-bottom: 5px !important;
    }

    /* Remove horizontal lines between fields */
    .lp-update-profile .form-horizontal .form-group {
        border-bottom: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .lp-update-profile .page-innner-container {
        padding: 15px 0 !important;
    }

    /* Password section */
    .lp-update-profile .lp-update-password-outer .form-group .col-sm-6,
    .lp-update-profile .lp-update-password-outer .form-group .col-sm-4 {
        width: 100% !important;
        float: none !important;
        padding: 5px 15px !important;
    }

    /* Buttons: full width on mobile */
    .lp-update-profile .btn-first-hover,
    .lp-secondary-big-btn {
        width: 100% !important;
        text-align: center !important;
        margin-top: 10px !important;
    }

    /* ========================================================
       Single Listing Page - Mobile
       ======================================================== */

    /* --- Title bar: stack left/right vertically --- */
    .listing-second-view .post-meta-info-classic .container .row > [class*="col-"] {
        width: 100% !important;
        float: none !important;
    }

    .listing-second-view .post-meta-left-box {
        text-align: center !important;
        padding: 15px 12px !important;
    }

    /* Logo: center and constrain */
    .listing-second-view .lp-listing-logo {
        margin: 0 auto 10px !important;
        text-align: center !important;
    }

    .listing-second-view .lp-listing-logo img {
        max-width: 80px !important;
        height: auto !important;
        border-radius: 8px !important;
    }

    /* Title */
    .listing-second-view .post-meta-left-box h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }

    /* Tagline */
    .listing-second-view .post-meta-left-box > p {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    /* Rating: center */
    .listing-second-view .classic-detail-reviews {
        text-align: center !important;
        justify-content: center !important;
    }

    .listing-second-view .classic-detail-reviews li {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    /* Breadcrumbs */
    .listing-second-view .breadcrumbs {
        text-align: center !important;
        padding-left: 0 !important;
        margin-bottom: 8px !important;
    }

    /* --- Right box: rating + buttons centered --- */
    .listing-second-view .post-meta-right-box {
        text-align: center !important;
        margin-top: 0 !important;
        padding: 10px 12px !important;
    }

    .listing-second-view .rating-section-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .listing-second-view span.rating-section {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .listing-second-view .rating-section-container .secondary-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    /* Action buttons (Save, Share): inline centered */
    .listing-second-view .post-meta-right-box .post-stat {
        float: none !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .listing-second-view .post-stat li {
        width: auto !important;
        border-right: none !important;
    }

    .listing-second-view .post-stat li a {
        font-size: 13px !important;
        padding: 8px 14px !important;
    }

    /* Share dropdown: center on mobile */
    .listing-second-view .social-icons.post-socials.smenu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    /* --- Gallery: better mobile fit --- */
    .listing-second-view .single-page-slider-container {
        margin: 0 !important;
    }

    .listing-second-view .listing-slide .slide img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* --- Main content area: proper spacing --- */
    .listing-second-view .content-white-area-classic {
        padding: 0 !important;
    }

    .listing-second-view .single-inner-classic-container .row > [class*="col-"] {
        width: 100% !important;
        float: none !important;
        padding: 0 10px !important;
    }

    /* Content widgets */
    .listing-second-view .widget-box.classic-content-widget {
        padding: 15px !important;
        margin-bottom: 12px !important;
    }

    .listing-second-view .widget-box.classic-content-widget h4 {
        font-size: 16px !important;
    }

    /* --- Sidebar contact info: full width on mobile --- */
    .listing-second-view .sidebar-post-classic {
        margin-top: 0 !important;
    }

    .listing-second-view .sidebar-post-classic .widget-classic-box {
        margin-bottom: 15px !important;
    }

    /* Map */
    .listing-second-view .widget-map {
        min-height: 200px !important;
    }

    /* Contact list items */
    .listing-second-view .listing-detail-infos ul.list-st-img li {
        padding: 12px 14px !important;
    }

    .listing-second-view .listing-detail-infos li a {
        font-size: 13px !important;
        word-break: break-word !important;
    }

    .listing-second-view .listing-detail-infos li i {
        min-width: 20px !important;
    }

    /* Get directions link */
    .listing-second-view .get-direction a {
        font-size: 13px !important;
    }

    /* Social icons widget */
    .listing-second-view .widget-social ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .listing-second-view .widget-social ul li {
        margin: 0 !important;
    }

    /* --- Reviews section --- */
    .listing-second-view .lp-review-outer {
        padding: 15px !important;
    }

    /* --- Bottom claim/report buttons --- */
    .listing-second-view .bottom-action-btns {
        text-align: center !important;
    }

    .listing-second-view .bottom-action-btns a {
        display: block !important;
        margin: 5px auto !important;
    }

}

/* ========================================================
   Mobile Responsive - Small screens (≤480px)
   ======================================================== */

@media (max-width: 480px) {

    /* Smaller fonts */
    .ag-step2-wrap label {
        font-size: 13px !important;
    }

    .ag-step2-wrap input[type="text"],
    .ag-step2-wrap input[type="email"],
    .ag-step2-wrap input[type="tel"],
    .ag-step2-wrap input[type="url"],
    .ag-step2-wrap textarea,
    .ag-step2-wrap select {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }

    /* Dashboard tabs: scrollable */
    .lp-dashboard-tabs .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .lp-dashboard-tabs .nav-tabs > li {
        flex-shrink: 0 !important;
    }

    /* Listing rows */
    .lp-listing-outer-container .lp-cat-name-first {
        font-size: 13px !important;
    }
}
