
/* =========================================
   HOME LAND DISCOVERY FEED
========================================= */

.home-screen {
    background: #111111;
    color: #ffffff;
}

.home-feed {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
}

.home-feed::-webkit-scrollbar {
    display: none;
}

/* One full-height portrait reel */
.reel {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #181818;
    isolation: isolate;
}

.reel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #181818;
    z-index: -2;
}

.reel-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.28),
            transparent 20%,
            transparent 52%,
            rgba(0, 0, 0, 0.72) 100%
        );
}

/* Play / pause control */
.reel-play-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.reel-play-toggle.paused {
    opacity: 1;
}

/* Interaction buttons */
.reel-actions {
    position: absolute;
    right: 12px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
    z-index: 5;
}

.reel-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #ffffff;
    min-width: 43px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.action-icon {
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
}

.action-count {
    font-size: 10px;
    font-weight: 700;
}

.reel-action.selected {
    color: #ff3b68;
}

/* Listing information */
.reel-information {
    position: absolute;
    left: 17px;
    right: 75px;
    bottom: 43px;
    z-index: 5;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.reel-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 7px;
}

.reel-location {
    font-size: 11px;
    color: #eeeeee;
    line-height: 1.5;
}

/* Video progress */
.reel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.reel-seek {
    appearance: none;
    width: 100%;
    height: 3px;
    margin: 0;
    cursor: pointer;
    background: rgba(255,255,255,0.42);
}

.reel-seek::-webkit-slider-thumb {
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.reel-seek::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
}

/* Desktop previous/next buttons */
.desktop-reel-controls {
    position: absolute;
    top: 50%;
    left: max(10px, calc(50% - 285px));
    right: auto;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.desktop-reel-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(80, 80, 80, 0.65);
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
}

.desktop-reel-controls button:hover {
    background: rgba(115, 115, 115, 0.9);
}

/* Loading and empty states */
.feed-loading,
.feed-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    background: #171717;
}

.feed-empty h2 {
    font-size: 21px;
    margin-bottom: 10px;
}

.feed-empty p {
    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.6;
}

.empty-icon {
    font-size: 35px;
    margin-bottom: 18px;
}

/* Temporary notifications */
.feed-toast {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: 75px;
    transform: translateX(-50%);
    padding: 11px 17px;
    border-radius: 30px;
    background: rgba(30, 30, 30, 0.92);
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.feed-toast.visible {
    opacity: 1;
}

.video-unavailable {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #171717;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 25px;
}

.video-unavailable span {
    font-size: 35px;
}

.video-unavailable small {
    color: #aaaaaa;
    font-size: 11px;
}

.reel.video-failed .video-unavailable {
    display: flex;
}

.reel.video-failed .reel-play-toggle {
    display: none;
}



/* =========================================
   EXPANDABLE PROPERTY DETAILS
========================================= */

.reel-information {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.listing-details {
    position: absolute;
    inset: 0;
    z-index: 50;
    visibility: hidden;
    pointer-events: none;
}

.listing-details.open {
    visibility: visible;
    pointer-events: auto;
}

.details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.listing-details.open .details-backdrop {
    opacity: 1;
}

.details-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 78%;
    overflow-y: auto;
    padding: 12px 22px 28px;
    border-radius: 20px 20px 0 0;
    background: #171717;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.25);
}

.listing-details.open .details-sheet {
    transform: translateY(0);
}

.details-handle {
    width: 38px;
    height: 4px;
    border-radius: 10px;
    background: #777777;
    margin: 0 auto 18px;
}

.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.details-header span {
    color: #a5a5a5;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.details-header button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #303030;
    color: #ffffff;
    font-size: 23px;
    cursor: pointer;
}

.details-sheet h2 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 8px;
}

.details-location {
    font-size: 12px;
    color: #bcbcbc;
}

.details-divider {
    height: 1px;
    background: #353535;
    margin: 22px 0;
}

.details-sheet h3 {
    font-size: 14px;
    margin-bottom: 9px;
}

.details-description {
    font-size: 13px;
    line-height: 1.7;
    color: #c4c4c4;
}

.details-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.details-actions button {
    min-height: 46px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.details-primary {
    border: 0;
    background: #ffffff;
    color: #111111;
}

.details-secondary {
    border: 1px solid #555555;
    background: transparent;
    color: #ffffff;
}

.details-note {
    margin-top: 14px;
    color: #888888;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 768px) {
    .details-sheet {
        left: 50%;
        right: auto;
        width: min(100%, 460px);
        transform: translate(-50%, 100%);
    }

    .listing-details.open .details-sheet {
        transform: translate(-50%, 0);
    }
}


/* Mobile */
@media (max-width: 767px) {

    .desktop-reel-controls {
        display: none;
    }

    .reel-actions {
        right: 10px;
        bottom: 95px;
        gap: 17px;
    }

    .reel-information {
        left: 14px;
        bottom: 38px;
    }

    .reel-title {
        font-size: 16px;
    }

}

/* Smaller desktop screens */
@media (min-width: 768px) {
    .reel-play-toggle {
        cursor: pointer;
    }
}
