.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.tonal-shift {
    transition: background-color 0.3s depth;
}
/* Custom mask for tribal pattern motif */
/* .tribal-pattern {
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 20-20 20L0 20z' fill='%23000' fill-rule='evenodd'/%3E%3C/svg%3E");
    mask-size: 24px;
} */
/* Secondary pattern: Zig Zag / Geometric */
.pattern-divider {
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12L20 0l20 12' fill='none' stroke='%23a65e2e' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}
/* Decorative Image Frame with Tribal Pattern */
.img-frame {
    position: relative;
    padding: 12px;
    background: transparent;
    border-radius: 1.5rem;
}
.img-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 6px solid #a65e2e;
    border-radius: 1.5rem;
    pointer-events: none;
    z-index: 10;
    /* Zig-zag/geometric tribal pattern border */
    mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l10 10L20 0v20L10 10 0 20z' fill='%23000'/%3E%3C/svg%3E");
    mask-size: 16px;
}
.img-frame::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(166, 94, 46, 0.4);
    border-radius: 1.25rem;
    pointer-events: none;
    z-index: 10;
}
/* Rounded corners for images inside frames */
.img-frame img {
    border-radius: 1rem;
}
/* Special case for Hero */
.hero-frame::after {
    content: '';
    position: absolute;
    inset: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    pointer-events: none;
    z-index: 20;
}

/* Gallery Lightbox Styles */
#gallery img {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Lightbox image transition */
#lightbox-image {
    transition: opacity 0.15s ease-in-out;
}

/* Lightbox button hover effects */
#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover {
    transform: scale(1.1);
}

#lightbox-close:active,
#lightbox-prev:active,
#lightbox-next:active {
    transform: scale(0.95);
}

/* Room Modal Styles */
#room-modal-close:hover {
    transform: scale(1.1);
}

#room-modal-close:active {
    transform: scale(0.95);
}

/* Form input styling */
#room-modal input[type="date"],
#room-modal select {
    cursor: pointer;
}

#room-modal input[type="date"]:focus,
#room-modal select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #884618;
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Floating button animations */
#back-to-top {
    animation: floatIn 0.5s ease-out;
}

@keyframes floatIn {
    from {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Hover effects for back to top button */
#back-to-top:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 180-Degree Photo Viewer Styles */
.panorama-viewer {
    position: relative;
    padding: 12px;
    background: transparent;
    border-radius: 1.5rem;
    cursor: pointer;
}

.panorama-viewer::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 6px solid #a65e2e;
    border-radius: 1.5rem;
    pointer-events: none;
    z-index: 10;
    mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l10 10L20 0v20L10 10 0 20z' fill='%23000'/%3E%3C/svg%3E");
    mask-size: 16px;
}

.panorama-viewer::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(166, 94, 46, 0.4);
    border-radius: 1.25rem;
    pointer-events: none;
    z-index: 10;
}

.panorama-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 1rem;
    background: #f4f3f1;
}

.panorama-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    transition: filter 0.3s ease;
}

.panorama-viewer:hover .panorama-preview {
    filter: brightness(1.1);
}

.panorama-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    transition: opacity 0.3s ease;
}

.panorama-viewer.active .panorama-overlay {
    display: none;
}

.explore-button {
    background: #884618;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explore-button:hover {
    background: #a65e2e;
    transform: scale(1.05);
}

.explore-icon {
    font-size: 20px;
}

.hand-indicator {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(136, 70, 24, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panorama-viewer.active .hand-indicator {
    opacity: 1;
}

.hand-indicator span {
    font-size: 16px;
}

/* Pannellum container styling */
#panorama-container {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for room cards */
#rooms .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
#rooms .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
#rooms .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
#rooms .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
#rooms .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
#rooms .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }
