.py-10 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}
body {
    font-family: 'Questrial', sans-serif;
    padding-top: 80px; /* Space for fixed top-bar + navbar */
}
.content {
    min-height: 50vh;
    margin-top: 80px;
}
.navbar-brand {
    padding: 0px;
}
.navbar {
    padding: 0px;
    height: 120px; /* Adjust the height as needed */
}
.navbar-custom {
    background-color: #d5d5d4 !important;
}
.hero, .sub-hero {
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    background-attachment: fixed;
}
.hero h1, .sub-hero h1{
    text-transform: uppercase;
}
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/bg.jpg');
    justify-content: center;
    height: 100vh;
}
.product-hero {
    justify-content: center;
    height: 80vh;
}
.sub-hero-left {
}
.sub-hero-right {
    justify-content: flex-end;
}
.sub-hero .content {
    max-width: 1000px;
}
.sub-hero-right .content {
    text-align: right;
}
@media (max-width: 991.98px) {
    .top-bar {
        display: none;
    }
    .navbar {
        top: 0px!important;
        height: 75px;
    }

    .hero, .sub-hero {
        height: auto;
        padding-bottom: 120px;
        padding-top: 120px;
        background-attachment: scroll;
    }

    .content {
        min-height: 50vh;
        margin-top: -40px;
    }
}
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background-color: #221B19;
    color: #F7EEE3;
    font-size: 0.9rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-bar span {
    font-size: 16px;
}
.btn-custom {
    background-color: #827B75;
    color: white;
    border: none;
}
.btn-custom:hover {
    background-color: #6f6963;
}
.navbar-custom {
    background-color: #E9E8E6 !important;
}
.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
    color: #242424 !important;
}
.hero h1 {
    text-transform: uppercase;
}
.navbar-collapse {
    transition: height 0.3s ease;
    background: #E9E8E6 !important;
}
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
    border-radius: 5px;
    font-size: 1rem; /* Adjust font size as needed */
}
.navbar-nav .nav-link:hover {
    text-decoration: none;
    position: relative;
}

.navbar-nav .nav-item .active, .navbar-nav .not-dropdown:hover {
    font-weight: bold;
    color: #000;
}

.dropdown-menu {
    background-color: #fefefe;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: none;
}
.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0px;
    transition: background-color 0.2s, color 0.2s;
}
.dropdown-menu .dropdown-item:hover {

    /*background-color: #827B75;*/
    color: #000;
    border-bottom: 1px solid #000;
    font-weight: bold;
    border-radius: 0px;
}
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1030;
}

.card-img-top {
    height: 250px; /* vagy amit szeretnél */
    object-fit: cover;
    width: 100%;
}


.btn-custom {
    background-color: #827B75;
    color: white;
    border: none;
}
.btn-custom:hover {
    background-color: #6f6963;
}
.blog-header {
    background-color: #221B19;
    color: #fff;
    padding: 4rem 0;
}
.blog-header h1 {
    font-size: 3rem;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}
.blog-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

/* Blog Hero Section */
.blog-hero {
    background-color: #221B19;
    padding: 6rem 1rem;
}

/* Article body */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Blog body typography */
.blog-body {
    font-size: 1.15rem;
    color: #333;
}
.blog-body img{
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.blog-body p {
}

.blog-body h2,
.blog-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #221B19;
    font-weight: bold;
}

.blog-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background-color: #f7f7f5;
    border-left: 4px solid #827B75;
    font-style: italic;
}

.blog-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-body li {
    margin-bottom: 0.5rem;
}




.contact-hero {
    background-color: #221B19;
    background-image: url('/img/bg_small.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: #fff;
    padding-top: 20px;
}

.contact-section h3, .contact-section h4 {
    color: #221B19;
    font-weight: 600;
}

.contact-section p,
.contact-section a {
    color: #444;
}

.contact-section .card {
    border-radius: 1rem;
    background-color: #fff;
}

.contact-section form .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
}

.contact-section .btn-custom {
    background-color: #827B75;
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.contact-section .btn-custom:hover {
    background-color: #6f6963;
}

/* Reszponzív térkép */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 12px;
}
.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive YouTube video */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




.product-text-box {
    margin-left: 120px;
    margin-right: 120px;
    padding-top: 20px;
    padding-bottom: 20px;
    color: white;
    overflow-y: auto; /* Enables vertical scrolling */
}

.about-hero .about-text {
    min-height: 80vh;
    height: auto; /* Adjust height dynamically */
}
@media (max-width: 1315px) {
    .product-text-box {
        margin: 60px;
    }
}
@media (max-width: 1199px) {
    .product-text-box {
        margin: 20px;
    }
    .about-hero .about-text {
        min-height: auto;
        padding: 10px 20px!important;
        max-width: 100%;
        overflow-wrap: break-word; /* Ensure text wraps properly */
        height: auto; /* Adjust height dynamically */
    }
}

/* Reference gallery styling */
.reference-gallery-image { max-height: 180px; object-fit: cover; }

/* Active document category styling */
.list-group-item.active {
    background-color: #827B75;
    border-color: #827B75;
    color: #fff;
}


@media (min-width: 992px) {
    .dropdown-submenu > a.dropdown-toggle::after {
        margin-top: 0px!important;
    }
}
.references-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(34,27,25,0.07);
    margin-bottom: 2rem;
}
.filter-select {
    min-width: 220px;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: 1.5px solid #e0e0e0;
    background: #f7f7f5;
    color: #221B19;
    font-size: 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(34,27,25,0.03);
}
.filter-select:focus {
    border-color: #bfa16a;
    outline: none;
    box-shadow: 0 0 0 2px #bfa16a33;
}
@media (max-width: 600px) {
    .references-filter {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }
    .filter-select {
        min-width: 100%;
        font-size: 1rem;
    }
}
.reference-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #bfa16a;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-align: center;
}
.card {
    border-radius: 1.25rem !important;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 16px 0 rgba(34,27,25,0.08);
    background: #fff;
}
.card-img-top {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
}
.card-title {
    color: #221B19;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.card-text {
    color: #6c5c4c;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.form-check-input:checked {
    background-color: #eb2d38;
    border-color: #eb2d38;
}

.btn-custom {
    background: linear-gradient(140deg, #eb2d38 30% 0%, #dc3545 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px 0 rgba(191,161,106,0.08);
}
.btn-custom:hover {
    background: linear-gradient(140deg, #bd1b26 30% 0%, #bf1123 100%);
    color: #cccccc;
}
.reference-section {
    background: linear-gradient(120deg, #f7f7f5 60%, #fffbe6 100%);
}
.reference-row {
    margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
    .card-img-top {
        height: 285px;
    }
}
@media (max-width: 600px) {
    .reference-section-title {
        font-size: 1.3rem;
    }
    .card-img-top {
        height: 285px;
    }
}

/* --- Contact Info Stylish CSS --- */
.contact-info-block {
    background: #f7f7f5;
    border-radius: 1rem;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px 0 rgba(191,161,106,0.06);
    transition: box-shadow 0.18s, background 0.18s;
}
.contact-info-block:hover {
    background: #fffbe6;
    box-shadow: 0 4px 24px 0 rgba(191,161,106,0.13);
}
.contact-info-icon {
    color: #bfa16a;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    transition: color 0.18s;
}
.contact-info-link {
    color: #221B19 !important;
    font-weight: 500;
    transition: color 0.18s;
}
.contact-info-link:hover {
    color: #bfa16a !important;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .contact-info-block {
        padding: 1rem 0.7rem;
    }
    .contact-info-icon {
        font-size: 1.2rem;
    }
}



.category-card {
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.category-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(34,27,25,0.18);
}
.category-card .card-img-overlay {
    transition: background 0.2s;
}
.category-card:hover .card-img-overlay {
    background: rgba(255,255,255,0.12);
}

/* Garage offer form styling */
.offer-form {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(34,27,25,0.06);
}

.offer-tabs .nav-link {
    border-radius: 50rem;
    color: #221B19;
    background: #f7f7f5;
    margin-right: 0.5rem;
}

.offer-tabs .nav-link.active {
    background: #bfa16a;
    color: #fff;
}

.offer-tabs .nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.offer-form .sub-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1.5rem;
}

.offer-form .form-control,
.offer-form .form-select {
    border-radius: 0.5rem;
    background: #f7f7f5;
    border: 1px solid #e0e0e0;
}

.offer-form .form-control:focus,
.offer-form .form-select:focus {
    border-color: #bfa16a;
    box-shadow: 0 0 0 0.2rem rgba(191,161,106,0.25);
    background: #fff;
}

.navbar-brand img {
    max-height: 90px; /* Ensure logo fits within the navbar */
}




.font-weight-bold, .fw-bold {
    font-weight: bold!important;
}










.custom-tabs .nav-link {
    border: 2px solid #dee2e6;
    border-bottom: none;
    background-color: white;
    color: #6c757d;
    font-weight: 600;
    padding: 15px 25px;
    margin-right: 5px;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    position: relative;
}
.custom-tabs .nav-link:hover {
    background-color: #f8f9fa;
    color: #eb2d38;
    transform: translateY(-2px);
    border-color: #eb2d38;
}
.custom-tabs .nav-link.active {
    background-color: white;
    border-color: #eb2d38;
    color: #eb2d38;
    box-shadow: 0 4px 15px rgba(235, 45, 56, 0.15);
}
.custom-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #eb2d38;
}
.tab-content .card {
    border-top: 3px solid #eb2d38;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px !important;
    background-color: white;
}
.card-body{
    border-radius: 0 0 10px 10px !important;
}
.card-body table {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.card-body table th {
    background-color: #eb2d38;
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px 15px;
}
.card-body table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}
.card-body table tr:hover {
    background-color: #f8f9fa;
}
.card-body table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-body img{
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Profil tab specific styles */
.profil-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.profil-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #eb2d38 !important;
    box-shadow: 0 15px 35px rgba(235, 45, 56, 0.15), 0 5px 15px rgba(0,0,0,0.1) !important;
}

.profil-image-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid #eb2d38;
}

.profil-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
}

.profil-card:hover .profil-image-container img {
    transform: scale(1.1);
}

.profil-title {
    background: linear-gradient(135deg, #eb2d38 0%, #c41e3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: none;
}

/* Content images in card-body */
.card-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 10px auto;
    display: block;
    text-align: center;
}

.card-body img:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Fancybox content images wrapper */
.card-body a[data-fancybox^="content-gallery"] {
    border-radius: 8px;
    overflow: hidden;
    display: block;
    margin: 10px auto;
    text-align: center;
    width: fit-content;
}

/* Center images in paragraphs */
.card-body p {
    text-align: center;
}

.card-body p img {
    margin: 15px auto;
}

/* Gallery Carousel Styles */
.gallery-image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.gallery-image-container:hover .gallery-image {
    transform: scale(1.05);
}

.zoom-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-image-container:hover .zoom-overlay {
    opacity: 1;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(235, 45, 56, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(235, 45, 56, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: -40px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #eb2d38;
    background-color: transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #eb2d38;
    opacity: 1;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* No Gallery Placeholder */
.no-gallery-placeholder {
    aspect-ratio: 4/3;
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
}

/* Description Content Styling */
.description-content {
    padding-right: 2rem;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
    color: #eb2d38;
    margin-bottom: 1rem;
}

.description-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .description-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .carousel-indicators {
        bottom: -30px;
    }
}

@media (max-width: 767.98px) {
    .gallery-image-container {
        aspect-ratio: 16/10;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }

    /* Mobile Tab Navigation - Horizontal Scroll */
    .custom-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding-bottom: 2px;
        margin-bottom: 0 !important;
    }

    .custom-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .custom-tabs .nav-item {
        flex: 0 0 auto !important;
        white-space: nowrap;
        margin-bottom: 0;
    }

    .custom-tabs .nav-link {
        padding: 12px 16px !important;
        margin-right: 8px !important;
        font-size: 0.85rem !important;
        text-align: center;
        border-radius: 8px 8px 0 0 !important;
        white-space: nowrap;
        min-width: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-tabs .nav-link span {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-left: 4px;
    }

    .custom-tabs .nav-link i {
        font-size: 0.9rem !important;
        margin-right: 6px !important;
        flex-shrink: 0;
    }

    /* Add scroll indicators */
    .nav-tabs-container {
        position: relative;
    }

    .nav-tabs-container::before,
    .nav-tabs-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 2;
    }

    .nav-tabs-container::before {
        left: 0;
        background: linear-gradient(to right, rgba(248, 249, 250, 1), transparent);
    }

    .nav-tabs-container::after {
        right: 0;
        background: linear-gradient(to left, rgba(248, 249, 250, 1), transparent);
    }
}

@media (max-width: 575.98px) {
    /* Extra small devices - even more compact */
    .custom-tabs .nav-link {
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
        margin-right: 6px !important;
    }

    .custom-tabs .nav-link span {
        font-size: 0.8rem;
    }

    .custom-tabs .nav-link i {
        font-size: 0.85rem !important;
        margin-right: 5px !important;
    }
}








.palette-card.hover-shadow:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(33, 27, 25, 0.25), 0 0.125rem 0.25rem rgba(33, 27, 25, 0.15);
    transform: translateY(-4px) scale(1.03);
    transition: box-shadow 0.3s, transform 0.3s;
    z-index: 2;
}

.palette-card.hover-shadow {
    transition: box-shadow 0.3s, transform 0.3s;
}

.garage-icons-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 50px; /* Increased gap for wider spacing */
    z-index: 10;
    align-items: center; /* Ensures icons are aligned in one line */
    width: 90%; /* Makes the container wider */
    justify-content: space-between; /* Distributes icons evenly */
}

.garage-icon-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0); /* Removes vertical offset */
}

.garage-icon {
    width: 70px;
    height: 70px;
    filter: brightness(0) invert(1) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.garage-icon-item:hover .garage-icon {
    transform: scale(1.2);
    filter: brightness(0) invert(1) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.garage-icon-text {
    position: absolute;
    top: 70px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    display: none;
    pointer-events: none;
}

.garage-icon-item:hover .garage-icon-text {
    display: block;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .garage-icons-container {
        gap: 30px; /* Adjust gap for smaller screens */
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        bottom: 20px;
    }

    .garage-icon-item {
        margin-bottom: 10px;
        transform: translateY(0); /* Removes vertical offset */
    }
}

@media (max-width: 480px) {
    .garage-icons-container {
        gap: 20px; /* Adjust gap for very small screens */
    }

    .garage-icon {
        width: 32px;
        height: 32px;
    }

    .garage-icon-text {
        font-size: 16px;
        padding: 3px 6px;
    }
}



.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('/img/contact-bg_small.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 0;
    color: white;
}

.contact-logo {
    width: 300px;
    max-width: 100%;
    margin-bottom: 2rem;
}

.contact-details h3 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.contact-info-item i {
    margin-right: 1rem;
    font-size: 1.3rem;
    color: white;
    width: 24px;
    text-align: center;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.map-container iframe {
    filter: grayscale(100%) contrast(1.2);
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-details, .map-container {
        margin-bottom: 2rem;
    }
}

/* Active nav link styling */
.nav-link.active , .nav-link:hover {
    border-bottom: 3px solid #16181b !important;
    border-radius: 0 !important;
}

/* Active dropdown item styling */
.dropdown-item.active {
    /* background-color: #eb2d38 !important; */
   background-color: transparent !important;
    color: #000 !important;
    font-weight: bold !important;
}

/* Hover state should not override active state permanently */
.dropdown-item:hover:not(.active) {
    /*background-color: #eb2d38; */
   background-color: transparent !important;
    color: #000;
}

/* Active state takes precedence over hover */
.dropdown-item.active:hover {
    /* background-color: #eb2d38 !important; */
    color: #000 !important;
}

/* Multilevel dropdown styles */
.dropdown-submenu {
    position: relative;
}

/* Növeljük a menüelemek méretét a jobb használhatóság érdekében */
.dropdown-item {
    padding: 0.5rem 1.5rem;
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* Szélesebb "tolerancia zóna" a menük körül */
.dropdown-menu {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Eltávolítottuk a menü érzékelési területet, mivel már nem kell hover-hez */

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: 0px; /* Növelt távolság az almenük között */
    border-radius: 0 6px 6px 6px;
    /* Megnövelt árnyék, hogy láthatóbb legyen */
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
}

.dropdown-item.active,.dropdown-item:active {
   background-color: transparent !important;
}


    /* Hover-re és explicit show class esetén is jelenjen meg */
    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }

    /* Aktív állapot jelzése a kinyitott almenühöz */
    .dropdown-submenu > a.dropdown-toggle.active,
    .dropdown-submenu > a.dropdown-toggle:focus {
        /*background-color: #eb2d38 !important;*/
        background-color: transparent !important;
        color: #000 !important;
    }

    /* Hover state for dropdown toggles that are not permanently active */
    .dropdown-submenu > a.dropdown-toggle:hover:not([data-permanent-active="true"]) {
        /*background-color: #eb2d38;*/
       background-color: transparent !important;
        color: #000 !important;
    }

    /* Permanent active state should always override hover */
    .dropdown-submenu > a.dropdown-toggle[data-permanent-active="true"] {
        /*background-color: #eb2d38;*/
       background-color: transparent !important;
        color: #000 !important;
    }


/* Desktop View */
@media (min-width: 992px) {


    /* Arrow for desktop view - FIXED: Ne tűnjön el hover-kor */
    .dropdown-submenu > a.dropdown-toggle::after {
        display: block !important;
        content: "";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #6c757d;
        margin-top: 8px;
        margin-right: -5px;
    }

    .dropdown-submenu > a.dropdown-toggle.active::after {
        border-left-color: white !important;
        display: block !important;
    }

    .dropdown-submenu > a.dropdown-toggle[data-permanent-active="true"]::after {
        border-left-color: white !important;
        display: block !important;
    }

    .dropdown-submenu > a.dropdown-toggle:hover:not(.active):not([data-permanent-active="true"])::after {
        border-left-color: white !important;
        display: block !important;
    }
}

/* Mobile View */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        left: 0;
        margin-left: 0; /* Eltávolítva a margó mobil nézetben */
        padding-left: 15px; /* Helyette belső padding a jobb olvashatóságért */
        border-left: 2px solid #ddd;
        border-radius: 0;
        box-shadow: none;
    }

    /* Arrow for mobile view - points down instead of right */
    .dropdown-submenu > a.dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid #6c757d;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        float: right;
        margin-top: 8px;
        transition: transform 0.2s;
    }

    /* Arrow rotation when submenu is open */
    .dropdown-submenu > a.dropdown-toggle.active::after {
        transform: rotate(180deg);
        border-top-color: white;
    }

    /* Aktív állapot jelölése mobil nézetben */
    .dropdown-submenu > a.dropdown-toggle.active {
        background-color: #000000;
        color: white;
        font-weight: 500;
    }

    /* When submenu is open in mobile */
    .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }
}

html, body {
    overflow-x: hidden !important;
}
