*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --green:#1B5E20;--green-dark:#0E3A12;--green-light:#4CAF50;--green-bg:#E8F5E9;
  --yellow:#FFC107;--yellow-light:#FFF8E1;--yellow-dark:#FFA000;
  --red:#D32F2F;--red-bg:#FFEBEE;--orange:#FB8C00;
  --gray-50:#F8F9FA;--gray-100:#F1F3F5;--gray-200:#E9ECEF;--gray-500:#868E96;--gray-700:#495057;--gray-900:#212529;
  --white:#fff;
  --shadow-sm:0 1px 3px rgba(0,0,0,0.06),0 1px 2px rgba(0,0,0,0.04);
  --shadow:0 4px 16px rgba(0,0,0,0.08),0 1px 4px rgba(0,0,0,0.06);
  --shadow-green:0 4px 20px rgba(27,94,32,0.18);
  --radius:12px;--radius-lg:16px;--tab-h:62px;--header-h:64px;--transition:0.3s cubic-bezier(0.4,0,0.2,1)
}
html{scroll-behavior:smooth}
body{font-family:'Poppins',-apple-system,sans-serif;background:var(--gray-50);color:var(--gray-900);font-size:16px;line-height:1.6;padding-bottom:var(--tab-h);padding-top:var(--header-h);-webkit-font-smoothing:antialiased}
::selection{background:var(--green);color:white}

/* Scroll Progress Bar */
#progressBar{position:fixed;top:0;left:0;height:3px;z-index:10000;background:linear-gradient(90deg,var(--yellow),#FFD54F,var(--yellow-dark));width:0%;transition:width 0.1s linear;border-radius:0 2px 2px 0;pointer-events:none}

/* Header */
.app-header{position:fixed;top:0;left:0;right:0;z-index:9990;height:var(--header-h);background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);display:flex;align-items:center;justify-content:center;padding:0 1rem;box-shadow:0 4px 24px rgba(0,0,0,0.18),0 1px 0 rgba(255,255,255,0.05);overflow:hidden}
.app-header::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--yellow) 0%,var(--yellow-dark) 50%,var(--yellow) 100%)}
.app-header::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:rgba(255,255,255,0.08)}
.header-inner{display:flex;align-items:center;justify-content:center;gap:clamp(0.75rem,2vw,1.5rem);max-width:600px;width:100%}
.header-brand{height:44px;display:flex;align-items:center;justify-content:center;transition:transform 0.2s;flex-shrink:0}
.header-brand:hover{transform:scale(1.05)}
.header-brand img{height:40px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.2))}
.header-divider{width:1px;height:28px;background:rgba(255,255,255,0.3);flex-shrink:0}
.header-partner{height:44px;display:flex;align-items:center;justify-content:center;transition:transform 0.2s;flex-shrink:0}
.header-partner:hover{transform:scale(1.05)}
.header-partner img{height:32px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.2))}

/* Tab Content */
.tab-content{display:none}.tab-content.active{display:block;animation:tabIn .3s cubic-bezier(0.4,0,0.2,1)}
@keyframes tabIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.page{padding:1.25rem 1.25rem 2.5rem}

/* Tab Bar */
.tab-bar{position:fixed;bottom:0;left:0;right:0;z-index:9990;height:var(--tab-h);background:white;display:flex;box-shadow:0 -2px 12px rgba(0,0,0,0.08);padding-bottom:env(safe-area-inset-bottom,0)}
.tab-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:none;cursor:pointer;color:var(--gray-500);font-size:0.72rem;font-weight:600;transition:color var(--transition);font-family:inherit;padding:0.25rem 0;position:relative}
.tab-btn i{font-size:1.3rem;transition:color var(--transition)}
.tab-btn span{line-height:1}
.tab-btn.active{color:var(--green)}.tab-btn.active i{color:var(--green)}
.tab-btn::after{content:'';position:absolute;top:0;left:20%;right:20%;height:3px;background:linear-gradient(90deg,var(--green-light),var(--green));border-radius:0 0 4px 4px;transform:scaleX(0);transition:transform var(--transition)}
.tab-btn.active::after{transform:scaleX(1)}
.tab-btn:active{opacity:0.7}

/* Page Title */
.page-title{font-size:1.3rem;font-weight:800;color:var(--green-dark);margin-bottom:0.75rem;display:flex;align-items:center;gap:0.5rem}
.page-title i{color:var(--green);font-size:1em}
.page-sub{font-size:0.95rem;color:var(--gray-700);margin-bottom:1.25rem;line-height:1.55}

/* Cards */
.card{background:white;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:1rem;border:1px solid var(--gray-100)}
.card-inner{padding:1.25rem}
.card-row{display:flex;align-items:center;gap:0.85rem;padding:1rem 1.15rem;border-bottom:1px solid var(--gray-100)}
.card-row:last-child{border-bottom:none}
.card-row strong{font-size:0.95rem;color:var(--gray-900)}
.card-row span{font-size:0.82rem}
.icon-24{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0}
.icon-green{background:var(--green-bg);color:var(--green)}
.icon-yellow{background:var(--yellow-light);color:var(--yellow-dark)}
.icon-red{background:var(--red-bg);color:var(--red)}

/* Hero Search */
.hero{background:linear-gradient(135deg,var(--green) 0%,#2E7D32 30%,var(--green-dark) 60%,#163d18 100%);background-size:300% 300%;animation:heroShift 12s ease infinite;border-radius:var(--radius-lg);padding:1.75rem 1.5rem;margin-bottom:1.25rem;color:white;position:relative;overflow:hidden}
@keyframes heroShift{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.hero::before{content:'';position:absolute;top:-40px;right:-40px;width:140px;height:140px;background:rgba(255,255,255,0.05);border-radius:50%;animation:heroFloat 6s ease-in-out infinite}
.hero::after{content:'';position:absolute;bottom:-30px;left:-30px;width:90px;height:90px;background:rgba(255,193,7,0.06);border-radius:50%;animation:heroFloat 6s ease-in-out infinite reverse}
@keyframes heroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.hero h2{color:white;font-size:1.2rem;font-weight:700;margin-bottom:0.5rem}
.hero p{font-size:0.92rem;opacity:0.9;margin-bottom:1rem}
.search-big{display:flex;align-items:center;gap:0.6rem;background:white;border-radius:50px;padding:0 0.5rem 0 1.25rem;box-shadow:0 6px 24px rgba(0,0,0,0.22)}
.search-big i.fa-search{color:var(--gray-500);font-size:1rem;flex-shrink:0}
.search-big input{flex:1;border:none;outline:none;font-size:0.95rem;font-family:inherit;padding:0.9rem 0;color:var(--gray-900);background:transparent;min-width:0}
.search-big input::placeholder{color:var(--gray-500)}
.search-clear-btn{background:none;border:none;color:var(--gray-500);cursor:pointer;padding:0.4rem;font-size:0.85rem;display:none;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;flex-shrink:0;transition:background 0.2s,color 0.2s}
.search-clear-btn:hover{background:var(--gray-100);color:var(--gray-900)}
.search-clear-btn.visible{display:flex}
.search-result{background:rgba(255,255,255,0.15);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:var(--radius);padding:0;max-height:0;overflow:hidden;opacity:0;display:block;transition:max-height 0.35s cubic-bezier(0.4,0,0.2,1),opacity 0.3s ease,padding 0.3s ease,margin-top 0.3s ease;border:1px solid transparent;margin-top:0}
.search-result.show{max-height:400px;opacity:1;padding:1.15rem;border-color:rgba(255,255,255,0.15);margin-top:0.85rem}
.search-result h3{font-size:0.95rem;font-weight:700;margin-bottom:0.4rem}
.search-result p{font-size:0.88rem;opacity:0.95;margin:0.2rem 0;display:flex;align-items:center;gap:0.35rem}
.search-result .tag{display:inline-block;font-size:0.68rem;font-weight:700;padding:0.18rem 0.5rem;border-radius:50px;background:rgba(255,255,255,0.25);text-transform:uppercase;letter-spacing:0.5px}

/* Quick action grid */
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:0.75rem;margin-bottom:1.25rem}
.quick-card{background:white;border-radius:var(--radius);padding:1.15rem 0.75rem;text-align:center;box-shadow:var(--shadow-sm);border:1px solid var(--gray-100);cursor:pointer;transition:transform 0.18s,box-shadow 0.18s}
.quick-card:active{transform:scale(0.95);box-shadow:var(--shadow)}
.quick-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.quick-card i{font-size:1.6rem;margin-bottom:0.45rem;display:block;transition:transform 0.2s}
.quick-card:hover i{transform:scale(1.1)}
.quick-card span{font-size:0.82rem;font-weight:600;color:var(--gray-700);display:block}
.quick-grid .quick-card:nth-child(1){border-top:3px solid var(--green)}
.quick-grid .quick-card:nth-child(2){border-top:3px solid var(--orange)}
.quick-grid .quick-card:nth-child(3){border-top:3px solid #6D4C41}
.quick-grid .quick-card:nth-child(4){border-top:3px solid var(--red)}

/* Bairro search */
.bairro-box{background:white;border-radius:var(--radius-lg);padding:1.35rem;box-shadow:var(--shadow-sm);border:1px solid var(--gray-100);margin-bottom:1.25rem}
.bairro-box h3{font-size:1rem;font-weight:700;color:var(--gray-900);margin-bottom:0.35rem;display:flex;align-items:center;gap:0.4rem}
.bairro-box p{font-size:0.88rem;color:var(--gray-700);margin-bottom:0.85rem}
.bairro-input{display:flex;align-items:center;gap:0.6rem;background:var(--gray-50);border-radius:50px;padding:0 0.5rem 0 1.15rem;border:2px solid transparent;transition:border-color var(--transition)}
.bairro-input:focus-within{border-color:var(--green)}
.bairro-input i.fa-search{color:var(--gray-500);font-size:0.9rem;flex-shrink:0}
.bairro-input input{flex:1;border:none;outline:none;font-size:0.95rem;font-family:inherit;padding:0.8rem 0;background:transparent;color:var(--gray-900);min-width:0}
.bairro-input input::placeholder{color:var(--gray-500)}
.bairro-clear-btn{background:none;border:none;color:var(--gray-500);cursor:pointer;padding:0.4rem;font-size:0.8rem;display:none;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;flex-shrink:0;transition:background 0.2s,color 0.2s}
.bairro-clear-btn:hover{background:var(--gray-200);color:var(--gray-900)}
.bairro-clear-btn.visible{display:flex}
.bairro-input-wrap{position:relative}
.bairro-suggestions{list-style:none;position:absolute;top:calc(100% + 6px);left:0;right:0;background:white;border-radius:14px;box-shadow:0 8px 32px rgba(0,0,0,0.12);border:1px solid var(--gray-200);max-height:0;overflow:hidden;opacity:0;z-index:100;padding:0;margin:0;transition:max-height 0.3s cubic-bezier(0.4,0,0.2,1),opacity 0.25s ease,padding 0.3s ease}
.bairro-suggestions.show{max-height:320px;opacity:1;padding:0.5rem 0;overflow-y:auto}
.bairro-suggestions li{padding:0.7rem 1.15rem;font-size:0.9rem;color:var(--gray-900);cursor:pointer;display:flex;align-items:center;gap:0.65rem;transition:background 0.15s}
.bairro-suggestions li:hover,.bairro-suggestions li.active{background:var(--green-bg);color:var(--green-dark)}
.bairro-suggestions li i{color:var(--gray-500);font-size:0.85rem;width:16px;flex-shrink:0}
.bairro-suggestions li:hover i,.bairro-suggestions li.active i{color:var(--green)}
.bairro-suggestions li .sug-day{margin-left:auto;font-size:0.72rem;font-weight:700;color:var(--green);background:var(--green-bg);padding:0.2rem 0.55rem;border-radius:50px;white-space:nowrap}
.bairro-suggestions li:hover .sug-day,.bairro-suggestions li.active .sug-day{background:var(--green);color:white}
.bairro-suggestions .no-results{padding:1rem 1.15rem;color:var(--gray-500);font-size:0.88rem;justify-content:center;cursor:default}
.bairro-suggestions .no-results:hover{background:transparent;color:var(--gray-500)}
.bairro-result{margin-top:0;max-height:0;overflow:hidden;opacity:0;display:block;border-radius:10px;background:var(--green-bg);font-size:0.88rem;color:var(--green-dark);transition:max-height 0.35s cubic-bezier(0.4,0,0.2,1),opacity 0.3s ease,margin-top 0.3s ease,padding 0.3s ease;padding:0 1rem}
.bairro-result.show{max-height:300px;opacity:1;padding:0.85rem 1rem;margin-top:0.75rem}
.bairro-result i{color:var(--green);margin-right:0.3rem}
.bairro-result .row{display:flex;align-items:center;gap:0.45rem;padding:0.22rem 0}

/* Type cards */
.type-card{display:flex;align-items:stretch;background:white;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:0.75rem;border:1px solid var(--gray-100);min-height:90px}
.type-card:active{box-shadow:var(--shadow)}
.type-icon{width:100px;flex-shrink:0;background:var(--green-dark);display:flex;align-items:center;justify-content:center;padding:0.75rem}
.type-icon img{width:52px;height:auto;filter:brightness(0)invert(1)}
.type-icon.yellow{background:var(--yellow-dark)}
.type-icon.yellow img{filter:none}
.type-body{flex:1;padding:0.85rem 1rem;display:flex;flex-direction:column;justify-content:center}
.type-body h4{font-size:0.95rem;font-weight:700;color:var(--gray-900);margin-bottom:0.2rem;display:flex;align-items:center;gap:0.4rem}
.type-body .badge{font-size:0.62rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;padding:0.15rem 0.4rem;border-radius:4px}
.badge-green{background:var(--green-bg);color:var(--green)}
.badge-yellow{background:var(--yellow-light);color:var(--yellow-dark)}
.type-body p{font-size:0.82rem;color:var(--gray-700);line-height:1.4;margin-top:0.2rem}

/* Separation */
.sep-card{background:white;border-radius:var(--radius-lg);padding:1.25rem;margin-bottom:0.75rem;box-shadow:var(--shadow-sm);border:1px solid var(--gray-100)}
.sep-card.wet{border-top:4px solid #6D4C41}
.sep-card.dry{border-top:4px solid var(--green)}
.sep-card h4{font-size:0.95rem;font-weight:700;color:var(--gray-900);margin-bottom:0.5rem;display:flex;align-items:center;gap:0.45rem}
.sep-card h4 small{font-weight:500;font-size:0.78rem;color:var(--gray-500)}
.sep-card ul{list-style:none;display:flex;flex-wrap:wrap;gap:0.35rem}
.sep-card ul li{font-size:0.85rem;color:var(--gray-700);padding:0.25rem 0.65rem;background:var(--gray-50);border-radius:50px;border:1px solid var(--gray-200)}
.sep-tip{background:var(--yellow-light);padding:0.75rem 1rem;border-radius:8px;margin-top:0.85rem;font-size:0.85rem;color:var(--gray-700);border-left:3px solid var(--yellow)}

/* Law list */
.law-item{display:flex;gap:0.85rem;background:white;padding:1rem 1.15rem;border-radius:var(--radius);box-shadow:var(--shadow-sm);border:1px solid var(--gray-100);margin-bottom:0.6rem}
.law-item .icon{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:1.05rem;color:white;flex-shrink:0}
.law-item .body h4{font-size:0.92rem;font-weight:700;color:var(--gray-900);margin-bottom:0.2rem}
.law-item .body p{font-size:0.85rem;color:var(--gray-700);line-height:1.5}


/* Route mini cards */
.route-mini{display:flex;align-items:flex-start;gap:0.75rem;padding:0.85rem 1.15rem;border-bottom:1px solid var(--gray-100);flex-wrap:wrap;transition:background 0.2s}
.route-mini:last-child{border-bottom:none}
.route-mini:hover{background:var(--gray-50)}
.route-mini .day{font-size:0.82rem;font-weight:700;color:var(--route-c,var(--green));min-width:110px;display:flex;align-items:center;gap:0.4rem;flex-shrink:0}
.route-mini .bairros{font-size:0.82rem;color:var(--gray-700);line-height:1.45;flex:1;min-width:0}
.route-mini .hoje-badge{font-size:0.58rem;font-weight:800;background:var(--orange);color:white;padding:0.15rem 0.45rem;border-radius:50px;text-transform:uppercase;letter-spacing:0.5px;white-space:nowrap;animation:pulseBadge 2s ease-in-out infinite}
.route-mini.today-route{background:linear-gradient(90deg,var(--yellow-light),white);border-left:4px solid var(--yellow-dark);border-radius:0}

/* Today card on home */
.today-card{background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);border-radius:var(--radius-lg);padding:1.25rem;margin-bottom:1.25rem;color:white;box-shadow:var(--shadow-green)}
.today-card h3{font-size:1rem;font-weight:800;margin-bottom:0.75rem;display:flex;align-items:center;gap:0.4rem}
.today-card .badge-hoje{background:var(--yellow);color:var(--green-dark);font-size:0.62rem;font-weight:800;padding:0.18rem 0.5rem;border-radius:50px;text-transform:uppercase;animation:pulseBadge 2.5s ease-in-out infinite}
@keyframes pulseBadge{0%,100%{box-shadow:0 0 0 0 rgba(255,193,7,0.5)}60%{box-shadow:0 0 0 6px rgba(255,193,7,0)}}
.today-section{background:rgba(255,255,255,0.13);border-radius:var(--radius);padding:0.85rem;margin-bottom:0.65rem;border-left:3px solid rgba(255,255,255,0.25);transition:background 0.2s}
.today-section:last-child{margin-bottom:0}
.today-section:hover{background:rgba(255,255,255,0.18)}
.today-section h4{font-size:0.82rem;font-weight:700;margin-bottom:0.4rem;display:flex;align-items:center;gap:0.35rem}
.today-section .bairros-list{font-size:0.82rem;opacity:0.95;line-height:1.5}

/* Cacamba */
.solid-card{background:white;border-radius:var(--radius);padding:1rem 1.15rem;box-shadow:var(--shadow-sm);border:1px solid var(--gray-100);border-left:4px solid var(--green);margin-bottom:0.6rem}
.solid-card h4{font-size:0.92rem;font-weight:700;color:var(--gray-900);margin-bottom:0.4rem;display:flex;align-items:center;gap:0.4rem}
.solid-card ul{list-style:none}
.solid-card ul li{font-size:0.85rem;color:var(--gray-700);padding:0.2rem 0 0.2rem 1.25rem;position:relative}
.solid-card ul li::before{content:'\f058';font-family:'Font Awesome 6 Free';font-weight:900;position:absolute;left:0;color:var(--green-light);font-size:0.72rem;top:0.35rem}
.allowed-grid{display:grid;grid-template-columns:1fr 1fr;gap:0.6rem;margin-top:0.75rem}
.allowed-item{background:white;border-radius:var(--radius);padding:0.85rem;text-align:center;box-shadow:var(--shadow-sm);border:1px solid var(--green-bg)}
.allowed-item i{font-size:1.3rem;color:var(--green);margin-bottom:0.2rem;display:block}
.allowed-item strong{font-size:0.8rem;color:var(--gray-900);display:block}
.allowed-item span{font-size:0.7rem;color:var(--gray-500)}

/* Whats */
.whats-btn{display:flex;align-items:center;justify-content:center;gap:0.6rem;background:linear-gradient(135deg,#25D366,#1aab52);color:white;text-decoration:none;padding:1rem 1.75rem;border-radius:50px;font-size:1rem;font-weight:700;box-shadow:0 6px 24px rgba(37,211,102,0.4);transition:transform .15s,box-shadow .15s;width:100%;animation:whatsFloat 4s ease-in-out infinite}
@keyframes whatsFloat{0%,100%{box-shadow:0 6px 24px rgba(37,211,102,0.4)}50%{box-shadow:0 8px 32px rgba(37,211,102,0.55)}}
.whats-btn:active{transform:scale(0.97);animation:none;box-shadow:0 3px 12px rgba(37,211,102,0.3)}.whats-btn i{font-size:1.35rem}

/* Footer */
.footer-bar{background:linear-gradient(135deg,var(--green-dark) 0%,#071a09 100%);color:white;padding:2rem 1.5rem 1.75rem;text-align:center;margin-top:2rem;position:relative;overflow:hidden;border-radius:var(--radius-lg) var(--radius-lg) 0 0}
.footer-bar::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--yellow) 0%,var(--yellow-dark) 50%,var(--yellow) 100%)}
.footer-bar::after{content:'';position:absolute;top:-60px;right:-60px;width:180px;height:180px;background:rgba(255,193,7,0.06);border-radius:50%;pointer-events:none}
.footer-bar h2{font-size:1.65rem;font-weight:900;color:var(--yellow);text-transform:uppercase;letter-spacing:1px;text-shadow:0 2px 12px rgba(0,0,0,0.4);position:relative;z-index:1}
.footer-bar p{font-size:0.92rem;opacity:0.9;margin-top:0.5rem;max-width:380px;margin-left:auto;margin-right:auto;line-height:1.5;position:relative;z-index:1}
.footer-main{background:linear-gradient(180deg,#f8f9fa 0%,#ffffff 100%);text-align:center;padding:2rem 1.5rem 1.25rem;position:relative}
.footer-main::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:60px;height:3px;background:linear-gradient(90deg,var(--green),var(--green-light));border-radius:0 0 3px 3px}
.footer-logos{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:1rem}
.footer-logos img{height:32px;width:auto;opacity:0.9;transition:opacity 0.2s}
.footer-logos img:hover{opacity:1}
.footer-logos .logo-prefeitura{filter:brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(1500%) hue-rotate(95deg) brightness(95%) contrast(95%)}
.footer-main .brand{font-size:0.85rem;font-weight:800;color:var(--green-dark);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:0.4rem}
.footer-main p{font-size:0.85rem;color:var(--gray-700);margin:0.35rem 0;line-height:1.5}
.footer-main a{color:var(--green);text-decoration:none;font-weight:600;display:inline-flex;align-items:center;gap:0.35rem;transition:color 0.2s}
.footer-main a:hover{color:var(--green-dark);text-decoration:underline}
.footer-divider{width:40px;height:2px;background:var(--gray-200);margin:0.85rem auto;border-radius:2px}
.footer-copyright{font-size:0.7rem;opacity:0.55;color:var(--gray-700);margin-top:0.5rem}

/* Float */
.float-btns{position:fixed;bottom:calc(var(--tab-h)+16px);right:16px;display:flex;flex-direction:column;gap:8px;z-index:9980}
.float-btn{width:46px;height:46px;border-radius:50%;border:none;font-size:1rem;cursor:pointer;box-shadow:0 4px 20px rgba(0,0,0,0.2);display:flex;align-items:center;justify-content:center;color:white;transition:transform .15s,box-shadow .15s}
.float-btn:hover{transform:scale(1.08);box-shadow:0 6px 24px rgba(0,0,0,0.28)}
.float-btn:active{transform:scale(0.9)}
.float-btn.top{background:linear-gradient(135deg,var(--green-light),var(--green));opacity:0;pointer-events:none;transform:translateY(8px);transition:all 0.3s}
.float-btn.top.show{opacity:1;pointer-events:auto;transform:translateY(0)}

/* Responsive - Tablet */
@media(min-width:768px){
  body{padding-bottom:0;padding-top:0;font-size:16px}
  .app-header{position:relative}
  .page{max-width:720px;margin:0 auto;padding:2.5rem 1.5rem 3rem}
  .quick-grid{grid-template-columns:repeat(4,1fr);gap:0.85rem}
  .allowed-grid{grid-template-columns:repeat(3,1fr)}
  .float-btns{bottom:1.5rem;right:1.5rem}
}

/* Responsive - Desktop */
@media(min-width:1024px){
  body{padding-top:150px;padding-bottom:0;background:#f5f7f5}
  
  .app-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:var(--header-h);
    z-index:9991;
    padding:0 1rem;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
  }
  .header-inner{max-width:700px;gap:clamp(1rem,3vw,2rem)}
  .header-brand img{height:44px}
  .header-partner img{height:34px}
  .header-divider{height:32px}
  
  .tab-bar{
    position:fixed;
    top:calc(var(--header-h) + 0.75rem);
    left:50%;
    transform:translateX(-50%);
    bottom:auto;
    width:auto;
    height:56px;
    max-width:calc(100% - 2rem);
    flex-direction:row;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
    border-radius:50px;
    padding:0.4rem;
    gap:0.25rem;
    border:1px solid var(--gray-200);
    z-index:9990;
    margin:0;
  }
  .tab-btn{
    flex:0 0 auto;
    flex-direction:row;
    justify-content:center;
    gap:0.5rem;
    padding:0.65rem 1.35rem;
    border-radius:50px;
    font-size:0.88rem;
    color:var(--gray-700);
    transition:all 0.2s;
    position:relative;
    min-width:0;
    max-width:none;
  }
  .tab-btn i{font-size:1rem;width:auto;text-align:center}
  .tab-btn span{font-size:0.9rem;font-weight:600}
  .tab-btn:hover{background:var(--gray-50);color:var(--green)}
  .tab-btn.active{background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);color:white;font-weight:700;box-shadow:0 4px 12px rgba(27,94,32,0.3)}
  .tab-btn.active i{color:white}
  .tab-btn::after{display:none}
  .tab-btn.active::after{display:none}
  
  .page{
    max-width:1000px;
    margin:0 auto;
    padding:0 2rem 4rem;
  }
  
  .hero{
    padding:3rem 2.5rem;
    margin-bottom:2rem;
    border-radius:20px;
  }
  .hero h2{font-size:1.75rem;margin-bottom:0.75rem}
  .hero p{font-size:1.05rem;margin-bottom:1.25rem;max-width:600px}
  .search-big{max-width:600px;margin:0 auto}
  .search-big input{font-size:1.05rem;padding:1.1rem 0}
  
  .today-card{
    padding:2rem 2.5rem;
    border-radius:20px;
    margin-bottom:1.75rem;
  }
  .today-card h3{font-size:1.2rem;margin-bottom:1rem}
  .today-section{padding:1.1rem 1.25rem;margin-bottom:0.85rem}
  .today-section h4{font-size:0.9rem;margin-bottom:0.5rem}
  .today-section .bairros-list{font-size:0.92rem}
  
  .quick-grid{grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-bottom:1.75rem}
  .quick-card{padding:1.5rem 1rem;border-radius:14px;transition:all 0.2s}
  .quick-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
  .quick-card i{font-size:1.85rem;margin-bottom:0.6rem}
  .quick-card span{font-size:0.9rem}
  
  .bairro-box{
    padding:1.75rem 2rem;
    border-radius:18px;
    margin-bottom:1.75rem;
  }
  .bairro-box h3{font-size:1.15rem;margin-bottom:0.5rem}
  .bairro-box p{font-size:0.95rem;margin-bottom:1.1rem}
  
  .page-title{font-size:1.65rem;margin-bottom:0.5rem;gap:0.65rem}
  .page-title i{font-size:1.4rem}
  .page-sub{font-size:1rem;margin-bottom:1.75rem;line-height:1.6}
  
  .card,.type-card{margin-bottom:1.25rem;border-radius:16px}
  .card-row{padding:1.15rem 1.5rem;gap:1rem}
  .card-row strong{font-size:1rem}
  .card-row span{font-size:0.88rem}
  .icon-24{width:50px;height:50px;border-radius:14px;font-size:1.2rem}
  
  .type-card{
    min-height:120px;
    border-radius:16px;
    margin-bottom:1rem;
    transition:all 0.2s;
  }
  .type-card:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
  .type-icon{width:140px;padding:1rem}
  .type-icon img{width:68px}
  .type-body{padding:1.25rem 1.5rem}
  .type-body h4{font-size:1.05rem;margin-bottom:0.3rem}
  .type-body p{font-size:0.92rem;line-height:1.5;margin-top:0.3rem}
  .type-body .badge{font-size:0.7rem;padding:0.2rem 0.5rem}
  
  .sep-card{padding:1.5rem 1.75rem;border-radius:16px;margin-bottom:1rem}
  .sep-card h4{font-size:1.05rem;margin-bottom:0.65rem}
  .sep-card ul li{font-size:0.9rem;padding:0.3rem 0.75rem}
  .sep-tip{font-size:0.9rem;padding:0.85rem 1.1rem;margin-top:1rem}
  
  .law-item{
    padding:1.25rem 1.5rem;
    border-radius:14px;
    margin-bottom:0.75rem;
    transition:all 0.2s;
  }
  .law-item:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
  .law-item .icon{width:50px;height:50px;border-radius:13px;font-size:1.15rem}
  .law-item .body h4{font-size:1.02rem;margin-bottom:0.3rem}
  .law-item .body p{font-size:0.92rem;line-height:1.55}
  
  .route-mini{padding:1rem 1.5rem;gap:1rem}
  .route-mini .day{font-size:0.9rem;min-width:130px;gap:0.5rem}
  .route-mini .bairros{font-size:0.9rem;line-height:1.5}
  .route-mini .hoje-badge{font-size:0.65rem;padding:0.2rem 0.55rem}
  

  .float-btns{bottom:2rem;right:2rem}
  .float-btn{width:52px;height:52px;font-size:1.15rem}
  
  .allowed-grid{grid-template-columns:repeat(3,1fr);gap:0.85rem}
  .allowed-item{padding:1rem;border-radius:12px}
  .allowed-item i{font-size:1.5rem;margin-bottom:0.3rem}
  .allowed-item strong{font-size:0.88rem}
  .allowed-item span{font-size:0.78rem}
  
  .solid-card{padding:1.15rem 1.35rem;border-radius:12px;margin-bottom:0.75rem}
  .solid-card h4{font-size:0.98rem;margin-bottom:0.5rem}
  .solid-card ul li{font-size:0.9rem;padding:0.25rem 0 0.25rem 1.4rem}
  
  .map-container iframe{height:300px!important;border-radius:16px}
  
  #cacamba{scroll-margin-top:160px}
  .footer-bar{padding:3rem 2.5rem 2.5rem;border-radius:20px 20px 0 0}
  .footer-bar h2{font-size:2rem}
  .footer-bar p{font-size:1.05rem;max-width:540px}
  .footer-main{padding:2.5rem 2.5rem 1.75rem}
  .footer-main .brand{font-size:0.95rem;letter-spacing:2px}
  .footer-main p{font-size:0.95rem;margin:0.4rem 0}
  .footer-copyright{font-size:0.78rem}
  .footer-divider{width:50px;margin:1rem auto}
}

/* Large desktop */
@media(min-width:1440px){
  .page{max-width:1100px;padding:0 2.5rem 4rem}
  .hero{padding:3.5rem 3rem}
  .hero h2{font-size:1.9rem}
  .type-icon{width:160px}
  .type-icon img{width:76px}
  .footer-bar h2{font-size:2.25rem}
}

@media print{
  .tab-bar,.float-btns,.app-header{display:none!important}
  body{padding:0;background:white}
  .card,.type-card{box-shadow:none;border:1px solid #ddd;break-inside:avoid}
}
