html {
    font-size: 18px;
}


nav.menu-nav {
    position: relative;
    z-index: 1000;
    margin-bottom: -50px;
}

.hero-bg-dimming {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Hero header animations */
.hero-logo-row {
    opacity: 0;
    animation: fadeInHero 1s cubic-bezier(.77, 0, .18, 1) 0.5s forwards;
}

.hero-bg-animated-layer {
    opacity: 0;
    animation: slideInLeft 1s cubic-bezier(.77, 0, .18, 1) 1.0s forwards;
}

.hero-title-fade {
    opacity: 0;
    animation: fadeInHero 3s cubic-bezier(.77, 0, .18, 1) 1.5s forwards;
}

.hero-locals-section .col-12:nth-child(1) {
    opacity: 0;
    animation: fadeDownUp 1s cubic-bezier(.77, 0, .18, 1) 2.0s forwards;
}

.hero-locals-section .col-12:nth-child(2) {
    opacity: 0;
    animation: fadeDownUp 1s cubic-bezier(.77, 0, .18, 1) 2.5s forwards;
}

.hero-locals-section .col-12:nth-child(3) {
    opacity: 0;
    animation: fadeDownUp 1s cubic-bezier(.77, 0, .18, 1) 3.0s forwards;
}

.hero-locals-section .col-12:nth-child(4) {
    opacity: 0;
    animation: fadeDownUp 1s cubic-bezier(.77, 0, .18, 1) 3.5s forwards;
}

.hero-locals-section .col-12:nth-child(5) {
    opacity: 0;
    animation: fadeDownUp 1s cubic-bezier(.77, 0, .18, 1) 4.0s forwards;
}

.hero-locals-section .col-12:nth-child(6) {
    opacity: 0;
    animation: fadeDownUp 1s cubic-bezier(.77, 0, .18, 1) 4.5s forwards;
}

.hero-locals-section .col-12:nth-child(7) {
    opacity: 0;
    animation: fadeDownUp 1s cubic-bezier(.77, 0, .18, 1) 5.0s forwards;
}

.hero-locals-section img {
    margin-top: 1rem;
}


@keyframes fadeInHero {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeDownUp {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    30% {
        opacity: 0.5;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-text {
    color: #fff;
    transition: color 0.3s cubic-bezier(.77, 0, .18, 1);
}

.menu-text.active {
    color: #000;
}

.contact-headquarter-width {
    width: 450px;
}

footer ul li a::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f061';
    /* fa-arrow-right */
    display: inline-block;
    margin-right: 0.6rem;
    color: #000;
    font-size: 0.5rem;
    vertical-align: middle;
    transition: color 0.2s;
}




@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #343a40;
    margin: 0;
    padding: 0;
}

p {
    /* font-family: "Montserrat", sans-serif; */
    font-size: 1rem;
}


.container-mdsys {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10rem;
}

.top-header-section {
    height: auto;
    background: #000000;
    margin-bottom: 0;
    padding: 10px 0;
    color: #ffffff;
}

.top-header-section img {
    margin-right: 30px;
}

.top-header-section {
    font-size: 1.5rem;
    font-weight: 400;
}

.top-header-section a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    margin-left: 1rem;
}

.top-header-section .row .col-4 {
    padding: 0;
}

.header-slogan-section a {
    font-size: 1.5rem;
    text-decoration: none;
}

.box-text {
    font-size: 1rem;
    text-align: right;
}

.box-text a {
    font-size: 1.5rem;
    text-align: right;
}

section {
    margin-bottom: 2rem;
}

.hero-bg {
    padding: 0;
    /* background-image: url('../../assets/images/opti/majster-development-osiedle-zen-plock-homepage-slider-min.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
}

.hero-bg-animated-layer {
    position: absolute;
    left: 0;
    width: 700px;
    height: 920px;
    background: url('../../assets/images/hero-content-left-additional.png') no-repeat left center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;

}



.hero-content {
    z-index: 2;
    position: relative;
}

.top-logo {
    /* padding-top: 3rem; */
}

.footer-bg {
    background: #000000;
    color: #fff;
    padding: 5rem 0;
}

footer {
    /* margin-top: 10rem; */
}


footer h5 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer ul {
    padding: 0;
    margin: 0;
}

footer li {
    list-style: none;
}

footer li a {
    font-size: 0.8rem;
}

footer .facebook {
    width: 2rem;
}

.md-df-aie-jcc {
    display: flex;
    align-items: end;
    justify-content: center;

}

.df-aic-jcsb {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.md-df-ais-jcs {
    display: flex;
    align-items: start;
    justify-content: start;

}

.df-aic-jcc,
.md-df-aic-jcc {
    display: flex;
    align-items: center;
    justify-content: center;
}

.df-aic-jcs,
.md-df-aic-jcs {
    display: flex;
    align-items: center;
    justify-content: start;
    /* height: 100%; */
}


.df-aic-jce,
.md-df-aic-jce {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 100%;
}

.md-df-aie-jcs {
    display: flex;
    align-items: end;
    justify-content: start;

}

h1,
h2 {
    /* font-family: "Libre Franklin", sans-serif; */
    font-weight: 700;
}

h2 {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

h2::after {
    content: "";
    display: block;
    width: 20px;
    height: 1px;
    background: #f1cae1;
    position: absolute;
    left: 0;
    bottom: 0;
}

.hp-places-intro {
    padding: 4rem 0 4rem 0;
    background: #f5f5f5;
}

.hp-places-intro p {
    font-size: 1.8rem;
    font-weight: 700;
}

.hp-places-intro ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.hp-places-intro ul li a {
    font-size: 3rem;
    text-decoration: none;
    color: #000;
    border: 0.2rem solid #000;
    border-radius: 10rem;
    text-align: center;
    width: 6rem;
    height: 6rem;
    line-height: 1.9rem;
    font-weight: 700;
}

.hp-places-intro ul li a span {
    display: block;
    font-size: 1rem;

}

.hp-places-intro ul li a span sup {
    font-size: 0.75em;
    vertical-align: text-bottom;
    line-height: 0.5rem;
    padding-left: 0.1rem;
}

.hp-places-intro img {
    margin-left: 2rem;
}

.hero-content {
    /* background: url('../../assets/images/hero-content-left-additional.png') no-repeat left center; */
    color: #fff;
    font-weight: 700;
    padding: 6rem 20rem 10rem 20rem;
    /* padding-top: 2rem; */

}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 5rem;
}

.hero-content h1 span {
    display: block;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    /* width: 250px; */
}

.container-mdsys.hp-gallery,
.container-mdsys.hp-location {
    padding: 0;
}

.hp-gallery .col-md-6,
.hp-location .col-md-12 {
    padding: 0;
}

.hp-gallery h2,
.hp-location h2 {
    text-align: center;
    margin: 5rem 0;
}

.hp-gallery h2::after,
.hp-location h2::after {
    content: "";
    display: block;
    width: 20px;
    height: 1px;
    background: #f1cae1;
    position: absolute;
    left: 50%;
    bottom: 0;
}


.hero-content p a {
    display: block;
}

.pl-0 {
    padding-left: 0;
}

.pr-0 {
    padding-right: 0;
}

.pt-0 {
    padding-top: 0;
}

.pb-0 {
    padding-bottom: 0;
}

.pr-10rem {
    padding-right: 10rem;
}

.pl-10rem {
    padding-left: 10rem;
}

.hp-text-box {
    padding: 0 10rem 10rem 10rem;
}

.hp-text-box h2 {
    font-weight: 500;
    font-size: 2rem;
}

.hp-text-box a {
    display: block;
    margin-top: 2rem;
}



.text-additional {
    margin-top: 0;
}

.hp-text-box .text-additional {
    padding-left: 2rem;
}

.hp-text-box.order-2 .text-additional {
    padding-left: 0;
    padding-right: 2rem;
}

.page-tools {
    padding: 2rem 0;
    background: #ffffff;
    border-bottom: 2px solid #f1f1f1;
    margin-bottom: 4rem;
}

.check-also {
    padding: 0 10rem;
    margin-top: 5rem;
    margin-bottom: 0;
}

.check-also p {
    font-size: 2rem;
    font-weight: 700;
}

.page-content {
    padding: 3rem 20rem;
}

.page-content a {
    color: #000;
    text-decoration: none;
}

.page-content table td {
    text-align: center;
    /* Horizontal center */
    vertical-align: middle;
    /* Vertical center */
    height: 60px;

}

.page-content table thead th {
    text-align: center;
}

.page-content table td p {
    margin: 0;
    min-height: 40px;
    padding-top: 0.5rem;
    /* align-items: center;
    display: flex;
    justify-content: center; */

}

.page-content table td p.price {
    font-size: 1rem !important;
    font-weight: 700;
    padding-top: 0;

}

.page-content table td p span {
    display: block;
    font-size: 0.8rem;
    /* margin-top: 0.5rem; */
    color: #6c757d;
}

.page-content table td a {
    text-decoration: none;
    color: #000;
}

.unit-available {
    color: #28a745;
    font-weight: 700;
}

.unit-sold {
    color: #dc3545;
    font-weight: 700;
}

.unit-reserved {
    color: #ffc107;
    font-weight: 700;
}

.unit-intro {
    padding: 5rem 10rem;
    background: #f5f5f5;

}

.unit-intro h1 {
    font-size: 4rem;
    font-weight: 300;
}

.unit-intro p {
    font-size: 1.5rem;
    font-weight: 400;
}

.unit-intro-section {
    padding: 5rem 0 0 0;
}

.unit-image,
.lokalizacja-lokalu {
    border: 1px solid#eeeeee;
}


.unit-data {
    padding: 0 4rem;
}

.price-history a {
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: #ccc;
    border: 2px solid #ccc;
    padding: 1rem;
    border-radius: 2rem;
    display: inline-block;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.unit-card a {
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    padding: 1rem;
    border-radius: 5rem;
    display: inline-block;
    
}


.unit-details-section h2 {
    margin-top: 3rem;
}

.data-row {
    border-bottom: 1px solid #eee;

}

.data-row p {
    font-size: 1rem;
    padding: 0.5rem 0;
}

.data-row p.price {
    font-weight: 700;
}

.row-bold {
    margin-top: 1rem;
}

.row-bold p {
    font-weight: 700;
    font-size: 1.25rem;
}

/* galeria */

/* Ukryj domyślny styl ::after dla przycisków Swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}

/* Custom navigation spacing */
.swiper-nav-wrapper {
    width: 100vw;
    max-width: 100vw;
    text-align: center;
    margin-top: 20px;
}

.swiper-nav-wrapper {
    margin-top: 50px !important;
    margin-right: 50px !important;
}

.swiper-nav-wrapper .custom-nav-arrows {
    display: inline-flex;
    align-items: center;
    gap: 50px;
}

/* galeria */

/* mapa */

.leaflet-tile-pane {
    filter: grayscale(100%);
}



/* mapa */


.slide-menu-layer {
    position: absolute;
    top: 0;
    right: 160px;
    width: 320px;
    height: auto;
    background: rgba(0, 0, 0, 1);
    z-index: 10;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(.77, 0, .18, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.slide-menu-layer.active {
    transform: translateY(0);
}

.slide-menu-content {
    padding: 1rem 2rem;
    height: 100%;

}

.slide-menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slide-menu-content ul li:not(:last-child) {
    /* margin-bottom: 1rem; */
    font-size: 1rem;
    line-height: 2rem;
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(147, 32, 98, 0.2)
}

.slide-menu-content ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.slide-menu-content ul li a:hover {
    color: #f3f3f3;
}

.slide-menu-content ul li .fa-arrow-right {
    font-size: 1.1rem;
    margin-right: 0.2rem;
    color: #fff;
}

.slide-menu-content ul li a::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    content: '\f531';
    /* fa-arrow-right */
    display: inline-block;
    margin-right: 1rem;
    color: #f5f5f5;
    font-size: 0.5rem;
    vertical-align: middle;
    transition: color 0.2s;
}

.slide-menu-content ul li a:hover::before {
    color: #ffffff;
}

.close-menu-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.btn-top {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    z-index: 10000;
    padding: 10px;
    background: rgba(0, 0, 0, 1.0);
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.btn-top {
    position: relative;
    z-index: 100;
}

.menu-active-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.menu-icon {
    display: inline-block;
    width: 28px;
    height: 22px;
    position: relative;
    transition: all 0.3s cubic-bezier(.77, 0, .18, 1);
}

.menu-icon-bar {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: all 0.3s cubic-bezier(.77, 0, .18, 1);
}

.menu-icon-bar:nth-child(1) {
    top: 0;
}

.menu-icon-bar:nth-child(2) {
    top: 9px;
}

.menu-icon-bar:nth-child(3) {
    top: 18px;
}

.menu-icon.active .menu-icon-bar:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.menu-icon.active .menu-icon-bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .menu-icon-bar:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.btn-top:hover {
    color: #fff;
    background: rgba(0, 0, 0, 1.0);
}


.fade-on-scroll-init {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(.77, 0, .18, 1), transform 0.8s cubic-bezier(.77, 0, .18, 1);
}

.fade-on-scroll-active {
    opacity: 1;
}




.contact-section a {
    color: #000;
    text-decoration: none;
    font-weight: 700;
}

/* popup archiwum cen */

#priceHistoryOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    z-index: 9998;
}

#priceHistoryPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 2rem;
    z-index: 9999;
    max-height: 80vh;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(.77, 0, .18, 1);
}

#priceHistoryPopup h3 {
    font-size: 1rem;
}

#priceHistoryPopup p {
    font-size: 1rem;
    font-weight: 400;
}

#closePriceHistoryPopupX {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #000;
    cursor: pointer;
}

/* popup archiwum cen */

footer h5 {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-locations-lists h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-locations-lists-box {
    /* padding-left: 2rem; */
    padding-right: 2rem;
}

.footer-locations-lists-box h6 {
    /* padding-bottom: 0.25rem; */
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;

}

.footer-locations-lists-box .col-md-8 {
    border-left: 1px solid rgba(255, 255, 255, 0.1);

}

.footer-locations-lists-box p {
    margin-bottom: 0;
}

.footer-locations-lists-box li:last-of-type {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;

}

.footer-locations-lists-box ul>li {
    padding-top: 0.5rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
}

.footer-locations-lists-box ul>li ul li {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-top: none;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
}

.footer-locations-lists-box ul>li ul li:last-of-type {
    border-bottom: none;
}



/* TODO uporządkowanie tego css-a później */


.homepage-search-section {
    /* margin-bottom: -50px !important; */
    position: relative;
    height: 35rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    text-align: center;
}

.homepage-search-section h2 {
    color: black;
    font-size: 4rem;
    font-weight: 300;
    -webkit-animation: slide-in-bottom 2s both;
    animation: slide-in-bottom 2s both;
    margin-bottom: 2rem;
    text-align: center;
}

.homepage-search-section select {
    border: none;
    background-color: #f5f5f5;
    border-bottom: 1px solid;
    border-image-source: linear-gradient(90deg, #f3b684, #7390a4);
    border-image-slice: 1;
    font-size: 1rem;
    font-weight: 300;
    -webkit-appearance: button;
    background-image: url(../img/chevron.png);
    background-position: 97% center;
    background-repeat: no-repeat;
    background-size: contain;
    padding-bottom: .1vw;
    padding-top: .1vw;
    margin: 1vw;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
    outline: none;
}

.homepage-search-section select:focus {
    outline: none;
    box-shadow: none;
}

#osiedla-list-container {
    padding: 0 0 2rem 0;
}

.btn-osiedle {
    margin-top: 3rem;
}

.btn-osiedle img {
    width: 200px;
}

.btn-osiedle span {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 400;
    padding: 0.4rem;
    border-radius: 0;
    margin-top: 2rem;
    margin-right: 2rem;
    border: 0;
    width: 300px;
    border: 2px solid transparent;
    cursor: unset
}

.btn-osiedle span:hover {
    border: 2px solid transparent;
}

.btn-osiedle .btn-sold,
.btn-osiedle .btn-sold:hover {
    background: #9e0f00;

}

.btn-osiedle .btn-available,
.btn-osiedle .btn-available:hover {
    background: #205402;
}


.btn-osiedle .btn-soon,
.btn-osiedle .btn-soon:hover {
    background: #000000;
}



.btn-osiedle .btn-lastunits,
.btn-osiedle .btn-lastunits:hover {
    background: #df4306;
}

header nav {
    padding-left: 16rem !important
}

.miasto-taxonomy {
    padding-left: 20px;
}

.hero-logo-section {
    /* margin-bottom: 3rem; */
    /* padding-right: 5rem;   */
    /* height: 320px; */
}

.hero-miasto-name {
    border-left: 2px solid #fff;
    padding-left: 30px;
    font-size: 2rem;
    line-height: 6rem;

}

p.hero-title-fade {
    font-size: 4.5rem;
    font-weight: 500;
    margin-bottom: 5rem;
    width: 100%;
    line-height: 4.5rem;
    margin-top: 2rem;
}

.location-text {
    padding: 5rem 10rem;
}

.swiper-pagination-bullet-active {
    background-color: #ffffff !important;
}

.sold-hero-content {
    margin-top: 15rem;
}

.page-search-section {
    background: #f5f5f5;
    padding: 5rem 20rem;
}

.page-search-section h1 {
    color: black;
    font-size: 4rem;
    font-weight: 300;
    -webkit-animation: slide-in-bottom 2s both;
    animation: slide-in-bottom 2s both;

    text-align: center;
}

.page-search-section h1 span {
    font-size: 1rem;
    display: block;
    margin-top: 1rem;
}

.page-search-section select {
    border: none;
    background-color: #f5f5f5;
    border-bottom: 1px solid;
    border-image-source: linear-gradient(90deg, #f3b684, #7390a4);
    border-image-slice: 1;
    font-size: 1rem;
    font-weight: 300;
    -webkit-appearance: button;
    background-image: url(../img/chevron.png);
    background-position: 97% center;
    background-repeat: no-repeat;
    background-size: contain;
    padding-bottom: .1vw;
    padding-top: .1vw;
    margin: 1vw;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
    outline: none;
}

.page-search-section select:focus {
    outline: none;
    box-shadow: none;
}


#mieszkania-filter-form {
    margin-top: 5rem;
}

.table-hover tbody tr:hover {
    background: #f5f5f5 !important;
}

.hero-about-locals-section p {
    width: auto;
}

.over-footer-about {
    background: #f5f5f5;
    padding: 5rem 20rem;
    margin-top: 0;
}

.gallery-info p {
    font-size: 1rem;
    text-align: center;
    line-height: 1rem;
    padding: 0;
}

/* ============================================================================
 * ARCHIWUM CEN - Style dla popup historii cen lokali
 * Data: 2025-12-31
 * ============================================================================ */

/* Overlay tła */
#priceHistoryOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(3px);
}

#priceHistoryOverlay.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Popup */
#priceHistoryPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}

#priceHistoryPopup.active {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Przycisk zamknięcia X */
#closePriceHistoryPopupX {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s, transform 0.2s;
}

#closePriceHistoryPopupX:hover {
    color: #333;
    transform: scale(1.1);
}

/* Nagłówek popup */
#priceHistoryPopup h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 3px solid #c9a227;
    padding-bottom: 12px;
}

/* Link "Archiwum cen" */
#priceHistoryBtn {
    /* color: #c9a227; */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

#priceHistoryBtn:hover {
    color: #a88620;
    text-decoration: underline;
}

/* Tabela historii */
.price-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
}

.price-history-table th,
.price-history-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-history-table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.price-history-table tbody tr:hover {
    background: #fafafa;
}

/* Wiersz z aktualną ceną */
.price-history-table tr.current-price {
    background: #f0f7e6;
    font-weight: 600;
}

.price-history-table tr.current-price:hover {
    background: #e8f2dc;
}

.current-label {
    color: #5a9c1a;
    font-size: 0.85em;
    font-weight: normal;
    margin-left: 5px;
}

/* Stany ładowania i błędów */
.price-history-content .loading,
.price-history-content .no-history {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 15px;
}

.price-history-content .loading i,
.price-history-content .no-history i {
    margin-right: 8px;
    color: #c9a227;
}

.price-history-content .error {
    text-align: center;
    padding: 30px 20px;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 8px;
}

.price-history-content .error i {
    margin-right: 8px;
}

/* Licznik wpisów */
.history-count {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 13px;
}

/* Blokada scrollowania body gdy popup jest otwarty */
body.price-history-open {
    overflow: hidden;
}




/* ============================================================================
 * KONIEC SEKCJI: ARCHIWUM CEN
 * ============================================================================ */


