/* ============================================
   Sea Heights — Gallery Page CSS
   public/css/gallery.css
   ============================================ */

/* ---- HERO SLIDER ---- */
.gallery-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0c1a2e;
}

.gh-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.05);
}

.gh-slide.active {
    opacity: 1;
    animation: slowZoom 8s ease-in-out forwards;
}

@keyframes slowZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.0);  }
}

.gh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.55) 100%
    );
    z-index: 2;
}

.gh-text {
    position: absolute;
    bottom: 120px;
    left: 60px;
    z-index: 10;
    color: #fff;
}

.gh-sub {
    display: block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d4af6a;
    margin-bottom: 12px;
    font-weight: 500;
}

.gh-title {
    font-family: 'Georgia', serif;
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.gh-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.gh-arrow:hover { background: rgba(255,255,255,0.3); }
.gh-prev { left: 24px; }
.gh-next { right: 24px; }

/* ---- CORNER GALLERY BUTTON ---- */
.gh-gallery-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    padding: 10px 18px 10px 10px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.gh-gallery-btn:hover { background: rgba(255,255,255,0.22); }

.gh-gallery-thumb {
    display: flex;
    gap: 3px;
}

.gh-gallery-thumb img {
    width: 38px;
    height: 28px;
    object-fit: cover;
    border-radius: 2px;
}

.gh-gallery-btn span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
}

/* ---- GALLERY INFO SECTION ---- */
.gallery-info-section {
    background: #fff;
    padding: 80px 40px;
    text-align: center;
}

.gallery-info-inner {
    max-width: 760px;
    margin: 0 auto;
}

.gallery-info-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b8972e;
    font-weight: 600;
    margin-bottom: 12px;
}

.gallery-info-title {
    font-family: 'Georgia', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    color: #15254c;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.gallery-info-divider {
    width: 60px;
    height: 2px;
    background: #b8972e;
    margin: 0 auto 28px;
}

.gallery-info-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.85;
    font-weight: 300;
}

/* ---- GALLERY GRID ---- */
.flip-gallery-section {
    background: #f8f6f1;
    padding: 60px 80px 80px;
}

.flip-gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ---- GALLERY CARD (hover zoom, no flip) ---- */
.gallery-card {
    position: relative;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    transform: translateY(-6px) scale(1.03);
    z-index: 2;
}

/* Image */
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

/* Bottom gradient + label */
.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.gallery-card-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.gallery-card-sub {
    font-size: 11px;
    color: #d4af6a;
    letter-spacing: 1px;
}

/* ---- LIGHTBOX ---- */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    border: none;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.lightbox-label {
    text-align: center;
    color: #d4af6a;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 14px;
    font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .flip-gallery-section { padding: 50px 40px 60px; }
}

@media (max-width: 768px) {
    .gh-text { left: 24px; bottom: 100px; }
    .gh-gallery-btn { right: 16px; bottom: 24px; }
    .gallery-info-section { padding: 50px 20px; }
    .flip-gallery-section { padding: 40px 20px 60px; }
    .flip-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .gallery-card { height: 180px; }
    .gh-arrow { width: 40px; height: 40px; font-size: 16px; }
}

@media (max-width: 480px) {
    .flip-gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery-card { height: 150px; }
}

/* ---- ROOM SHOWCASE ANIMATION ---- */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}