/* Media Grid Layout */
.media-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

/* 1. Top Video Section */
.video-container {
    width: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}

/* Overlay Generic */
.video-overlay,
.trigger-overlay {
    position: absolute;
    bottom: 20px;
    pointer-events: none;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-overlay h2 {
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.btn-fullscreen-video {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s;
}

.btn-fullscreen-video:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 2. Media Row (Split) */
.media-row {
    display: flex;
    gap: 10px;
    height: 250px;
}

.media-col {
    flex: 1;
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

/* Left: 360 Trigger */
.media-360-trigger {
    cursor: pointer;
}

.pannellum-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s;
}

.media-360-trigger:hover .pannellum-thumbnail {
    transform: scale(1.05);
}

.trigger-overlay {
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
    justify-content: center;
}

.media-360-trigger:hover .trigger-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.4);
}

.icon-circle i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.icon-circle span {
    font-size: 0.7rem;
    font-weight: bold;
}

.trigger-overlay p {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    text-align: center;
}

/* Right: Mini Gallery */
.mini-gallery-container {
    position: relative;
}

.mini-gallery-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.mini-slide.active {
    opacity: 1;
    z-index: 1;
}

.mini-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mini Controls */
.mini-prev,
.mini-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.mini-gallery-container:hover .mini-prev,
.mini-gallery-container:hover .mini-next {
    opacity: 1;
}

.mini-prev {
    left: 10px;
}

.mini-next {
    right: 10px;
}

.mini-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* FULLSCREEN MODALS */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 300000;
    display: none;
    flex-direction: column;
}

.fullscreen-modal.active {
    display: flex;
}

.close-fs {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 300002;
    text-shadow: 0 0 10px #000;
}

/* Pannellum Size */
#pannellumViewer {
    width: 100%;
    height: 100%;
}

/* FS Video */
.fs-video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-video-container video {
    max-width: 100%;
    max-height: 100%;
}

/* FS Gallery */
.gallery-mode {
    background: rgba(0, 0, 0, 0.95);
}

.fs-gallery-track {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-slide {
    display: none;
    max-width: 90%;
    max-height: 90vh;
}

.fs-slide.active {
    display: block;
    animation: fadeIn 0.3s;
}

.fs-slide img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.fs-prev,
.fs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    z-index: 300001;
    transition: transform 0.2s;
}

.fs-prev:hover,
.fs-next:hover {
    transform: translateY(-50%) scale(1.2);
    color: #79b100;
}

.fs-prev {
    left: 20px;
}

.fs-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-overlay h2 {
        font-size: 1.5rem;
    }

    .media-row {
        height: 180px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }

    .icon-circle i {
        font-size: 1rem;
    }

    .icon-circle span {
        font-size: 0.6rem;
    }

    .trigger-overlay p {
        font-size: 0.8rem;
    }

    /* Red Stats Responsive Inner */
    .prop-main-title {
        font-size: 1.8rem;
    }

    .red-stats-card {
        /* display: flex; */
        /* flex-direction: column; */
        /* align-items: flex-start; */
        /* padding: 1.5rem; */
        /* gap: 15px; */
    }

    .stat-item {
        /* align-items: flex-start; */
        /* width: 100%; */
    }

    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .red-stats-card {

    flex-wrap: initial;
}
}

/* Property Header Redesign - GLOBAL STYLES */
.property-header-redesign {
    /* margin-bottom: 2rem; */
    font-family: 'Montserrat', sans-serif;
}

.prop-subtitle {
    font-size: 1rem;
    color: #79b100;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.prop-main-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.prop-location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.prop-location-row i {
    color: #79b100;
}

/* Red Stats Card */
.red-stats-card {
    background: #ff0000b5;
    /* border-radius: 15px; */
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    gap: 15px;
    grid-template-columns: 1fr 1fr 1fr;
    /* width: 300px; */
    flex-wrap: wrap;
    justify-items: center;
}

.stat-item {
    /* display: flex; */
    /* flex-wrap: wrap; */
    align-items: center;
    text-align: center;
    /* width: 33%; */
    /* justify-items: center; */
    /* justify-content: inherit; */
}

.stat-label {
    font-size: 0.9rem;
    color: #ffd7d7;
    margin-bottom: 0px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 20px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.stat-value b {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-value small {
    font-size: 1.1rem;
    font-weight: 400;
}