*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#101828;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh}.top{position:sticky;top:0;z-index:10;background:rgba(245,247,250,.92);backdrop-filter:blur(18px);border-bottom:1px solid #e6eaf0}.topin{max-width:1180px;margin:auto;padding:14px 20px;display:flex;align-items:center;gap:14px}.logo{font-weight:800;font-size:21px;letter-spacing:-.5px}.logo span{color:#1677ff}.grow{flex:1}.pill{border:0;background:#fff;border:1px solid #e2e7ee;border-radius:999px;padding:9px 13px}.btn{border:0;border-radius:13px;padding:11px 15px;font-weight:650;background:#1677ff;color:#fff}.btn.secondary{background:#fff;color:#1677ff;border:1px solid #d9e2f0}.btn.ghost{background:#eef4ff;color:#1265dc}.btn.danger{background:#fff0f0;color:#d92d20}.wrap{max-width:1180px;margin:auto;padding:22px 20px 100px}.hero{background:linear-gradient(135deg,#0f6fff,#5b8cff);color:#fff;border-radius:28px;padding:30px;margin-bottom:22px}.hero h1{font-size:38px;line-height:1.05;margin:0 0 10px;letter-spacing:-1.2px}.hero p{opacity:.9;margin:0 0 20px}.search{background:#fff;border-radius:18px;padding:10px;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr auto;gap:8px;color:#101828}.field{width:100%;border:1px solid #dce2ea;background:#fff;border-radius:11px;padding:11px 12px;outline:none}.field:focus{border-color:#1677ff;box-shadow:0 0 0 3px #1677ff18}.section{margin:25px 0 12px;display:flex;align-items:center;gap:10px}.section h2{margin:0;font-size:22px}.muted{color:#667085}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{background:#fff;border:1px solid #e6eaf0;border-radius:20px;padding:16px;box-shadow:0 3px 12px #10182808}.listing{overflow:hidden;padding:0}.photo{height:180px;background:linear-gradient(135deg,#dfe7f5,#f8fafc);display:flex;align-items:center;justify-content:center;font-size:58px}.listingbody{padding:15px}.price{font-size:20px;font-weight:800}.tag{display:inline-flex;background:#edf4ff;color:#155eef;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:700;margin:3px}.rating{color:#b54708;font-weight:700}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.bottom{position:fixed;bottom:0;left:0;right:0;z-index:20;background:rgba(255,255,255,.95);backdrop-filter:blur(15px);border-top:1px solid #e4e7ec}.nav{max-width:760px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr)}.nav button{border:0;background:none;padding:10px 4px;color:#667085;font-size:12px}.nav button.active{color:#1677ff;font-weight:800}.nav b{display:block;font-size:20px;margin-bottom:2px}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.pagehead h1{margin:0;font-size:30px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.kpi strong{display:block;font-size:25px;margin-top:5px}.tabs{display:flex;gap:8px;overflow:auto;margin:12px 0}.tabs button{white-space:nowrap}.list{display:grid;gap:10px}.row{display:flex;gap:12px;align-items:center;justify-content:space-between}.modalbg{position:fixed;inset:0;background:#10182880;z-index:50;display:flex;align-items:flex-end;justify-content:center}.modal{background:#fff;width:min(720px,100%);max-height:92vh;overflow:auto;border-radius:24px 24px 0 0;padding:22px}.modal h2{margin-top:0}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.full{grid-column:1/-1}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.day{padding:10px 4px;border-radius:9px;text-align:center;background:#f2f4f7;font-size:12px}.day.free{background:#e9f8ef;color:#067647}.day.busy{background:#fee4e2;color:#b42318}.day.pending{background:#fff4e5;color:#b54708}.toast{position:fixed;right:18px;bottom:78px;background:#101828;color:#fff;border-radius:12px;padding:12px 15px;z-index:100}.empty{text-align:center;padding:35px;color:#667085}.mapfake{height:250px;border-radius:20px;background:radial-gradient(circle at 30% 30%,#d9f2df 0 8%,transparent 9%),radial-gradient(circle at 65% 60%,#dce8ff 0 9%,transparent 10%),linear-gradient(135deg,#e9edf2,#f7fafc);display:flex;align-items:center;justify-content:center;color:#667085}.chat{height:350px;background:#f5f7fa;border-radius:16px;padding:15px;overflow:auto}.bubble{max-width:75%;padding:10px 13px;border-radius:16px;margin:6px 0;background:#fff}.bubble.me{margin-left:auto;background:#1677ff;color:#fff}.status{font-size:12px;padding:5px 8px;border-radius:999px;background:#eef2f6}.status.ok{background:#e8f7ee;color:#067647}.status.warn{background:#fff4e5;color:#b54708}.status.bad{background:#fee4e2;color:#b42318}.admin{border-left:4px solid #1677ff}@media(max-width:850px){.grid{grid-template-columns:repeat(2,1fr)}.search{grid-template-columns:1fr 1fr}.search .wide{grid-column:1/-1}.kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.wrap{padding:14px 14px 90px}.hero{padding:23px;border-radius:22px}.hero h1{font-size:30px}.grid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.topin{padding:12px 14px}.desktopOnly{display:none}.pagehead{align-items:flex-start;flex-direction:column}.search{grid-template-columns:1fr}.search .wide{grid-column:auto}.photo{height:160px}}.photo img{width:100%;height:100%;object-fit:cover;display:block}.photo-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.photo-gallery img{width:100%;height:180px;object-fit:cover;border-radius:14px}.photo-edit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0}.photo-edit{border:1px solid #e6eaf0;border-radius:14px;overflow:hidden;background:#f8fafc;position:relative}.photo-edit img{display:block;width:100%;height:130px;object-fit:cover}.photo-edit small{display:block;padding:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-edit.remove{opacity:.45}.photo-remove{width:100%;border:0;background:#fff;padding:8px;color:#d92d20;font-weight:700}.uploadbox{display:block;padding:14px;border:1px dashed #b7c4d6;border-radius:14px;background:#f8fbff}.uploadbox input{display:block;margin-top:8px;width:100%}@media(max-width:560px){.photo-gallery{grid-template-columns:1fr 1fr}.photo-gallery img{height:130px}.photo-edit-grid{grid-template-columns:repeat(2,1fr)}.photo-edit img{height:120px}}

.ico{display:inline-block;width:1.05em;height:1.05em;vertical-align:-0.16em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}.pill .ico,.btn .ico,.tag .ico{margin-right:5px}.nav .ico{display:block;width:22px;height:22px;margin:0 auto 4px;vertical-align:middle}.category-icon{height:52px;display:flex;align-items:center;justify-content:center;margin-bottom:8px;color:#1677ff}.category-icon .ico{width:38px;height:38px;stroke-width:1.8}.photo>.ico{width:78px;height:78px;color:#1677ff;stroke-width:1.5}.pagehead h1>.ico{width:30px;height:30px;vertical-align:-.15em;color:#1677ff}.rating .ico{width:16px;height:16px;vertical-align:-.14em;fill:currentColor}.section p{margin:0}.actions .ico{width:18px;height:18px}.pill{display:inline-flex;align-items:center;gap:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px}.tag{align-items:center;gap:3px}.card.row .ico{width:18px;height:18px}.photo-edit{position:relative}.uploadbox{cursor:pointer}

/* v10 mobile header polish */
.topin{min-width:0}
.logo{flex-shrink:0;cursor:pointer}
.profile-pill{min-width:0;max-width:220px;overflow:hidden}
.profile-pill .profile-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:560px){
  .topin{gap:8px;padding:10px 12px}
  .topin .grow{display:none}
  .topin .pill{padding:8px 10px;white-space:nowrap}
  .topin .desktopOnly{display:inline-flex}
  .profile-pill{width:44px;min-width:44px;max-width:44px;height:44px;padding:0!important;justify-content:center}
  .profile-pill .profile-label{display:none}
  .topin .pill .ico{margin-right:0}
}
@media(max-width:390px){
  .logo{font-size:19px}
  .topin .desktopOnly span{display:none}
  .topin .desktopOnly{width:44px;min-width:44px;height:44px;padding:0!important;justify-content:center}
}

/* v11 listing management */
.btn.danger{display:inline-flex;align-items:center;gap:5px}
.status{display:inline-flex;align-items:center;gap:4px}

/* v12 booking */
.booking-grid{grid-template-columns:1.4fr .8fr}
.booking-summary{position:sticky;top:90px;height:max-content}
.booking-note{margin-top:16px;padding:12px 14px;border-radius:14px;background:#f3f6ff;display:flex;gap:8px;align-items:flex-start}
.quote-row{display:flex;justify-content:space-between;gap:16px;margin:10px 0}
.quote-row.total{font-size:1.15rem}
.booking-dates{display:flex;gap:7px;align-items:center;margin:14px 0;font-weight:600}
.total-line{font-size:1.1rem;margin-top:8px}
.btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:800px){
  .booking-grid{grid-template-columns:1fr}
  .booking-summary{position:static}
}

/* v14 compact home */
.hero-compact{padding:22px 24px;margin-bottom:18px}
.hero-compact h1{font-size:34px;margin-bottom:7px}
.hero-compact p{margin-bottom:13px}
.home-section{margin:18px 0 9px}
.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.category-card{min-width:0;min-height:76px;border:1px solid #e3e8ef;background:#fff;border-radius:15px;padding:9px 7px;color:#101828;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 2px 8px #10182808}
.category-card b{font-size:12px;line-height:1.1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.category-card .category-icon{height:27px;margin:0;color:#1677ff}
.category-card .category-icon .ico{width:25px;height:25px;stroke-width:1.8}
.category-card:active{transform:scale(.98)}
.booking-costs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 0}
.booking-costs .total-line{margin-top:0}
@media(max-width:850px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){
  .hero-compact{padding:18px;border-radius:20px;margin-bottom:13px}
  .hero-compact h1{font-size:28px}
  .hero-compact p{font-size:14px;margin-bottom:11px}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .category-card{min-height:66px;border-radius:13px;padding:7px 4px}
  .category-card .category-icon{height:23px}
  .category-card .category-icon .ico{width:22px;height:22px}
  .category-card b{font-size:11px}
  .home-section{margin:15px 0 7px}
  .booking-costs{grid-template-columns:repeat(2,1fr);gap:7px}
}

/* v15 compact home + availability + rental reports + reviews */
.hero-compact{padding:18px 20px;margin-bottom:14px}
.hero-compact h1{font-size:32px;line-height:1.02;margin-bottom:6px}
.hero-compact p{font-size:15px;margin-bottom:10px}
.hero-compact .search{padding:8px;border-radius:15px;gap:6px}
.category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.category-card{min-height:58px;border-radius:12px;padding:6px 5px;gap:2px;box-shadow:0 1px 6px #10182807}
.category-card .category-icon{height:20px}
.category-card .category-icon .ico{width:20px;height:20px}
.category-card b{font-size:10px}
.search-advanced{grid-template-columns:1.5fr 1fr 1fr 1fr auto;align-items:end}
.search-advanced .status{grid-column:1/-1;margin:2px 0 0}
.search-date{display:flex;flex-direction:column;gap:4px;color:#667085;font-size:12px;font-weight:650}
.search-date .field{padding:10px 8px}
.report-card{max-width:900px;margin:auto}
.report-intro{display:flex;gap:12px;align-items:flex-start;background:#f3f6ff;border-radius:15px;padding:14px;margin-bottom:16px}
.report-intro .ico{width:24px;height:24px;color:#1677ff;margin-top:1px}
.report-upload{margin-top:14px}
.review-form{max-width:620px;margin:auto}
.rating-picker{display:flex;gap:8px;margin:16px 0 20px}
.rating-star{border:0;background:#f2f4f7;color:#98a2b3;border-radius:12px;width:48px;height:48px;display:flex;align-items:center;justify-content:center}
.rating-star .ico{width:25px;height:25px}
.rating-star.selected{color:#f79009;background:#fff3d6}
@media(max-width:850px){.search-advanced{grid-template-columns:1fr 1fr}.search-advanced .status{grid-column:1/-1}}
@media(max-width:560px){
  .hero-compact{padding:16px;border-radius:18px}
  .hero-compact h1{font-size:27px}
  .hero-compact p{font-size:13px}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .category-card{min-height:52px;border-radius:10px;padding:5px 3px}
  .category-card b{font-size:9px}
  .category-card .category-icon{height:18px}
  .category-card .category-icon .ico{width:18px;height:18px}
  .search-advanced{grid-template-columns:1fr}
  .search-advanced .status{grid-column:auto}
  .rating-star{width:44px;height:44px}
}


/* v16 — location, distance and map */
.hero-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.near-title{font-size:13px;font-weight:750;color:#667085;display:flex;align-items:center;gap:4px}
.location-chip{border:1px solid #dbe3ee;background:#fff;color:#1677ff;border-radius:999px;padding:7px 10px;font-weight:700;display:inline-flex;align-items:center;gap:4px}
.location-chip .ico{width:16px;height:16px}
.small-location{font-size:11px;margin-top:2px}
.view-switch{display:flex;gap:6px;margin:12px 0}
.view-switch button{border:1px solid #dbe3ee;background:#fff;border-radius:12px;padding:9px 13px;color:#667085;font-weight:700;display:inline-flex;align-items:center;gap:5px}
.view-switch button.active{background:#eef4ff;color:#1677ff;border-color:#bcd0ff}
.map-card{padding:10px;overflow:hidden}
.map{height:390px;width:100%;border-radius:16px;overflow:hidden;background:#eef2f6}
.compact-map{margin-top:14px}
.map-note{font-size:12px;margin:8px 4px 2px}
.map-open{margin-top:6px;border:0;background:#1677ff;color:#fff;border-radius:8px;padding:6px 9px;font-weight:700}
.location-helper{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:4px 0}
.location-helper .muted{font-size:12px}
@media(max-width:560px){
  .hero-topline{align-items:flex-start}
  .near-title{font-size:12px}
  .location-chip{font-size:11px;padding:6px 8px}
  .map{height:330px}
  .search-advanced .location-helper{display:block}
}

/* v19 — expanded search filters and profile */
.search-v19{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.search-v19 .status{grid-column:1/-1}
.price-filter{display:flex;flex-direction:column;gap:4px}
.filter-label{font-size:12px;color:#667085;font-weight:650}
.price-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.location-picker-card{border:1px solid #e2e8f0;border-radius:16px;padding:12px;background:#fbfcfe}
.picker-map{height:300px;margin-top:10px}
.profile-hero{display:flex;gap:18px;align-items:flex-start}
.avatar{width:82px;height:82px;min-width:82px;border-radius:50%;background:#eaf2ff;color:#1677ff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.profile-main h2{margin:0 0 4px}
.profile-main p{max-width:720px;color:#475467;line-height:1.5}
.profile-badges{display:flex;gap:6px;flex-wrap:wrap}
.profile-rating-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.profile-rating{font-size:31px;font-weight:800;margin:8px 0 2px;color:#b54708}
.profile-rating .ico{width:25px;height:25px;fill:currentColor;vertical-align:-2px}
@media(max-width:850px){.search-v19{grid-template-columns:1fr 1fr}.search-v19 .status{grid-column:1/-1}}
@media(max-width:560px){.search-v19{grid-template-columns:1fr}.search-v19 .status{grid-column:auto}.profile-hero{align-items:center}.profile-rating-grid{grid-template-columns:1fr}.picker-map{height:280px}.price-pair{grid-template-columns:1fr 1fr}}
/* V20 — MapLibre vector map markers */
.map-listing-dot{width:20px;height:20px;border-radius:50% 50% 50% 0;background:#1677ff;border:3px solid #fff;box-shadow:0 3px 10px #10182840;transform:rotate(-45deg);}
.map-user-dot{width:18px;height:18px;border-radius:50%;background:#1677ff;border:3px solid #fff;box-shadow:0 0 0 6px #1677ff2e,0 3px 10px #10182840;}
.map-picker-dot{width:22px;height:22px;border-radius:50%;background:#1677ff;border:4px solid #fff;box-shadow:0 0 0 7px #1677ff38,0 4px 14px #10182855;}
.maplibregl-popup-content{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;border-radius:12px;padding:11px 13px;box-shadow:0 8px 24px #10182824;}
.maplibregl-ctrl-group{border:1px solid #e2e7ee!important;border-radius:12px!important;overflow:hidden;box-shadow:0 4px 14px #10182818!important;}
.maplibregl-ctrl button{background:#fff!important;}


/* V21.2 — mobile listing grid, profile layout and reliable listing back */
.profile-main{min-width:0;flex:1}
.profile-main h2{overflow-wrap:anywhere;word-break:break-word}
.profile-main p{overflow-wrap:anywhere}
.listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){
  .listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .listing-grid .photo{height:125px}
  .listing-grid .listingbody{padding:10px}
  .listing-grid .row b{font-size:14px;line-height:1.2}
  .listing-grid .tag{font-size:10px;padding:4px 6px;margin:2px}
  .listing-grid .price{font-size:17px}
  .listing-grid .actions{margin-top:8px}
  .listing-grid .btn{width:100%;padding:9px 8px;font-size:12px}
  .profile-hero{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:start}
  .profile-hero .avatar{width:64px;height:64px;min-width:64px;font-size:22px}
  .profile-main h2{font-size:20px;line-height:1.15}
  .profile-main p{font-size:14px;line-height:1.4}
}
@media(max-width:390px){
  .listing-grid{gap:8px}
  .listing-grid .photo{height:112px}
  .listing-grid .listingbody{padding:9px}
  .listing-grid .row b{font-size:13px}
  .listing-grid .tag{font-size:9px}
}

/* V22 — communication, retention and trust */
.v22-bell{position:relative;min-width:44px;justify-content:center;padding:0 10px}
.notification-count{position:absolute;top:-5px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;line-height:18px;font-weight:800;text-align:center;border:2px solid #fff}
.icon-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;cursor:pointer;color:inherit}
.icon-btn:hover{background:rgba(0,0,0,.05)}
.favorite-btn{flex:0 0 auto}
.favorite-btn .ico{width:20px;height:20px}
.favorite-btn.selected{color:#f59e0b}
.favorite-btn.selected .ico{fill:currentColor}
.v22-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.v22-profile-actions .card{display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;border:1px solid var(--line,#e5e7eb)}
.v22-profile-actions .card span:last-child{margin-left:auto;color:var(--muted,#6b7280)}
.reviews-list{display:grid;gap:10px}
.review-item{padding:14px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--card,#fff)}
.review-item p{margin:8px 0}
.notification-item{width:100%;text-align:left;cursor:pointer;border:1px solid var(--line,#e5e7eb)}
.notification-item.unread{border-left:4px solid #1677ff}
.notification-item.read{opacity:.78}
.chat-row{width:100%;text-align:left;cursor:pointer}
.chat-card{padding:0;overflow:hidden}
.chat-messages{height:min(58vh,560px);overflow:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#f7f8fa}
.chat-bubble{max-width:78%;padding:10px 12px;border-radius:16px;line-height:1.4}
.chat-bubble.mine{align-self:flex-end;background:#1677ff;color:#fff;border-bottom-right-radius:5px}
.chat-bubble.theirs{align-self:flex-start;background:#fff;border:1px solid var(--line,#e5e7eb);border-bottom-left-radius:5px}
.chat-bubble small{display:block;margin-top:4px;opacity:.65;font-size:10px}
.chat-compose{display:flex;gap:10px;padding:12px;border-top:1px solid var(--line,#e5e7eb);background:#fff;align-items:flex-end}
.chat-compose .field{flex:1;resize:none}
.chat-empty{text-align:center;padding:30px}
@media (max-width:700px){
  .v22-profile-actions{grid-template-columns:1fr}
  .chat-compose{position:sticky;bottom:0}
  .chat-bubble{max-width:88%}
}
