/* Import Spartan Font */
@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('toast.css');

/* Utilities - Essential only */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-table-cell { display: table-cell !important; }

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

body {
    font-family: 'Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Main Content */
main {
    margin-top: 74px;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%233CB8E6" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.25;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.1;
}

.highlight {
    color: #3CB8E6;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: #3CB8E6;
    color: #ffffff;
    border: 1px solid #3CB8E6;
}

.btn-primary:hover {
    background: #2aa9d7;
    border-color: #2aa9d7;
    box-shadow: 0 10px 25px rgba(60, 184, 230, 0.22);
}

.btn-outline {
    background: transparent;
    color: #3CB8E6;
    border: 1px solid #3CB8E6;
}

.btn-outline:hover {
    background: #3CB8E6;
    color: #ffffff;
    border-color: #3CB8E6;
}

.btn-outline-primary {
    background: transparent;
    color: #3CB8E6;
    border: 1px solid #3CB8E6;
}

.btn-outline-primary:hover {
    background: #3CB8E6;
    color: #ffffff;
}

.btn-outline-secondary {
    background: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-outline-danger {
    background: transparent;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-outline-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.btn-secondary {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #212529;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.22);
}

/* Mockup Container */
.mockup-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1);
}

.mockup-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(60, 184, 230, 0.3);
    border-radius: 2px;
}

.mockup-container i {
    font-size: 4rem;
    color: #3CB8E6;
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.features-subnav {
    margin-top: -1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: center;
}

.features-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(60, 184, 230, 0.25);
    background: rgba(60, 184, 230, 0.08);
    color: #1e293b;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.92rem;
}

.features-subnav-link:hover {
    background: rgba(60, 184, 230, 0.12);
    border-color: rgba(60, 184, 230, 0.35);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.app-promo {
    margin-top: 2.5rem;
}

.app-promo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(60, 184, 230, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.75rem;
    align-items: center;
}

.app-promo-title {
    font-size: 1.6rem;
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
}

.app-promo-text {
    margin: 0 0 1.25rem 0;
    color: #6c757d;
    line-height: 1.65;
    font-size: 0.98rem;
}

.store-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    user-select: none;
}

.store-btn i {
    font-size: 1.15rem;
}

.store-btn-apple {
    border-color: rgba(17, 24, 39, 0.18);
}

.store-btn-apple:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.store-btn-android {
    border-color: rgba(34, 197, 94, 0.25);
}

.store-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.app-social {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.social-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.app-promo-visual {
    display: flex;
    justify-content: center;
}

.app-promo-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(60, 184, 230, 0.18), rgba(60, 184, 230, 0.05));
    border: 1px solid rgba(60, 184, 230, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-promo-icon i {
    font-size: 3rem;
    color: #3CB8E6;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(60, 184, 230, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(60, 184, 230, 0.3);
    box-shadow: 0 15px 35px rgba(60, 184, 230, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3CB8E6, #2a9fd6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.cta p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsive - Optimalizált */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    main {
        margin-top: 60px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .mockup-container {
        width: 220px;
        height: 280px;
        order: -1;
    }
    
    .mockup-container i {
        font-size: 3rem;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-promo-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .app-promo-visual {
        justify-content: flex-start;
    }

    .app-promo-icon {
        width: 92px;
        height: 92px;
        border-radius: 20px;
    }

    .app-promo-icon i {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 52px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem;
    }
    
    .mockup-container {
        width: 180px;
        height: 240px;
    }
    
    .mockup-container i {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .mockup-container {
        width: 160px;
        height: 220px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0099cc, #007399);
}

/* Hero Search Styles */
.hero-search {
    margin: 2rem 0;
    max-width: 600px;
}

.search-container {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: #6c757d;
    font-size: 1rem;
    z-index: 2;
}

.hero-search-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    border: none;
    background: #ffffff;
    color: #2c3e50;
    font-size: 1rem;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    border: 1px solid rgba(60, 184, 230, 0.2);
    border-right: none;
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #3CB8E6;
    box-shadow: 0 0 0 3px rgba(60, 184, 230, 0.1);
}

.hero-search-input::placeholder {
    color: #6c757d;
}

.hero-search-btn {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #3CB8E6, #2a9fd6);
    border: 1px solid #3CB8E6;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #2a9fd6, #1e8bc3);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(60, 184, 230, 0.3);
}

.search-suggestions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.suggestion-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-tag {
    padding: 0.4rem 0.8rem;
    background: #ffffff;
    border: 1px solid rgba(60, 184, 230, 0.3);
    border-radius: 20px;
    color: #2c3e50;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #3CB8E6;
    border-color: #3CB8E6;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .hero-search-input {
        border-radius: 12px 12px 0 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .hero-search-btn {
        border-radius: 0 0 12px 12px;
        justify-content: center;
    }
    
    .search-suggestions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-search-input {
        padding: 1rem 1rem 1rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 1rem;
    }
    
    .hero-search-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Leaflet Map Overrides */
.leaflet-control-attribution {
    display: none !important;
}

/* Animations */

/* Modal System */
.modal, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    backdrop-filter: blur(5px); /* Modern blur effect */
    z-index: 2000; /* High z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden, .modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* The .d-none class in utility section handles hiding. 
   When it's removed, the modal is shown with the flex display from above. */

.modal-content {
    background: #ffffff;
    border-radius: 20px; /* More rounded */
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* Modern deep shadow */
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother spring-like animation */
    display: flex;
    flex-direction: column;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content, .modal-overlay.hidden .modal-content {
    transform: scale(0.95);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.modal-close {
    background: #f1f3f5;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #ffe3e3;
    color: #e03131;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: #495057;
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Form Styles inside Modal */
.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.modal-form .form-control,
.modal-form .form-input,
.modal-form .form-textarea,
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.modal-form .form-control:focus,
.modal-form .form-input:focus,
.modal-form .form-textarea:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3CB8E6;
    box-shadow: 0 0 0 3px rgba(60, 184, 230, 0.1);
}

.modal-form textarea.form-control,
.modal-form .form-textarea,
.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Modal Actions */
.modal-actions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: auto;
}

/* Modal Sizes */
.modal-lg .modal-content {
    max-width: 800px;
}

/* Checkbox Styles */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.checkbox-label {
    font-weight: 500;
    color: #2c3e50;
}

/* Radio Cards for Booking Type */
.booking-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-card {
    cursor: pointer;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6c757d;
}

.radio-card input:checked + .radio-card-content {
    border-color: #3CB8E6;
    background-color: rgba(60, 184, 230, 0.05);
    color: #3CB8E6;
}

.radio-card-content i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.radio-card-content span {
    font-weight: 600;
}

.form-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Modal */
@media (max-width: 576px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    /* Compact header on small screens */
    .modal-header {
        padding: 0.875rem 1.125rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    /* Less body padding = more visible content */
    .modal-body {
        padding: 1.125rem;
    }

    /* Footer: stacked full-width buttons */
    .modal-footer {
        padding: 0.875rem 1.125rem;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .booking-type-selector {
        grid-template-columns: 1fr;
    }
}

/* Mobile Optimization: Tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Optimization: Inputs (Prevent Zoom on iOS) */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}
