body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--text-light);
}

html {
  scroll-behavior: smooth;
  scroll-margin-top: 40px;
}

:root {
    --black: #262626;
    --text-light: #ffffff;
    --red: #e40016;
    --grey-dark: #555555;
    --light-red: #e43940;
    --color-grey-light: #f5f5f5f5;
    --whatsapp: #25d366;
}

.container {
    width: 100%;
    max-width: 1424px;
    margin: 0 auto;
}
h1 { 
	font-size: 50px !important;
}
h2 { 
	font-size: 36px !important;
	line-height: 48px !important; 
}
h3 { 
	font-size: 24px !important;
	line-height: 36px !important;
}
h4 {font-size: 18px !important;}
p{
	font-size: 18px !important;
	line-height: 27px;
	font-weight: 400;
	margin-bottom: 0 !important;
}


@media only screen and (max-width: 768px) 
{
	h1 { font-size: 42px !important;}
	h2 { font-size: 32px !important;
		line-height: 40px !important;
	}
	h3 { font-size: 20px !important;
		line-height: 30px !important;
	}
	h4 {font-size: 16px !important;}
	p {
		font-size: 16px !important;
		line-height: 24px;
	}
}

a {
    text-decoration: unset !important;
}

header {
    background-color: var(--black);
    color: var(--text-light);
    padding: 5px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-main-layout {
    padding: 0 12px;
}

.mobile-filters-trigger-container,
#contact-form-anchor,
.container-main h1,
.container-main p,
.container-main h3,
.contact-content,
body.error404 main,
.auction-sheet-image-section,
.results-section,
.filters-section,
.auction-guide-card,
.details-equipment-card,
.details-specifications-card {
    margin: 0 12px;
}
#contact-form-anchor {
    padding: 50px 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media only screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
}

/***************************************************/
.filter-actions-mobile #reset-filters-mobile-btn,
#main-header-sticky a.btn-secondary,
.btn-third,
.btn-whatsapp,
.btn-secondary,
.btn-primary {
    transition: background-color 0.5s, color 0.5s, border-color 0.5s !important;
    min-width: 100px !important;
    text-align: center !important;
    display: flex !important;
    font-size: 16px !important;
    width: fit-content !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-content: center !important;
    align-items: center !important;
    height: 45px !important;
    border-radius: 8px !important;
    width: 100% !important;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
    text-decoration: unset !important;
    background-image: none !important;
        line-height: 45px !important;
}

.btn-primary {
    background-color: var(--red) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--red) !important;
    &:hover {
         background-color: transparent !important;
        color: var(--red) !important;
        border: 1px solid var(--red) !important;
    }
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--text-light) !important;
    border: 1px solid var(--text-light) !important; 
    &:hover {
        background-color: var(--red) !important;
        color: var(--text-light) !important;
        border: 1px solid var(--red) !important;
    }
}
.btn-whatsapp {
    background-color: var(--whatsapp) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--whatsapp) !important; 
    &:hover {
        background-color: var(--text-light) !important;
        color: var(--whatsapp) !important;
        border: 1px solid var(--whatsapp) !important;
    }
}

.filter-actions-mobile #reset-filters-mobile-btn,
#main-header-sticky a.btn-secondary,
.btn-third {
    background-color: transparent !important;
    color: var(--black) !important;
    border: 1px solid var(--black) !important;
    &:hover {
        background-color: var(--red) !important;
        color: var(--text-light) !important;
        border: 1px solid var(--red) !important;
    }
}

.filter-actions-mobile #reset-filters-mobile-btn {
    min-width: unset !important;
}

.btn-whatsapp i {
    font-size: 20px !important;
}
/**********************************************/
.btn-card {
    padding: 0 15px 15px;
    margin-top: 15px;
}

footer {
    background-color: var(--black);
    color: var(--text-light);
    padding: 15px 12px;
    margin-top: auto;
}

.header-content,
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width: 768px) {
    footer .footer-content {
        flex-direction: column !important;
        justify-content: left;
        align-items: flex-start;
        gap: 15px;
        display: flex;
    }

    .footer-links a {
        margin-left: 0 !important;
    }
}


.footer-links a {
    color: var(--text-light);
    margin-left: 1rem;
    text-decoration: none;
}

.container-main {
    margin-top: 5rem;
}

.container-main h1,
.container-main h3 {
    margin-bottom: 1.5rem;
}
.container-main h3 {
    font-weight: 600;
}
.container-main p {
    color: #333;
    margin-bottom: 4rem !important;
}
/**********************************************************/
/*     Style dla Filtrów i Siatki Aut (index.html)       */
/**********************************************************/
/* Ukryj kontener przycisku "Filtry", gdy panel filtrów jest otwarty */
body.filters-open .mobile-filters-trigger-container {
    display: none;
}

.filters-section.card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.filters-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: #333;
}

.filters-section h2 .icon {
    margin-right: 0.5rem;
    color: #555;
}

#filters-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group.reset-button-group {
    justify-content: end;
}
.filter-group.reset-button-group .btn-primary {
    border-radius: 0 !important;
    height: 40px !important;
}
.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #555;
}

.filter-group input,
.filter-group select {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.filter-group input::placeholder {
    color: #adb5bd;
}

.filter-group-range .range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-range span {
    color: #6c757d;
}


.results-section {
    margin-top: 1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#search-results-count {
    font-weight: bold;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

@media only screen and (max-width: 1200px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media only screen and (min-width: 769px) {
    .filters-section.filters-mobile {
        display: none;
    }
}
.sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-group .custom-select-wrapper {
    width: 200px;
}

.sort-group label {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
}

#sort-by {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    background-color: #fff;
}

#status-message {
    text-align: center;
    padding: 40px 10px;
    font-size: 1.1em;
    color: #555;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

#status-message.error {
    color: #dc3545;
    font-weight: bold;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.mobile-filters-trigger-container,
#filters-panel {
    display: none;
}

@media only screen and (max-width: 768px) {
    #filters-panel {
        background-color: #f8f9fa;
        padding: 0;
        margin: 0;
        border-radius: 0;
        border-right: 1px solid #e0e0e0;
        position: fixed;
        display: none; 
        flex-direction: column;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 75vw;
        height: 100dvh;
        z-index: 1111;
        transition: left 0.3s ease-in-out;
        box-sizing: border-box;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }
    body.filters-panel-open::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1110; 
        pointer-events: none; 
    }
#filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1045;
    pointer-events: none; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

#filters-panel.is-active ~ #filters-overlay,
#filters-panel.is-activating ~ #filters-overlay {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

    
    #filters-panel.is-activating,
    #filters-panel.is-active {
        display: flex !important;
    }
    #filters-panel.is-active {
        left: 0;
    }
    .filter-grid {
        display: none !important;
    }

    .mobile-filters-trigger-container {
        display: flex;
    }

    #filters-panel .filter-grid {
        grid-template-columns: repeat(3, 1fr);
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }

    .filter-scroll-area {
        flex-grow: 1; 
        overflow-y: auto;
        padding:  0 12px 20px 0; 
        -webkit-overflow-scrolling: touch;
    }
    .filter-actions-mobile button {
        width: 100%;
    }
    body.filters-panel-open {
        overflow: hidden; 
    }

#filters-panel .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}

#filters-panel .filters-header h2 {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: #333;
    margin: 0;
    border-bottom: unset !important;
    display: flex;
    align-items: center;
}
.filter-actions-mobile {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    margin-right: 12px;
}

#filters-panel .filters-header h2 i {
    margin-right: 0.5rem;
    color: #555;
}

#close-filters-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #555;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}

#close-filters-btn:hover,
#close-filters-btn:focus {
    color: #000;
    outline: none;
}

.mobile-filters-trigger-container {
    display: block;
}

    .filters-section.card {
        margin-bottom: 0;
        border-radius: 0;
        padding: 1rem 1.5rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-group .custom-select-wrapper {
        width: 100%;
    }

    .sort-group {
        width: 100%;
        flex-direction: column;
        align-items: self-start;
    }
    #filters-form-mobile {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        padding-left: 12px;
    }
}

/**********************************************************/
/*     Style dla Filtrów i Siatki Aut (index.html)       */
/**********************************************************/
/************** grid auta *****************/

#cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

.car-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    /* Dodajemy przezroczystą ramkę, aby uniknąć skoku przy hover */
    border: 1px solid transparent;
    /* Dodajemy border-color do transition dla płynnego efektu */
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    /* Zachowujemy istniejący cień i dodajemy nowy, czerwony */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 0 8px rgba(255, 0, 0, 0.3);
    /* Dodany lekki czerwony cień */
    /* Zmieniamy kolor ramki na czerwony */
    border-color: red;
}

.car-card .img-container {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #e5e7eb;
    position: relative;
}

.car-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.car-card:hover img {
    transform: scale(1.03);
}

.car-card .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-card .placeholder-img img {
    width: 50%;
    height: auto;
    max-height: 50%;
    object-fit: contain;
    opacity: 0.4;
    transform: none !important;
}
.car-card .info-label {
    font-weight: 600;
}
.car-card .card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.car-card .card-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 20px;
    margin: 0 0 15px;
}

.car-card .card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.car-card .card-price::before {
    content: "¥";
    margin-right: 0.15em;
    font-weight: normal;
}

.car-card .card-specs {
    font-size: 0.85rem;
    color: var(--grey-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    margin-top: auto;
    margin-bottom: 15px;
}

.car-card .card-specs .card-specs-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.span-ocena {
    display: flex;
}

.card-content-title-inner {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.car-card .card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.car-card .icon-spec {
    margin-right: 0.35em;
    width: 1em;
    text-align: center;
    color: #9ca3af;
}

.car-card .card-score {
    font-size: 0.85rem;
    color: var(--grey-dark);
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.car-card .card-score .icon-spec {
    color: #fbbf24;
}



@media only screen and (max-width: 1000px) {
    #cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .car-card .card-specs {
        gap: 15px;
    }
    .car-card .card-specs span {
        gap: 5px;
    }
}

@media only screen and (max-width: 650px) {
    #cars-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Paginacja --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    /* Mniejszy odstęp */
    margin-top: 2rem;
    /* Odstęp od siatki */
    padding: 1rem 0;
}

.pagination button,
.pagination span {
    padding: 0.5rem 0.8rem;
    /* Mniejszy padding */
    border: 1px solid #d1d5db;
    /* Szara ramka */
    background-color: #fff;
    cursor: pointer;
    border-radius: 0.25rem;
    user-select: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #f3f4f6;
}

.pagination button:not(:disabled):hover {
    background-color: #f3f4f6;
    border-color: #adb5bd;
}

.pagination span.current-page {
    font-weight: 600;
    border-color: var(--grey-dark);
    background-color: #f3f4f6;
    cursor: default;
}

.year-range-selects {
    display: flex;
    width: 100%;
    gap: 15px;
}

.year-range-selects .custom-select-wrapper {
    width: 100% !important;
}

body.error404 main {
    display: flex;
    align-items: center;
    width: auto;
    justify-content: center;
    margin-top: auto;

}

main {
    margin-bottom: 5rem;
}

/**********************************************************/
/*       Style dla Strony Szczegółów Samochodu           */
/**********************************************************/
.card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 6px rgb(0 0 0 / 10%),
        0 2px 4px -1px rgb(0 0 0 / 10%);
    padding: 30px;
    margin-bottom: 1.5rem;
}

.details-images-card.card {
    padding: unset !important;
}

.card h2 {
    font-size: 1.25rem !important;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    margin-top: 0;
    gap: 10px;
}

.card h2 .icon {
    margin-right: 0.5rem;
    color: #4b5563;
}

.car-main-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
    padding: 0 25px;
}

.car-year-ref {
    color: var(--grey-dark);
    font-size: 1rem;
}

.details-main-layout {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}
.form-group.form-submit-group {
    display: flex;
    justify-content: flex-end;
    align-items: end;
    width: 100%;
}
.form-group.form-submit-group button {
    max-width: 400px;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-top: 0;
    gap: 10px;
    margin-bottom: 20px;
}
.form-group-checkbox input[type="checkbox"] {
    margin: 0px;
    width: 18px; 
    height: 18px;
    cursor: pointer;
}
.form-group-checkbox label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    }
.form-group-checkbox label a {
    color: var(--red);
    text-decoration: underline;
}
.form-group-checkbox label {
    margin-bottom: 0 !important;
}
@media only screen and (max-width: 1024px) {
    .details-main-layout {
        flex-direction: column;
    }
    .details-info-contact-column.contact-mobile-hidden {
        display: none !important;
    }

}
@media only screen and (min-width: 1024px) {
    .details-info-contact-column.contact-destkop-hidden {
        display: none !important;
    }
    
}
@media only screen and (max-width: 768px) {
    .form-group.form-submit-group button {
        max-width: unset;
    }
    .filter-group.search-group {
        margin-bottom: 15px;
        margin-right: 12px;
    }
}
.details-images-card .main-image img {
    width: 100%;
    border-radius: 0.5rem;
    display: block;
}

.additional-images-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-secondary .icon {
    margin-right: 0.5rem;
}

.details-info-card {
    background-color: #f9fafb;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}
.details-images-column {
    width: 75%;
}
.details-info-contact-column {
    width: 25%;
    min-width: 360px;
}
.detail-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.detail-label .icon {
    margin-right: 0.35rem;
    width: 1em;
    text-align: center;
    color: #9ca3af;
}

.detail-value {
           font-size: 16px !important;
    font-weight: 500;
    color: #262626;
    word-break: break-word;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-value i {
    color: var(--grey-dark);
}

.contact-card {
    background-color: #f9fafb;
}

.contact-card h2 {
    gap: 10px;
}

.contact-info-text {
    color: #4b5563;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.details-grid-wide {
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media only screen and (max-width: 1024px) {
    .details-info-contact-column,
    .details-images-column {
        width: 100%;
        min-width: unset;
    }
}

@media only screen and (min-width: 768px) {
    .details-grid-wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

.details-equipment-card {
    grid-column: 1 / -1;
    background-color: #f9fafb;
}

.equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.equipment-list li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.equipment-list .icon-eq {
    margin-right: 0.5rem;
    color: #16a34a;
}

.auction-guide-card {
    grid-column: 1 / -1;
}

.auction-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 2rem;
}

@media only screen and (min-width: 640px) {
    .auction-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auction-guide-column {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auction-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.auction-code {
    flex: none;
    width: 2rem;
    text-align: center;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    padding: 0.1rem 0;
    font-weight: 600;
    line-height: 1.25rem;
}

.auction-item p {
    margin: 0;
    line-height: 1.4;
    color: #4b5563;
}


.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.error-message h1 {
    color: #b91c1c;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.error-message p {
    margin-bottom: 1rem;
}

.car-main-header {
    background-color: var(--color-grey-light);
    color: var(--text-light);
    padding: 75px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    text-align: center;
}


.swiper {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    justify-content: center;
    align-items: center;
    width: 100% !important;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination {
    align-items: center;
    display: flex;
    justify-content: center;   
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
}

.swiper-slide .placeholder-swiper-img {
    width: 50%;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
}

.auction-sheet-image-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    display: flex;
    gap: 50px;
}


.auction-sheet-image-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}


.swiper-pagination-bullet {
    height: 4px !important;
    width: 16px !important;
    border-radius: 5px !important;
    background: var(--white-color) !important;
    opacity: 1 !important;
    transition: all 0.3s ease-in-out, opacity 0.3s;
    opacity: 0.5;
    border: 1px solid rgba(0, 0, 0, 0.802);
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--red) !important;
    height: 6px !important;
    width: 32px !important;
    border-radius: 5px !important;
    opacity: 1;
}

.auction-sheet-image {
    max-width: 100%;
    object-fit: contain;
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 450px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: inline-block;
}

.auction-sheet-image:hover {
    transform: scale(1.015);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media only screen and (max-width: 600px) {
    .auction-sheet-image-section {
        flex-direction: column;
        gap: 25px;
    }
}

/***************************/
/*     Koniec Stylów       */
/***************************/
.custom-select-container {
    position: relative;
    width: 100% !important;
    max-width: 400px;

}

.custom-select-selected {
    padding: 0em 1em;
    border: 1px solid #707070;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative !important;
    justify-content: space-between;
    height: 38px !important;
    color: #707070 !important;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #707070;
    border-top: none;
    background: #fff;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

.custom-select-dropdown.show {
    display: block;
}

.custom-select-option {
    padding: 0.5em 1em;
    color: #707070 !important;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.custom-select-option:hover {
    background: #eee !important;
    color: #000;
}

.custom-select-selected.open {
    border: 1px solid #707070 !important;
    border-bottom: 1px solid #eee !important;
}
@media only screen and (max-width: 768px) {
    .custom-select-container {
        max-width: 100%;
    }
}
/***********/
.main-error404 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

/*********** kontakt *******/
.contact-page-container {
    padding-top: 30px;
    padding-bottom: 30px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-form-section {
    flex: 2;
    min-width: 300px;
}

.contact-card {
    padding: 25px;
    background-color: #f8f9fa;
}
.details-info-card h2,
.contact-card h2,
.contact-form-section h2 {
        margin-top: 0;
    color: #333;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    line-height: unset !important;
}

#contact-form-anchor i,
.details-info-card h2 i,
.details-equipment-card h2 i,
.details-specifications-card h2 i,
.auction-sheet-image-section i,
.contact-card h2 i,
.contact-form-section h2 i {
    margin-right: 8px;
    color: var(--red) !important;
}

#contact-form {
    padding-top: 35px;
}

.auction-sheet-image-section,
.details-specifications-card.card {
    border-radius: unset !important;
    box-shadow: unset !important;
    padding: 30px 10px !important;
}

.contact-form-section p {
    width: 100%;
    max-width: 360px;
    margin-bottom: 35px;
}


.contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-form .form-group {
    margin-bottom: 30px;
}


.form-group.form-group-double {
    display: flex;
    width: 100%;
    gap: 30px;
}

.form-group.form-group-double .form-group-inner {
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #262626;
}

.form-input-underline {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
    background-color: transparent;
    transition: border-color 0.2s ease-in-out;
    font-size: 14px;
}
.form-group:hover textarea,
.form-group .form-group-inner:hover .form-input-underline,
.form-input-underline:focus {
    outline: none;
    border-bottom-color: var(--red);
}

textarea.form-input-underline {
    resize: vertical;
    resize: none;
}

.form-submit-group {
    margin-top: 30px;
}

.flash-messages .alert {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.flash-messages .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.flash-messages .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.flash-messages .alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

@media only screen and (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }

    .form-group.form-group-double {
        flex-direction: column;
    }
    .custom-select-dropdown {
        max-height: 300px;
    }
}

/******************************/
.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    padding: 10px;
    color: var(--black);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--black);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.scroll-to-top:hover {
    background-color: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
}

.scroll-to-top i {
    font-size: 14px;
}

/************************ sticky header *****/
#main-header {
    position: relative;
    z-index: 100;
}

#main-header-sticky {
    position: fixed;
    top: -150px;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.759);
    background-color: #fff;
    transition: top 0.3s ease-in-out;
}

#main-header-sticky.is-visible {
    top: 0;
}

#main-header-sticky .header-content {
    padding: 5px 12px !important;
}

.footer-logo img,
.logo img {
    max-height: 100px;
    width: 200px;
    height: 100%;
}

.hamburger-button {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 6px;
}

#main-header .hamburger-bar {
    background-color: #fff;
}

#main-header-sticky .hamburger-bar {
    background-color: #333;
}

.bar-one {
    top: 10px;
    transform-origin: left center;
}

.bar-two {
    top: 18px;
    opacity: 1;
    transform: translateX(0);
}

.bar-three {
    top: 26px;
    transform-origin: left center;
}

.hamburger-button.is-active .bar-one {
    transform: rotate(45deg);
    top: 8px;
    left: 8px;
}

.hamburger-button.is-active .bar-two {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-button.is-active .bar-three {
    transform: rotate(-45deg);
    top: 28px;
    left: 8px;
}

.mobile-nav-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 270px;
    height: 100dvh;
    background-color: #222;
    padding: 12px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    overflow: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-container.is-active {
    left: 0;
}

.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links ul.first-ul {
    margin-top: 35px;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.is-active {
    opacity: 1;
    visibility: visible;
}

@media only screen and (max-width: 767px) {

    #main-header .desktop-nav,
    #main-header-sticky .desktop-nav {
        display: none;
    }

    #main-header .hamburger-button,
    #main-header-sticky .hamburger-button {
        display: block;
    }

    .mobile-nav-links li {
        margin-left: 0 !important;
    }
    .auction-sheet-image-section, .details-specifications-card.card {
        border-radius: unset !important;
        box-shadow: unset !important;
        padding: 30px 0px !important;
    }
}

body.body-no-scroll {
    overflow: hidden;
}

    .flash-messages { margin-bottom: 20px; }
    .alert {
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid transparent;
        border-radius: 4px;
        font-size: 0.95em;
    }
    .alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
    .alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
    .alert-warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }
    .alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }

    .flash-messages {
        padding: 0 12px;
    }

/**************************/
.breadcrumbs-nav {
    margin-top: 15px;
    margin-bottom: 15px;
}

.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6c757d;
    justify-content: center;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--black);
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    color: var(--red);
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "|";
    padding: 0 0.75em;
    color: #6c757d;
}

.breadcrumb-item.active {
    color:  var(--red);
    font-weight: 500;
}

/************* umowa ***********/
.agreement-page-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 12px;
    }

    @media (min-width: 768px) {
        .agreement-page-container {
            grid-template-columns: 1fr 1fr;
        }
        .umowa-btn {
            max-width: 330px;
        }
    }

    .agreement-text-section {
        background-color: var(--text-light);
    }

    .agreement-text-section h2 {
        display: flex;
        align-items: center;
        color: #333;
    }
    .agreement-text-section h2 i {
        margin-right: 0.75rem;
        color: var(--red);
    }

.agreement-text-section p {
    margin-bottom: 25px !important;
    line-height: 22px;
    color: #555;
    max-width: 450px;
}

    .agreement-preview-section {
        background-color: var(--text-light);
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .agreement-preview-section .preview-link {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow: hidden;
        cursor: pointer;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
        max-width: 100%;
    }

    .agreement-preview-section .preview-link:hover {
        border-color: var(--red);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .agreement-preview-section .preview-image {
        display: block;
        width: 100%;
        height: auto;
    }

.agreement-preview-section .preview-caption {
        padding: 0.8rem 1rem;
        background-color: #f0f0f0;
        text-align: center;
        color: #444;
        font-weight: 500;
        font-size: 0.9rem;
        border-top: 1px solid #e0e0e0;
}


.auction-sheet-image-container {
    position: sticky;
    top: 100px;
}


.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i.fa-magnifying-glass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
    pointer-events: none; 
}

.search-input-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 10px 10px 0px; 
    font-size: 1rem;
    color: #333;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ccc; 
    border-radius: 0;
    transition: border-color 0.3s ease;
    box-shadow: unset;
}

.search-input-wrapper input[type="text"]::placeholder {
    color: #aaa;
}

.search-input-wrapper input[type="text"]:focus {
    outline: none;
    border-bottom-color: var(--red);
}

.search-input-wrapper input[type="text"]:focus + i {
    color: var(--red);
}


.filters-section.card.filters-desktop .filters-header {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid #e5e7eb  !important;
    padding-bottom: 0.5rem  !important;
}

.filters-header h2 {
    margin-bottom: 0;
    border-bottom: unset !important;
    padding-bottom: 0rem;
    margin-bottom: 0;
}

.filters-header i {
    color: var(--red)
}