/* AEMAZON Gas Stations v1.5.3 — database-backed 24-hour filter */
:root{--orange:#ff5a1f;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#fff;color:#171719;font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif}
button,select,input{font:inherit;color:#171719}
.gas-app{position:relative;width:100%;max-width:760px;height:100dvh;margin:auto;overflow:hidden;background:#fff}
.gas-header{position:relative;z-index:10;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:54px;padding:0 15px;border-bottom:1px solid #ededee;background:#fff}
.gas-brand{color:#ef5b2b;text-decoration:none;font-size:16px;font-weight:950;letter-spacing:.04em}
.gas-header h1{margin:0;font-size:17px;font-weight:950}
.gas-header-icon{justify-self:end;display:grid;place-items:center;width:40px;height:40px;color:#18191b}
.gas-header-icon svg,.gas-location svg,.gas-detail header svg,.gas-bottom-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gas-controls{position:relative;z-index:10;padding:0 13px 10px;border-bottom:1px solid #ededee;background:#fff}
.gas-tabs{display:grid;grid-template-columns:repeat(4,1fr);height:45px}
.gas-tabs a{position:relative;display:grid;place-items:center;color:#777b81;text-decoration:none;font-size:12px;font-weight:850;white-space:nowrap}
.gas-tabs a.is-active{color:#171719}
.gas-tabs a.is-active:after{content:"";position:absolute;left:12%;right:12%;bottom:0;height:3px;border-radius:3px;background:var(--orange)}
.fuel-pills{display:flex;gap:7px;overflow-x:auto;padding-top:8px;scrollbar-width:none}
.fuel-pills button{flex:0 0 auto;height:31px;padding:0 13px;border:1px solid #dedfe2;border-radius:999px;background:#fff;color:#656970;font-size:11px;font-weight:850}
.fuel-pills button.is-active{border-color:var(--orange);background:#fff1eb;color:#e44a13}
.gas-map-wrap{position:absolute;top:110px;right:0;bottom:72px;left:0;background:#edf0ef}
.gas-map{width:100%;height:100%}
.gas-map img{pointer-events:none!important;-webkit-user-drag:none!important;-webkit-touch-callout:none!important;user-select:none!important}
.gas-map-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;background:#eff1f1;color:#6e7377}
.gas-map-message[hidden]{display:none}
.gas-map-message strong{font-size:14px}
.gas-map-message span{font-size:11px}
.gas-location{position:absolute;z-index:3;right:14px;top:13px;display:grid;place-items:center;width:43px;height:43px;padding:0;border:1px solid #e0e1e3;border-radius:50%;background:#fff;color:#171719;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.gas-user-marker{width:20px;height:20px;border:4px solid #fff;border-radius:50%;background:#2388ff;box-shadow:0 2px 8px rgba(18,75,148,.34),0 0 0 6px rgba(35,136,255,.18)}
.gas-search-area{position:absolute;z-index:3;top:15px;left:50%;height:37px;padding:0 14px;border:1px solid #e1e2e4;border-radius:999px;background:#fff;color:#e34c14;font-size:11px;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.08);transform:translateX(-50%)}
.gas-loading{position:absolute;z-index:5;left:50%;top:62px;display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:rgba(25,26,28,.86);color:#fff;font-size:10px;font-weight:800;transform:translateX(-50%)}
.gas-loading[hidden]{display:none}
.gas-loading i{width:12px;height:12px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
.gas-sheet{position:absolute;z-index:8;left:10px;right:10px;bottom:calc(78px + var(--safe-bottom));max-height:285px;overflow:hidden;padding:6px 12px 12px;border:1px solid rgba(225,226,228,.9);border-radius:20px;background:rgba(255,255,255,.97);box-shadow:0 8px 30px rgba(23,25,27,.12);backdrop-filter:blur(16px)}
.gas-handle{width:37px;height:4px;margin:0 auto 7px;border-radius:4px;background:#d8d9dc}
.gas-filter-row{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.gas-filter-row label{display:flex;align-items:center;gap:4px;color:#73777d;font-size:9px;font-weight:800}
.gas-filter-row select{height:27px;padding:0 22px 0 7px;border:1px solid #dedfe2;border-radius:8px;background:#fff;font-size:10px}
.gas-open24-filter{flex:0 0 auto;height:27px;padding:0 9px;border:1px solid #dedfe2;border-radius:8px;background:#fff;color:#4f5358;font-size:9px;font-weight:850;white-space:nowrap}
.gas-open24-filter.is-active{border-color:#171719;background:#171719;color:#fff}
.gas-filter-row>span{min-width:0;overflow:hidden;margin-left:auto;color:#96999d;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.gas-selected{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid #e8e8ea;border-radius:13px;background:#fff}
.gas-selected-main{min-width:0}
.gas-selected h2{overflow:hidden;margin:0;font-size:15px;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.gas-selected p{margin:4px 0 0;color:#7d8187;font-size:10px}
.gas-selected .gas-tags{display:flex;gap:4px;margin-top:6px}
.gas-tags span{padding:4px 6px;border-radius:6px;background:#f2f3f4;color:#656970;font-size:8px;font-weight:850}
.gas-selected .gas-trust-button{height:40px;padding:0 13px;border:0;border-radius:10px;background:var(--orange);color:#fff;font-size:11px;font-weight:900}
.gas-address-row{display:flex;min-width:0;align-items:center;gap:7px;margin-top:7px;padding-top:7px;border-top:1px solid #f0f0f1}
.gas-address-row span{display:block;min-width:0;overflow:hidden;color:#555960;font-size:9px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.gas-selected .gas-address-copy{flex:0 0 auto;height:24px;padding:0 8px;border:1px solid #cfd0d3;border-radius:7px;background:#fff;color:#171719;font-size:9px;font-weight:900}
.gas-list{display:flex;gap:7px;overflow-x:auto;margin-top:8px;padding-bottom:2px;scrollbar-width:none}
.gas-card{flex:0 0 145px;padding:9px;border:1px solid #e8e8ea;border-radius:11px;background:#fff;color:#171719;text-align:left}
.gas-card strong{display:block;overflow:hidden;color:#171719;font-size:11px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.gas-card span{display:block;margin-top:4px;color:#e44b14;font-size:12px;font-weight:950}
.gas-card small{display:block;margin-top:2px;color:#909399;font-size:8px}
.gas-empty{padding:20px;text-align:center}
.gas-empty strong,.gas-empty span{display:block}
.gas-empty strong{font-size:13px}
.gas-empty span{margin-top:4px;color:#888;font-size:10px}
.gas-toast{position:fixed;z-index:300;left:50%;bottom:105px;max-width:calc(100% - 40px);padding:10px 14px;border-radius:999px;background:rgba(22,23,25,.9);color:#fff;font-size:11px;font-weight:800;opacity:0;pointer-events:none;transform:translate(-50%,8px);transition:.2s}
.gas-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.gas-marker{position:relative;display:grid;place-items:center;min-width:54px;height:31px;padding:0 8px;border:2px solid #fff;border-radius:10px;background:#26282c;color:#fff;box-shadow:0 3px 9px rgba(0,0,0,.23);font-size:10px;font-weight:950}
.gas-marker:after{content:"";position:absolute;left:50%;bottom:-7px;border:5px solid transparent;border-top-color:#26282c;transform:translateX(-50%)}
.gas-marker.is-selected{background:var(--orange);transform:scale(1.08)}
.gas-marker.is-selected:after{border-top-color:var(--orange)}
.gas-detail{position:absolute;z-index:100;inset:0;display:flex;flex-direction:column;background:#f7f7f8}
.gas-detail[hidden]{display:none}
.gas-detail>header{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;height:54px;border-bottom:1px solid #eee;background:#fff}
.gas-detail>header strong{text-align:center;font-size:15px;font-weight:950}
.gas-detail>header button{display:grid;place-items:center;width:44px;height:44px;margin:auto;border:0;background:transparent}
.gas-detail>header button.is-active{color:#171719}
.gas-detail>header button.is-active svg{fill:currentColor}
.gas-detail-scroll{flex:1;overflow-y:auto;padding-bottom:105px}
.gas-detail-hero{padding:23px 17px 18px;background:#fff}
.gas-detail-hero>span,.gas-trust-panel .gas-section-head span{color:var(--orange);font-size:9px;font-weight:950;letter-spacing:.1em}
.gas-detail-hero h2{margin:5px 0 0;font-size:24px;letter-spacing:-.04em}
.gas-detail-hero p{margin:7px 0 0;color:#73777d;font-size:12px}
.gas-detail-hero>div{display:inline-flex;margin-top:11px;padding:6px 8px;border-radius:7px;background:#f1f2f3;color:#696d72;font-size:10px;font-weight:850}
.gas-detail-hero>div.is-certified{background:#e8f7ed;color:#18763a}
.gas-price-panel,.gas-service-panel,.gas-trust-panel{margin-top:9px;padding:17px;background:#fff}
.gas-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.gas-section-head h3,.gas-service-panel h3{margin:0;font-size:15px;font-weight:950}
.gas-section-head>span{color:#92959a;font-size:9px}
.gas-prices{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:12px}
.gas-prices article{padding:12px;border:1px solid #e6e7e9;border-radius:11px}
.gas-prices span{display:block;color:#7d8187;font-size:9px}
.gas-prices strong{display:block;margin-top:4px;font-size:16px}
.gas-price-panel>p,.gas-service-panel>p{margin:9px 0 0;color:#999;font-size:9px;line-height:1.5}
.gas-service-panel>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.gas-service-panel>div span{padding:7px 9px;border-radius:8px;background:#f2f3f4;color:#5f6368;font-size:10px;font-weight:800}
.gas-trust-panel .gas-section-head button{height:31px;padding:0 9px;border:1px solid #dedfe2;border-radius:8px;background:#fff;font-size:9px;font-weight:850}
.gas-trust-intro{margin:8px 0 13px;color:#797d82;font-size:10px}
.gas-trust-list{display:grid;gap:7px}
.trust-card{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;padding:11px;gap:9px;border:1px solid #e7e8ea;border-radius:12px}
.trust-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#f1f2f3;color:#555;font-size:13px;font-weight:950}
.trust-card strong,.trust-card small{display:block}
.trust-card strong{font-size:11px}
.trust-card small{margin-top:3px;color:#80848a;font-size:9px;line-height:1.35}
.trust-status{padding:5px 6px;border-radius:6px;background:#f0f1f2;color:#71757a;font-size:8px;font-weight:900}
.trust-card.is-good .trust-icon,.trust-card.is-good .trust-status{background:#e7f7ed;color:#16723a}
.trust-card.is-warning .trust-icon,.trust-card.is-warning .trust-status{background:#fff0ea;color:#c94010}
.gas-notices article{margin-top:8px;padding:11px;border:1px solid #ffd4c4;border-radius:11px;background:#fff7f3}
.gas-notices strong,.gas-notices a{display:block}
.gas-notices strong{font-size:11px}
.gas-notices span{display:block;margin-top:3px;color:#866b61;font-size:9px}
.gas-notices a{margin-top:5px;color:#c74516;font-size:9px}
.gas-detail>footer{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:.9fr 1.3fr;gap:8px;padding:10px 14px calc(10px + var(--safe-bottom));border-top:1px solid #e5e6e8;background:rgba(255,255,255,.97)}
.gas-detail>footer button{height:51px;border:1px solid #dadbde;border-radius:13px;background:#fff;font-size:13px;font-weight:950}
.gas-detail>footer .is-primary{border-color:#171719;background:#171719;color:#fff}
.gas-modal{position:absolute;z-index:180;inset:0;display:flex;align-items:flex-end}
.gas-modal[hidden]{display:none}
.gas-modal-dim{position:absolute;inset:0;border:0;background:rgba(16,17,19,.5)}
.gas-modal form,.gas-help article{position:relative;width:100%;padding:9px 16px calc(19px + var(--safe-bottom));border-radius:22px 22px 0 0;background:#fff}
.gas-modal header{display:flex;justify-content:space-between;align-items:flex-start}
.gas-modal header span{color:var(--orange);font-size:9px;font-weight:950}
.gas-modal h2{margin:2px 0 0;font-size:21px}
.gas-modal header button{width:37px;height:37px;border:0;border-radius:50%;background:#f2f3f4;font-size:23px}
.gas-modal form>p,.gas-help article>p{color:#7c8085;font-size:10px;line-height:1.5}
.gas-modal label{display:block;margin-top:10px;font-size:10px;font-weight:850}
.gas-modal select,.gas-modal input{display:block;width:100%;height:44px;margin-top:5px;padding:0 10px;border:1px solid #dedfe2;border-radius:10px;background:#fff;font-size:15px}
.gas-submit{width:100%;height:49px;margin-top:15px;border:0;border-radius:12px;background:var(--orange);color:#fff;font-size:13px;font-weight:950}
.gas-help ul{padding-left:20px;color:#555;font-size:11px;line-height:1.75}
.gas-help li b{color:#222}
.gas-bottom-nav{position:fixed;z-index:60;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);height:calc(72px + var(--safe-bottom));padding:5px 10px var(--safe-bottom);border-top:1px solid #e8e8ea;background:#fff}
.gas-bottom-nav a{display:flex;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#73767b;text-decoration:none;font-size:10px;font-weight:800}
.gas-bottom-nav a.is-active{color:var(--orange)}
.gas-bottom-nav .gas-compose{align-self:start;justify-self:center;width:58px;height:58px;min-height:58px;margin-top:-16px;border:4px solid #fff;border-radius:50%;background:var(--orange);color:#fff;box-shadow:0 7px 18px rgba(255,90,31,.32)}
@media(min-width:761px){.gas-app{border-left:1px solid #eee;border-right:1px solid #eee}
.gas-sheet{left:18px;right:18px}
}
html.aemazon-android-webview .gas-app{position:fixed;inset:0;width:auto;max-width:none;height:auto;margin:0}

/* v1.4.1: keep the gas-station map shell identical to the existing Aemamap UI. */
:root{--gas-header-height:54px;--gas-controls-height:95px}
.gas-header{padding:0 14px;border-bottom-color:#f0f0f1;background:rgba(255,255,255,.97);backdrop-filter:saturate(160%) blur(16px)}
.gas-brand{justify-self:start;font-size:13px;letter-spacing:.05em}
.gas-header h1{font-weight:900;letter-spacing:-.04em}
.gas-header-icon{width:42px;height:42px;border-radius:50%}
.gas-header-icon:active{background:#f2f2f3}
.gas-header-icon svg{width:22px;height:22px}
.gas-controls{height:var(--gas-controls-height);padding:0 0 9px}
.gas-tabs{height:40px;margin:7px 12px;padding:3px;border:1px solid #e4e5e8;border-radius:999px;background:#f7f7f8}
.gas-tabs a{border-radius:999px;color:#656970;font-size:11px;font-weight:800;transition:.16s ease}
.gas-tabs a.is-active{background:var(--orange);color:#fff;box-shadow:0 4px 12px rgba(255,90,31,.24)}
.gas-tabs a.is-active:after{display:none}
.fuel-pills{height:31px;padding:0 13px}
.gas-map-wrap{top:calc(var(--gas-header-height) + var(--gas-controls-height));bottom:calc(72px + var(--safe-bottom))}
.gas-location{right:13px;top:14px;width:44px;height:44px;border-color:rgba(18,20,22,.08);box-shadow:0 5px 16px rgba(18,20,22,.14)}
.gas-location svg{width:21px;height:21px}
.gas-bottom-nav{background:rgba(255,255,255,.96);box-shadow:0 -5px 18px rgba(18,18,20,.055);backdrop-filter:saturate(180%) blur(18px)}
.gas-bottom-nav>a,.gas-bottom-nav>button{display:flex;min-width:0;min-height:52px;flex-direction:column;align-items:center;justify-content:center;padding:0;gap:4px;border:0;background:transparent;color:#73767b;text-decoration:none;font-size:10.5px;font-weight:800;line-height:1}
.gas-bottom-nav svg{width:24px;height:24px}
.gas-bottom-nav .is-active{color:var(--orange)}
.gas-bottom-nav .gas-compose svg{width:27px;height:27px}
html.aemazon-android-webview .gas-header,html.aemazon-android-webview .gas-bottom-nav,html.aemazon-android-webview .gas-sheet{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
