/* Customer-facing agency profile. */
.azki-agency-single { background: #f8fafc; }
.agency-profile { color: #182b43; padding-bottom: 72px; }
.agency-profile__header { padding-top: 24px; padding-bottom: 26px; }
.agency-profile__header .azki-breadcrumbs { margin-bottom: 24px; font-size: 12px; color: #718096; }
.agency-profile__eyebrow,.agency-section-label { display: block; font-size: 12px; font-weight: 600; color: #3978d6; margin-bottom: 10px; }
.agency-profile__title-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.agency-profile__title-row h1 { font-size: clamp(24px,3vw,38px); line-height: 1.65; letter-spacing: -.8px; margin: 0; color: #152b46; }
.agency-profile__title-row .azki-agency-stars { background: #fff5dc; border: 1px solid #f4e7c2; border-radius: 12px; padding: 3px 12px; font-size: 19px; }
.agency-profile__intro { margin: 9px 0 0; font-size: 13px; color: #68798d; }
.agency-profile__intro span { margin: 0 8px; }
.agency-photos { margin-bottom: 32px; }
.agency-photos__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; border-radius: 24px; overflow: hidden; height: clamp(240px,34vw,440px); }
.agency-photos__grid:has(.agency-photos__item:nth-child(3)) { grid-template-rows: 1fr 1fr; }
.agency-photos__grid:has(.agency-photos__item:nth-child(3)) .agency-photos__item:first-child { grid-row: span 2; }
.agency-photos__grid.is-single { grid-template-columns: 1fr; }
.agency-photos__item { position: relative; min-height: 0; overflow: hidden; background: #e8edf3; }
.agency-photos__item.is-extra { display: none; }
.agency-photos .agency-photos__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.agency-photos__item:hover img { transform: scale(1.035); }
.agency-photos__zoom { position: absolute; inset-inline-end: 16px; bottom: 16px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #ffffff80; background: #ffffffed; color: #182b43; border-radius: 50%; font-size: 22px; }
.agency-photos__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; color: #68798d; }
.agency-photos__caption button { font: inherit; font-weight: 600; color: #243d5c; background: white; border: 1px solid #dce4ee; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.agency-profile__layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; margin-bottom: 48px; }
.agency-profile__main { display: grid; gap: 24px; min-width: 0; }
.agency-panel { border: 1px solid #e4eaf1; border-radius: 22px; padding: 28px; background: #fff; box-shadow: 0 8px 32px #1b355105; }
.agency-panel h2 { color: #182b43; font-size: 21px; margin: 0 0 10px; line-height: 1.6; }
.agency-muted { color: #718096; line-height: 1.9; font-size: 13px; margin: 0; }
.agency-details__list { margin: 24px 0 0; }
.agency-details__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 17px 0; border-top: 1px solid #edf0f5; }
.agency-details__list dt { color: #7b8797; font-size: 12px; }
.agency-details__list dd { margin: 0; line-height: 1.9; font-size: 14px; color: #33465f; }
.agency-contact { position: sticky; top: 100px; border-top: 3px solid #4389ef; }
.agency-contact__icon,.agency-location__pin { display: grid; place-items: center; width: 44px; height: 44px; background: #eef5ff; color: #3978d6; border-radius: 14px; font-size: 25px; margin-bottom: 18px; }
.agency-contact h2 { font-size: 20px; }
.agency-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; min-height: 52px; padding: 13px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.agency-button--primary { color: #fff; background: #2878e9; margin-top: 24px; box-shadow: 0 6px 16px #2878e925; }
.agency-button--primary:hover { color: white; background: #1763ca; }
.agency-button--secondary { margin-top: 10px; background: #f4f7fb; color: #304c70; border: 1px solid #e5ebf3; }
.agency-button--secondary:hover { background: #eaf1fc; }
.agency-contact__note { color: #8490a0; font-size: 11px; line-height: 1.9; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #edf0f5; }
.agency-contact__other { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12px; overflow-wrap: anywhere; }
.agency-contact__other a { direction: ltr; }
.agency-location { scroll-margin-top: 100px; }
.agency-location__head { display: flex; align-items: center; justify-content: space-between; }
.agency-location iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; display: block; margin-top: 16px; }
.agency-route-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 20px; font-size: 12px; }
.agency-route-links > span { color: #7b8797; margin-inline-end: auto; }
.agency-route-links a { color: #2e537f; border: 1px solid #e1e8f1; border-radius: 9px; padding: 8px 12px; text-decoration: none; }
.agency-profile__content { font-size: 13px; line-height: 2; color: #6f7f93; }
.agency-profile__content p:last-child { margin-bottom: 0; }
.agency-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 20px 28px; border: 0; background: #0c1320f5; color: #fff; box-sizing: border-box; }
.agency-lightbox::backdrop { background: #0c1320ee; }
.agency-lightbox__bar { display: flex; justify-content: space-between; align-items: center; height: 52px; color: #d8e1ed; font-size: 14px; }
.agency-lightbox button { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid #ffffff38; border-radius: 50%; color: white; background: #ffffff0d; font: inherit; font-size: 23px; cursor: pointer; }
.agency-lightbox button:hover { background: #ffffff24; }
.agency-lightbox__stage { display: flex; align-items: center; gap: 20px; height: calc(100% - 64px); }
.agency-lightbox figure { margin: 0; flex: 1; min-width: 0; text-align: center; }
.agency-lightbox img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.agency-lightbox figcaption { margin-top: 16px; font-size: 13px; color: #c6d0df; }
.agency-profile :is(a,button):focus-visible,.agency-lightbox button:focus-visible { outline: 3px solid #66b5ff; outline-offset: 4px; }
@media(max-width: 960px) {
 .agency-profile__layout { grid-template-columns: minmax(0,1fr) 285px; gap: 18px; }
 .agency-panel { padding: 22px; }
}
@media(max-width: 740px) {
 .agency-profile__layout { display: flex; flex-direction: column; gap: 20px; }
 .agency-profile__main { display: contents; }
 .agency-contact { position: static; order: -1; width: 100%; }
 .agency-profile__main > section { width: 100%; }
 .agency-profile__header { padding-top: 12px; padding-bottom: 20px; }
 .agency-profile__title-row { gap: 10px; }
 .agency-profile__title-row h1 { font-size: 24px; }
 .agency-profile__title-row .azki-agency-stars { font-size: 15px; }
 .agency-photos__grid { height: 260px; gap: 7px; border-radius: 18px; grid-template-columns: 1.2fr 1fr; }
 .agency-photos__caption { font-size: 11px; }
 .agency-photos__caption button { padding: 9px; }
 .agency-contact__icon { display: none; }
 .agency-contact .agency-muted { margin-bottom: 16px; }
 .agency-contact .agency-button--primary { margin-top: 0; }
 .agency-panel h2 { font-size: 19px; }
 .agency-details__list > div { grid-template-columns: 85px 1fr; gap: 10px; }
 .agency-lightbox { padding: 12px; }
 .agency-lightbox__stage { gap: 8px; }
 .agency-lightbox button { width: 36px; height: 36px; }
 .agency-route-links > span { flex-basis: 100%; }
}
@media(prefers-reduced-motion: reduce) { .agency-photos .agency-photos__image { transition: none; } }
.agency-lightbox button[hidden] { display: none; }
.agency-lightbox [data-gallery-counter] { direction: ltr; unicode-bidi: isolate; }

/* Center the image against the viewport, independent of page scroll and RTL. */
dialog.agency-lightbox {
 position: fixed;
 inset: 0;
 width: 100%;
 height: 100%;
 height: 100dvh;
 max-width: 100%;
 max-height: 100dvh;
 margin: 0;
 transform: none;
 overflow: hidden;
}
.agency-lightbox .agency-lightbox__bar { position: absolute; inset: 16px 24px auto; z-index: 2; }
.agency-lightbox .agency-lightbox__stage { position: absolute; inset: 76px 24px 32px; height: auto; display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; }
.agency-lightbox .agency-lightbox__stage figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; margin: 0; }
.agency-lightbox .agency-lightbox__stage img { display: block; margin: auto; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; flex: 0 1 auto; }
.agency-lightbox .agency-lightbox__stage figcaption { flex: 0 0 auto; margin: 12px 0 0; }
@media(max-width: 740px) {
 .agency-lightbox .agency-lightbox__stage { inset: 70px 10px 24px; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }
 .agency-lightbox .agency-lightbox__bar { inset: 12px 14px auto; }
}
.agency-lightbox .agency-lightbox__stage { inset-block: 76px; }
.agency-lightbox .agency-lightbox__stage img { margin: 0; max-height: calc(100dvh - 180px); }
.agency-lightbox .agency-lightbox__stage figcaption { position: fixed; inset: auto 60px 24px; margin: 0; text-align: center; }
@media(max-width: 740px) { .agency-lightbox .agency-lightbox__stage { inset-block: 64px; } }
.agency-route-links a { display: inline-flex; align-items: center; gap: 7px; }

/* Match the province finder page's visual language throughout the office profile. */
.azki-agency-single { background:radial-gradient(ellipse at 0 10%,#edf4ff,transparent 45%),#f6f8fc; }
.agency-profile__header { padding-top:20px; padding-bottom:0; }
.agency-profile__header .azki-breadcrumbs { margin-bottom:16px; }
.agency-profile__hero { position:relative; isolation:isolate; overflow:hidden; padding:36px 38px 40px; border-radius:28px; background:radial-gradient(ellipse at 15% 0,#8fd3ff66,transparent 62%),linear-gradient(120deg,#398ef1,#2876db); box-shadow:0 18px 50px #164c9218; }
.agency-profile__hero::after { content:''; position:absolute; width:300px; height:300px; left:-80px; bottom:-210px; border:1px solid #ffffff17; border-radius:50%; box-shadow:0 0 0 45px #ffffff06,0 0 0 90px #ffffff04; z-index:-1; pointer-events:none; }
.agency-profile__hero .agency-profile__eyebrow { display:flex; align-items:center; gap:8px; color:#e4f3ff; margin-bottom:14px; font-size:12px; }
.agency-profile__eyebrow::before { content:''; width:6px; height:6px; border-radius:50%; background:#94d2ff; box-shadow:0 0 0 4px #94d2ff15; }
.agency-profile__hero h1 { color:#fff; font-size:clamp(25px,3.2vw,40px); line-height:1.8; }
.agency-profile__hero .azki-agency-stars { background:#ffefcb; border-color:#fff2d8; color:#aa741c; box-shadow:0 4px 16px #0a2b4910; font-size:17px; }
.agency-profile__hero .agency-profile__intro { color:#f0f7ff; font-size:12px; }
.agency-profile__shortcuts { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.agency-profile__shortcuts a { display:inline-flex; align-items:center; gap:20px; background:#ffffff0c; border:1px solid #ffffff26; padding:9px 14px; border-radius:10px; color:#e5f1ff; font-size:11px; text-decoration:none; transition:background .2s,transform .2s; }
.agency-profile__shortcuts a:hover { background:#ffffff1f; transform:translateY(-2px); }
.agency-photos { margin-top:22px; margin-bottom:30px; scroll-margin-top:100px; }
.agency-photos__grid { height:clamp(260px,30vw,390px); gap:10px; border:6px solid white; border-radius:26px; box-shadow:0 10px 36px #244b7510; }
.agency-photos__item:first-child::after { content:''; position:absolute; inset:60% 0 0; background:linear-gradient(transparent,#102b4522); pointer-events:none; }
.agency-photos__zoom { border-radius:12px; box-shadow:0 4px 14px #102b4520; transition:transform .2s,background .2s; z-index:1; }
.agency-photos__item:hover .agency-photos__zoom { transform:translateY(-3px); background:white; }
.agency-photos__caption { margin-top:10px; padding-inline:6px; }
.agency-photos__caption > span { color:#8b9cb1; }
.agency-photos__caption button { border-color:#dce8f8; color:#3975c2; background:#edf5ff; border-radius:10px; padding:10px 16px; transition:background .2s; }
.agency-photos__caption button:hover { background:#e1efff; }
.agency-profile__layout { margin-top:28px; gap:26px; grid-template-columns:minmax(0,1fr) 350px; }
.agency-panel { border:1px solid #e0e8f2; border-radius:23px; padding:30px; box-shadow:0 8px 28px #315b8606; }
.agency-panel h2 { letter-spacing:-.4px; font-size:22px; }
.agency-section-label { color:#5487c0; font-size:11px; }
.agency-details { scroll-margin-top:100px; }
.agency-details__list { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:24px; }
.agency-details__list > div { display:block; background:#f7f9fc; padding:16px 18px; border:1px solid #eef2f7; border-radius:13px; }
.agency-details__list > div:last-child { grid-column:1 / -1; }
.agency-details__list dt { font-size:11px; color:#8a9db5; margin-bottom:7px; }
.agency-details__list dd { font-size:13px; color:#3c5678; }
.agency-contact { border:1px solid #dae7f8; background:radial-gradient(ellipse at 0 0,#ecf5ff,transparent 55%),white; padding:28px; box-shadow:0 12px 36px #3262990a; }
.agency-contact::before { content:''; position:absolute; width:55px; height:3px; background:#4389ed; border-radius:0 0 4px 4px; top:0; right:28px; }
.agency-contact__icon { width:50px; height:50px; border-radius:16px; background:#e5f0ff; border:1px solid #d7e9ff; color:#367edb; }
.agency-contact h2 { font-size:21px; }
.agency-contact .agency-button { border-radius:12px; transition:background .2s,transform .2s,box-shadow .2s; }
.agency-contact .agency-button--primary { background:linear-gradient(120deg,#2e80ed,#2673df); box-shadow:0 8px 20px #2878e921; }
.agency-contact .agency-button--primary:hover { transform:translateY(-2px); box-shadow:0 10px 24px #2878e931; }
.agency-contact .agency-button--secondary { background:white; border-color:#dce7f5; color:#4f78a8; }
.agency-contact__note { background:#f6f9fd; border:1px solid #eaf0f8; padding:12px; border-radius:10px; font-size:11px; }
.agency-location { padding:26px; background:linear-gradient(145deg,white,#fbfdff); }
.agency-location__pin { background:#eaf4ff; border:1px solid #deecfc; border-radius:14px; }
.agency-location iframe { border:4px solid white; box-shadow:0 0 0 1px #e4ecf5; border-radius:17px; height:340px; }
.agency-route-links { gap:9px; }
.agency-route-links a { background:white; padding:9px 13px; border-color:#e1e9f3; border-radius:11px; box-shadow:0 3px 10px #244b7505; transition:transform .2s,border-color .2s; }
.agency-route-links a:hover { border-color:#a8c8f2; transform:translateY(-2px); }
.agency-profile__content { border-inline-start:3px solid #d8e7fa; font-size:12px; background:#fbfdff; }
.agency-profile .azki-agency-entry__related-head { align-items:center; margin-bottom:20px; }
.agency-profile .azki-agency-entry__related-head h2 { color:#284b73; font-size:21px; }
.agency-profile .azki-agency-entry__related-head > a { border:1px solid #dce7f5; border-radius:10px; padding:9px 14px; background:white; color:#4f78a8; font-size:12px; }
.agency-profile .azki-agency-entry__related li a { background:white; border:1px solid #e0e8f2; border-radius:17px; box-shadow:0 5px 20px #315b8605; padding:22px; }
.agency-profile .azki-agency-entry__related li a:hover { transform:translateY(-3px); border-color:#afcdf4; box-shadow:0 10px 28px #2965a610; }
.agency-profile .azki-agency-entry__related .azki-agency-stars { color:#aa741c; font-size:13px; }
@media(max-width:960px) { .agency-profile__layout { grid-template-columns:minmax(0,1fr) 290px; gap:18px; } .agency-panel { padding:23px; } }
@media(max-width:740px) {
 .agency-profile__hero { padding:26px 22px 28px; border-radius:22px; }
 .agency-profile__hero h1 { font-size:25px; }
 .agency-profile__hero .agency-profile__title-row { gap:10px; }
 .agency-profile__hero .azki-agency-stars { font-size:14px; padding:3px 10px; }
 .agency-profile__shortcuts { gap:7px; margin-top:20px; }
 .agency-profile__shortcuts a { gap:10px; padding:8px 10px; font-size:10px; }
 .agency-photos { margin-top:16px; }
 .agency-photos__grid { height:245px; border-width:4px; border-radius:20px; gap:6px; }
 .agency-profile__layout { display:flex; margin-top:20px; }
 .agency-contact { padding:24px; }
 .agency-contact__icon { display:grid; width:44px; height:44px; margin-bottom:16px; }
 .agency-details__list { gap:10px; grid-template-columns:1fr; }
 .agency-details__list > div { padding:14px 16px; }
 .agency-location iframe { height:280px; }
 .agency-profile .azki-agency-entry__related-head h2 { font-size:19px; }
}
@media(prefers-reduced-motion:reduce) { .agency-profile :is(a,button),.agency-photos__zoom { transition:none; } }
