/* Our Office page (contact.aspx -> Control\OurOffice\ctrlOfficeProfile.ascx): office photograph + profile header, About our office, Contact our office + map.
   Built on the Agent Profile styling (/CSS/agentprofile.css: .apBtn buttons, .apRow rows, .apIco icons, .apSocial) - only what the office page adds is here.
   Everything is scoped to .opPage (which also carries .apProfile), so no other template changes. The website's own font, text colour and
   button colours are used (nothing hard-coded). */

.apProfile.opPage{--ap-border:#D1D5DB;--ap-radius:6px;box-sizing:border-box;max-width:min(1200px, calc(100vw - 40px));margin:0 0 40px;text-align:left;}
.apProfile.opPage *, .apProfile.opPage *::before, .apProfile.opPage *::after{box-sizing:border-box;}

/* other offices of a multi-office website: quiet text links above the photograph */
.opPage .opSwitch{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0 0 20px;padding:0;font-size:14px;}
.opPage .opSwitchLink{color:inherit;text-decoration:none;opacity:.75;}
.opPage .opSwitchLink:hover{text-decoration:underline;opacity:1;}
.opPage .opSwitchLink.is-current{font-weight:600;opacity:1;text-decoration:underline;text-underline-offset:4px;}

/* ---- photograph: wide landscape (16:7), the picture fills the frame (centred) without stretching ---- */
.opPage .opPhoto{display:block;width:100%;aspect-ratio:16 / 7;margin:0 0 28px;overflow:hidden;border-radius:8px;background:color-mix(in srgb, currentColor 6%, transparent);}
.opPage .opPhotoImg{display:block;width:100% !important;max-width:none !important;height:100% !important;object-fit:cover;object-position:center 40%;border:0;border-radius:0;box-shadow:none;}

/* ---- header: office name (H1), address, the three contact buttons ---- */
.opPage .opHeader{margin:0;padding:0;}
.opPage h1.opName{margin:0 0 8px;padding:0;font-size:34px;font-weight:600;line-height:1.15;color:inherit;text-transform:none;letter-spacing:normal;}
.opPage .opAddress{margin:0;padding:0;font-size:16px;line-height:1.45;color:inherit;opacity:.85;}
.opPage .opAddress:not(:has(span:not(:empty))){display:none;}
.opPage .opActions{margin-top:20px;}
.apProfile.opPage .apBtn{height:44px;min-height:44px;}
.apProfile.opPage .apBtn::before{content:"";flex:0 0 18px;width:18px;height:18px;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;}
.apProfile.opPage .opBtnMail::before{-webkit-mask-image:url(/i/emailicon.svg);mask-image:url(/i/emailicon.svg);}
.apProfile.opPage .opBtnCall::before{-webkit-mask-image:url(/i/phoneicon.svg);mask-image:url(/i/phoneicon.svg);}
.apProfile.opPage .opBtnDir::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 10.471a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0zm6.07.1c0 4.105-4.423 8.594-6.915 10.796a2.481 2.481 0 0 1-3.31 0c-2.491-2.202-6.916-6.69-6.916-10.796a8.57 8.57 0 1 1 17.142 0zm-1.428 0a7.142 7.142 0 0 0-14.284 0c0 1.583.878 3.422 2.242 5.26 1.334 1.799 2.981 3.397 4.19 4.466a1.053 1.053 0 0 0 1.42 0c1.209-1.069 2.856-2.667 4.19-4.465 1.365-1.84 2.242-3.678 2.242-5.261z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 10.471a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0zm6.07.1c0 4.105-4.423 8.594-6.915 10.796a2.481 2.481 0 0 1-3.31 0c-2.491-2.202-6.916-6.69-6.916-10.796a8.57 8.57 0 1 1 17.142 0zm-1.428 0a7.142 7.142 0 0 0-14.284 0c0 1.583.878 3.422 2.242 5.26 1.334 1.799 2.981 3.397 4.19 4.466a1.053 1.053 0 0 0 1.42 0c1.209-1.069 2.856-2.667 4.19-4.465 1.365-1.84 2.242-3.678 2.242-5.261z'/%3E%3C/svg%3E");}

/* ---- sections ---- */
.opPage .opDivider{height:0;margin:32px 0;border:0;border-top:1px solid var(--ap-border);opacity:.7;}
.opPage .opHeading{margin:0 0 16px;padding:0;font-size:22px;font-weight:600;line-height:1.25;color:inherit;text-transform:none;letter-spacing:normal;}

/* about: the office's own rich text, left as written; a comfortable reading width, paragraph spacing, no fixed height or Read more */
.opPage .opRich{max-width:820px;font-size:16px;line-height:1.65;color:inherit;overflow-wrap:anywhere;}
.opPage .opRich > span{display:block;}
.opPage .opRich > span + span{margin-top:1em;}
.opPage .opRich p{margin:0 0 1em;}
.opPage .opRich p:last-child{margin-bottom:0;}
.opPage .opRich img{max-width:100%;height:auto;}
.opPage .opRich .opTagline{font-size:18px;font-weight:500;line-height:1.5;}

/* contact: details on the left, map on the right; the details use the full width when there is no map */
.opPage .opCols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start;}
.opPage .opCols.noMap{grid-template-columns:minmax(0,560px);}
.opPage .opInfo{min-width:0;}
.opPage .opInfo:not(:has(.apRow, .apSocial)){display:none;}
.opPage .opInfo .apRow{align-items:flex-start;gap:12px;margin:0 0 18px;}
.opPage .opInfo .apRow:last-of-type{margin-bottom:0;}
.opPage .opInfo .apIco{margin-top:2px;}
.opPage .opRowText{display:flex;flex-direction:column;gap:2px;min-width:0;}
.opPage .opRowLabel{font-size:13px;line-height:1.3;opacity:.7;}
.apProfile.opPage .apIcoPin{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 10.471a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0zm6.07.1c0 4.105-4.423 8.594-6.915 10.796a2.481 2.481 0 0 1-3.31 0c-2.491-2.202-6.916-6.69-6.916-10.796a8.57 8.57 0 1 1 17.142 0zm-1.428 0a7.142 7.142 0 0 0-14.284 0c0 1.583.878 3.422 2.242 5.26 1.334 1.799 2.981 3.397 4.19 4.466a1.053 1.053 0 0 0 1.42 0c1.209-1.069 2.856-2.667 4.19-4.465 1.365-1.84 2.242-3.678 2.242-5.261z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 10.471a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0zm6.07.1c0 4.105-4.423 8.594-6.915 10.796a2.481 2.481 0 0 1-3.31 0c-2.491-2.202-6.916-6.69-6.916-10.796a8.57 8.57 0 1 1 17.142 0zm-1.428 0a7.142 7.142 0 0 0-14.284 0c0 1.583.878 3.422 2.242 5.26 1.334 1.799 2.981 3.397 4.19 4.466a1.053 1.053 0 0 0 1.42 0c1.209-1.069 2.856-2.667 4.19-4.465 1.365-1.84 2.242-3.678 2.242-5.261z'/%3E%3C/svg%3E");}
.apProfile.opPage .apIcoLink{-webkit-mask-image:url(/i/link.svg);mask-image:url(/i/link.svg);}
.opPage .opInfo .apSocial{margin-top:20px;}

.opPage .opMapWrap{min-width:0;}
.opPage .opMap{overflow:hidden;border:1px solid var(--ap-border);border-radius:8px;}
.opPage .opMap .map{width:100% !important;height:360px !important;}
.opPage .opMapLink{display:inline-block;margin-top:12px;font-size:15px;font-weight:500;color:inherit;text-decoration:underline;text-underline-offset:3px;}
.opPage .opMapLink:hover{text-decoration:none;}
.opPage a:focus-visible{outline:2px solid currentColor;outline-offset:3px;}

/* ---- tablet / phone: the contact details stack above the map, the buttons stack full width ---- */
@media (max-width:782px){
    .opPage .opCols, .opPage .opCols.noMap{grid-template-columns:minmax(0,1fr);gap:24px;}
}
@media (max-width:699px){
    .opPage .opPhoto{aspect-ratio:16 / 9;margin-bottom:20px;border-radius:6px;}
    .opPage h1.opName{font-size:28px;}
    .opPage .opAddress{font-size:15px;}
    .opPage .opDivider{margin:24px 0;}
    .opPage .opHeading{font-size:20px;}
    .opPage .opMap .map{height:280px !important;}
}