@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Color Palette */
    --primary-dark: #1a3d2e;
    --primary-color: #2c5f41;
    --primary-light: #3d7a5a;
    --accent-gold: #d4af37;
    --accent-gold-light: #e8c547;
    --accent-gold-dark: #b8941f;
    
    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-color: #2d2d2d;
    --text-light: #666666;
    --bg-cream: #faf8f3;
    --bg-white: #ffffff;
    --bg-light: #f5f3ed;
    
    /* Semantic Colors */
    --planned-color: #ffa726;
    --your-visit-color: #42a5f5;
    --border-color: #e8e5df;
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-cream);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Header */
.hero-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    background-image: url('images/utulna_outdoor_side_wide-angle.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 61, 46, 0.7) 0%, rgba(44, 95, 65, 0.6) 50%, rgba(61, 122, 90, 0.7) 100%);
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 4rem 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.2s both;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    opacity: 0.8;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Auth Section */
.auth-section {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.user-picture {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-login,
.btn-logout {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-login:hover,
.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-nav .container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 40px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

.alt-bg {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Gallery Section */
.gallery-section {
    padding: 0;
    margin: -4rem 0 0;
    position: relative;
    z-index: 10;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    padding: 0 40px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    background: linear-gradient(135deg, #e8e5df 0%, #d4d0c8 100%);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: linear-gradient(135deg, #e8e5df 0%, #d4d0c8 100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-lg);
}

.gallery-item .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    background: linear-gradient(135deg, #e8e5df 0%, #d4d0c8 100%);
    border: 2px dashed #c4c0b8;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.text-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.info-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow-sm);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-md);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.image-placeholder {
    position: sticky;
    top: 120px;
}

.map-container {
    position: sticky;
    top: 120px;
}

.placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e8e5df 0%, #d4d0c8 100%);
    border: 2px dashed #c4c0b8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    box-shadow: 0 10px 40px var(--shadow-md);
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.equipment-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-md);
}

.equipment-card:hover::before {
    transform: scaleX(1);
}

.equipment-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.equipment-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.equipment-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Routes Grid */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.route-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.route-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow-md);
}

.route-card:hover::before {
    opacity: 1;
}

.route-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.route-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.route-details p {
    margin: 0.75rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.route-note {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--accent-gold);
    border-radius: 10px;
}

.route-note p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Calendar Section */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

.calendar-section {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 50px var(--shadow-md);
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.calendar-controls h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(44, 95, 65, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(44, 95, 65, 0.4);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 2rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    position: relative;
    font-weight: 500;
    overflow: hidden;
}

.calendar-day:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-sm);
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: default;
}

.calendar-day.other-month:hover {
    transform: none;
    border-color: var(--border-color);
}

.calendar-day.today {
    border-color: var(--accent-gold);
    border-width: 3px;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.1);
}

.calendar-day.has-visits {
    background: linear-gradient(135deg, var(--planned-color), #ffb74d);
    color: white;
    border-color: var(--planned-color);
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

.calendar-day.your-visit {
    background: linear-gradient(135deg, var(--your-visit-color), #5bb3f5);
    color: white;
    border-color: var(--your-visit-color);
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

.calendar-day .day-number {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.calendar-day .visit-count {
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.9;
    text-align: center;
}

.visit-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 4px 0 2px;
    flex-wrap: wrap;
    max-width: 100%;
}

.visit-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    pointer-events: none; /* Prevent tooltip from showing */
}

.visit-avatar:hover {
    transform: scale(1.3);
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.visit-avatar-fallback {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.avatar-more {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 7px;
    border-radius: 12px;
    margin-left: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
}

.legend-box.available {
    background: var(--bg-white);
}

.legend-box.planned {
    background: var(--planned-color);
    border-color: var(--planned-color);
}

.legend-box.your-visit {
    background: var(--your-visit-color);
    border-color: var(--your-visit-color);
}

/* Visit Form */
.visit-form {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 50px var(--shadow-md);
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

.visit-form h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.login-prompt {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 20px;
    border: 2px dashed var(--accent-gold);
}

.login-prompt p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(44, 95, 65, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 95, 65, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

/* Planned Visits List */
.planned-visits-list {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 50px var(--shadow-md);
    border: 1px solid var(--border-color);
}

.planned-visits-list h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

#visits-container {
    display: grid;
    gap: 1.5rem;
}

.visit-item {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--planned-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-sm);
}

.visit-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px var(--shadow-md);
}

.visit-item.your-visit {
    border-left-color: var(--your-visit-color);
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.1), var(--bg-white));
}

.visit-info {
    flex: 1;
}

.visit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visit-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    box-shadow: 0 2px 8px var(--shadow-sm);
    flex-shrink: 0;
}

.visit-list-avatar-fallback {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.visit-details {
    flex: 1;
}

.visit-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.visit-name {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.visit-email {
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

.visit-note {
    margin-top: 0.75rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
}

.btn-remove {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow-md);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.info-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
    color: var(--text-light);
}

.info-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Forum Section */
.forum-container {
    max-width: 1000px;
    margin: 0 auto;
}

.forum-posts {
    margin-bottom: 3rem;
}

.forum-post {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.forum-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-md);
}

.forum-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.forum-post-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    box-shadow: 0 2px 8px var(--shadow-sm);
    flex-shrink: 0;
}

.forum-post-avatar-fallback {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.forum-post-author {
    flex: 1;
}

.forum-post-author-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.forum-post-author-email {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.forum-post-date {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
}

.forum-post-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.forum-post-content {
    color: var(--text-color);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Forum Replies */
.forum-replies {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.forum-replies-header {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.forum-reply {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.forum-reply:hover {
    box-shadow: 0 2px 10px var(--shadow-sm);
}

.forum-reply-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.forum-reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    box-shadow: 0 2px 6px var(--shadow-sm);
    flex-shrink: 0;
}

.forum-reply-avatar-fallback {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.forum-reply-author {
    flex: 1;
}

.forum-reply-author-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.forum-reply-author-email {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.forum-reply-date {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: right;
}

.forum-reply-content {
    color: var(--text-color);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-left: 52px; /* Align with avatar */
}

.forum-reply-form-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.forum-reply-form {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.forum-reply-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.forum-reply-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 65, 0.1);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-remove-small {
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.forum-reply-login-prompt {
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.forum-reply-login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.forum-reply-login-prompt a:hover {
    text-decoration: underline;
}

.forum-form-container {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 50px var(--shadow-md);
    border: 1px solid var(--border-color);
}

.forum-form-container > h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    margin: 0.75rem 0;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 0.75rem 0;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-creator {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-creator a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-creator a:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
    opacity: 1;
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
    max-width: 80vw;
    padding: 0 2rem;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    font-weight: 300;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    font-weight: 300;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
        padding: 0 30px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .main-nav .container {
        gap: 1.5rem;
        padding: 1rem 20px;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
        gap: 15px;
        padding: 0 20px;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .calendar-section,
    .visit-form,
    .planned-visits-list {
        padding: 2rem;
    }
    
    .equipment-grid,
    .routes-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar {
        gap: 5px;
    }
    
    .calendar-day {
        font-size: 0.85rem;
        padding: 6px 2px;
    }
    
    .visit-avatar {
        width: 22px;
        height: 22px;
    }
    
    .avatar-more {
        font-size: 0.6rem;
        padding: 2px 5px;
        min-width: 18px;
        height: 18px;
    }
    
    .visit-list-avatar {
        width: 40px;
        height: 40px;
    }
    
    .calendar-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .visit-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .visit-header {
        width: 100%;
    }
    
    .forum-post {
        padding: 1.5rem;
    }
    
    .forum-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .forum-post-date {
        text-align: left;
        width: 100%;
    }
    
    .forum-form-container {
        padding: 2rem;
    }
    
    .forum-reply-content {
        margin-left: 0;
        margin-top: 0.75rem;
    }
    
    .forum-reply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .forum-reply-date {
        text-align: left;
        width: 100%;
    }
    
    .forum-reply-form {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
    }
    
    /* Lightbox responsive */
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 0.95rem;
        margin-top: 1rem;
        padding: 0 1rem;
    }
}
