/*
Theme Name: Olympus Inn Child
Description: Thème enfant pour wp_olympusinn5-v1.0
Template: wp_olympusinn5-v1.0
Version: 1.0.0
*/

/* Styles pour la modale d'avertissement */
/* — Modale (fond sombre + flou) — */
.warning-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* au cas où le contenu soit long */
    padding: 1rem;
}

/* — Conteneur principal — */
.warning-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.35s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* — Animation d’entrée — */
@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* — En-tête de la modale — */
.warning-modal-header {
    background: linear-gradient(135deg, #4a685d, #234a3b); /* une teinte “naturelle / terreuse” inspirée du site externe */
    color: #fff;
    padding: 1.5rem 2rem;
    position: relative;
}

.warning-modal-header h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: white;
}

/* — “×” de fermeture — */
.warning-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease, transform 0.2s ease;
}
.warning-modal-close:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* — Corps du texte — */
.warning-modal-body {
    padding: 2rem;
    color: #333333;
    font-size: 1rem;
    line-height: 1.55;
}
.warning-modal-body p {
    margin-bottom: 1rem;
}
.warning-modal-body p:last-child {
    margin-bottom: 0;
}

/* — Pied / footer — */
.warning-modal-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background-color: #fafafa;
}

/* — Bouton — */
.warning-modal-btn {
    background: linear-gradient(135deg, #2a7d52, #195735);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 999px; /* arrondi complet style “pill” */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.warning-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}
.warning-modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* — Responsive / mobile — */
@media (max-width: 768px) {
    .warning-modal-content {
        margin: 0 auto;
        width: 100%;
        max-width: 90%;
    }
    .warning-modal-header {
        padding: 1rem 1.5rem;
    }
    .warning-modal-header h2 {
        font-size: 1.5rem;
    }
    .warning-modal-body {
        padding: 1.5rem 1.5rem;
        font-size: 0.95rem;
    }
    .warning-modal-footer {
        padding: 1rem 1.5rem;
    }
}

.text-center {
  text-align:center;
}

.mt-2 {
  margin-top: 0.5rem;
}
.mb-0 {
  margin-bottom: 0;
}

.map-iframe {
  width: 100%;
  aspect-ratio: 1;
}

// override slider

.room-gallery.flexslider li {
  height: 100% !important;
}

.room-gallery.flexslider li a {
  height: 100%;
  display: block;
}

.flexslider .slides img {
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1088 / 726 !important;
}
