﻿:root {
  --primary:       #A7643A;
  --primary-light: #C07848;
  --primary-dark:  #8A4F2A;
  --primary-soft:  #F6ECE3;
  --primary-alpha: rgba(167,100,58,0.12);
  --blue:          #2563EB;
  --daily-rent:    #F59E0B;
  --cream:      #FBF8F4;
  --ink:        #221A14;
  --ink-muted:  #74695F;
  --ink-subtle: #A89C90;
  --surface:   #FFFFFF;
  --surface-2: #FBF8F4;
  --surface-3: #F3ECE4;
  --border:    #EAE1D6;
  --error:     #DC2626;
  --shadow-sm: 0 1px 3px rgba(60,40,20,0.06),0 1px 2px rgba(60,40,20,0.04);
  --shadow-md: 0 4px 16px rgba(60,40,20,0.08),0 2px 6px rgba(60,40,20,0.05);
  --shadow-lg: 0 10px 40px rgba(60,40,20,0.10),0 4px 12px rgba(60,40,20,0.06);
  --shadow-xl: 0 20px 60px rgba(60,40,20,0.14),0 8px 20px rgba(60,40,20,0.07);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --container-pad: 2rem;
  --section-pad-y: 4rem;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
body{font-family:var(--font-sans);background:var(--cream);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
svg{max-width:100%}
button{font-family:inherit}
.hero{max-width:1440px;margin:0 auto;padding:1.75rem var(--container-pad) 0;display:grid;grid-template-columns:minmax(260px,38%) minmax(0,1fr);gap:0;align-items:stretch}
.hero-photo{position:relative;border-radius:var(--radius-lg) 0 0 var(--radius-lg);overflow:hidden;min-height:420px;background:url('../../../uploads/site-assets/hero-oujda.jpg') center/cover no-repeat;background-image:image-set(url('../../../uploads/site-assets/hero-oujda.webp') type('image/webp') 1x,url('../../../uploads/site-assets/hero-oujda.jpg') type('image/jpeg') 1x)}
.hero-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(20,12,6,0.25),rgba(20,12,6,0));}
.hero-content{background:linear-gradient(180deg,#F3E8DD 0%,#F8F2EA 100%);border-radius:0 var(--radius-lg) var(--radius-lg) 0;padding:3.25rem 3rem;display:flex;flex-direction:column;justify-content:center;min-width:0}
.hero-eyebrow{display:none}
.hero h1{font-family:var(--font-serif);font-weight:400;font-size:clamp(2rem,3.4vw,2.85rem);line-height:1.18;letter-spacing:-0.01em;color:var(--ink);margin-bottom:0.6rem}
.hero h1 em{font-style:normal;color:var(--primary)}
.hero-sub{font-size:1rem;color:var(--ink-muted);margin-bottom:1.75rem;max-width:46ch;line-height:1.65}
.search-box{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:1.1rem 1.2rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:0;align-items:stretch;border:1px solid var(--border);transition:box-shadow var(--transition);min-width:0}
.search-box:focus-within{box-shadow:var(--shadow-lg),0 0 0 3px var(--primary-alpha)}
.search-field{display:flex;flex-direction:column;gap:0.25rem;padding:0 1.1rem;border-right:1px solid var(--border);min-width:0}
.search-field:first-child{padding-left:0.2rem}
.search-field label{font-size:0.74rem;font-weight:700;color:var(--ink)}
.search-field input[type="text"],
.search-select{border:none;outline:none;font-family:var(--font-sans);font-size:0.85rem;color:var(--ink-muted);background:transparent;padding:0.15rem 1.3rem 0.15rem 0;cursor:pointer;appearance:none;-webkit-appearance:none;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A89C90' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0 center}
.search-field input[type="text"]{background-image:none;padding-right:0}
.search-field input::placeholder{color:var(--ink-subtle)}
.search-btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);padding:0 1.6rem;font-size:0.92rem;font-weight:700;cursor:pointer;white-space:nowrap;transition:background var(--transition),transform var(--transition);min-height:48px;margin-left:0.6rem}
.search-btn:hover{background:var(--primary-light);transform:translateY(-1px)}
.search-btn svg{width:16px;height:16px}
.trust-strip{max-width:1440px;margin:0 auto;padding:2.75rem var(--container-pad);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem}
.trust-item{display:flex;align-items:center;gap:0.9rem}
.trust-icon{width:48px;height:48px;border-radius:50%;background:var(--primary-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.trust-icon svg{width:21px;height:21px;stroke:var(--primary);fill:none;stroke-width:1.75}
.trust-title{font-size:0.92rem;font-weight:700;color:var(--ink);margin-bottom:0.1rem}
.trust-desc{font-size:0.8rem;color:var(--ink-muted)}
.map-section{max-width:1440px;margin:0 auto;padding:0 var(--container-pad) var(--section-pad-y);}
.map-section-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.25rem}
.map-section-title{display:flex;align-items:center;gap:0.65rem;min-width:0}
.map-section-title-icon{width:40px;height:40px;background:var(--primary-soft);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.map-section-title-icon svg{width:19px;height:19px;stroke:var(--primary);fill:none;stroke-width:1.75}
.map-section-label{font-size:0.72rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--primary);margin-bottom:0.1rem}
.map-section-h2{font-family:var(--font-serif);font-weight:400;font-size:clamp(1.2rem,3.5vw,1.5rem);color:var(--ink);letter-spacing:-0.01em;line-height:1.2}
.map-section-h2 span{color:var(--primary)}
.map-type-toggle{display:flex;align-items:center;gap:0.35rem;background:var(--surface-3);border-radius:var(--radius-sm);padding:3px}
.mtt-btn{display:inline-flex;align-items:center;gap:0.35rem;padding:0.42rem 0.85rem;border-radius:calc(var(--radius-sm) - 2px);font-size:0.78rem;font-weight:600;color:var(--ink-muted);border:none;background:none;cursor:pointer;transition:all var(--transition);white-space:nowrap;min-height:36px}
.mtt-btn svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}
.mtt-btn.active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow-sm)}
.map-container{position:relative;width:100%;height:440px;overflow:hidden;border-radius:var(--radius-lg);border:1px solid var(--border);background:#fff;box-shadow:var(--shadow-md);transition:.35s ease}
.map-container:hover{border-color:var(--primary);box-shadow:var(--shadow-lg)}
#property-map{width:100%;height:100%;background:#E8E6E0}
.map-legend{position:absolute;bottom:20px;left:20px;z-index:500;background:rgba(255,255,255,0.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:0.85rem 1.1rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;max-width:calc(100% - 40px)}
.legend-item{display:flex;align-items:center;gap:0.45rem;font-size:0.75rem;font-weight:600;color:var(--ink)}
.legend-dot{width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.25);flex-shrink:0}
.legend-dot-sale{background:var(--primary)}
.legend-dot-rent{background:var(--blue)}
.legend-dot-daily{background:var(--daily-rent)}
.map-count-chip{position:absolute;top:16px;right:16px;z-index:500;background:rgba(255,255,255,0.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:100px;box-shadow:var(--shadow-md);padding:0.38rem 0.95rem;font-size:0.78rem;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:0.4rem;max-width:calc(100% - 32px)}
.map-count-chip svg{width:13px;height:13px;stroke:var(--primary);fill:none;stroke-width:2}
.map-price-label{background:var(--primary);color:#fff;padding:4px 9px;border-radius:100px;font-family:var(--font-sans);font-size:0.7rem;font-weight:800;white-space:nowrap;border:2.5px solid #fff;box-shadow:0 3px 10px rgba(167,100,58,0.45);cursor:pointer;transition:transform 0.15s ease,box-shadow 0.15s ease;letter-spacing:0.01em}
.map-price-label:hover{transform:scale(1.08);box-shadow:0 5px 18px rgba(167,100,58,0.5)}
.map-price-label.rent{background:var(--blue);box-shadow:0 3px 10px rgba(37,99,235,0.4)}
.map-price-label.rent:hover{box-shadow:0 5px 18px rgba(37,99,235,0.5)}
.map-price-label.daily{background:var(--daily-rent);box-shadow:0 3px 10px rgba(245,158,11,0.4)}
.map-price-label.daily:hover{box-shadow:0 5px 18px rgba(245,158,11,0.5)}
.map-price-label.selected{transform:scale(1.15);z-index:999!important}
.leaflet-popup-content-wrapper{border-radius:var(--radius-md)!important;padding:0!important;overflow:hidden!important;box-shadow:var(--shadow-xl)!important;border:1px solid var(--border)!important}
.leaflet-popup-content{margin:0!important;width:min(260px,calc(100vw - 60px))!important}
.leaflet-popup-tip-container{display:none}
.leaflet-popup-close-button{top:8px!important;right:8px!important;background:rgba(255,255,255,0.9)!important;border-radius:50%!important;width:28px!important;height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:16px!important;color:var(--ink)!important;z-index:10!important}
.leaflet-popup-content {
  pointer-events: auto !important;
}
.leaflet-popup-content-wrapper {
  pointer-events: auto !important;
}
.leaflet-popup {
  pointer-events: auto !important;
}
.leaflet-popup-content button,
.leaflet-popup-content a {
  pointer-events: auto !important;
  position: relative;
  z-index: 1000;
}
.map-popup{}
.map-popup-img{width:100%;height:150px;object-fit:cover;display:block}
.map-popup-no-img{width:100%;height:150px;background:var(--surface-3);display:flex;align-items:center;justify-content:center;color:#5A616E}
.map-popup-no-img svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.5}
.map-popup-body{padding:0.85rem 1rem 1rem}
.map-popup-badges{display:flex;gap:0.3rem;margin-bottom:0.5rem;flex-wrap:wrap}
.map-popup-badge{padding:0.2rem 0.55rem;border-radius:100px;font-size:0.62rem;font-weight:700;text-transform:uppercase;letter-spacing:0.04em}
.mp-badge-sale{background:var(--primary);color:#fff}
.mp-badge-rent{background:var(--blue);color:#fff}
.mp-badge-daily{background:var(--daily-rent);color:#fff}
.mp-badge-type{background:rgba(34,26,20,0.82);color:#fff}
.map-popup-price{font-size:1.05rem;font-weight:800;color:var(--primary);margin-bottom:0.25rem}
.map-popup-title{font-size:0.83rem;font-weight:600;color:var(--ink);line-height:1.35;margin-bottom:0.35rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.map-popup-location{display:flex;align-items:center;gap:0.3rem;font-size:0.74rem;color:var(--ink-muted)}
.map-popup-location svg{width:11px;height:11px;stroke:var(--ink-subtle);fill:none;stroke-width:2;flex-shrink:0}
.map-popup-features{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:0.75rem}
.map-popup-feat{font-size:0.7rem;color:var(--ink-muted);background:var(--surface-3);padding:0.15rem 0.45rem;border-radius:100px}
.map-popup-btn{display:flex;align-items:center;justify-content:center;gap:0.4rem;width:100%;padding:0.6rem;background:var(--primary);color:#fff !important;border-radius:var(--radius-sm);font-size:0.82rem;font-weight:700;text-decoration:none;transition:background var(--transition);min-height:44px}
.map-popup-btn:hover{background:var(--primary-light)}
.map-popup-btn svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:2.5}
.map-popup-action-strip{display:flex;gap:8px;margin-bottom:0.75rem}
.mp-strip-btn{flex:1;display:flex;align-items:center;justify-content:center;height:38px;background:var(--surface-3);border:none;border-radius:var(--radius-sm);color:var(--ink-muted);cursor:pointer;transition:background var(--transition),color var(--transition);text-decoration:none}
.mp-strip-btn:hover{background:#e9ded2;color:var(--ink)}
.mp-strip-btn svg{width:16px;height:16px}
.mp-strip-btn.active{color:var(--error)}
.mp-strip-btn.active svg{fill:var(--error);stroke:var(--error)}
@media (max-width:768px){
  .leaflet-popup-content{width:min(320px,90vw)!important}
  .map-popup{display:flex;flex-direction:row;align-items:stretch;min-height:76px;cursor:pointer}
  .map-popup-img,.map-popup-no-img{width:92px;height:76px;flex-shrink:0;object-fit:cover}
  .map-popup-body{padding:0.5rem 0.65rem;flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:0.2rem}
  .map-popup-title{display:none}
  .map-popup-btn{display:none}
  .map-popup-badges{margin-bottom:0.1rem}
  .map-popup-badge{padding:0.12rem 0.4rem;font-size:0.56rem}
  .map-popup-price{font-size:0.86rem;margin-bottom:0.05rem}
  .map-popup-location{font-size:0.66rem}
  .map-popup-location svg{width:10px;height:10px}
  .map-popup-features{margin-bottom:0;gap:0.4rem}
  .map-popup-feat{font-size:0.6rem;padding:0.08rem 0.35rem}
  .map-popup-action-strip{margin:0.2rem 0 0;gap:4px}
  .mp-strip-btn{flex:0 0 22px;width:22px;height:22px;border-radius:6px}
  .mp-strip-btn svg{width:12px;height:12px}
}
.leaflet-control-zoom{display:none!important}
.leaflet-control-attribution{font-size:0.55rem!important;max-width:60vw!important}
.map-custom-controls{position:absolute;right:12px;bottom:60px;z-index:500;display:flex;flex-direction:column;gap:5px}
.map-ctrl{width:40px;height:40px;background:rgba(255,255,255,0.96);backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:9px;box-shadow:var(--shadow-md);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ink);transition:background var(--transition),color var(--transition),transform var(--transition)}
.map-ctrl:hover{background:var(--primary);color:#fff;transform:scale(1.06)}
.map-ctrl svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.badge-sale{background:var(--primary);color:#fff}
.badge-rent{background:var(--blue);color:#fff}
.badge-daily{background:var(--daily-rent);color:#fff}
.badge-type{background:rgba(34,26,20,0.82);color:#fff;backdrop-filter:blur(4px)}
.listings-section{max-width:1440px;margin:0 auto;padding:0 var(--container-pad) var(--section-pad-y)}
.section-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.75rem;flex-wrap:wrap}
.section-label{display:inline-flex;align-items:center;gap:0.4rem;font-size:0.72rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--primary);margin-bottom:0.3rem}
.section-heading{font-family:var(--font-serif);font-weight:400;font-size:clamp(1.4rem,3.4vw,1.9rem);color:var(--ink);letter-spacing:-0.01em;line-height:1.2}
.section-heading span{color:var(--primary)}
.view-all{display:inline-flex;align-items:center;gap:0.4rem;font-size:0.875rem;font-weight:700;color:var(--primary);transition:gap var(--transition);min-height:44px}
.view-all:hover{gap:0.7rem}
.view-all svg{width:16px;height:16px}
.properties-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(218px,1fr));gap:1.1rem}
.property-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;display:flex;flex-direction:column;transition:border-color var(--transition),box-shadow var(--transition),transform var(--transition);animation:cardIn 0.4s ease both}
.property-card:hover{border-color:var(--primary);box-shadow:var(--shadow-lg);transform:translateY(-4px)}
@keyframes cardIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.prop-image{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--surface-3);flex-shrink:0}
.prop-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.55s cubic-bezier(0.4,0,0.2,1)}
.property-card:hover .prop-image img{transform:scale(1.06)}
.prop-image .no-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#5A616E}
.prop-badges{position:absolute;top:0.5rem;left:0.5rem;display:flex;gap:0.3rem;z-index:1;flex-wrap:wrap;max-width:calc(100% - 1rem - 44px)}
.badge{padding:0.2rem 0.5rem;border-radius:6px;font-size:0.58rem;font-weight:700;text-transform:none;letter-spacing:0.01em;line-height:1;box-shadow:var(--shadow-sm)}
.prop-fav{position:absolute;top:0.5rem;right:0.5rem;width:44px;height:44px;background:rgba(255,255,255,0.92);border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(4px);color:var(--ink-muted);box-shadow:var(--shadow-sm);transition:background var(--transition),color var(--transition),transform var(--transition)}
.prop-fav:hover{background:#fff;color:var(--error);transform:scale(1.1)}
.prop-fav.active{background:var(--error);color:#fff}
.prop-fav.active:hover{background:var(--error);color:#fff}
.prop-fav svg{width:14px;height:14px}
.prop-body{padding:0.8rem 0.85rem 0.5rem;flex:1;display:flex;flex-direction:column;gap:0.32rem}
.prop-title{font-size:0.83rem;font-weight:700;color:var(--ink);line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.prop-location{display:flex;align-items:center;gap:0.26rem;font-size:0.68rem;color:var(--ink-muted)}
.prop-location svg{width:11px;height:11px;stroke:var(--primary);fill:none;stroke-width:2;flex-shrink:0}
.prop-price{font-size:0.98rem;font-weight:800;color:var(--primary);letter-spacing:-0.01em;margin-top:0.08rem}
.prop-price-unit{font-size:0.62rem;font-weight:600;color:var(--ink-muted);margin-left:2px}
.prop-features{display:flex;flex-wrap:wrap;gap:0.65rem;margin-top:0.22rem;padding-top:0.42rem;border-top:1px solid var(--border)}
.prop-feature{display:inline-flex;align-items:center;gap:0.26rem;font-size:0.68rem;color:var(--ink-muted)}
.prop-feature svg{width:11px;height:11px;stroke:var(--ink-subtle);fill:none;stroke-width:2;flex-shrink:0}
.prop-footer{display:flex;align-items:center;justify-content:space-between;padding:0.55rem 0.85rem;background:var(--surface-2);border-top:1px solid var(--border);gap:0.5rem;flex-wrap:wrap}
.prop-owner{display:flex;align-items:center;gap:7px;min-width:0}
.prop-owner-avatar,.prop-owner-fallback{width:19px;height:19px;border-radius:50%;flex-shrink:0;object-fit:cover}
.prop-owner-fallback{background:var(--primary-soft);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:bold;color:var(--primary-dark)}
.prop-owner-name{font-size:0.68rem;color:var(--ink-muted);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Agency badge — shared component (includes/agency_helpers.php's
   agency_badge_html()), reused verbatim across every page that renders
   property cards. Empty string / no markup at all for private-user
   listings, so their card layout is untouched. */
.agency-badge{display:flex;align-items:center;gap:0.5rem;padding:0.4rem 0.5rem;margin:0.35rem 0;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm,8px);text-decoration:none;box-shadow:0 1px 4px rgba(0,0,0,0.06);transition:box-shadow 0.2s,border-color 0.2s,transform 0.2s}
.agency-badge:hover{border-color:var(--primary);box-shadow:0 4px 12px rgba(167,100,58,0.16);transform:translateY(-1px)}
.agency-badge-logo{width:30px;height:30px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--surface-3);border:1.5px solid var(--border)}
.agency-badge-logo-fallback{display:flex;align-items:center;justify-content:center;color:var(--primary);background:var(--primary-soft)}
.agency-badge-logo-fallback svg{width:14px;height:14px}
.agency-badge-text{display:flex;flex-direction:column;min-width:0;gap:0.05rem}
.agency-badge-name-row{display:flex;align-items:center;gap:0.28rem;min-width:0}
.agency-badge-name{font-size:0.76rem;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agency-badge-check{display:inline-flex;align-items:center;flex-shrink:0}
.agency-badge-label{font-size:0.62rem;font-weight:500;color:var(--ink-muted)}
.verified-badge-icon{display:block}
.prop-btn-view{display:inline-flex;align-items:center;gap:0.3rem;padding:0.36rem 0.65rem;font-size:0.66rem;font-weight:700;border-radius:var(--radius-sm);border:none;cursor:pointer;font-family:var(--font-sans);background:var(--primary-soft);color:var(--primary-dark);transition:background var(--transition),color var(--transition);min-height:30px}
.prop-btn-view:hover{background:var(--primary);color:#fff}
.prop-btn-view svg{width:13px;height:13px}
.empty-state{grid-column:1/-1;text-align:center;padding:4rem 1rem}
.empty-icon{width:72px;height:72px;background:var(--primary-soft);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem}
.empty-icon svg{width:32px;height:32px;stroke:var(--primary);fill:none;stroke-width:1.5}
.empty-state h3{font-family:var(--font-serif);font-weight:400;font-size:1.3rem;color:var(--ink);margin-bottom:0.5rem}
.empty-state p{color:var(--ink-muted);font-size:0.9rem}
.categories-section{max-width:1440px;margin:0 auto;padding:0 var(--container-pad) var(--section-pad-y)}
.categories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem}
.category-card{display:flex;align-items:center;gap:0.85rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.1rem 1.2rem;transition:border-color var(--transition),box-shadow var(--transition),transform var(--transition);min-width:0}
.category-card>div:last-child{min-width:0;overflow:hidden}
.category-title,.category-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.category-icon{width:48px;height:48px;border-radius:50%;background:var(--primary-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.category-icon svg{width:21px;height:21px;stroke:var(--primary);fill:none;stroke-width:1.6}
.category-title{font-size:0.92rem;font-weight:700;color:var(--ink)}
.category-link{font-size:0.78rem;color:var(--ink-muted)}
.city-section{max-width:1440px;margin:0 auto;padding:0 var(--container-pad) var(--section-pad-y);display:grid;grid-template-columns:320px 1fr;gap:2.5rem;align-items:center}
.city-text h2{font-family:var(--font-serif);font-weight:400;font-size:clamp(1.5rem,3.4vw,2rem);color:var(--ink);line-height:1.25;margin-bottom:0.9rem}
.city-text p{font-size:0.95rem;color:var(--ink-muted);line-height:1.7;margin-bottom:1.5rem}
.btn-outline{display:inline-flex;align-items:center;gap:0.5rem;background:var(--primary);color:#fff;padding:0.75rem 1.4rem;border-radius:var(--radius-sm);font-size:0.88rem;font-weight:700;transition:background var(--transition),transform var(--transition)}
.btn-outline:hover{background:var(--primary-light);transform:translateY(-1px)}
.city-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:0.85rem}
.city-gallery img{width:100%;height:230px;object-fit:cover;border-radius:var(--radius-md)}
.home-intro{max-width:820px;margin:0 auto;padding:2.5rem var(--container-pad);text-align:center}
.home-intro h2{font-family:var(--font-serif);font-weight:400;font-size:clamp(1.4rem,2.2vw,1.85rem);color:var(--ink);margin-bottom:0.75rem}
.home-intro p{color:var(--ink-muted);font-size:0.98rem;line-height:1.7;margin:0}
.cta-banner-wrap{max-width:1440px;margin:0 auto;padding:0 var(--container-pad) 3.5rem}
.cta-banner{background:linear-gradient(120deg,var(--primary-dark),var(--primary));border-radius:var(--radius-lg);padding:1.6rem 2.2rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;color:#fff}
.cta-left{display:flex;align-items:center;gap:1rem;min-width:0}
.cta-icon{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,0.18);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cta-icon svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:1.8}
.cta-title{font-size:1.02rem;font-weight:700;margin-bottom:0.15rem}
.cta-sub{font-size:0.85rem;color:rgba(255,255,255,0.82)}
.btn-cta{display:inline-flex;align-items:center;gap:0.5rem;background:#fff;color:var(--primary);padding:0.75rem 1.4rem;border-radius:var(--radius-sm);font-size:0.88rem;font-weight:700;white-space:nowrap;transition:transform var(--transition);flex-shrink:0}
.btn-cta:hover{transform:translateY(-1px)}
.btn-cta svg{width:15px;height:15px;stroke:var(--primary);fill:none;stroke-width:2.5}
.site-footer{background:var(--ink);color:rgba(255,255,255,0.55);text-align:center;padding:2rem 1.5rem;font-size:0.85rem}
.site-footer strong{color:#fff}
@media(max-width:1280px){ :root{ --container-pad:1.5rem; } }
@media(max-width:1100px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero-photo{display:none}
  .hero-content{border-radius:var(--radius-lg)}
  .city-section{grid-template-columns:1fr}
  .city-gallery{order:-1}
}
@media(max-width:1024px){
  :root{ --container-pad:1.25rem; --section-pad-y:3rem; }
  .search-box{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:0.75rem}
  .search-field{border-right:none;padding:0 0.5rem}
  .search-btn{grid-column:1/-1;margin-left:0;margin-top:0.5rem}
  .trust-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:768px){
  :root{ --container-pad:1rem; --section-pad-y:2.5rem; }
  .hero{padding-top:1rem}
  .hero-content{padding:2rem 1.25rem}
  .search-box{padding:0.9rem}
  .map-container{height:340px;border-radius:14px}
  .map-section-header{flex-direction:column;align-items:flex-start}
  .properties-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:0.85rem}
  .section-header{flex-direction:column;align-items:flex-start}
  .categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .city-gallery{grid-template-columns:repeat(2,1fr)}
  .city-gallery img{height:140px}
  .cta-banner{flex-direction:column;align-items:flex-start}
  .btn-cta{width:100%;justify-content:center}
}
@media(max-width:480px){
  .properties-grid{grid-template-columns:1fr}
  .categories-grid{grid-template-columns:1fr}
  .city-gallery{grid-template-columns:repeat(2,1fr)}
  .map-container{height:300px}
  .map-legend{left:10px;bottom:10px;padding:0.6rem 0.75rem;gap:0.5rem}
  .map-count-chip{top:10px;right:10px;font-size:0.72rem;padding:0.32rem 0.8rem}
  .map-custom-controls{right:8px;bottom:8px}
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}
}
