
/* CANIS THERAPY COLLAGE */

.canis-collage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;

    box-shadow:
        0 25px 45px rgba(0, 0, 0, 0.22),
        0 12px 20px rgba(0, 0, 0, 0.16),
        0 4px 8px rgba(0, 0, 0, 0.10);

    opacity: 1;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.canis-collage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}


/* RETURN TO ESTATE */

.canis-collage .history-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;

    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;

    text-decoration: none;
    cursor: pointer;
}

.canis-collage .history-close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: normal;
    line-height: 1;

    color: #454545;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 1),
        0 0 6px rgba(255, 255, 255, 1),
        0 0 12px rgba(175, 175, 175, 0.95),
        0 0 24px rgba(120, 120, 120, 0.65);

    transition:
        color 0.4s ease,
        text-shadow 0.4s ease,
        transform 0.4s ease;
}

.canis-collage .history-close-label {
    position: relative;
    opacity: 0;

    padding: 7px 4px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0.3px;

    color: #4a4a4a;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(12px);

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 1),
        0 0 7px rgba(255, 255, 255, 0.95),
        0 0 16px rgba(170, 170, 170, 0.75),
        0 0 28px rgba(130, 130, 130, 0.45);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.canis-collage .history-close-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 125%;
    height: 170%;
    transform: translate(-50%, -50%);

    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(225, 225, 225, 0.55) 35%,
        rgba(180, 180, 180, 0.22) 60%,
        rgba(150, 150, 150, 0) 78%
    );

    filter: blur(8px);
    z-index: -1;
}

.canis-collage .history-close:hover .history-close-icon,
.canis-collage .history-close:focus-visible .history-close-icon {
    color: #292929;
    transform: scale(1.12);

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 1),
        0 0 16px rgba(195, 195, 195, 1),
        0 0 30px rgba(120, 120, 120, 0.85);
}

.canis-collage .history-close:hover .history-close-label,
.canis-collage .history-close:focus-visible .history-close-label {
    opacity: 1;
    transform: translateX(0);
}


/* CANIS THERAPY HOTSPOT */

.canis-hotspot {
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    z-index: 10;

    display: block;
    padding: 10px 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    color: #4d3020;

    text-shadow:
        0 1px 1px rgba(255, 253, 245, 0.90),
        0 0 3px rgba(255, 253, 245, 0.70),
        0 0 7px rgba(255, 253, 245, 0.45),
        0 0 12px rgba(255, 253, 245, 0.25);

    opacity: 0.82;
    animation: canisTextPulse 2.6s ease-in-out infinite;

    transition:
        color 0.25s ease,
        opacity 0.25s ease,
        text-shadow 0.25s ease;
}

.canis-hotspot span {
    pointer-events: none;
}

.canis-hotspot:hover,
.canis-hotspot:focus-visible {
    color: #fffdf5;
    opacity: 1;

    text-shadow:
        0 1px 1px rgba(77, 48, 32, 1),
        0 0 3px rgba(77, 48, 32, 0.95),
        0 0 7px rgba(77, 48, 32, 0.90),
        0 0 12px rgba(77, 48, 32, 0.70);

    outline: none;
}


/* CANIS THERAPY PULSE */

@keyframes canisTextPulse {
    0%, 100% {
        color: #4d3020;
        opacity: 0.70;
        transform: translate(-50%, -50%) scale(0.92);

        text-shadow:
            0 1px 1px rgba(255, 253, 245, 0.90),
            0 0 3px rgba(255, 253, 245, 0.70),
            0 0 7px rgba(255, 253, 245, 0.45),
            0 0 12px rgba(255, 253, 245, 0.25);
    }

    50% {
        color: #4d3020;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.12);

        text-shadow:
            0 1px 1px rgba(255, 253, 245, 1),
            0 0 5px rgba(255, 253, 245, 1),
            0 0 12px rgba(255, 253, 245, 1),
            0 0 22px rgba(255, 253, 245, 0.85);
    }
}


/* HINT ABOVE THE COLLAGE */

.memory-hint {
    margin: 0 auto 18px;
    padding: 0 20px;
    box-sizing: border-box;

    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.4;
    color: #5a5a5a;
}


/* CANIS THERAPY STORY */

.canis-history-text {
    width: 100%;
    max-width: 850px;
    margin: 38px auto 52px;
    padding: 32px 38px;
    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #edf0e6 0%,
        #f5e9e9 52%,
        #e7eee5 100%
    );

    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(70, 75, 55, 0.10),
        0 3px 9px rgba(100, 70, 70, 0.07);

    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    color: #484d43;
    line-height: 1.8;

    opacity: 1;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.canis-history-text h2 {
    margin: 0 0 22px;
    color: #59664f;
    font-size: 27px;
    font-weight: normal;
    line-height: 1.4;
}

.canis-history-text p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.canis-history-text p:last-child {
    margin-bottom: 0;
}

.canis-history-text .canis-history-final {
    margin-top: 24px;
    color: #966c73;
    font-size: 18px;
    font-style: italic;
}


/* PAGE TRANSITIONS */

body.history-leaving .canis-collage,
body.history-leaving .canis-history-text {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

body.history-returning .canis-collage,
body.history-returning .canis-history-text {
    animation: canisFadeIn 0.55s ease both;
}

@keyframes canisFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* MOBILE LAYOUT */

@media (max-width: 700px) {
    .canis-collage .history-close {
        top: 8px;
        right: 8px;
        gap: 8px;
    }

    .canis-collage .history-close-icon {
        width: 34px;
        height: 34px;
        font-size: 30px;
    }

    .canis-collage .history-close-label {
        display: block;
        padding: 5px 3px;
        font-size: 11px;
        letter-spacing: 0;
        opacity: 1;
        transform: none;
        white-space: nowrap;
    }

    .canis-hotspot {
        font-size: 14px;
        letter-spacing: 0.2px;
        padding: 8px 6px;
    }

    .canis-history-text {
        width: 100%;
        max-width: 100%;
        margin: 25px auto 32px;
        padding: 24px 17px;
        border-radius: 14px;
    }

    .canis-history-text h2 {
        margin-bottom: 18px;
        font-size: 23px;
    }

    .canis-history-text p {
        margin-bottom: 15px;
        font-size: 16px;
        line-height: 1.7;
        overflow-wrap: break-word;
    }

    .canis-history-text .canis-history-final {
        margin-top: 20px;
        font-size: 17px;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .canis-hotspot {
        animation: none;
    }

    .canis-collage,
    .canis-history-text {
        transition: none;
    }

    body.history-returning .canis-collage,
    body.history-returning .canis-history-text {
        animation: none;
    }
}

/* Visually hidden heading for accessibility and SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}





/* Interactive guide to the history of VLANTI DELIMAR */

.guide-navigation {
    width: 100%;
    margin: 22px auto 26px;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
}

.guide-navigation-title {
    margin: 0 0 12px;
    padding: 0;
    color: #8b7952;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    text-align: center;
}

.guide-navigation ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 12px 10px;
    list-style: none;
}

.guide-navigation li {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.guide-navigation .guide-nav-diamond {
    display: inline-block;
    flex: 0 0 auto;
    color: #b89b5e;
    font-size: 10px;
    line-height: 1;
}

.guide-navigation a {
    color: #5f6433;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.guide-navigation a:hover {
    color: #b89b5e;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .guide-navigation ul {
        flex-wrap: wrap;
        gap: 8px 16px;
    }
}

