/* ================================================
   GURUGRAM HOMES — REELS SECTION
   Inspired by Instagram-style product reel carousels
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── SECTION WRAPPER ── */
.gh-reels-section {
    padding: 64px 0 72px;
    background: #fafaf8;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
}

/* ── HEADER ── */
.gh-reels-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 24px;
}
.gh-reels-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    color: #1a1612;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 10px;
}
.gh-reels-sub {
    font-size: 15px;
    color: #7a7060;
    margin: 0;
    font-weight: 400;
}

/* ── CAROUSEL WRAPPER ── */
.gh-reels-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    padding: 0 8px;
}

.gh-reels-track-outer {
    flex: 1;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}
.gh-reels-track-outer:active { cursor: grabbing; }

.gh-reels-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding: 8px 16px 12px;
}

/* ── INDIVIDUAL REEL CARD ── */
.gh-reel-card {
    flex: 0 0 260px;
    width: 260px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gh-reel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
}

/* ── MEDIA AREA ── */
.gh-reel-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #1a1612;
    overflow: hidden;
}

.gh-reel-media video,
.gh-reel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gh-reel-card:hover .gh-reel-media video,
.gh-reel-card:hover .gh-reel-media img {
    transform: scale(1.03);
}

/* play button */
.gh-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}
.gh-play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}
.gh-play-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translate(-50%, -50%) scale(1.1);
}
/* hide play btn when video playing */
.gh-reel-media.gh-playing .gh-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* views badge */
.gh-views-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}
.gh-views-badge svg {
    width: 13px;
    height: 13px;
    opacity: 0.85;
}

/* instagram icon */
.gh-ig-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
    z-index: 3;
}
.gh-ig-btn:hover { background: rgba(193,53,132,0.75); }
.gh-ig-btn svg { width: 17px; height: 17px; }

/* ── PROPERTY CARD BELOW VIDEO ── */
.gh-reel-property {
    padding: 14px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    border-top: 1px solid #f0ede8;
}

.gh-reel-prop-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gh-reel-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 3px;
}
.gh-status-active     { background: #e8f5ee; color: #2d6a4f; }
.gh-status-sold-out   { background: #fdecea; color: #c0392b; }
.gh-status-open-house { background: #e8f4fb; color: #1a6b8a; }

.gh-reel-prop-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1612;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'DM Sans', sans-serif;
}
.gh-reel-prop-type {
    font-size: 11px;
    color: #9a9080;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gh-reel-prop-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.gh-reel-prop-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1612;
    white-space: nowrap;
}

.gh-reel-prop-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1a1612;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.gh-reel-prop-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.gh-reel-prop-btn:hover {
    background: #b7600a;
    transform: translateX(2px);
    color: #fff;
    text-decoration: none;
}

/* ── NAV BUTTONS ── */
.gh-reels-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #ddd8ce;
    background: #fff;
    color: #1a1612;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10;
    margin: 0 4px;
}
.gh-reels-nav:hover {
    background: #1a1612;
    color: #fff;
    border-color: #1a1612;
}
.gh-reels-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .gh-reels-section { padding: 48px 0 56px; }
    .gh-reels-nav { display: none; }
    .gh-reels-track-outer { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .gh-reels-track-outer::-webkit-scrollbar { display: none; }
    .gh-reels-track { transition: none; padding: 8px 20px 12px; }
    .gh-reel-card { flex: 0 0 220px; width: 220px; }
}

@media (max-width: 480px) {
    .gh-reel-card { flex: 0 0 200px; width: 200px; }
    .gh-reel-property { padding: 12px 12px 14px; }
    .gh-reel-prop-name { font-size: 13px; }
    .gh-reel-prop-price { font-size: 15px; }
}



/* ── MUTE / UNMUTE BUTTON ── */
.gh-mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: none; /* hidden until video plays */
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, transform 0.15s;
}
.gh-mute-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.gh-mute-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.1);
}
/* Show the button when video is playing */
.gh-reel-media.gh-playing .gh-mute-btn {
    display: flex;
}