/*
 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.2
 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
*/

/* ==========================================================================
   Sospeso — stil aliniat la designul nou (Lovable "visual revival"), CRIL DEV 27.10.2026
   Aceeași familie de culori din logo (verde cafenea, latte, scorțișoară, roz, crem),
   dar tipografie geometrică Jost peste tot (fără serif), ca în designul nou, pe crem #f7f3ec.
   Culoarea de accent MyListing (butoane, linkuri, iconuri) e suprascrisă aici;
   recomandat și în MyListing → Theme Options → Styling → Accent color = #283d30.
   ========================================================================== */
/* Jost (geometric, ca în designul nou). Subsetul latin-ext de la Google Fonts acoperă diacriticele ă â î ș ț. */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

html:root {
	--sos-green: #283d30;
	--sos-green-dark: #1c2c22;
	--sos-green-soft: #e6ece7;
	--sos-latte: #c9a27e;
	--sos-cinnamon: #b8835a;
	--sos-blush: #efc7bc;
	--sos-cream: #f7f3ec;
	--sos-ink: #22302a;
	--accent: #283d30;
	--sos-serif: 'Jost', 'Segoe UI', system-ui, sans-serif;
	--sos-sans: 'Jost', 'Segoe UI', system-ui, Arial, sans-serif;
}
/* Fonturile și culorile globale (tema MyListing și kit-ul Elementor folosesc aceste variabile) */
html:root, body.elementor-kit-107 {
	--e-global-typography-primary-font-family: 'Jost';
	--e-global-typography-secondary-font-family: 'Jost';
	--e-global-typography-text-font-family: 'Jost';
	--e-global-typography-accent-font-family: 'Jost';
}
body.elementor-kit-107 {
	--e-global-color-primary: #283d30;
	--e-global-color-secondary: #b8835a;
	--e-global-color-text: #4b5650;
	--e-global-color-accent: #c9a27e;
}
body, button, input, select, textarea { font-family: var(--sos-sans); }

/* Fundal crem în locul gri-ului rece */
body, body #c27-site-wrapper { background-color: var(--sos-cream); }
::selection { background: var(--sos-blush); color: var(--sos-ink); }

/* Titluri: Jost geometric, weight mediu și tracking strâns, ca în designul nou (fără serif) */
h1, h2, h3, .elementor-heading-title, .woocommerce-products-header__title, .entry-title {
	font-family: var(--sos-sans);
	font-weight: 500;
	letter-spacing: -0.015em;
}

/* Header: culorile vin din Theme Options → Header (recomandat: text Dark, fundal crem #f7f3ec, chenar #e8e0d4),
   ca logo-ul verde să se vadă. Doar dacă header-ul rămâne pe text deschis, la derulare devine verde în loc de gri-negru. */
html body .c27-main-header.header-scroll.header-scroll-dark-skin .header-skin { background: rgba(40, 61, 48, .97) !important; border-bottom-color: var(--sos-green) !important; }
html body .c27-main-header.header-light-skin .header-skin, html body .c27-main-header.header-scroll.header-scroll-light-skin .header-skin { box-shadow: 0 1px 10px rgba(34, 48, 42, .06); }
/* Ecranul de încărcare arată logo-ul: fundal crem */
html body .loader-bg.main-loader { background-color: var(--sos-cream) !important; }
.header-scroll.header-scroll-dark-skin .header-button a.buttons.button-2 { color: var(--sos-green); }

/* Footer */
.footer { background: var(--sos-green-dark); color: #e9e3d8; }
.footer a, .footer .widget-title h5, .footer h5, .footer p { color: #e9e3d8; }
.footer a:hover { color: var(--sos-latte); }
.footer .footer-bottom { border-color: rgba(255, 255, 255, .08); }

/* Butoane MyListing / WooCommerce: colțuri rotunjite (pill), hover scorțișoară */
.buttons.button-2, .buttons.button-1, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .elementor-button { border-radius: 999px !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order { background-color: var(--sos-green) !important; color: #fff !important; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover, .buttons.button-2:hover { background-color: var(--sos-cinnamon) !important; color: #fff !important; }

/* Carduri rotunjite, ca în designul nou (radius ~1rem) */
.job_listing.c27-listing-item, .case27-user-listings .listing-preview, .listing-preview-inner,
.woocommerce ul.products li.product, .elementor-widget-wrap > .elementor-element.elementor-widget-image img { border-radius: 16px; }

/* Iconurile categoriilor: verde în loc de culori stridente */
.cat-icon { background-color: var(--sos-green) !important; }
.cat-icon i, .cat-icon .mi, .cat-icon svg { color: var(--sos-cream) !important; fill: var(--sos-cream) !important; }

/* Prima pagină (Elementor): overlay-ul mov de pe cardurile categoriilor și butonul mov */
.elementor-121 .elementor-element.elementor-element-fc46bda::before, .elementor-121 .elementor-element.elementor-element-149f802::before,
.elementor-121 .elementor-element.elementor-element-20c217f::before, .elementor-121 .elementor-element.elementor-element-db2f151::before,
.elementor-121 .elementor-element.elementor-element-8aae75b::before, .elementor-121 .elementor-element.elementor-element-25c42e8::before,
.elementor-121 .elementor-element.elementor-element-082390a::before, .elementor-121 .elementor-element.elementor-element-ee3792c::before {
	background-color: var(--sos-green) !important;
}
.elementor-121 .elementor-element.elementor-element-fc46bda:hover::before, .elementor-121 .elementor-element.elementor-element-149f802:hover::before,
.elementor-121 .elementor-element.elementor-element-20c217f:hover::before, .elementor-121 .elementor-element.elementor-element-db2f151:hover::before,
.elementor-121 .elementor-element.elementor-element-8aae75b:hover::before, .elementor-121 .elementor-element.elementor-element-25c42e8:hover::before,
.elementor-121 .elementor-element.elementor-element-082390a:hover::before, .elementor-121 .elementor-element.elementor-element-ee3792c:hover::before {
	background-color: var(--sos-cinnamon) !important;
}
.elementor-121 .elementor-element.elementor-element-efb5de5 .elementor-button { background-color: var(--sos-green) !important; }
.elementor-121 .elementor-element.elementor-element-efb5de5 .elementor-button:hover { background-color: var(--sos-cinnamon) !important; }

/* ==========================================================================
   Bara de search de pe home (MyListing basic search) - v5 (27.10), valori de la Cril:
   container #fcfbf6; campuri distincte rotunjite bg #ebe7de, text #253729;
   iconite (pin+lupa) #a7734e, centrate la stanga textului; latimi 1/4 oras, 2/4 cautare, 1/4 buton;
   select2-container fara border-bottom. Oras=.cts-term-hierarchy (Select2), cautare=.wp-search-filter.
   ========================================================================== */

/* Container */
.mylisting-basic-form .featured-search .fs-tabs .tab-content {
	background: #fcfbf6 !important;
	border: 1px solid #e6e0d4 !important;
	border-radius: 999px !important;
	box-shadow: 0 16px 40px rgba(34, 48, 42, .12);
	padding: 10px !important;
	overflow: visible !important;
	max-width: 980px;
	margin: 0 auto;
}

/* Rand: oras | cautare | buton (1/4 : 2/4 : 1/4) */
.mylisting-basic-form .featured-search > form {
	display: flex !important;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 10px;
	padding: 0 !important;
	width: 100%;
	margin: 0;
}

/* Cele doua campuri = chenare distincte rotunjite */
.mylisting-basic-form .featured-search > form > .cts-term-hierarchy.form-group,
.mylisting-basic-form .featured-search > form > .wp-search-filter.form-group {
	margin: 0 !important;
	height: 56px;
	display: flex;
	align-items: center;
	position: relative;
	background: #ebe7de;
	border: 1px solid #e0d9cb;
	border-radius: 999px;
}
.mylisting-basic-form .featured-search > form > .cts-term-hierarchy.form-group { flex: 1 1 0; padding: 0 40px 0 44px; } /* 1/4 */
.mylisting-basic-form .featured-search > form > .wp-search-filter.form-group  { flex: 3 1 0; padding: 0 18px 0 44px; } /* mai lat */
.mylisting-basic-form .featured-search > form > .form-group:last-child        { flex: 0 0 auto; display: flex; align-items: center; margin: 0; padding: 0; background: none; border: 0; } /* buton dupa continut */

/* Culoarea textului in ambele campuri */
.mylisting-basic-form .wp-search-filter input[type="text"],
.mylisting-basic-form .cts-term-hierarchy .select2-selection__rendered { color: #253729 !important; font-size: 15px; border-bottom:0px }

/* Ascundem etichetele temei + inputul hidden al dropdown-ului */
.mylisting-basic-form .cts-term-hierarchy > label,
.mylisting-basic-form .wp-search-filter > label { display: none !important; }
.mylisting-basic-form .cts-term-hierarchy > input.hide { display: none !important; }

/* Campul de cautare: input fara chenar/underline, transparent */
.mylisting-basic-form .wp-search-filter input[type="text"] {
	height: 100%; width: 100%; padding: 0; margin: 0;
}
.mylisting-basic-form .wp-search-filter input::placeholder { color: #8a8575; }

/* Campul oras (Select2): topit in chenar, static, centrat, fara border-bottom */
.mylisting-basic-form .cts-term-hierarchy .select-wrapper.term-select {
	position: static !important; bottom: auto !important; left: auto !important;
	width: 100%; height: 100%; display: flex; align-items: center;
}
.mylisting-basic-form .cts-term-hierarchy .select2-container, .wp-search-filter input {
	width: 100% !important;
    border-radius: 9999px !important;
    border: 1px solid #ebe7de !important;
    background: #ebe7de !important;
}
.mylisting-basic-form .cts-term-hierarchy .select2-selection,
.mylisting-basic-form .cts-term-hierarchy .select2-selection--single {
	border: 0 !important; border-bottom: 0 !important; background: transparent !important; box-shadow: none !important;
	height: 100% !important; display: flex; align-items: center; padding: 0; outline: none;
}
.mylisting-basic-form .cts-term-hierarchy .select2-selection__rendered {
	padding: 0 !important; margin: 0 !important; line-height: normal !important;
}
.mylisting-basic-form .cts-term-hierarchy .select2-selection__placeholder { color: #8a8575; }
.mylisting-basic-form .cts-term-hierarchy .select2-selection__placeholder::before { content: "Alege orașul"; }
.mylisting-basic-form .cts-term-hierarchy .select2-selection__arrow { display: none !important; }

/* Iconite: pin + lupa #a7734e, centrate la stanga; chevron oras #253729 la dreapta */
.mylisting-basic-form .cts-term-hierarchy::before,
.mylisting-basic-form .wp-search-filter::before {
	content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	width: 18px; height: 18px; pointer-events: none; z-index: 3;
}
.mylisting-basic-form .cts-term-hierarchy::before {
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7734e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.mylisting-basic-form .wp-search-filter::before {
	width: 17px; height: 17px;
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7734e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}
.mylisting-basic-form .cts-term-hierarchy::after {
	content: ""; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	width: 14px; height: 14px; pointer-events: none; z-index: 3;
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23253729' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
/* Poziționare iconițe */
.mylisting-basic-form .cts-term-hierarchy::before,
.mylisting-basic-form .wp-search-filter::before {
    left: 16px;
    width: 18px;
    height: 18px;
    z-index: 3;
    pointer-events: none;
}

/* Spațiu pentru iconiță - select oraș */
.mylisting-basic-form .cts-term-hierarchy .select2-selection {
    padding-left: 38px !important;
}

/* Spațiu pentru iconiță - câmp căutare */
.mylisting-basic-form .wp-search-filter input {
    padding-left: 42px !important;
}
.mylisting-basic-form .cts-term-hierarchy::before,
.mylisting-basic-form .wp-search-filter::before {
    top: calc(50% + 3px) !important;
}
/* Butonul Cauta: pill verde, umple 1/4 */
.mylisting-basic-form .featured-search .buttons.search {
	width: auto !important; margin: 0 !important; border-radius: 999px !important;
	background: var(--sos-green) !important; color: #fff !important;
	height: 45px; padding: 0 30px; font-weight: 500; white-space: nowrap;
	display: flex; align-items: center; justify-content: center; margin-top:12px !important
}
.mylisting-basic-form .featured-search .buttons.search:hover { background: var(--sos-cinnamon) !important; }
.mylisting-basic-form .featured-search .buttons.search i.mi.search { display: none; }

/* Telefon: pe coloana */
@media (max-width: 767px) {
	.mylisting-basic-form .featured-search .fs-tabs .tab-content { border-radius: 22px !important; }
	.mylisting-basic-form .featured-search > form { flex-wrap: wrap; }
	.mylisting-basic-form .featured-search > form > .cts-term-hierarchy.form-group,
	.mylisting-basic-form .featured-search > form > .wp-search-filter.form-group,
	.mylisting-basic-form .featured-search > form > .form-group:last-child { flex: 1 1 100%; }
}


/* ==========================================================================
   FIX distributie latimi bara search (CRIL DEV 27.10).
   In tema MyListing, <form> e display:grid cu grid-template-columns: repeat(auto-fit, minmax(250px,1fr)),
   iar selectoarele ".featured-search > form" nu se potrivesc (form-ul NU e copil direct al .featured-search).
   De aceea butonul primea o celula de ~1/3 si lasa spatiu gol. Setam coloanele explicit cu selectorul corect:
   oras (1fr) | cautare (3fr, absoarbe spatiul) | buton (auto, dupa continut).
   ========================================================================== */
.mylisting-basic-form .featured-search form {
	grid-template-columns: 1fr 3fr auto !important;
}
@media (max-width: 767px) {
	.mylisting-basic-form .featured-search form { grid-template-columns: 1fr !important; }
}

/* Antet (header): fundalul cream setat in Theme Options sa fie vizibil de la incarcare, nu doar la scroll.
   Header-ul e "header-light-skin" (transparent sus); fortam fundalul cream pe .header-skin. CRIL DEV 28.10. */
html body .c27-main-header.header-light-skin .header-skin { background-color: var(--sos-cream) !important; }

/* ==========================================================================
   Casete status dashboard (/contul-meu/my-listings/): culori in paleta Sospeso.
   Fundalul vine inline din setarile temei (stats.colorN) -> il suprascriem cu !important.
   CRIL DEV 28.10. ========================================================================== */
.stat-card .mlduo-stat-box { border-radius: 14px; }
.stat-card .mlduo-stat-box h2,
.stat-card .mlduo-stat-box p,
.stat-card .mlduo-stat-box i,
.stat-card .mlduo-stat-box .mi,
.stat-card .mlduo-stat-box svg { color: inherit !important; fill: currentColor !important; }
/* Publicate -> verde brand, text cream */
.stat-card-status-publish .mlduo-stat-box { background: var(--sos-green) !important; color: var(--sos-cream) !important; }
/* In asteptarea aprobarii -> latte, text inchis */
.stat-card-status-pending-approval .mlduo-stat-box { background: var(--sos-latte) !important; color: var(--sos-ink) !important; }
/* In asteptarea platii -> scortisoara, text cream */
.stat-card-status-pending-payment .mlduo-stat-box { background: var(--sos-cinnamon) !important; color: var(--sos-cream) !important; }
/* Expirate -> blush, text inchis */
.stat-card-status-expired .mlduo-stat-box { background: var(--sos-blush) !important; color: var(--sos-ink) !important; }

/* ==========================================================================
   Casete dashboard principal (/contul-meu/, ?state_type=sitewide): paleta Sospeso.
   Acelasi .mlduo-stat-box cu fundal inline; alte clase decat pagina my-listings. CRIL DEV 28.10. */
.stat-card-published-listings .mlduo-stat-box { background: var(--sos-green) !important; color: var(--sos-cream) !important; }
.stat-card-pending-listings .mlduo-stat-box   { background: var(--sos-latte) !important; color: var(--sos-ink) !important; }
.stat-card-active-promotions .mlduo-stat-box  { background: var(--sos-cinnamon) !important; color: var(--sos-cream) !important; }
.stat-card-visits .mlduo-stat-box             { background: var(--sos-green-soft) !important; color: var(--sos-ink) !important; }
