@media (width < 700px) {
    html {
        padding-top: 3.5rem;
    }
}

h2 {
    padding-block: 1rem;
    margin: 0;
    font-size: 26px;
    color: #005b52;
}

h3 {
    font-size: 22px;
    color: #3a322d;
    margin-top: 1rem;
    padding-block: 1rem;
}

.property-container {
    background: linear-gradient(-98deg, #d8d1e2, #d8d1e2);
    padding-block: 1rem;
}

.properties-grid {
    margin-inline: auto;
}

.property-card {
    background: #ffffff;
    color: black;
    /* height: 34rem; */
    min-height: 32.5rem;
    height: 100%;
}

.property-card h2 a {
    font-family: "Montserrat";
    font-weight: 600;
    background: linear-gradient(90deg, #00796b, #009688, #26a69a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-card .property-images img {
    height: 220px;
}

@media (width < 700px) {
    .property-card {
        min-height: 32.5rem;
        height: min-content;
    }
    .property-card h2 a {
        font-weight: 600;
    }
}

.after-grid-text-container {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-family: Arial, sans-serif;
    padding-block: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-inline: 10px;
    background-color: white;
}

.after-grid-text h2,
.after-grid-text-side-panel h2 {
    max-width: 600px;
    text-align: center;
    margin-inline: auto;
    font-family: "Montserrat";
    font-size: 24px;
    text-wrap: pretty;
    font-weight: 600;
    background: linear-gradient(90deg, #00796b, #009688, #26a69a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.after-grid-text-side-panel ul {
    list-style-type: disc;
    padding-left: 20px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.after-grid-text-side-panel li {
    font-size: 13px;
}

.after-grid-text-side-panel p {
    font-size: 14px;
}

.after-grid-text-toggle-btn {
    background-color: rgba(0, 150, 135, 0.22);
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    width: max-content;
    margin-inline: auto;
}

.after-grid-text-side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 5rem;
}

@media (width>700px) {
    .after-grid-text-side-panel {
        width: 400px;
    }
}

.after-grid-text-side-panel.open {
    right: 0;
}

.after-grid-text-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.after-grid-text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.after-grid-text-overlay.visible {
    display: block;
}

.category-search {
    margin-bottom: 20px;
    text-align: center;
    max-width: 500px;
    margin-inline: auto;
    position: sticky;
    top: 0;
    padding-top: 16px;
}

#categorySearch {
    width: 80%;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
    outline: none;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: width 200ms ease, padding-left 200ms ease, box-shadow 200ms ease;
    text-align: left;
    padding-left: 20px;
}

#categorySearch:focus {
    width: 100%;
    padding-left: 30px;
    box-shadow: 0 0 0 2px #327b73;
}

#categorySearch::placeholder {
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

@media (width < 700px) {
    .category-search {
        max-width: 90%;
        margin-inline: auto;
    }
    #categorySearch {
        width: 90%;
    }
}

.details-link {
    background: linear-gradient(235deg, #00100F, #005B52);
    border: none;
    font-size: 14px;
    font-weight: 600;
}

.new-property-card.no-results-card {
    width: 100%;
    max-width: 370px;
    min-height: 420px;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fefefe;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.no-results-card img {
    width: 170px;
    height: auto;
    margin-bottom: 15px;
    margin-inline: auto;
}

.no-results-card .fake {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
    color: #00796b;
    font-family: "Montserrat", sans-serif;
}

.no-results-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #555;
}

.no-results-card div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-results-card .details-link {
    display: inline-block;
    max-width: 160px;
    height: fit-content;
    width: 100%;
    padding: 12px 25px;
    margin: 5px;
    background-color: #00796b;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-size: 13px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* card-style */

.card-style {
    width: 90%;
    margin-inline: auto;
    padding-top: 20px;
}

.card-style a {
    background: linear-gradient(90deg, #00796b, #009688, #26a69a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    text-decoration-color: #009688;
    text-underline-offset: 2px;
    font-weight: 600;
}

@media (width <700px) {
    .card-style {
        width: 100%;
        padding-inline: 15px;
    }
}