:root {
    /* Original Japandi/Californian Theme */
    --color-bg: #faf8f5;
    --color-text: #333333;
    --color-accent: #b91313;
    --color-accent-light: #fefae0;
    --color-border: #e9e5de;
    --color-card-bg: white;
    --color-card-shadow: rgba(0, 0, 0, 0.05);
    --color-card-shadow-hover: rgba(0, 0, 0, 0.1);
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --max-width: 800px;
    --border-radius: 8px;
    --spacing: 1.5rem;
    --card-pattern: none;
    --header-decoration: none;
    --section-spacing: 3rem;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    padding: var(--spacing);
    transition: all 0.3s ease;
    position: relative;
}



.container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

h2 {
    font-size: 1.5rem;
    margin: var(--section-spacing) 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.schedule h1 {
    font-size: 1.5rem;
    margin: var(--section-spacing) 0 1rem;
    padding-bottom: 0;
    position: relative;
}

.schedule-header {
    border-bottom: 1px solid var(--color-border);
    position: relative;
}


h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-text);
}

.header {
    text-align: center;
    margin: 2rem 0 var(--section-spacing);
    position: relative;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.baby-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px var(--color-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baby-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--color-card-shadow-hover);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    position: relative;
}



.current-event {
    margin-bottom: 3rem;
}

.event-card {
    background: var(--color-card-bg);
    background-image: var(--card-pattern);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--color-card-shadow);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative; /* allow pseudo element positioning */
}



.event-card.active {
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-accent-light);
}

.event-time {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.location {
    color: #666;
    margin-bottom: 0.5rem;
}

.notes {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* New locations container with map */
.locations-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.location-map {
    display: block;
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 8px var(--color-card-shadow);
}

.location-map img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.location-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 2px 8px var(--color-card-shadow);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.location-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-card-shadow-hover);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.pin-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.location-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Make cards more compact */
.location-card, .contact-card {
    padding: 1rem;
    min-width: 0; /* Allows text truncation */
}

.location-card h3, .contact-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.location-card p, .contact-card p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-card, .contact-card {
    background: var(--color-card-bg);
    background-image: var(--card-pattern);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--color-card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.contact-card h4 {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.location-card:hover,
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-card-shadow-hover);
}

.location-card,
.contact-card {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.location-card:hover,
.contact-card:hover {
    color: var(--color-text);
    text-decoration: none;
}

footer {
    text-align: center;
    margin: 4rem 0 2rem;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        padding: 1rem;
    }
    
    .location-map img {
        height: 300px;
    }
    
    .location-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .location-link {
        justify-content: flex-start;
    }
    
    .location-name {
        white-space: normal;
    }
    
        h1 {
        font-size: 2rem;
    }

    .header {
        margin: 1rem 0 2rem;
    }

    .header-title {
        gap: 1rem;
    }

    .baby-photo {
        width: 90px;
        height: 90px;
    }
}

/* Animation for current event */
@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

.current-event .active {
    animation: pulse 4s infinite;
}

/* Hide the legacy "Now" block */
.current-event {
    display: none;
}

/* Time indicator to the left of the current event */
.event-card.current::before {
    content: attr(data-now-time);
    position: absolute;
    left: -80px;
    top: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-accent);
}

/* Responsive time label adjustment */
@media (max-width: 600px) {
    .event-card.current::before {
        left: -60px;
    }
}

/* Event card base styles */
.event-card {
    position: relative;
    transition: all 0.2s ease;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

/* Main events */
.event-card.is-event {
    border-left: 2px solid var(--color-text);
}

/* Special treatment for ceremony */
.event-card.is-ceremony {
    border-left-width: 4px;
    padding-left: 1.75rem;
    margin-left: 0.25rem;
}

/* Logistics items - subtle indentation and lighter text */
.event-card.is-logistics {
    opacity: 0.9;
    padding-left: 2.5rem;
}

.event-card.is-logistics .event-time {
    font-weight: 400;
    opacity: 0.8;
}

/* Current event styling */
.event-card.current {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-accent) !important;
}

/* Event header adjustments */
.event-header {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Schedule section */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-header h2 {
    margin: var(--section-spacing) 0 0;
}

.filter-toggle {
    display: flex;
    background: var(--color-card-bg);
    border-radius: 20px;
    padding: 2px;
    box-shadow: 0 1px 3px var(--color-card-shadow);
}



.filter-toggle button {
    border: none;
    background: transparent;
    padding: 0.4rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.filter-toggle button.active {
    background: var(--color-accent);
    color: white;
    font-weight: 500;
}

/* Current event in schedule */
.event-card.current {
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-accent-light);
}

/* Debug panel */
.debug-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    transform: translateY(calc(100% - 40px));
    transition: transform 0.3s ease;
    z-index: 1000;
    font-family: monospace;
    font-size: 14px;
    max-height: 80vh;
    overflow-y: auto;
}

.debug-panel:hover,
.debug-panel.expanded {
    transform: translateY(0);
}

.debug-panel h3 {
    margin-top: 0;
    color: var(--color-accent);
    cursor: pointer;
    padding: 5px 0;
}

.debug-controls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.debug-controls label {
    display: block;
    margin-bottom: 0.5rem;
}

.debug-controls input,
.debug-controls button {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #444;
    background: #222;
    color: white;
    border-radius: 4px;
}

.debug-controls button {
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.debug-controls button:hover {
    background: #e6b17e;
}

/* Scroll to current event */
.scroll-to-current {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 25px;
    width: 80px;
    height: 50px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.scroll-to-current:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-current.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-current .scroll-text {
    position: relative;
}

.end-time {
    color: #aaa;
}

.location-cards h3 {
    color: var(--color-accent);
}

/* Transport icon */
.transport-icon {
    width: 1.8rem;
    height: 1.8rem;
    opacity: 0.3;
    color: #666;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-icon svg {
    width: 100%;
    height: 100%;
}

