/* Motel Divine — Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Masonry-style photo grid */
.masonry-grid {
    columns: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        columns: 3;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        columns: 4;
    }
}

.masonry-grid .masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Image hover effect */
.img-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Dashboard card hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Photo Badges (rate display) */
.photo-badge {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    background: #e63946;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.photo-badge span {
    color: #ffffff !important;
    display: inline-block;
}
.photo-badge.pos-tr { top: 12px; right: 12px; }
.photo-badge.pos-tl { top: 12px; left: 12px; }
.photo-badge.pos-br { bottom: 12px; right: 12px; }
.photo-badge.pos-bl { bottom: 12px; left: 12px; }

/* Star shape — use SVG-style 5-point star via clip-path with fallback */
.photo-badge.shape-star {
    width: 88px;
    height: 88px;
    padding: 0 8px;
    border-radius: 8px;
    -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: none; /* clip-path with shadow can hide */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* Banner / ribbon — use border-radius + tail via ::after for max compatibility */
.photo-badge.shape-banner {
    padding: 8px 18px;
    border-radius: 4px;
    min-width: 50px;
    min-height: 32px;
}

/* Circle */
.photo-badge.shape-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 0 6px;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
