/* Author: Marcilio Souza — Mapa do escritório em janela com abertura e fechamento suaves. */
/*
 * Compatibilidade do mapa entre navegadores — atualizado em 20/10/2026.
 * - vh vem antes de dvh como fallback para navegadores antigos.
 * - -webkit-backdrop-filter atende Safari, iPhone, iPad e WebKit.
 * - backdrop-filter permanece para Chrome, Edge, Firefox e navegadores modernos.
 * - -webkit-overflow-scrolling melhora a rolagem do modal no iOS.
 * O botão externo do Google Maps permanece como alternativa quando um
 * bloqueador de conteúdo impede a exibição do iframe dentro do site.
 */
.location-dialog { width:min(960px,calc(100% - 32px)); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); margin:auto; padding:0; border:1px solid #b69a61; border-radius:20px; background:#f5f8f5; color:#173f35; box-shadow:0 28px 90px #071f1960; overflow:auto; -webkit-overflow-scrolling:touch; }
.location-dialog[open] { animation:location-in .35s cubic-bezier(.22,1,.36,1) both; }
.location-dialog::backdrop { background:rgba(8,30,25,.82); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); animation:location-backdrop-in .3s ease both; }
.location-dialog.is-closing { animation:location-out .24s ease both; pointer-events:none; }
.location-dialog.is-closing::backdrop { animation:location-backdrop-out .24s ease both; }
.location-dialog *, .location-dialog *::before, .location-dialog *::after { box-sizing:border-box; }
.location-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:28px 30px 24px; border-bottom:1px solid #d8e2db; }
.location-dialog-eyebrow { margin:0 0 9px; color:#866a34; font:600 11px/1.5 Arial,sans-serif; letter-spacing:2px; text-transform:uppercase; }
.location-dialog h2 { margin:0 0 10px; color:#173f35; font:normal clamp(26px,4vw,36px)/1.15 Georgia,serif; }
.location-dialog-address { margin:0; max-width:730px; color:#52695f; font:14px/1.8 Arial,sans-serif; }
.location-dialog #location-dialog-close { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; margin:0; padding:0; border:1px solid #c9d7cd; border-radius:50%; background:#e8f0e9; color:#173f35; font:28px/1 Arial,sans-serif; cursor:pointer; transition:background .2s,transform .2s; }
.location-dialog #location-dialog-close:hover { background:#dfc58f; transform:rotate(90deg); }
.location-map-stage { position:relative; min-height:300px; height:clamp(300px,48vh,460px); height:clamp(300px,48dvh,460px); background:#e3eae5; }
.location-map-stage iframe { position:relative; z-index:1; display:block; width:100%; height:100%; border:0; }
.location-map-loader { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; color:#365749; font:14px/1.5 Arial,sans-serif; }
.location-map-loader::before { content:''; width:30px; height:30px; border:3px solid #bdcfc3; border-top-color:#9a7c43; border-radius:50%; animation:location-spin .8s linear infinite; }
.location-map-loader[hidden] { display:none; }
.location-map-loader.is-error { z-index:2; padding:28px; color:#173f35; background:#eef3ef; font-weight:600; text-align:center; }
.location-map-loader.is-error::before { content:'!'; display:grid; place-items:center; border:2px solid #9a7c43; color:#866a34; animation:none; }
.location-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 30px; }
.location-dialog-footer p { margin:0; color:#52695f; font:13px/1.6 Arial,sans-serif; }
.location-dialog-route { display:inline-flex; align-items:center; justify-content:center; gap:12px; flex-shrink:0; padding:13px 20px; min-height:46px; border:1px solid #173f35; border-radius:10px; background:#173f35; color:#fff; font:600 13px/1.5 Arial,sans-serif; text-decoration:none; transition:background .2s,transform .2s; }
.location-dialog-route:hover { color:#fff; background:#285c4b; transform:translateY(-2px); }
.location-dialog :focus-visible { outline:3px solid #b79552; outline-offset:4px; }
body.location-dialog-open { overflow:hidden; }
@keyframes location-in { from { opacity:0; transform:translateY(26px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes location-out { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(16px) scale(.98); } }
@keyframes location-backdrop-in { from { opacity:0; } to { opacity:1; } }
@keyframes location-backdrop-out { from { opacity:1; } to { opacity:0; } }
@keyframes location-spin { to { transform:rotate(360deg); } }
@media(max-width:600px) { .location-dialog { width:calc(100% - 20px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); border-radius:16px; } .location-dialog-heading { padding:22px 18px; gap:12px; } .location-dialog-address { font-size:12px; } .location-dialog-footer { padding:18px; flex-direction:column; align-items:stretch; gap:14px; } .location-dialog-footer p { text-align:center; } .location-dialog-route { width:100%; } }
@media(prefers-reduced-motion:reduce) { .location-dialog, .location-dialog::backdrop, .location-dialog * { animation:none!important; transition:none!important; } }
