:root {
    --primary-color:#02295c;
    --secondary-color: #3477a3;
    --dark-color: #1e272e;
    color: #043865; 
    color: #073588;
    color: #043385;
    --light-color: #f5f6fa;
    --text-color: #949393;
    --light-text: white;
    --border-color: #e0e0e0;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.5s ease;
    --font: Georgia, 'Times New Roman', Times, serif;
    --font-second: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}


/* img {
    margin-left: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
    max-width: 100%;
    height: auto;
    display: block;
} */

.logo-img {
    object-fit: contain;
    margin: 0px;
    width: auto;
    height: 100px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-view {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-view:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #022f69; 
    /* #02295c; #043385; #073588 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
}

.Logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-bottom: 10px;
}

header .container {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 0;
}

.nav-links {
    font-size: large;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    list-style: none;
}

.nav-links a {
    color: var(--light-color);
    font-size: large;
    font-weight: 500;
    position: relative;
    height: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    border-radius: 5px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu {
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
}

.mobile-nav {
    position: absolute; /* absolutnie względem kontenera */
    top: 100%; /* tuż pod przyciskiem */
    left: 0;
    width: 100%; /* taka sama szerokość jak przycisk */
    background-color: #f0f0f0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* domyślnie ukryte */
    flex-direction: column;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;

    /* animacja rozwijania */
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.mobile-nav.show {
    display: flex;
    max-height: 500px; /* maksymalna wysokość przy rozwinięciu */
}

.mobile-nav li {
    border-bottom: 1px solid #ddd;
}

.mobile-nav li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #02295c;
}

.mobile-nav li a.active {
    background-color: #02295c;
    color: white;
}

.contact {
    width: 15%;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--light-text);
    font-size: small;
    padding-left: 5px;

}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px 20px 20px;
    background-color: #00000070;
    border: none;
    border-radius: 10px
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    background-color: #ffffff83;
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

::placeholder {
    color: black;
    opacity: 1;
}

button {
    margin-left: 2px;
    border-radius: 10px;
    padding: 5px;
    background-color: #ffffff83;
    color: black;

}

/* Featured Properties Section */
.featured-properties {
    padding: 5rem 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    position: relative;
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    width: 366px;
    height: 508px;
}

.property-card:hover {
    transform: translateY(-10px);
}

.property-image {
    padding: 10px;
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.property-image img {
    max-width: 100%;
    max-height: 100%;
    width: 346px;
    height: 195px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 8px;
    
}

.img-counter{
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff8a;
    padding: 0px 10px;
    border-radius: 20px;
    border: 2px solid #02295c;
    color: #02295c;
    opacity: 0;
    transition: 0.6s;
}
.property-image:hover .img-counter{
    opacity: 1;
}

.img-slider img{
    display: none;
    width: 100%;
}

.img-slider img.active{
    display: block;
}

.img-arrow {
    position: absolute;
    color: white;
    border: 0px;
    background: #01245280;
    font-size: medium;
    border-radius: 20px;
    opacity: 0;
    transition: 0.6s;
}

.property-image:hover .img-arrow {
    opacity: 1;
}

.img-arrow.left{
    left: 10px;
}

.img-arrow.right{
    right: 10px;
}

/* .property-card:hover .property-image img {
    transform: scale(1.3);
} */

.property-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.property-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.property-details {
    padding: 20px;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    box-sizing: border-box;
}

.property-details h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    grid-row: 1;
}

.property-address {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: var(--font-second);
    grid-row: 2;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-family: var(--font-second);
    grid-row: 3;
}

.property-features span {
    display: flex;
    align-items: center;
    width: 50%;

}

.property-features i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.property-description {
    color: black;
    font-size: 120%;
}

.property-description p {
    margin-top: 5px;
}
.property-description ol {
    list-style: disc;
    margin-top: 30px;
    margin-bottom: 15px;
}
.property-details ol li {
    margin-left: 50px;
}

.property-description ol li:nth-of-type(1) {
    list-style: none;
    margin-left: 0px;
}

.view-all {
    position: relative;
    text-align: center;
    margin-top: 3rem;
    bottom: 2px;
}

.property-address i {
    color: var(--primary-color);
}
.property-features i {
    color: var(--primary-color);
}
/* About Us Section */
.about-us {
    padding: 5rem 0;
    background-image: url(../img/tło90-upscale.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.about-us img {
    margin-left: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
    max-width: 100%;
    height: auto;
    display: block;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    color: white;
}

.about-text h2 {
    color: white;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-features {
    margin-bottom: 2rem;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.shadow {
    border-radius: 20px;
    box-shadow: 0px 0px 15px 10px black;
    margin: 30px;
}

.about-image {
    border-radius: 0px;
    margin: 0px;
}
.about-features i {
    color: var(--light-color);
}

/* Featured Agents Section */
.featured-agents {
    padding: 5rem 0;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.agent-card {
    padding: 40px;
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.agent-card:hover {
    transform: translateY(-10px);
}

/* .agent-image {
    height: 300px;
    overflow: hidden;
    padding: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
} */

.agent-image img {
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 5px;
}

.agent-details {
    padding: 20px;
    text-align: center;
}

.agent-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.agent-title {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.agent-contact {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.agent-social {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.agent-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin: 0 5px;
    color: var(--dark-color);
    transition: var(--transition);
}

.agent-social a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.agent-details i {
    color: var(--primary-color);
}

/* Neighborhoods Section */
.neighborhoods {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.neighborhood-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.neighborhood-card:hover {
    transform: translateY(-10px) ;
}

.neighborhood-image {
    object-fit: cover;
    object-position: center;
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neighborhood-image img {
    height: 100%;
    object-fit: cover;
    transform: 0.5s ease;
}

.neighborhood-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
}

.neighborhood-overlay h3 {
    color: var(--light-text);
    margin-bottom: 5px;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    padding: 20px;
}

.testimonial-content {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.testimonial-content p {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-text);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* otwierajace sie okno */

.property-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.property-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
}

.property-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.property-modal.active {
    display: block;
}

/* TŁO */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
}

/* OKNO */
.modal-content {
    position: relative;
    width: 85%;
    height: 94vh;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

/* SCROLL */
.modal-body {
    background: linear-gradient(to bottom, #073588 50px, white 10px);
    height: 94vh;
    display: flex;
    flex-direction: column;
}

.modal-image {
    height: auto;
    max-height: 54vh;
    min-height: 0;
    overflow: hidden;
    margin-top: 50px;
}

.modal-image .property-image {
    background-color: #eeee;
    height: auto;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.modal-image .img-slider {
    height: auto;
}

.modal-image .img-arrow{
    opacity: 1;
}

.modal-image .property-image .active {
    width: 100%;
    height: auto;
    max-height: 53vh;
    object-fit: contain;
}

.modal-details {
    background-color: #eeee;
    flex: 1;
    overflow-y: scroll;
}

.modal-details .btn-view{
    margin-top: 20px;
    position: static;
    width: 100px;
}

/* ZAMKNIJ */
.modal-close {
    position: absolute;
    color: #ddd;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
        position: absolute;
        right: 20px;
    }
    .mobile-menu i {
        color: var(--primary-color);
        
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }
    .mobile-menu i {
        color: var(--primary-color);
        
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .properties-grid,
    .agents-grid,
    .neighborhoods-grid {
        grid-template-columns: 1fr;
    }
    .about-us img {
        margin: 0px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }
    
    .mobile-menu i {
        color: var(--primary-color);
        
    }
    .hero h1 {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .btn-search {
        border-radius: 4px;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    .about-us img {
        margin: 0px;
    }
}