/* === Secret Location Interactive Modal & Hover Styles === */

/* The Modal (background) */
.secret-modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 99999;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.secret-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* Modal Content */
.secret-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    animation: slideIn 0.3s forwards;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* The Close Button */
.secret-modal-close {
    color: #aaaaaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.secret-modal-close:hover,
.secret-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Hide close button on desktop (min-width: 769px) */
@media (min-width: 769px) {
    .secret-modal-close {
        display: none;
    }
}

/* Reusing the secret-content-grid classes for the modal body */
.secret-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .secret-modal-body {
        grid-template-columns: 1fr;
    }
}

/* === Advanced Hover Animation for mini-place-card (Desktop Only) === */
.mini-place-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

/* Expanded state (triggered via JS setTimeout) */
.mini-place-card.hover-expanded {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mini-place-card.hover-expanded .mini-img-wrapper {
    height: 250px;
    /* Reveal more of the image */
}

.mini-place-card.hover-expanded .mini-content {
    padding: 25px;
}

.mini-place-card.hover-expanded h3 {
    font-size: 1.4rem;
    /* Highlight the title */
    color: #007bff;
}

.mini-place-card.hover-expanded .mini-quote p {
    white-space: normal;
    /* Allow text to wrap and show more */
    display: block;
    max-height: 100px;
    overflow-y: auto;
}

body::-webkit-scrollbar {
  display: none;
}