body.inpictures-guide-page .site-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.inpictures-guide {
    position: relative;
    flex: 1;
    height: calc(100vh - var(--site-header-height));
    min-height: 420px;
}

@media (min-width: 768px) {
    .inpictures-guide .map-sheet-controls {
        pointer-events: auto;
        max-height: calc(100vh - var(--site-header-height) - 8.5rem);
    }
}

.inpictures-guide .map-sheet-controls .text-muted,
.inpictures-guide .map-basemap-active-label,
.inpictures-guide #guideCount {
    color: rgba(255, 255, 255, 0.72) !important;
}

.inpictures-guide .map-panel-toggle .bi-chevron-down {
    transition: transform 0.15s ease;
}

.inpictures-guide .map-panel-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.inpictures-guide-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.inpictures-guide-filters:empty {
    display: none;
}

.inpictures-guide-filters button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.78rem;
}

.inpictures-guide-filters button.is-on {
    background: #1f6f54;
    border-color: #1f6f54;
    color: #fff;
}

.inpictures-guide-count {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.inpictures-guide-extra {
    display: inline-block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 0.8rem;
}

.inpictures-guide .map-split-view {
    position: absolute;
    inset: 0;
}

.inpictures-guide .map-container--google {
    position: absolute;
    inset: 0;
    height: 100%;
}

#guideMap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #d7e2dc;
}

dialog.inpictures-guide-modal {
    width: min(500px, calc(100vw - 2rem));
    max-width: min(500px, calc(100vw - 2rem));
    max-height: min(300px, calc(100vh - 2rem));
    margin: auto;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.inpictures-guide-modal::backdrop {
    background: rgba(17, 24, 22, 0.45);
}

dialog.guide-country-leave {
    width: min(22rem, calc(100vw - 2rem));
    margin: auto;
    border: 0;
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

dialog.guide-country-leave::backdrop {
    background: rgba(17, 24, 22, 0.45);
}

.guide-country-leave h2 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.guide-country-leave p {
    margin: 0 0 0.75rem;
}

.guide-country-leave-name {
    font-weight: 600;
}

.guide-country-leave-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.inpictures-guide-modal-close {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    z-index: 2;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.inpictures-guide-list {
    display: none;
}

.inpictures-guide-row {
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.85rem;
}

.inpictures-guide-row.is-on {
    border-color: #1f6f54;
    color: #1f6f54;
}

.inpictures-guide-detail {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-height: min(300px, calc(100vh - 2rem));
}

.inpictures-guide-detail-media {
    flex: 0 0 180px;
    width: 180px;
    max-width: 42%;
    min-width: 0;
    overflow: hidden;
    background: #111;
}

.inpictures-guide-detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 180px;
    max-height: min(300px, calc(100vh - 2rem));
    object-fit: cover;
}

.inpictures-guide-detail-copy {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 1.7rem 0.8rem 0.85rem;
    overflow: auto;
    max-height: min(300px, calc(100vh - 2rem));
}

.inpictures-guide-detail-copy h2 {
    margin-bottom: 0.3rem;
}

.inpictures-guide-detail-copy > p:last-of-type {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.inpictures-guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.55rem;
    font-size: 0.85rem;
}

.inpictures-guide-detail-copy h2 a {
    color: inherit;
    text-decoration: none;
}

.inpictures-guide-detail-copy h2 a:hover {
    text-decoration: underline;
}

.inpictures-guide-open {
    display: inline-block;
    margin-top: 0.7rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #1f6f54;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.inpictures-guide-open:hover {
    background: #185743;
    color: #fff;
}

.guide-pin-icon,
.guide-country-pin {
    background: transparent;
    border: 0;
}

.guide-country-pin img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    background: #111;
}

.guide-country-cluster {
    background: transparent;
    border: 0;
}

.guide-country-cluster span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1f6f54;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    font-weight: 700;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    dialog.inpictures-guide-modal,
    .inpictures-guide-detail,
    .inpictures-guide-detail-copy {
        max-height: min(78vh, 420px);
    }

    .inpictures-guide-detail {
        flex-direction: column;
    }

    .inpictures-guide-detail-media {
        flex: none;
        width: 100%;
        max-width: none;
        max-height: 140px;
    }

    .inpictures-guide-detail-media img {
        height: 140px;
        min-height: 0;
        max-height: 140px;
    }
}

@media (max-width: 640px) {
    .inpictures-guide-panel {
        top: 0.5rem;
        left: 0.5rem;
        width: calc(100vw - 1rem);
    }
}
