/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* General UI Adjustments */
#more-options,
#listing-bodycontent > .page-wrapper.details-page > .p-t-3.p-b-3.background-white,
#primary-logo > a > img,
#listing-bodycontent > .page-wrapper.details-page > .main-wrapper.details-page > div > div > div > div > div.container.p-t-2 > div > div.col-lg-3 > div:nth-child(2),
#home-bodycontent > .page-wrapper > .p-t-3.p-b-3.background-white > div > div > div {
    display: none;
}

/* Header Styles */
#header > div > div:nth-child(3) > div > ul > li > a,
#header.home .container .row-flex:first-child > ul li a,
#header.sell:not(.alt-sell-success) .container .row-flex:first-child > ul li a {
    color: black !important;
    font-family: 'Montserrat', sans-serif !important;
}

#header > div > div:nth-child(2) > div.column-end > button {
    background-color: black !important;
}

#header > div > div:nth-child(2) > div.column-end > button > span {
    border: 1px solid white;
}

#header.home {
    background-color: white !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

/* Footer Styles */
.footer-wrapper {
    background-color: white !important;
}

.footer-top p,
.footer-top-right a,
.text-xs-center.text-md-left,
.footer-top-left > h2,
#footer .footer-top-left > p {
    color: black !important;
}

.footer-wrapper .footer-top {
    background-color: white !important;
    font-family: 'Open Sans';
}

#footer .footer-bottom > div > ul > li > a {
    color: black !important;
}

/* Blog Section Tweaks */
#blog-container > div > div.col-lg-4 > div > div:nth-child(5),
#blog-container > div > div.col-lg-8 > div > div.media-card,
#blog-container > div > div.col-lg-4 > div > div:nth-child(3) > h2,
#blog-container > div > div.col-lg-4 > div > div:nth-child(3) > table {
    display: none;
}

/* Hide Phone Action Button */
li.list-inline-item.action.phone {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .w3-modal-content {
        width: 400px !important;
    }
    .resizeformobile {
        font-size: 1.1em !important;
    }
    .imgchange {
        width: 200px !important;
    }
    .bee-editor-container .bee-row-content {
        flex-direction: column !important;
    }
    .gmapfirame {
        width: 370px !important;
    }
    .bee-heading, .bee-paragraph {
        padding-left: 3% !important;
    }
}

/* Navigation Bar Customization */
.list-inline {
    font-weight: bold;
}

/* Category Box Styles */
.category2 {
    border-radius: 0;
    margin: 0 0 6px;
    height: 220px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.category2 a {
    border-radius: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background-color .15s linear;
}

.category2 a:hover {
    text-decoration: none;
}

.category2:hover .category-link2 {
    background-color: rgba(0, 0, 0, .5);
}

.category-content2 {
    bottom: 40px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -35%);
    transition: all .15s linear;
}

.category-content3 .btn,
.category-content3 {
    border: 0;
    border-radius: 0;
    font-size: .9em;
    margin: 15px 0 0;
    opacity: 0;
    padding: 8px 20px;
    transition: all .15s linear;
    visibility: hidden;
}

.category2:hover .category-content2 .btn,
.category2:hover .category-content2 {
    opacity: 1;
    visibility: visible;
}

.category2:hover .category-content2 {
    bottom: 0;
}

.category-title2 {
    color: #fff;
    font-size: 2.4em;
    font-weight: 600;
}

.category-subtitle2 {
    color: hsla(0, 0%, 100%, .9);
    font-size: 1.2em;
    white-space: nowrap;
}

/* Fix Paragraph Spacing */
#four-county-1 > p,
#E-washington > p,
#Carroll-county > p,
#F-county > p,
#W-howard > p,
#U-montgomery > p,
#S-penn > p {
    line-height: 180% !important;
}

/* RWP Card Design */
.rwp-card {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.rwp-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
}

.rwp-card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.rwp-card:hover .rwp-card-content {
    transform: translate(-50%, calc(-50% - 15px));
}

.rwp-card-title {
    font-size: 2.1em;
    font-weight: bold;
}

.rwp-card-button {
    opacity: 0;
    padding: 10px 20px;
    background-color: #0843A7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.25em;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    margin-top: 16px;
    position: relative;
}

.rwp-card-button:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: #ffffff;
}

.rwp-card:hover .rwp-card-button {
    opacity: 1;
}
