/* Custom styles for Gîte Le Gardel */

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

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Image hover effects */
.image-hover {
    transition: transform 0.3s ease-in-out;
}

.image-hover:hover {
    transform: scale(1.05);
}

/* Custom prose styling for rich text */
.prose img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose h2 {
    color: #047857;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.prose h3 {
    color: #065f46;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Loading spinner for HTMX */
.htmx-request {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
/* a:focus,
button:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
} */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Review image zoom styles */
[data-review-image] {
    cursor: zoom-in;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

[data-review-image]:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Zoom indicator on hover */
.review-image-container {
    position: relative;
}

.review-image-container::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 1.2em;
}

.review-image-container:hover::after {
    opacity: 1;
}
