 /* Padding, not margin, so anchor jumps land with space above the panel */ .virtual-tours-section { padding-top: var(--y-gap); padding-bottom: var(--y-gap); } .virtual-tours-section__inner { display: grid; justify-items: center; gap: 20px; padding: 32px 24px; text-align: center; background-color: var(--color-primary); border-radius: var(--border-radius); } .virtual-tours-section__text { margin: 0; font-family: var(--font-family-secondary); font-size: 26px; line-height: 1.2; color: #fff; text-wrap: balance; } .virtual-tours-section__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; } /* White outline on the green panel; fills white on hover */ .virtual-tours-section__button { --color: #fff; min-width: 140px; padding: 10px 22px; color: #fff; --btn-bg: transparent; } .virtual-tours-section__button:hover, .virtual-tours-section__button:focus-visible { color: var(--color-primary); --btn-bg: #fff; } @media (min-width: 992px) { .virtual-tours-section__inner { grid-template-columns: 1fr auto; justify-items: start; gap: 40px; padding: 36px 48px; text-align: left; } .virtual-tours-section__text { font-size: 30px; } }  .virtual-tour-toggle { gap: 8px; cursor: pointer; } .virtual-tour { position: fixed; inset: 0; z-index: var(--z-index-modal); width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; color: #fff; background-color: #1e221f; border: 0; } .virtual-tour[open] { display: grid; grid-template-rows: auto 1fr; } .virtual-tour::backdrop { background-color: #000; } .virtual-tour__bar { display: flex; align-items: center; gap: 16px; padding: max(12px, env(safe-area-inset-top)) var(--x-gap) 12px; background-color: var(--color-quinary); } .virtual-tour__title { font-family: var(--font-family-secondary); font-size: 22px; line-height: 1.2; } .virtual-tour__close { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 14px; font-size: 14px; color: #fff; cursor: pointer; border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; } .virtual-tour__close:hover, .virtual-tour__close:focus-visible { background-color: rgba(255, 255, 255, .12); } .virtual-tour__frame { display: block; width: 100%; height: 100%; border: 0; }  .popup { position: fixed; inset: 0; width: 100%; max-width: 672px; height: fit-content; max-height: 100dvh; margin: auto; padding: 16px; opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .35s ease, overlay .35s ease allow-discrete, display .35s ease allow-discrete; } .popup[open] { opacity: 1; transform: none; } .popup::backdrop { opacity: 0; background-color: rgb(40, 46, 41); transition: display .3s allow-discrete, overlay .3s allow-discrete, opacity .3s; } .popup[open]::backdrop { opacity: .6; } .popup__panel { position: relative; display: flex; align-items: flex-end; height: min(540px, calc(100dvh - 32px)); overflow: hidden; border-radius: 12px; color: #fff; background-color: var(--color-quinary); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); } /* Darkens the bottom of the photo so the text stays readable on any image */ .popup__panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(40, 46, 41, .95) 0%, rgba(40, 46, 41, .7) 45%, rgba(40, 46, 41, 0) 80%); } .popup__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* No photo: a solid panel sized to its content */ .popup--no-image .popup__panel { height: auto; max-height: calc(100dvh - 32px); } .popup--no-image .popup__panel::before { display: none; } /* Image only: the whole image at its own shape, no gradient (the image is the link, if there is one) */ .popup--image-only .popup__panel { flex-direction: column; align-items: stretch; height: auto; max-height: calc(100dvh - 32px); } .popup--image-only .popup__panel::before { display: none; } .popup--image-only .popup__image { position: static; display: block; height: auto; max-height: calc(100dvh - 32px); object-fit: contain; } .popup__image-link { display: block; cursor: pointer; } .popup__close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; font-size: 14px; border-radius: 50%; color: var(--color-quinary); background-color: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); cursor: pointer; transition: background-color .2s ease, color .2s ease; } .popup__close:hover { color: #fff; background-color: var(--color-quinary); } .popup__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; max-height: 100%; overflow-y: auto; padding: 64px 24px 28px; } .popup__title { font-family: var(--font-family-secondary); font-size: 34px; line-height: 1.1; } .popup__content { max-width: 460px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .85); } .popup__content p { font-size: inherit; } .popup__content p:last-child { margin-bottom: 0; } .popup__content a { text-decoration: underline; } .popup__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 13px 28px; border-radius: var(--border-radius); font-size: 15px; color: var(--color-quinary); background-color: #fff; cursor: pointer; transition: background-color .2s ease, color .2s ease; } .popup__btn:hover, .popup__btn:focus-visible { color: #fff; background-color: var(--color-primary); } .popup__btn-icon { font-size: 14px; } @media (min-width: 768px) { .popup__panel { height: min(460px, calc(100dvh - 32px)); } .popup__body { align-items: flex-start; padding: 64px 40px 40px; } .popup__title { font-size: 44px; } }  .chat { position: fixed; top: 50%; right: 0; z-index: var(--z-index-overlay); display: none; align-items: center; gap: 16px; padding: 16px 20px; color: #fff; background-color: var(--color-primary); border-radius: var(--border-radius) var(--border-radius) 0 0; transform: translateY(-50%) rotate(-90deg) translateX(50%); transform-origin: bottom right; } .chat__label { font-size: 18px; white-space: nowrap; } .chat__icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; font-size: 20px; color: var(--color-primary); background-color: #fff; border-radius: 50%; } /* Mobile already has the bottom call/text/apply bar */ @media (min-width: 992px) { .chat { display: flex; } } 