/* Placeholder styles for missing images */

/* Logo placeholder */
.navbar-logo[src*="placeholder"],
.navbar-logo:not([src]) {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Hero image placeholders */
.hero-image[src*="placeholder"],
.hero-image:not([src]) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
}

.hero-image[src*="placeholder"]::before,
.hero-image:not([src])::before {
    content: "Hotel Shree Harpal Palace";
    font-family: var(--font-heading);
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Room image placeholders */
.room-image[src*="placeholder"],
.room-image:not([src]) {
    background: linear-gradient(45deg, var(--secondary-color), var(--gold-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.room-image[src*="placeholder"]::before,
.room-image:not([src])::before {
    content: "Luxury Room";
    font-size: 1.2rem;
}

/* Gallery image placeholders */
.gallery-image[src*="placeholder"],
.gallery-image:not([src]) {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    text-align: center;
}

.gallery-image[src*="placeholder"]::before,
.gallery-image:not([src])::before {
    content: "Hotel Gallery";
    font-size: 1.1rem;
}

/* About image placeholder */
.about-image img[src*="placeholder"],
.about-image img:not([src]) {
    background: linear-gradient(135deg, var(--gold-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.about-image img[src*="placeholder"]::before,
.about-image img:not([src])::before {
    content: "About Hotel";
    font-size: 1.3rem;
}

/* Attraction image placeholders */
.attraction-image[src*="placeholder"],
.attraction-image:not([src]) {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.attraction-image[src*="placeholder"]::before,
.attraction-image:not([src])::before {
    content: "Local Attraction";
    font-size: 1rem;
    text-align: center;
    padding: 10px;
}

/* Default placeholder style for any missing image */
img[src*="placeholder"],
img:not([src]) {
    min-height: 200px;
    background: linear-gradient(45deg, #cccccc, #eeeeee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-style: italic;
    border-radius: 8px;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease-in-out;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Fallback for broken images */
img:before {
    content: attr(alt);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}