.media-preview-block .media-caption {
    margin-top: 10px;
    text-align: center;
}

.magazine-detail-style .magazine-detail-description-cell p:last-of-type {
    margin-bottom: 0;
}
.magazine-detail-style .about-item:last-of-type {
    margin-bottom: 0;
}

.single-venue .magazine-detail-style .magazine-detail-image-cell {
    height: auto !important;
    margin-bottom: 10px;
}

.magazine-detail-image-description-block .el-blk {
    float: none;
}

@media (max-width: 480px) { /* Mobile */
    body.full-theme.single-venue .two-col .wc-l {
        padding-left: 0;
    }
    .single-venue div.apl-modern-panel-list-items .dv-front {
        width: 100%;
        margin-left: 0 !important;
    }
}
 
body.full-theme.single-venue .two-col .wc-l {
    padding: 0;
    margin: 0;
}

@media (min-width: 769px) { /* Desktop */
    .magazine-detail-style .magazine-detail-image-description-block .magazine-detail-table-cell + .magazine-detail-table-cell {
        padding-left: 1rem !important;
    }

    .apl-modern-panel-list-items.common-magazine-listing {
        padding-top: 1rem !important;
    }
}

.similar-venues-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: #F8F7F2;
}

.magazine-detail-style .magazine-detail-header-section,
.main .no-right-column {
    margin-bottom: 0px !important;
}

.magazine-detail-style .similar-venues-section {
    margin: 0 auto;
    max-width: 1136px;
    padding: 60px 1rem;
    display: block;
}

.magazine-venue-detail-style .apl-internal-content p a:not([data-type="vmore"]) {
    text-decoration: underline;
}

.magazine-detail-style .dv-front .ev-tt {
    font-size: 16px;
    padding-left: 0px;
    padding-top: 10px;
}

.magazine-detail-style .similar-venues-wrapper #similar-venue-listing {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.apl-modern-panel-list-items.common-magazine-list-items,
.apl-modern-panel-list-items.common-magazine-listing {
    padding-top: 0 !important;
}

.magazine-detail-style .similar-venues-wrapper .apl-modern-panel-list-items.common-magazine-listing {
    flex-wrap: nowrap;
}

.magazine-detail-style .similar-venues-wrapper .apl-modern-panel-list-items .fea-evt-item {
    width: calc(25% - 11.25px);
    min-width: 265px;
    margin-right: 0 !important;
    height: auto !important;
}

.event-categories .category-tag.active {
    background-color: #E2FFA1 !important;
    border: 1px solid;
}

.dv-front .venue-magazine-categories .category-tag {
    display: inline-flex !important;
    padding: 4px 10px !important;
    background-color: #f5f5f5;
    line-height: 1.7 !important;
    width: auto !important;
    text-transform: uppercase;
}

.dv-front .venue-magazine-categories .category-tag:hover {
    border: 1px solid;
}

.magazine-venue-detail-style .section-title {
    margin-bottom: 1rem;
}

.magazine-detail-style .venue-media-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.magazine-detail-style .media-thumbnail {
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.magazine-detail-style .media-thumbnail:hover {
    border-color: #ccc;
}

.magazine-detail-style .media-thumbnail.active {
    border-color: #000;
}

.magazine-detail-style .media-preview img {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
    display: block;
}

/* About & Connect Sections */
.magazine-detail-style .venue-about-section .section-title,
.magazine-detail-style .venue-connect-section .section-title {
    margin-bottom: 1.5rem;
}

.magazine-detail-style .about-item {
    margin-bottom: 1.5rem;
}

.magazine-detail-style .about-label {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.magazine-detail-style .about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.magazine-detail-style .about-tag {
    display: inline-block;
    padding: 0 10px 0 0;
    font-size: 0.875rem;
    color: #000;
    background: transparent;
}
.magazine-detail-style .about-tag:hover {
    text-decoration: underline;
}

.magazine-detail-style .connect-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.magazine-detail-style .connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #b6cfec;
    color: #000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.magazine-detail-style .connect-btn:hover {
    background-color: #5A8AC0;
    color: #000;
    text-decoration: none;
}

.magazine-detail-style .connect-btn .icon {
    font-size: 11px;
}

/* Location + Accessibility Section */
.magazine-detail-style .location-item {
    margin-bottom: 1.5rem;
}

.magazine-detail-style .location-google-map {
    display: flex;
    align-items: center;
    padding-top: 12px;
}

.magazine-detail-style .location-google-map img {
    width: 25px;
    height: 25px;
    margin-left: -5px;
}

.magazine-detail-style .location-label {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.magazine-detail-style .location-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #000;
}

.magazine-detail-style .venue-access-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.single-venue .magazine-detail-style .accessibility-content-item {
    margin: 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.magazine-detail-style .accessibility-content-item .content-right div {
    font-size: 0.875rem;
    line-height: 1.5;
}

.magazine-detail-style .acbFullContent {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Map Section */
.magazine-detail-style .venue-map-section .map-container {
    width: 100%;
    min-height: 300px;
}

.magazine-detail-style .venue-map-section .map-container .lo-map:has(canvas) {
    aspect-ratio: 1 / 1;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.magazine-detail-style .venue-map-section .lo-map,
.magazine-detail-style .venue-map-section .lo-map canvas {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.magazine-detail-style .event-date {
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
    width: fit-content;
    text-transform: uppercase;
}

/* Tab row style (next/prev arrows) – match Similar Organizations horizontal style */
.magazine-detail-style .similar-venues-section .tab-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: none;
    margin-top: 0.5rem;
}

.magazine-detail-style .similar-venues-section .tab-row .wrapper-scroll--action {
    display: inline-flex;
    gap: 0.5rem;
}

.magazine-detail-style .similar-venues-section .tab-row .wrapper-scroll--action a i:before {
    display: none;
}

.magazine-detail-style .similar-venues-section .tab-row .wrapper-scroll--action a {
    border: 2px solid #000;
    border-top: 0;
    border-right: 0;
    background: none !important;
    transform: rotateZ(45deg);
    width: 20px;
    height: 20px;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    display: inline-block;
    line-height: normal;
    text-align: center;
    color: #000;
}

.magazine-detail-style .similar-venues-section .tab-row .wrapper-scroll--action a.fea-act-next {
    transform: rotateZ(-135deg);
}

.magazine-detail-style .similar-venues-section .tab-row .wrapper-scroll--action a + a {
    margin-left: 0;
}

.magazine-detail-style .similar-venues-section .tab-row .wrapper-scroll--action a:hover {
    opacity: 0.9;
}

.no-similar {
    float: left;
    color: #666;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .apl-modern-panel-list-items.common-magazine-listing {
        padding-bottom: 2rem !important;
    }

    .similar-venues-section {
        margin-top: 50px;
    }

    .magazine-detail-style .venue-media-thumbnails {
        overflow-x: auto;
    }

    .magazine-detail-style .media-preview img,
    .magazine-detail-style .venue-video-embed {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .magazine-detail-style .connect-buttons {
        flex-direction: column;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .magazine-detail-style .connect-btn {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    div.apl-modern-panel-list-items .dv-front {
        margin-left: 5px !important;
    }

    .similar-venues-wrapper {
        left: 49%;
    }

    .no-right-column {
        padding-bottom: 0px;
    }

    .magazine-detail-style .venue-upcoming-events-section .apl-modern-panel-list-items.common-magazine-listing .fea-evt-item {
        width: 100% !important;
        flex: 0 0 100%;
    }
}

/* Vertical Scrollbar Styling - Reduce Width */
body.single-venue .magazine-venue-detail-style ::-webkit-scrollbar {
    width: 6px;
}

body.single-venue .magazine-venue-detail-style ::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

body.single-venue .magazine-venue-detail-style ::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.4);
    border-radius: 3px;
    min-height: 30px;
}

body.single-venue .magazine-venue-detail-style ::-webkit-scrollbar-thumb:hover {
    background: rgba(85, 85, 85, 0.6);
}

/* Horizontal scrollbar styling for Similar Venues list */
body.single-venue #similar-venue-listing::-webkit-scrollbar {
    height: 3px;
}

body.single-venue #similar-venue-listing::-webkit-scrollbar-track {
    background: transparent;
}

body.single-venue #similar-venue-listing::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.4);
    border-radius: 3px;
}

/* Hide search form by default for venue */
body.single-venue .magazine-search-style .select2 {
    width: 100% !important;
}
