/*
Theme Name: Philadelphia Personal Tours
Description: A historic parchment-themed WordPress theme for Philadelphia Personal Tours with dynamic content management, animations, and responsive design.
Version: 1.0
Author: Vexstorm Studios
*/

/* ======================================
   Philadelphia Personal Tours WordPress Theme
   Historic Parchment Design with Animations
   ====================================== */

/* ================================
   1. Base Reset & Canvas Setup
   ================================ */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #555555; /* Gray behind parchment */
    font-family: 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto; /* Allow horizontal scroll when needed */
    box-sizing: border-box;
    padding: 10px 0;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar {
    padding-top: 42px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 56px;
    }
}

/* Custom Historic Scrollbars */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f4e0b1;
    border: 2px solid #d2a659;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #a57739;
    border: 2px solid #f4e0b1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8c5c2b;
}

/* Firefox Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: #a57739 #f4e0b1;
}

/* --------------------------------
   2. Parchment Canvas Container
   -------------------------------- */
.parchment-canvas {
    width: 80%; /* Reduced from 92% to fit better within parchment */
    max-width: 1000px; /* Reduced from 1200px to prevent overflow */
    min-width: 280px;
    max-height: 400vh;
    min-height: 90vh;
    background: url('http://philadelphiapersonaltours.com/wp-content/uploads/2025/06/Background-full-Transparent-v2.png') center center no-repeat;
    background-size: 115% 105%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8% 10% 8% 10%; /* Increased padding significantly to keep content well within parchment borders */
    overflow: hidden;
    margin: 10px auto;
    box-sizing: border-box;

    /* Parchment Unravel Animation */
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    transition: transform 2.8s ease-out,
                opacity 2.2s ease-out 0.3s,
                visibility 0s 2.8s;
}

.parchment-canvas.unravelled {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
    transition: transform 2.8s ease-out, 
                opacity 2.2s ease-out 0.3s, 
                visibility 0s 0s;
}

/* Skip animation class for subsequent visits */
.parchment-canvas.skip-animation {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
    transition: none;
}

/* ========================================
   3. Header Section (Logo & Title)
   ======================================== */
.parchment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem; /* Increased from 1rem */
    flex-shrink: 0;
    min-width: 0;
}

.logo-container {
    flex: 0 0 auto;
    max-width: 100px; /* Increased from 80px */
    min-width: 60px; /* Increased from 40px */
    height: 70px; /* Increased from 50px */
    margin-right: 1.5rem; /* Increased from 1rem */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-container img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: clamp(1.2rem, 4vw, 2rem); /* Increased from 1rem, 4vw, 1.8rem */
    font-weight: bold;
    color: #4A3B31;
    background-color: rgba(245, 245, 220, 0.5); /* Reduced opacity from 0.7 to 0.5 */
    padding: 0.8rem; /* Increased from 0.5rem for more height */
    border-radius: 5px;
    border: 1px solid rgba(210, 180, 140, 0.6); /* Made border more transparent */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    line-height: 1.4; /* Added to increase height */
}

/* =============================================
   4. Main Content Area (Sidebar + Content)
   ============================================= */
.parchment-main {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    max-height: 220px;
    width: 100%;
    overflow: hidden;
    gap: 1rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

/* ---- 4a. Tour Navigation Sidebar ---- */
.tour-sidebar {
    margin-top: 40px; /* Increased from 20px to move menu further down */
    flex: 0 0 200px;
    max-width: 200px;
    min-width: 0;
    background-color: rgba(245, 245, 220, 0.3); /* Reduced opacity from 0.6 to 0.3 for more transparency */
    padding: 0.75rem;
    border: 1px solid rgba(210, 180, 140, 0.4); /* Made border more transparent */
    border-radius: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    
    /* Menu Roll-out Animation */
    transform: translateX(-105%);
    opacity: 0;
    visibility: hidden;
    transition: transform 1.5s ease-out 0.3s,
                opacity 1.2s ease-out 0.3s,
                visibility 0s 1.8s;
}

.tour-sidebar.menu-visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.tour-sidebar.skip-animation {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: none;
}

.tour-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.tour-menu li {
    margin-bottom: 0.25rem;
    min-width: 0;
}

.tour-menu li.has-submenu > a::after {
    content: " ▼";
    font-size: 0.7em;
    opacity: 0.7;
}

.tour-menu li.has-submenu.expanded > a::after {
    content: " ▲";
}

.tour-menu .submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.tour-menu li.expanded .submenu {
    display: block;
}

.tour-menu a {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem; /* Slightly increased from 0.35rem 0.5rem */
    color: #5D4037;
    text-decoration: none;
    border-radius: 4px; /* Increased from 3px */
    font-size: 0.95rem; /* Increased from 0.9rem */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smoother transition */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

.tour-menu a:hover,
.tour-menu a:focus,
.tour-menu a.active {
    background-color: rgba(210, 180, 140, 0.7); /* More transparent hover state */
    color: #3E2723; /* Darker text on hover for better contrast */
}

.tour-menu .menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ---- 4b. Dynamic Content Area ---- */
.tour-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    background-color: rgba(253, 245, 230, 0.4); /* Reduced opacity from 0.6 to 0.4 */
    padding: 1rem;
    border: 1px solid rgba(210, 180, 140, 0.5); /* Made border more transparent */
    border-radius: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.tour-content h1,
.tour-content h2,
.tour-content h3 {
    color: #4A3B31;
    margin-top: 0;
    line-height: 1.3;
}

.tour-content h1 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.tour-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.tour-content h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }

.tour-content p {
    line-height: 1.6;
    color: #3E2723;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.tour-content ul, 
.tour-content ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.tour-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tour-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tour-content .loading,
.tour-content .error {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #777;
}

/* Custom Background Support */
.tour-content.custom-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ====================
   5. Footer Section
   ==================== */
.parchment-footer {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: #4A3B31;
    background-color: rgba(245, 245, 220, 0.7);
    border-radius: 5px;
    border: 1px solid #D2B48C;
    width: 90%;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==============================================
   6. Responsive Design (Media Queries)
   ============================================== */

/* ===== Large Screens (1025px and up) ===== */
@media (min-width: 1025px) {
    .parchment-canvas {
        padding: 5% 8% 4% 8%; /* Maintain generous padding on large screens */
    }
}

/* ===== Medium Screens (769px to 1024px) ===== */
@media (max-width: 1024px) {
    .parchment-canvas {
        width: 88%;
        max-width: 900px;
        padding: 5% 7% 4% 7%; /* Maintain good padding on medium screens */
        max-height: 98vh;
    }

    .tour-sidebar {
        flex: 0 0 200px;
        max-width: 200px;
    }
}

/* ===== Small Screens (481px to 768px) ===== */
@media (max-width: 768px) {
    html, body {
        padding: 5px 0;
        overflow-x: auto; /* Ensure horizontal scroll is available */
    }

    .parchment-canvas {
        width: 92%;
        max-width: 700px;
        min-width: 320px; /* Ensure minimum width for content */
        min-height: 95vh;
        max-height: 98vh;
        padding: 4% 4% 3% 4%;
        margin: 0 auto;
    }

    .logo-container {
        max-width: 60px;
        height: 40px;
    }

    .site-title {
        font-size: clamp(0.9rem, 4vw, 1.5rem);
        padding: 0.4rem;
    }

    .parchment-main {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tour-sidebar {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 200px;

        /* Adjust animation for mobile */
        transform: translateY(-105%);
    }

    .tour-sidebar.menu-visible {
        transform: translateY(0);
    }

    .tour-sidebar.skip-animation {
        transform: translateY(0);
    }

    .tour-content {
        flex: 1 1 auto;
        min-height: 200px;
    }
}

/* ===== Extra Small Screens (up to 480px) ===== */
@media (max-width: 480px) {
    html, body {
        padding: 0;
        overflow-x: auto; /* Allow horizontal scrolling */
    }

    .parchment-canvas {
        width: 95%;
        max-width: 450px;
        min-width: 300px; /* Maintain minimum readable width */
        min-height: 100vh;
        max-height: none;
        padding: 3% 4% 2% 4%;
        margin: 0 auto;
        border-radius: 0;
    }

    .logo-container {
        max-width: 50px;
        height: 35px;
        margin-right: 0.5rem;
    }

    .site-title {
        font-size: clamp(0.8rem, 4.5vw, 1.2rem);
        padding: 0.3rem;
    }

    .parchment-main {
        gap: 0.5rem;
    }

    .tour-sidebar {
        padding: 0.5rem;
        max-height: 180px;
    }

    .tour-menu a {
        font-size: 0.85rem;
        padding: 0.3rem 0.4rem;
    }

    .tour-content {
        padding: 0.75rem;
    }

    .tour-content h1 { font-size: 1.4rem; }
    .tour-content h2 { font-size: 1.3rem; }
    .tour-content h3 { font-size: 1.1rem; }

    .tour-content p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .parchment-footer {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* ===== Extra Extra Small (up to 340px) ===== */
@media (max-width: 340px) {
    html, body {
        overflow-x: auto; /* Ensure horizontal scrolling is available */
    }

    .parchment-canvas {
        width: 98%;
        max-width: 320px;
        min-width: 280px;
        padding: 2% 2% 1% 2%;
    }

    .logo-container {
        max-width: 40px;
        height: 30px;
    }

    .site-title {
        font-size: 0.8rem;
        padding: 0.2rem;
    }

    .tour-sidebar {
        padding: 0.4rem;
        max-height: 160px;
    }

    .tour-menu a {
        font-size: 0.8rem;
        padding: 0.2rem 0.3rem;
    }

    .tour-content {
        padding: 0.5rem;
    }

    .tour-content h1 { font-size: 1.2rem; }
    .tour-content h2 { font-size: 1.1rem; }
    .tour-content h3 { font-size: 1rem; }

    .tour-content p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .parchment-footer {
        padding: 0.3rem;
        font-size: 0.75rem;
    }
}

/* ==============================================
   7. WordPress Editor Compatibility
   ============================================== */
.wp-block-image {
    margin: 1rem 0;
}

.wp-block-image img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wp-block-quote {
    border-left: 4px solid #D2B48C;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    background-color: rgba(245, 245, 220, 0.3);
    padding: 1rem;
    border-radius: 4px;
}

.wp-block-button .wp-block-button__link {
    background-color: #8B4513;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: #A0522D;
}

/* Elementor Compatibility */
.elementor-widget-container {
    word-break: break-word;
}

.elementor-section {
    margin-bottom: 1rem;
}

/* ==============================================
   8. Shortcode Styles for Modular Components
   ============================================== */

/* ---- Logo Shortcode Styles ---- */
.ppt-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0.5rem 0;
}

.ppt-logo-container.ppt-align-left {
    justify-content: flex-start;
}

.ppt-logo-container.ppt-align-right {
    justify-content: flex-end;
}

.ppt-logo-container.ppt-align-center {
    justify-content: center;
}

.ppt-logo-container.ppt-logo-small {
    max-width: 60px;
    height: 40px;
}

.ppt-logo-container.ppt-logo-medium {
    max-width: 80px;
    height: 50px;
}

.ppt-logo-container.ppt-logo-large {
    max-width: 120px;
    height: 80px;
}

.ppt-logo-image {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Elementor Integration */
.elementor-widget-container .ppt-logo-container {
    margin: 0; /* Let Elementor handle margins */
}

/* ---- Title Shortcode Styles ---- */
.ppt-site-title {
    font-weight: bold;
    color: #4A3B31;
    background-color: rgba(245, 245, 220, 0.7);
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #D2B48C;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
}

.ppt-site-title.ppt-align-left {
    text-align: left;
}

.ppt-site-title.ppt-align-center {
    text-align: center;
}

.ppt-site-title.ppt-align-right {
    text-align: right;
}

.ppt-site-title.ppt-title-elegant {
    font-family: 'Georgia', serif;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.ppt-site-title.ppt-title-modern {
    font-family: 'Arial', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ---- Menu Shortcode Styles ---- */
.ppt-tour-sidebar {
    background-color: rgba(245, 245, 220, 0.6);
    padding: 0.75rem;
    border: 1px solid #D2B48C;
    border-radius: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%; /* Full width in Elementor */
    min-height: 200px; /* Minimum height for usability */
}

/* When used in layout containers */
.ppt-layout-main .ppt-tour-sidebar {
    flex: 0 0 200px; /* Reduced from 220px to fit better within parchment */
    max-width: 200px;
    width: 200px; /* Fixed width in flex layout */
}

/* Elementor Integration */
.elementor-widget-container .ppt-tour-sidebar {
    width: 100%; /* Full width in Elementor widgets */
    max-width: none;
}

.ppt-menu-search {
    margin-bottom: 1rem;
}

.ppt-search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #D2B48C;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.ppt-tour-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.ppt-tour-menu li {
    margin-bottom: 0.25rem;
    min-width: 0;
}

.ppt-tour-menu li.has-submenu > a::after {
    content: " ▼";
    font-size: 0.7em;
    opacity: 0.7;
}

.ppt-tour-menu li.has-submenu.expanded > a::after {
    content: " ▲";
}

.ppt-submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.ppt-tour-menu li.expanded .ppt-submenu {
    display: block;
}

.ppt-tour-link {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    color: #5D4037;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

.ppt-tour-link:hover,
.ppt-tour-link:focus,
.ppt-tour-link.active {
    background-color: #D2B48C;
    color: #FFFFFF;
}

.ppt-tour-menu .menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ---- Content Shortcode Styles ---- */
.ppt-tour-content {
    background-color: rgba(253, 245, 230, 0.7);
    padding: 1rem;
    border: 1px solid #D2B48C;
    border-radius: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* When used in layout containers */
.ppt-layout-main .ppt-tour-content {
    flex: 1 1 auto;
    min-width: 0;
    word-wrap: break-word; /* Ensure long words wrap */
    overflow-wrap: break-word; /* Modern browsers */
    hyphens: auto; /* Enable hyphenation */
}

/* Elementor Integration */
.elementor-widget-container .ppt-tour-content {
    width: 100%;
    max-width: none;
}

.ppt-content-inner {
    flex: 1;
}

.ppt-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ppt-loading-spinner {
    padding: 1rem;
    background-color: rgba(245, 245, 220, 0.9);
    border: 1px solid #D2B48C;
    border-radius: 5px;
    font-style: italic;
    color: #777;
}

/* ---- Footer Shortcode Styles ---- */
.ppt-parchment-footer {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: #4A3B31;
    background-color: rgba(245, 245, 220, 0.7);
    border-radius: 5px;
    border: 1px solid #D2B48C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ppt-parchment-footer.ppt-align-left {
    text-align: left;
}

.ppt-parchment-footer.ppt-align-center {
    text-align: center;
}

.ppt-parchment-footer.ppt-align-right {
    text-align: right;
}

.ppt-parchment-footer.ppt-footer-elegant {
    font-style: italic;
    font-size: 0.7rem; /* Smaller font size to fit better */
    line-height: 1.4; /* Better line spacing for readability */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words if needed */
}

/* ---- Parchment Container Shortcode Styles ---- */
.ppt-parchment-canvas {
    background: url('http://philadelphiapersonaltours.com/wp-content/uploads/2025/06/Background-full-Transparent-v2.png') center center no-repeat;
    background-size: 100% 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    margin: 10px auto;
}

/* Elementor Layout Support */
.parchment-canvas.ppt-elementor-layout {
    display: block; /* Override flex for Elementor */
    overflow: visible; /* Allow Elementor containers to manage overflow */
}

.ppt-elementor-content {
    width: 100%;
    height: 100%;
    display: block;
}

/* Layout Shortcode Styles */
.ppt-layout-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between logo and title */
    margin-bottom: 1rem;
    flex-shrink: 0;
    min-width: 0;
    padding: 0 1rem; /* Add some padding to keep elements away from edges */
}

.ppt-layout-main {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    gap: 1.5rem; /* Increased gap for better spacing */
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    padding: 0 0.5rem; /* Add padding to keep content within bounds */
}

.ppt-layout-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 0 1rem; /* Add padding to keep footer content within bounds */
}

/* Header Layout Specific Styles */
.ppt-layout-header .ppt-logo-container {
    flex: 0 0 auto; /* Don't grow or shrink */
    margin-right: 2rem; /* Space between logo and title */
}

.ppt-layout-header .ppt-site-title {
    flex: 1 1 auto; /* Allow title to take remaining space */
    text-align: center; /* Center the title text */
    margin: 0; /* Remove default margins */
}

/* Ensure logo doesn't get too close to edge */
.ppt-logo-container.ppt-align-left {
    margin-left: 1rem;
}

/* Responsive Layout Adjustments */
@media (max-width: 768px) {
    .ppt-layout-main {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ---- Animation Classes ---- */
.ppt-animate-fade-in {
    opacity: 0;
    animation: pptFadeIn 1s ease-out forwards;
}

.ppt-animate-slide-in {
    transform: translateX(-100%);
    animation: pptSlideIn 1s ease-out forwards;
}

.ppt-animate-unravel {
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    animation: pptUnravel 2.8s ease-out forwards;
}

@keyframes pptFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pptSlideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes pptUnravel {
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes flagAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes colorWave {
    0% { color: #ff6f61; }
    50% { color: #4682B4; }
    100% { color: #ff6f61; }
}

@keyframes gentleWave {
    0% { color: #a83232; }
    50% { color: #4682B4; }
    100% { color: #a83232; }
}

.contact-heading {
    animation: colorWave 5s infinite ease-in-out;
}

.contact-details {
    transition: transform 0.3s ease;
}

.contact-details:hover {
    transform: translateY(-3px);
}

.contact-info:hover {
    transform: translateY(-5px);
}

/* Flag color cycling animation */
@keyframes fadeFlag {
    0% { color: red; }
    33% { color: white; }
    66% { color: blue; }
    100% { color: red; }
}

/* Bouncing animation */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tour-menu li {
    animation: fadeFlag 6s infinite ease-in-out;
    animation-delay: calc(var(--index) * 0.3s);
}

.bounce-link {
    animation: bounce 2s infinite ease-in-out;
    font-weight: bold;
}

.tour-sidebar ul.tour-menu > li {
    animation: fadeFlag 6s infinite ease-in-out;
    animation-delay: calc(var(--index) * 0.3s);
}

.tour-sidebar ul.tour-menu li.bounce-link {
    animation: bounce 2s infinite ease-in-out;
    font-weight: bold;
}




