/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary-color, #3CB8E6) !important; }
.text-danger { color: #dc3545 !important; }
.text-success { color: #28a745 !important; }
.text-muted { color: #6c757d !important; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary { background-color: var(--primary-color, #3CB8E6); }
.badge-danger { background-color: #dc3545; }
.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #17a2b8; }

.modal-open { overflow: hidden; }

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

/* 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: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

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

.btn-outline:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* 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%);
}

.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;
}

.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;
    }
    
    .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 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 2000; /* High z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    /* transition: opacity 0.3s ease, visibility 0.3s ease; */
}

/* 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: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 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;
    }
    
    .booking-type-selector {
        grid-template-columns: 1fr;
    }
}
