:root{
--bg:#f3f4f6;
--card:#ffffff;
--primary:#12b35d;
--dark:#0f172a;
--muted:#64748b;
--border:#dcdfe4;
--shadow:0 10px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
body{
margin:0;
font-family:'Cairo',system-ui,-apple-system,sans-serif;
background:var(--bg);
color:var(--dark);
}
.layout{
display:grid;
grid-template-columns:380px 1fr;
gap:14px;
padding:14px;
}
.sidebar{
background:var(--card);
border-radius:20px;
padding:14px;
overflow:auto;
height:72vh;
box-shadow:var(--shadow);
}
.map{
height:100%;
border-radius:20px;
overflow:hidden;
}
.search-bar-wrap{
margin:14px;
background:#ece9e6;
border-radius:24px;
padding:16px;
box-shadow:0 8px 20px rgba(15,23,42,.05);
}
.search-bar-inline{
display:grid;
grid-template-columns:110px 180px 180px 1fr;
gap:10px;
align-items:center;
}
.filter-btn{
height:48px;
border:none;
border-radius:14px;
background:linear-gradient(135deg,#10b759,#0ea84f);
color:#fff;
font-size:15px;
font-weight:800;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
}
.search-select,
.search-input{
width:100%;
height:48px;
border:1px solid var(--border);
border-radius:14px;
background:#fff;
font-size:15px;
}
.search-input-wrap{
position:relative;
}
.search-input-wrap input{
width:100%;
height:48px;
border:1px solid var(--border);
border-radius:14px;
background:#fff;
font-size:15px;
padding:0 16px;
color:#0f172a;
}
.search-input-wrap input::placeholder{
color:#6b7280;
}
.search-input-wrap input:focus{
outline:none;
border-color:#0ea5e9;
box-shadow:0 0 0 4px rgba(14,165,233,.10);
}
.mobile-only{
display:none;
}
.mobile-search-btn{
width:100%;
height:44px;
border:none;
border-radius:12px;
background:#0bb357;
color:#fff;
font-size:18px;
font-weight:700;
cursor:pointer;
box-shadow:0 8px 20px rgba(11,179,87,.20);
}
.select2-container{
width:100% !important;
}
.select2-container--default .select2-selection--single{
height:48px !important;
min-height:48px !important;
border-radius:14px !important;
border:1px solid var(--border) !important;
background:#fff !important;
display:flex !important;
align-items:center !important;
padding:0 38px 0 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
line-height:normal !important;
padding:0 !important;
color:#0f172a !important;
font-size:14px !important;
font-weight:700 !important;
width:100%;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
height:100% !important;
width:32px !important;
left:8px !important;
right:auto !important;
top:0 !important;
}
.select2-dropdown{
border:1px solid var(--border) !important;
border-radius:12px !important;
overflow:hidden !important;
box-shadow:0 10px 25px rgba(0,0,0,.12) !important;
}
.select2-results__options{
max-height:220px !important;
overflow-y:auto !important;
}
.select2-results__option{
font-size:14px !important;
padding:10px 12px !important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
background:#0ea5e9 !important;
color:#fff !important;
}
.row{
position:relative;
background:linear-gradient(180deg,#ffffff,#f8fafc);
border:1px solid #e5e7eb;
border-radius:16px;
padding:10px 12px;
margin-bottom:10px;
transition:all .25s ease;
cursor:pointer;
}
.row:hover{
transform:translateY(-2px);
box-shadow:0 12px 28px rgba(0,0,0,.12);
border-color:#bae6fd;
}
.row.active{
border-color:#0ea5e9;
box-shadow:0 0 0 3px rgba(14,165,233,.18);
}
.row.no-map{
background:linear-gradient(180deg,#fff7ed,#fffbeb);
border-style:dashed;
border-color:#fbbf24;
}
.row::before{
content:'';
position:absolute;
right:0;
top:12px;
bottom:12px;
width:4px;
border-radius:999px;
background:linear-gradient(180deg,#0ea5e9,#38bdf8);
opacity:.15;
}
.row-flex{
display:flex;
align-items:flex-start;
gap:10px;
}
.avatar{
width:42px;
height:42px;
border-radius:50%;
object-fit:cover;
background:#fff;
flex-shrink:0;
}
.avatar-online{
border:1px solid #22c55e;
box-shadow:
0 0 0 3px rgba(34,197,94,.25),
0 0 12px rgba(34,197,94,.55);
animation:onlinePulse 1.8s infinite;
}
@keyframes onlinePulse{
0%{
box-shadow:
0 0 0 3px rgba(34,197,94,.20),
0 0 10px rgba(34,197,94,.45);
}
50%{
box-shadow:
0 0 0 6px rgba(34,197,94,.35),
0 0 18px rgba(34,197,94,.75);
}
100%{
box-shadow:
0 0 0 3px rgba(34,197,94,.20),
0 0 10px rgba(34,197,94,.45);
}
}
.avatar-offline{
border:2px solid #9ca3af;
}
.avatar-gold{
border:2px solid #f59e0b !important;
box-shadow:
0 0 0 3px rgba(245,158,11,.35),
0 6px 16px rgba(245,158,11,.35);
}
a.cname,
.row strong{
font-size:14px;
font-weight:700;
color:#0f172a;
line-height:1.3;
text-decoration:none;
}
a.cname:hover{
color:#0ea5e9;
}
.row small{
display:inline-block;
margin-top:2px;
font-size:12px;
color:#475569;
line-height:1.8;
}
.badge{
margin-left:6px;
background:linear-gradient(135deg,#38bdf8,#0ea5e9);
color:#fff;
font-size:11px;
padding:2px 8px;
border-radius:999px;
}
.btn{
display:inline-flex;
align-items:center;
gap:6px;
margin-top:6px;
padding:6px 12px;
border:none;
border-radius:999px;
background:#38bdf8;
color:#fff;
font-size:12px;
font-weight:700;
cursor:pointer;
transition:.2s;
}
.btn:hover{opacity:.9}
.name-rating{
display:flex;
align-items:center;
gap:6px;
flex-wrap:wrap;
}
.rating-inline{
display:inline-flex;
align-items:center;
font-size:12px;
line-height:1;
}
.rating-inline .stars{
letter-spacing:1px;
}
.rating-inline .rating-text{
margin-right:4px;
color:#64748b;
font-size:11px;
}
.no-rating{
font-size:11px;
color:#94a3b8;
font-style:italic;
}
.floating-craftsman-cta{
position:sticky;
bottom:14px;
margin-top:16px;
display:flex;
justify-content:center;
z-index:20;
}
.cta-btn{
width:100%;
max-width:320px;
text-align:center;
padding:14px 18px;
border-radius:999px;
background:linear-gradient(135deg,#0ea5e9,#2563eb);
color:#fff;
font-size:15px;
font-weight:700;
text-decoration:none;
box-shadow:0 10px 25px rgba(37,99,235,.35);
transition:all .25s ease;
}
.cta-btn:hover{
transform:translateY(-2px);
box-shadow:0 14px 32px rgba(37,99,235,.45);
opacity:.95;
}
.welcome-box{
position:sticky;
bottom:14px;
margin-top:16px;
padding:14px 16px;
text-align:center;
border-radius:16px;
background:linear-gradient(135deg,#ecfeff,#e0f2fe);
color:#0369a1;
font-size:15px;
font-weight:700;
box-shadow:0 8px 20px rgba(14,165,233,.15);
}
.welcome-box strong{
color:#0ea5e9;
}
.floating-back-btn{
position:fixed;
bottom:20px;
left:20px;
z-index:1000;
}
.back-btn{
display:inline-flex;
align-items:center;
gap:6px;
padding:10px 16px;
background:#ffffff;
color:#0f172a;
font-size:13px;
font-weight:600;
text-decoration:none;
border-radius:999px;
border:1px solid #e5e7eb;
box-shadow:0 8px 20px rgba(0,0,0,.12);
transition:.2s ease;
}
.back-btn:hover{
background:#f8fafc;
transform:translateY(-2px);
}
.craftsman-marker{
width:54px;
height:54px;
border-radius:50%;
border:3px solid #fff;
box-shadow:0 10px 22px rgba(0,0,0,.22);
overflow:hidden;
background:#fff;
position:relative;
}
.craftsman-marker img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}
.craftsman-marker::after{
content:'';
position:absolute;
bottom:-10px;
left:50%;
transform:translateX(-50%);
width:16px;
height:16px;
background:#fff;
rotate:45deg;
z-index:-1;
box-shadow:0 8px 18px rgba(0,0,0,.18);
}
.craftsman-marker.online{
box-shadow:0 0 0 4px rgba(34,197,94,.22), 0 10px 22px rgba(0,0,0,.22);
}
.craftsman-marker.gold{
box-shadow:0 0 0 4px rgba(245,158,11,.25), 0 10px 22px rgba(0,0,0,.22);
}
.leaflet-popup-content-wrapper{
border-radius:18px !important;
box-shadow:0 18px 40px rgba(15,23,42,.18) !important;
padding:0 !important;
overflow:hidden;
}
.leaflet-popup-content{
margin:0 !important;
width:280px !important;
}
.leaflet-popup-tip{
box-shadow:0 10px 24px rgba(15,23,42,.10) !important;
}
.map-popup-card{
background:#fff;
overflow:hidden;
direction:rtl;
text-align:right;
}
.map-popup-cover{
height:110px;
background:#f1f5f9;
overflow:hidden;
}
.map-popup-cover img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}
.map-popup-body{
padding:14px;
}
.map-popup-title{
display:flex;
align-items:center;
gap:8px;
flex-wrap:wrap;
margin-bottom:6px;
}
.map-popup-title a{
color:#0f172a;
font-size:15px;
font-weight:800;
text-decoration:none;
}
.map-popup-title a:hover{
color:#0ea5e9;
}
.map-popup-badge{
display:inline-flex;
align-items:center;
gap:5px;
padding:4px 8px;
border-radius:999px;
font-size:11px;
font-weight:800;
color:#fff;
background:linear-gradient(135deg,#0ea5e9,#2563eb);
}
.map-popup-meta{
color:#64748b;
font-size:12px;
line-height:1.8;
margin-bottom:10px;
}
.map-popup-rating{
margin-bottom:12px;
font-size:13px;
color:#f59e0b;
font-weight:700;
}
.map-popup-actions{
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
}
.map-popup-btn{
display:flex;
align-items:center;
justify-content:center;
gap:6px;
height:38px;
border-radius:12px;
text-decoration:none;
font-size:12px;
font-weight:800;
transition:.2s ease;
}
.map-popup-btn:hover{
transform:translateY(-1px);
}
.map-popup-btn.details{
background:#eff6ff;
color:#2563eb;
}
.map-popup-btn.gmap{
background:#ecfdf5;
color:#0f9d58;
}
.row-premium-actions{
display:flex;
gap:8px;
flex-wrap:wrap;
margin-top:8px;
}
.row-mini-btn{
display:inline-flex;
align-items:center;
justify-content:center;
gap:6px;
padding:7px 12px;
border-radius:999px;
text-decoration:none;
font-size:12px;
font-weight:800;
transition:.2s;
}
.row-mini-btn:hover{
transform:translateY(-1px);
}
.row-mini-btn.details{
background:#e0f2fe;
color:#0369a1;
}
.row-mini-btn.gmap{
background:#ecfdf5;
color:#15803d;
}
.row-address{
margin-top:6px;
font-size:12px;
color:#64748b;
line-height:1.6;
}
.map-frame{
position:relative;
height:72vh;
border-radius:20px;
overflow:hidden;
box-shadow:var(--shadow);
}
.map-title-badge{
position:absolute;
top:14px;
right:14px;
z-index:500;
background:rgba(255,255,255,.96);
color:#111827;
border-radius:999px;
padding:10px 16px;
font-size:14px;
font-weight:800;
box-shadow:0 10px 24px rgba(0,0,0,.12);
}
#map{
width:100%;
height:100%;
}
@media(max-width:1100px){
.search-bar-inline{
grid-template-columns:110px 1fr 1fr;
}
.search-input-wrap{
grid-column:1 / -1;
}
}
@media(max-width:900px){
.layout{
display:flex;
flex-direction:column;
}
.map-frame{
order:1;
height:45vh;
}
#sidebar{
order:2;
height:55vh;
}
.search-bar-inline{
grid-template-columns:1fr;
}
.search-input-wrap{
grid-column:auto;
}
}
@media(max-width:640px){
.search-bar-wrap{
margin:10px;
padding:12px;
border-radius:18px;
}
.mobile-only{
display:block;
margin-bottom:10px;
}
#searchForm{
display:none !important;
}
#searchForm.active{
display:grid !important;
grid-template-columns:1fr;
gap:10px;
}
.filter-btn,
.search-input-wrap input,
.search-select{
height:46px;
}
.row{
padding:8px 10px;
}
.avatar{
width:36px;
height:36px;
}
a.cname,
.row strong{
font-size:13px;
}
.cta-btn,
.welcome-box,
.back-btn{
font-size:12px;
padding:10px 14px;
}
.leaflet-popup-content{
width:240px !important;
}
.map-popup-cover{
height:95px;
}
.map-popup-actions{
grid-template-columns:1fr;
}
.map-title-badge{
top:10px;
right:10px;
font-size:12px;
padding:8px 12px;
}
}