/* Landing page – DreijMači */
* { margin: 0; padding: 0; box-sizing: border-box; }

.landing-page { display: flex; flex-direction: column; min-height: 100vh; }
.landing-main { flex: 1; }

body.landing {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.9), rgba(0, 180, 216, 0.8)), url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0,180,216,0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0,119,190,0.2) 0%, transparent 50%);
}

.hero-content { z-index: 2; max-width: 800px; padding: 0 20px; animation: fadeInUp 1s ease-out; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 4rem; font-weight: 800; margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle { font-size: 1.5rem; font-weight: 600; margin-bottom: 15px; color: #ffd54f; text-shadow: 1px 1px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.95; text-shadow: 1px 1px 10px rgba(0,0,0,0.3); }

.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 16px 32px; border: none; border-radius: 50px; font-size: 16px; font-weight: 600;
    cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-primary { background: linear-gradient(135deg, #ff6b35, #f7931e); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4); }

.btn-secondary { background: rgba(255,255,255,0.15); color: white; border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }

/* Nav */
.landing-nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.1); transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; min-height: 100%;
}
.landing-nav { display: flex; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: #0077be; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; align-items: center; }
.nav-links li { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s ease; display: inline-flex; align-items: center; line-height: 1; }
.nav-links a:hover { color: #0077be; }

.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 60px; color: #333; }

/* Routes */
.routes { padding: 100px 20px; background: white; }
.section-intro { text-align: center; color: #666; margin: -40px auto 32px; max-width: 560px; }
.route-price-list {
    display: grid; gap: 12px; max-width: 720px; margin: 0 auto 24px;
}
.route-price-row {
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 12px 24px;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); border-radius: 12px;
    padding: 16px 20px; border: 1px solid rgba(0,119,190,0.12);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.route-price-row:hover { border-color: rgba(0,119,190,0.25); box-shadow: 0 8px 24px rgba(0,119,190,0.1); }
.route-price-row-clickable { cursor: pointer; }
.route-price-row-clickable:focus { outline: 2px solid #0077be; outline-offset: 2px; }
.route-label { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; min-width: 0; }
.route-from { font-weight: 600; color: #333; }
.route-arrow { color: #0077be; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.route-to { font-weight: 600; color: #333; }
.route-length { font-size: 0.95rem; color: #666; }
.route-price { font-weight: 800; color: #0077be; font-size: 1.15rem; white-space: nowrap; text-align: right; }
.route-note { text-align: center; color: #888; font-size: 0.95rem; max-width: 560px; margin: 0 auto; }

/* Map section */
.map-section { padding: 100px 20px; background: linear-gradient(135deg, #f8fbff 0%, #e8f5ff 100%); }
.route-map-controls { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.route-map-label { font-weight: 600; color: #333; }
.route-map-select {
    padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(0,119,190,0.25);
    font-size: 1rem; min-width: 260px; background: #fff; color: #333;
}
.route-map-hint { margin-top: 10px; font-size: 0.95rem; color: #666; min-height: 1.4em; }
.route-map-wrapper { height: 480px; width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,119,190,0.15); border: 1px solid rgba(0,119,190,0.12); transform: translateZ(0); -webkit-backface-visibility: hidden; }
.route-map-wrapper .route-map { height: 100% !important; min-height: 480px; }
.route-map-wrapper .leaflet-container { height: 100% !important; min-height: 480px; font-family: inherit; }

/* Booking */
.booking { padding: 100px 20px; background: linear-gradient(135deg, #0077be 0%, #00bcd4 100%); color: white; text-align: center; }
.booking h2 { font-size: 2.5rem; margin-bottom: 20px; }
.booking p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.booking-widget {
    max-width: 640px; margin: 0 auto;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); border-radius: 20px; padding: 40px; border: 1px solid rgba(255,255,255,0.2);
}
.booking-form-wrapper { text-align: left; color: #333; background: rgba(255,255,255,0.95); border-radius: 16px; padding: 28px; }
.booking-form-title { margin-bottom: 20px; color: #333; font-size: 1.5rem; }
.booking-form-grid { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.booking-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.booking-form-row-boats { grid-template-columns: repeat(3, 1fr); }
.booking-form-row-boats .booking-field .form-control { max-width: 72px; }
.booking-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.booking-form-row .booking-field { margin-bottom: 0; }
.booking-form-row-boats .booking-field { margin-bottom: 0; }
.booking-form-grid > .booking-field { margin-bottom: 16px; }
.booking-form-grid > .booking-field:last-child { margin-bottom: 0; }
.booking-form-wrapper label { font-weight: 600; font-size: 0.9rem; color: #444; }
.booking-form-wrapper .form-control { padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; width: 100%; }
.booking-form-wrapper .form-control:focus { outline: none; border-color: #0077be; box-shadow: 0 0 0 2px rgba(0,119,190,0.2); }
.booking-validation { color: #c00; font-size: 0.9rem; margin-bottom: 12px; }
.booking-success { color: #2e7d32; font-size: 1.1rem; padding: 20px 0; }
.booking-closed { color: #5c5c5c; font-size: 1rem; padding: 20px 0; }
.booking-form-actions { margin-top: 8px; }
.booking-form-actions .btn { color: white; }

/* Location */
.location { padding: 100px 20px; background: #f8fbff; }
.location-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.location-info h2 { font-size: 2.5rem; margin-bottom: 20px; color: #333; }
.location-details { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,119,190,0.1); margin-top: 30px; }
.contact-block { margin-bottom: 20px; }
.contact-block:last-child { margin-bottom: 0; }
.contact-hint { font-size: 0.9rem; color: #888; margin: 0 0 6px 0; }
.contact-item { display: flex; align-items: center; gap: 15px; color: #666; text-decoration: none; }
.contact-item:hover { color: #0077be; }
.contact-icon {
    width: 40px; height: 40px; min-width: 40px; min-height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, #0077be, #00bcd4); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
}
.contact-item-address { color: #0077be; text-decoration: underline; text-underline-offset: 3px; }
.contact-item-address:hover { color: #005a94; }
.map-placeholder {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb); border-radius: 15px; height: 400px;
    display: flex; align-items: center; justify-content: center; color: #0077be; font-size: 1.2rem; border: 2px dashed #90caf9;
}
.contact-map-embed { border-radius: 12px; overflow: hidden; min-height: 280px; background: #e8f5ff; }
.contact-map-embed .contact-map { height: 280px; width: 100%; }
.contact-map-embed .leaflet-container { height: 100% !important; min-height: 280px; font-family: inherit; }

/* Footer */
.footer { background: #1a1a1a; color: white; padding: 60px 20px 30px; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-links a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: #00bcd4; }
.footer-admin-link { color: #00bcd4; text-decoration: none; font-size: 0.9rem; }
.footer-admin-link:hover { text-decoration: underline; }
.footer-link { color: #00bcd4; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-compact { padding: 40px 20px 30px; }
.footer-compact .footer-links { margin-bottom: 16px; }

/* Privacy page */
.privacy-page { padding: 80px 20px 40px; max-width: 720px; margin: 0 auto; }
.privacy-title { font-size: 2rem; margin-bottom: 8px; color: #333; }
.privacy-updated { color: #888; font-size: 0.9rem; margin-bottom: 32px; }
.privacy-section { margin-bottom: 28px; }
.privacy-section h2 { font-size: 1.2rem; margin-bottom: 10px; color: #333; }
.privacy-section p, .privacy-section ul { color: #555; line-height: 1.65; margin-bottom: 10px; }
.privacy-section ul { padding-left: 1.4rem; }
.privacy-section a { color: #0077be; text-decoration: none; }
.privacy-section a:hover { text-decoration: underline; }
.privacy-contact { margin-top: 32px; font-weight: 500; }

html { scroll-behavior: smooth; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
.floating { animation: float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .floating { animation: none; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .hero p { font-size: 1.1rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .nav-links { display: none; }
    .location-content { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    /* Solid backgrounds on mobile to avoid expensive backdrop-filter during scroll */
    .landing-nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .btn-secondary { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.25); }
    .booking-widget { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.15); }
    .floating { animation: none; }
    /* Booking section: less padding so form uses more width on mobile */
    .booking { padding: 60px 12px 80px; }
    .booking-widget { padding: 20px 16px; max-width: none; margin-left: 0; margin-right: 0; }
    .booking-form-wrapper { padding: 20px 16px; }
    .location { padding: 60px 12px; }
}

@media (max-width: 520px) {
    .route-price-row { gap: 8px 16px; padding: 12px 16px; }
    .booking-form-row { grid-template-columns: 1fr; }
    .booking-form-row-boats { grid-template-columns: repeat(3, 1fr); }
    .booking-form-row-boats .booking-field .form-control { max-width: none; }
    .booking { padding-left: 10px; padding-right: 10px; }
    .booking-widget { padding: 16px 12px; }
    .booking-form-wrapper { padding: 16px 12px; }
}

/* Admin / Bookings page */
.admin-bookings { padding: 80px 20px 40px; max-width: 900px; margin: 0 auto; }
.admin-bookings h1 { font-size: 2rem; margin-bottom: 12px; color: #333; }
.admin-header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.admin-header-row h1 { margin-bottom: 0; }
.auth-form { max-width: 360px; }
.auth-form-grid { margin-bottom: 16px; }
.auth-form .booking-form-actions { margin-top: 0; }
.admin-intro { color: #666; margin-bottom: 24px; }
.admin-intro-bookings { margin-top: 8px; margin-bottom: 16px; }
.admin-settings { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; padding: 16px; background: #f5f5f5; border-radius: 10px; }
.admin-settings-title-block { flex-basis: 100%; }
.admin-settings label { font-weight: 600; }
.admin-settings-input { width: 80px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; }
.admin-settings-msg { color: #2e7d32; font-size: 0.9rem; }
.admin-notifications-on { color: #2e7d32; font-weight: 500; }
.admin-error { color: #c00; font-size: 0.95rem; margin-bottom: 16px; }
.admin-seasons { margin-bottom: 24px; padding: 16px; background: #f5f5f5; border-radius: 10px; }
.admin-seasons h3 { font-size: 1.1rem; margin-bottom: 8px; color: #333; }
.admin-seasons-add { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-seasons-add input { width: 140px; }
.seasons-list { list-style: none; padding: 0; margin: 0; }
.season-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
.season-item:last-child { border-bottom: none; }
.booking-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.booking-filters .btn { padding: 10px 20px; font-size: 14px; }
.booking-filters .btn-secondary { background: #e0e0e0; color: #333; border: 1px solid #ccc; }
.no-bookings { color: #888; padding: 40px 0; }
.booking-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.booking-card { background: #fff; border-radius: 12px; border: 1px solid #e0e0e0; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.booking-card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; background: #f8f9fa; border-bottom: 1px solid #eee; }
.booking-id { font-weight: 700; color: #666; }
.booking-route { font-weight: 600; color: #333; }
.booking-status { font-size: 0.85rem; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-approved { background: #e8f5e9; color: #2e7d32; }
.status-rejected { background: #ffebee; color: #c62828; }
.booking-card-body { padding: 16px 18px; }
.booking-card-body p { margin: 0 0 8px; font-size: 0.95rem; color: #444; }
.booking-card-body a { color: #0077be; }
.booking-notes { font-style: italic; color: #666; }
.booking-meta { font-size: 0.85rem; color: #888 !important; }
.booking-card-actions { padding: 12px 18px; background: #fafafa; border-top: 1px solid #eee; display: flex; gap: 10px; }
.booking-card-actions .btn { padding: 10px 20px; font-size: 14px; }
.booking-card-actions .btn-secondary { background: #e0e0e0; color: #333; border: none; }
.booking-card-actions .btn-secondary:hover { color: #333; background: #d0d0d0; }
.booking-card-actions .btn-danger.btn-reject { background: #c62828; color: #fff; border: none; }
.booking-card-actions .btn-danger.btn-reject:hover { background: #b71c1c; color: #fff; }
.admin-bookings .btn-secondary { background: #5c5c5c; color: #fff; border: 1px solid #444; }
.admin-bookings .btn-secondary:hover { background: #444; color: #fff; }
.admin-bookings a.btn { background: #5c5c5c; color: #fff; border: 1px solid #444; text-decoration: none; }
.admin-bookings a.btn:hover { background: #444; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.booking-edit-form { padding: 16px 18px; }
.booking-edit-caution {
    font-size: 0.9rem; margin: 0 0 12px 0; padding: 10px 12px 10px 36px;
    background: #fff8e1; border: 1px solid #ffc107; border-radius: 8px; color: #7d5a00;
    position: relative;
}
.booking-edit-caution::before { content: '⚠'; position: absolute; left: 12px; font-size: 1.1rem; }
.booking-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 16px; }
.booking-edit-field { display: flex; flex-direction: column; gap: 4px; }
.booking-edit-field.full { grid-column: 1 / -1; }
.booking-edit-field label { font-size: 0.85rem; font-weight: 600; color: #555; }
.booking-edit-field .form-control { padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; }
.booking-field-hint { font-size: 0.8rem; color: #888; margin-top: 2px; }
.booking-time-picker { display: flex; align-items: center; gap: 4px; }
.booking-time-picker .form-control { width: auto; min-width: 4ch; }
.booking-time-sep { font-weight: 600; }
