/* ===================================================================================

* Theme Name: Reland Child
* Theme URI: https://www.themegenix.net/reland/
* Author: ThemeGenix
* Author URI: https://themeforest.net/user/themegenix/
* Description: Reland - Real Estate Group WordPress Theme
* Version: 1.5
* Template: reland
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of future updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */

/* ==========================================================================
   Single Project Template
   ========================================================================== */

/* --- project-details-area ------------------------------------------------- */
.single-project .project-details-area {
    max-width: 1320px;
    margin: 0 auto;
    padding: 250px 0 20px;
}

.single-project .project-details-title {
    margin-bottom: 50px;
}

.project-info-wrap .list-wrap .info-item > .content > p
{
    font-weight: 700;
}

.info-item > .content > p > span
{
    font-weight: normal;
}

.info-item.project-cena > .content > p > span
{
    font-size: 19px;
    font-weight: 700;
    line-height: initial;
}

/* Meta info — vertical stack only while meta col is narrow (col-lg-4 active) */
@media (min-width: 992px) {
    .single-project .project-info-wrap .list-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 2-column grid once the meta col goes full-width */
@media (max-width: 991px) {
    .single-project .project-info-wrap .list-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .single-project .project-info-wrap .list-wrap .info-item {
        max-width: none;
    }
}

/* Compact sizing on small mobile */
@media (max-width: 767px) {
    .single-project .project-info-wrap .info-item .icon {
        font-size: 26px;
        margin-right: 12px;
        line-height: 1;
    }
    .info-item--cta .icon {
        width: 26px;
    }
    .single-project .project-info-wrap .info-item .content p {
        font-size: 12px;
    }
    .single-project .project-info-wrap .info-item .content p span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .single-project .project-info-wrap .list-wrap {
        grid-template-columns: 1fr;
    }
}

/* --- Meta + content two-column row --------------------------------------- */
.single-project .sp-meta-content-row {
    padding-left: 20px;
    padding-right: 20px;
}

.single-project .sp-post-content,
.single-project .sp-post-content p {
    font-family: "Montserrat", sans-serif;
    text-align: justify;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.86em;
    color: #797978;
}

/* --- Gallery area --------------------------------------------------------- */
.sp-gallery-area {
    padding: 0px 0 80px;
}
/* Force the two grid rows to share the fixed 700px container height.
   Without explicit rows, CSS Grid sizes them to image natural height and overflows. */
.sp-gallery-area .reland-grid-style {
    grid-template-rows: 1fr 1fr;
}
/* Allow items to shrink below their content size, then clip within each cell.
   object-fit: cover on images handles the visible fill — no full-image clipping. */
.sp-gallery-area .reland-grid-style .grid-gallery-item {
    min-height: 0;
    overflow: hidden;
}

.sp-meta-col > div > ul > li {
    max-width: 80% !important;
}

/* --- CTA info-items (YouTube / Matterport anchors) ------------------------ */
.info-item--cta a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.info-item--cta a:hover {
    color: #bd9a68;
}

.info-item--cta .icon .fa-play-circle {
    color: #202020;
}

.info-item--cta .icon .fa-street-view {
    color: #202020;
}

.info-item--cta .icon {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
    overflow: visible;
}

.info-item--cta .content p span {
    color: #bd9a68;
}

.info-item--cta .content p span::after {
    content: '»';
    color: #bd9a68;
    margin-left: 6px;
}

/* --- Shared embed section styles ------------------------------------------ */
.sp-youtube-area,
.sp-matterport-area {
    padding: 0 0 80px;
}

.sp-embed-title {
    font-size: clamp(22px, 5vw, 48px);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.sp-embed-title::before,
.sp-embed-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #bd9a68;
}

/* Shared wrap base */
.sp-matterport-wrap,
.sp-embed-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.sp-matterport-wrap iframe,
.sp-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Standard video — landscape */
.sp-matterport-wrap,
.sp-embed-wrap--standard {
    aspect-ratio: 21 / 9;
}

/* Shorts — portrait, centred with max-width so it doesn't stretch too wide */
.sp-embed-wrap--short {
    aspect-ratio: 9 / 16;
    max-width: 420px;
    margin: 0 auto;
}

.sp-matterport-back {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: #bd9a68;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sp-matterport-back:hover {
    background: #a8855a;
}

@media (max-width: 767px) {
    .sp-matterport-back {
        display: none;
    }
    .sp-matterport-wrap,
    .sp-embed-wrap--standard {
        aspect-ratio: 4 / 3;
    }
}

/* --- Direction area ------------------------------------------------------- */
.single-project .sp-direction-area {
    padding: 140px 0;
}

/* --- Plan area ------------------------------------------------------------ */
.single-project .sp-plan-area {
    padding: 0 0 140px;
}

/* --- Responsive ----------------------------------------------------------- */
/*@media (max-width: 1024px) {
    .single-project .project-details-area {
        max-width: 720px;
        padding: 150px 0 60px;
    }
    .single-project .project-details-title {
        margin-bottom: 35px;
    }
    .single-project .sp-meta-content-row {
        padding-bottom: 40px;
    }
    .single-project .sp-direction-area {
        padding: 100px 0;
    }
    .single-project .sp-plan-area {
        padding: 0 0 100px;
    }
}*/

@media (max-width: 767px) {
    .single-project .project-details-area {
        padding: 120px 0 40px;
    }
    .single-project .sp-meta-content-row {
        padding-bottom: 24px;
    }
}

/* --- Cena info tooltip ----------------------------------------------------- */
.sp-info-tip {
    position: relative;
    display: inline-block !important;
    align-items: center;
    cursor: help;
    vertical-align: top;
    margin-left: 0px;
}

.sp-info-tip > i {
    font-size: 13px;
    color: #000000;
    line-height: 1;
}

.sp-info-tip__bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: #202020;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    padding: 9px 12px;
    border-radius: 6px;
    z-index: 200;
    pointer-events: none;
    white-space: normal;
}

.sp-info-tip__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #202020;
}

/* Uniform landscape thumbnails on project listing */
.project-thumb {
    overflow: hidden !important;
    aspect-ratio: 4 / 3 !important;
}

.project-is-inactive > .project-thumb {
    opacity: 0.33;
}
.project-is-inactive > .project-content > h3 {
    opacity: 0.67;
}

.project-thumb a {
    display: block !important;
    height: 100% !important;
}

.project-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.project-price {
	font-weight: 800 !important;
	color: black;
	font-size: 15px !important;
	font-family: var(--tg-heading-font-family);
}
