:root {
    --primary-color: #2C4001;
    --secondary-color: #A69580;
    --background-color: #f6ede6;
}

.ovipro-realties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ovipro-realty-card {
    border: 1px solid #eee;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.ovipro-realty-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ovipro-realty-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ovipro-realty-title {
    font-size: 1.1em;
    margin: 15px 15px 5px;
    font-weight: 600;
}

.ovipro-realty-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 15px 5px;
}

.ovipro-realty-location {
    color: #7f8c8d;
    margin: 0 15px 15px;
    font-size: 0.9em;
}

.ovipro-single-realty .back-button {
    display: block;
    width: fit-content;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 100vw;
    margin-bottom: 25px;
    padding: 5px 15px;
}

.ovipro-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.ovipro-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ovipro-showings {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--background-color);
    border-radius: 8px;
}

/* Lightbox Styles */
.ovipro-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.ovipro-lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    position: relative;
}

.ovipro-lightbox-image {
    height: auto;
    max-height: 90vh;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.ovipro-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.ovipro-lightbox-close:hover,
.ovipro-lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.ovipro-lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    z-index: 10000;
}

.ovipro-lightbox-prev {
    left: 0;
}

.ovipro-lightbox-next {
    right: 0;
}

.ovipro-lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* API/Realty Modal Styles */
.ovipro-realty-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    /* Below image lightbox (9999) */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.ovipro-realty-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ovipro-realty-modal-close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ovipro-realty-modal-close:hover,
.ovipro-realty-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.ovipro-spinner {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 40px;
}