
:root{
  --navy:#072b3e; --navy2:#0d4056; --teal:#149b9a; --orange:#f58b18;
  --ink:#10232d; --muted:#687b86; --bg:#f5f8f9; --surface:#fff;
  --line:#dfe8eb; --soft:#eaf3f4; --danger:#b84343; --success:#2e7d58;
  --shadow:0 16px 40px rgba(6,43,62,.09); --radius:20px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
a{text-decoration:none;color:inherit} img{max-width:100%;display:block}
button,input,select,textarea{font:inherit} button{cursor:pointer}
.container{width:min(1180px,92%);margin:auto}
.topbar{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand-logo{width:190px;max-height:60px;object-fit:contain}.nav-links{display:flex;gap:20px;color:#4e6672;font-size:14px}.nav-actions{display:flex;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 16px;font-weight:800;transition:.18s}
.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--orange),#ffad3c);color:#fff}.btn-secondary{background:var(--navy);color:#fff}.btn-ghost{background:#fff;border:1px solid var(--line)}
.hero{padding:72px 0 52px;background:radial-gradient(circle at 80% 0%,rgba(20,155,154,.14),transparent 34%),radial-gradient(circle at 0 70%,rgba(245,139,24,.11),transparent 30%)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:44px;align-items:center}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1.3px;font-weight:900;color:var(--teal)}
h1{font-size:clamp(46px,7vw,80px);line-height:.98;letter-spacing:-3px;margin:12px 0 20px;color:var(--navy)}
h2{font-size:36px;letter-spacing:-1px;margin:0 0 12px;color:var(--navy)} h3{margin:0 0 8px;color:var(--navy)}
.lead{font-size:19px;line-height:1.7;color:var(--muted)} .muted{color:var(--muted)} .small{font-size:13px}
.hero-card{min-height:450px;border-radius:30px;padding:26px;color:#fff;background:linear-gradient(145deg,var(--navy),#0f5a68);position:relative;overflow:hidden;box-shadow:var(--shadow)}
.hero-card:before{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:var(--orange);right:-120px;top:-110px}
.hero-card:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;border:44px solid rgba(20,155,154,.95);left:-90px;bottom:-80px}
.hero-content{position:relative;z-index:1;height:398px;display:flex;flex-direction:column;justify-content:flex-end}.hero-content h3{color:#fff;font-size:30px}
.section{padding:58px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}
.grid{display:grid;gap:20px}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 24px rgba(6,43,62,.05);overflow:hidden}.card-pad{padding:22px}
.category{padding:24px;min-height:170px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#fff,var(--soft))}.category .icon{font-size:34px}
.badges{display:flex;gap:8px;flex-wrap:wrap}.badge{padding:7px 10px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:800;color:var(--navy2)}
.searchbar{display:flex;gap:10px;padding:9px;background:#fff;border:1px solid var(--line);border-radius:16px}.searchbar input{flex:1;border:0}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 26px}
input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 12px;outline:none}
.field{display:grid;gap:7px}.field label{font-size:13px;font-weight:800;color:var(--muted)}.field textarea{min-height:130px;resize:vertical}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.merchant-card .cover{height:170px;background:linear-gradient(135deg,var(--navy2),var(--teal));display:grid;place-items:center;font-size:58px}.merchant-card .body{padding:20px}
.profile-hero{padding:44px 0;background:linear-gradient(135deg,#eef8f8,#fff7ec)}.profile-grid{display:grid;grid-template-columns:1fr 330px;gap:28px}.profile-card{padding:26px}
.logo-box{width:92px;height:92px;border-radius:22px;background:var(--navy);display:grid;place-items:center;color:#fff;font-size:32px;font-weight:900}
.merchant-row{display:flex;gap:14px;align-items:center}.contact-list{display:grid;gap:10px}.contact-link{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;border:1px solid var(--line);border-radius:12px;font-weight:800;background:#fff}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.gallery-item{height:210px;border-radius:16px;background:linear-gradient(145deg,#cce9e8,#ffd8a7);display:grid;place-items:center;font-size:48px;border:1px solid var(--line)}
.notice{padding:14px 16px;border-radius:13px;background:#fff2df;border:1px solid #ffd39c;color:#75430d}.notice.ok{background:#e7f4ed;border-color:#bfdfcd;color:#225e40}.notice.error{background:#fbeaea;border-color:#efc0c0;color:#7b2e2e}
.auth-shell{min-height:calc(100vh - 78px);display:grid;place-items:center;padding:44px 16px}.auth-card{width:min(620px,100%);padding:26px}
.tabs{display:flex;gap:8px;margin:16px 0}.tab{flex:1;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;font-weight:800}.tab.active{background:var(--navy);color:#fff}
.layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh}.sidebar-logo{width:185px;background:#fff;border-radius:14px;padding:8px;margin-bottom:26px}
.side-nav{display:grid;gap:7px}.side-nav a{padding:11px 12px;border-radius:10px;color:#cfe3e8}.side-nav a:hover{background:rgba(255,255,255,.10);color:#fff}
.main{padding:30px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat{padding:20px}.stat strong{display:block;font-size:30px;margin-top:6px;color:var(--navy)}
.kpi-list{display:grid;gap:10px}.kpi-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:11px 0}
.footer{padding:42px 0;border-top:1px solid var(--line);background:#fff}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:26px}.footer-logo{width:220px}
.hidden{display:none!important}
@media(max-width:900px){.hero-grid,.grid-4,.grid-3,.grid-2,.profile-grid,.footer-grid,.stats,.form-grid{grid-template-columns:1fr 1fr}.layout{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.nav-links{display:none}}
@media(max-width:640px){.hero-grid,.grid-4,.grid-3,.grid-2,.profile-grid,.footer-grid,.stats,.form-grid,.gallery{grid-template-columns:1fr}h1{font-size:49px}.brand-logo{width:150px}.nav-actions .btn-ghost{display:none}}



/* ===== Descoberta por distrito - mapa real ===== */
.discovery-layout{display:grid;grid-template-columns:minmax(390px,.95fr) minmax(0,1.35fr);gap:28px;align-items:start}
.portugal-map-card{padding:24px;position:sticky;top:100px}
.real-map-shell{position:relative;width:min(520px,100%);margin:16px auto 0;border-radius:18px;overflow:hidden;background:#eef4f5;border:1px solid var(--line);box-shadow:0 12px 28px rgba(7,43,62,.08)}
.real-map-image{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.map-hotspots{position:absolute;inset:0;width:100%;height:100%;z-index:2}
.map-hotspot{cursor:pointer;outline:none}
.map-hotspot polygon{fill:rgba(20,155,154,0);stroke:rgba(255,255,255,0);stroke-width:2;transition:.16s ease}
.map-hotspot:hover polygon,.map-hotspot:focus polygon{fill:rgba(20,155,154,.34);stroke:rgba(255,255,255,.85)}
.map-hotspot.active polygon{fill:rgba(245,139,24,.48);stroke:#fff;stroke-width:3}
.map-hotspot text{fill:#fff;font-size:15px;font-weight:900;text-anchor:middle;paint-order:stroke;stroke:rgba(7,43,62,.75);stroke-width:4px;stroke-linejoin:round;opacity:0;pointer-events:none}
.map-hotspot:hover text,.map-hotspot:focus text,.map-hotspot.active text{opacity:1}
.map-credit{font-size:11px;color:var(--muted);line-height:1.45;margin-top:10px;text-align:center}
.map-help{display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--soft);border-radius:12px;margin-top:14px;font-size:12px;color:var(--navy2)}
.map-help-dot{width:11px;height:11px;border-radius:50%;background:var(--orange);flex:0 0 auto}
.district-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:18px}
.results-count{font-size:13px;color:var(--muted)}
.district-list-mobile{display:none;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px}
.district-list-mobile button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px;font-weight:800;color:var(--navy)}
.district-list-mobile button.active,.district-list-mobile button:hover{background:var(--navy);color:#fff}
@media(max-width:980px){.discovery-layout{grid-template-columns:1fr}.portugal-map-card{position:relative;top:auto}.real-map-shell{width:min(560px,100%)}}
@media(max-width:640px){.real-map-shell{display:none}.district-list-mobile{display:grid}.district-summary{align-items:flex-start;flex-direction:column}}

/* ===== Pesquisa de criadores ===== */
.creator-search-panel{padding:24px;margin-bottom:26px;background:linear-gradient(145deg,#fff,#f5fbfb)}
.creator-search-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.creator-search-grid{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:14px;align-items:end}
.search-field-wide{min-width:0}
.creator-search-grid input,.creator-search-grid select{width:100%;min-height:46px}
.quick-districts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.quick-districts button{border:1px solid var(--line);background:#fff;color:var(--navy);padding:8px 11px;border-radius:999px;font-weight:800;font-size:12px}
.quick-districts button:hover,.quick-districts button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 4px 18px}
.results-count{font-size:13px;color:var(--muted)}
@media(max-width:1000px){.creator-search-grid{grid-template-columns:1fr 1fr}.search-field-wide{grid-column:1/-1}}
@media(max-width:640px){.creator-search-head,.directory-toolbar{align-items:flex-start;flex-direction:column}.creator-search-grid{grid-template-columns:1fr}.search-field-wide{grid-column:auto}.quick-districts{align-items:flex-start}}
