/* Album Collage Styles */
.album-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.album-collage img {
    transition: transform 0.3s ease;
}

.album-card:hover .album-collage img {
    transform: scale(1.05);
}

.album-info {
    transition: background-color 0.3s ease;
}

.album-card:hover .album-info {
    background-color: #f8f9fa !important;
}

/* Object fit utility class */
.object-fit-cover {
    object-fit: cover;
}

/* Hover shadow utility */
.hover-shadow:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Gallery photo styles */
.gallery-photo {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

/* Lightbox overlay */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-photo:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: white;
    font-size: 2rem;
}

/* Back button styling */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    margin-bottom: 30px;
}

.back-button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.back-button i {
    margin-right: 8px;
}


/* ═══════════════════════════════════════════════════════════════════
   FLOATING BUTTONS — WhatsApp + Virtual Tour (matches skh-main)
   ═══════════════════════════════════════════════════════════════════ */

.floating-buttons-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    z-index: 9999;
    padding: 0 30px;
    pointer-events: none;
}

.floating-buttons-container .floating-left-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    color: white;
    font-size: 28px;
    pointer-events: auto;
    border: 0;
    cursor: pointer;
    overflow: visible;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white;
}

.floating-btn i {
    font-size: 28px;
}

/* WhatsApp */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #2FE573 0%, #25D366 100%);
}

.whatsapp-btn i {
    color: white !important;
}

/* Virtual Tour */
.virtual-tour-btn {
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
}

.virtual-tour-btn:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
}

.virtual-tour-btn i {
    color: white !important;
}

/* Tooltip label shown on hover — appears to the RIGHT of the button */
.btn-label {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Arrow pointing left toward the button */
.btn-label::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    background: rgba(0, 0, 0, 0.8);
}

.floating-btn:hover .btn-label {
    opacity: 1;
}

/* Modal */
.virtual-tour-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(10px);
}

.virtual-tour-modal.is-open {
    display: flex;
}

.virtual-tour-dialog {
    width: min(1180px, 100%);
    height: min(760px, calc(100dvh - 48px));
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.virtual-tour-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid rgba(15, 118, 110, 0.16);
    background: #f0fdfa;
}

.virtual-tour-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

.virtual-tour-header strong {
    display: block;
    color: #134e4a;
    font-size: 1rem;
    line-height: 1.25;
}

.virtual-tour-header span {
    display: block;
    margin-top: 4px;
    color: #476b66;
    font-size: 0.82rem;
    line-height: 1.35;
}

.virtual-tour-select-label,
.virtual-tour-select {
    display: none;
}

.virtual-tour-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #134e4a;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.2s ease;
}

.virtual-tour-close:hover {
    background: #ffffff;
}

.virtual-tour-list {
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

.virtual-tour-option {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    color: #134e4a;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.virtual-tour-option:hover,
.virtual-tour-option.is-active {
    border-color: rgba(20, 184, 166, 0.3);
    background: #ffffff;
}

.virtual-tour-frame-wrap {
    min-width: 0;
    min-height: 0;
    background: #111827;
}

.virtual-tour-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #111827;
}

body.virtual-tour-lock {
    overflow: hidden;
}

@media (max-width: 768px) {
    .floating-buttons-container {
        bottom: 20px;
        padding: 0 20px;
        gap: 12px;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .floating-btn i {
        font-size: 24px;
    }

    .floating-buttons-container .floating-left-stack {
        gap: 10px;
    }

    .virtual-tour-modal {
        padding: 12px;
    }

    .virtual-tour-dialog {
        height: calc(100dvh - 24px);
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        border-radius: 14px;
    }

    .virtual-tour-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 118, 110, 0.16);
    }

    .virtual-tour-header {
        padding: 14px;
    }

    .virtual-tour-header > div {
        min-width: 0;
        flex: 1;
    }

    .virtual-tour-header strong {
        font-size: 0.95rem;
    }

    .virtual-tour-header span {
        margin-top: 2px;
        font-size: 0.78rem;
    }

    .virtual-tour-select-label {
        display: block;
        margin: 10px 0 5px;
        color: #134e4a;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .virtual-tour-select {
        display: block;
        width: 100%;
        min-height: 42px;
        border: 1px solid rgba(20, 184, 166, 0.32);
        border-radius: 8px;
        padding: 8px 34px 8px 10px;
        color: #134e4a;
        background-color: #ffffff;
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .virtual-tour-list {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-buttons-container {
        bottom: 15px;
        padding: 0 15px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .floating-btn i {
        font-size: 20px;
    }

    .btn-label {
        display: none;
    }
}
