/*
 Theme Name:   Rehomes Child
 Template:     rehomes
 Version:      3.0.0
 Text Domain:  rehomes-child
*/

/* Child tema özel stilleri buraya yazılır */

/* =========================================================
   FİLTRE — Görünür alan sayısından bağımsız tam genişlik
   ========================================================= */
.search-project .project-group {
    width: 100%;
}

.search-project .project-inner {
    flex: 1 1 0;
    min-width: 0;
}

.search-project .project-inner select,
.search-project .project-inner .btn {
    width: 100%;
}

/* =========================================================
   OPAL EVENTS GRID — Değişkenler
   ========================================================= */
:root {
    --eg-primary: #b5a47a;
    --eg-dark: #1a1a2e;
    --eg-radius: 8px;
    --eg-gap: 24px;
    --eg-trans: .28s ease;
}

/* =========================================================
   Events Grid — Genel Layout
   ========================================================= */
.eg-wrapper {
    width: 100%;
}

.eg-grid.row {
    display: flex;
    flex-wrap: wrap;
    margin: calc(var(--eg-gap) / -2);
}

.event-grid-item {
    padding: calc(var(--eg-gap) / 2);
    box-sizing: border-box;
}

/* Sütun genişlikleri */
[data-elementor-columns="1"] .event-grid-item {
    width: 100%;
}

[data-elementor-columns="2"] .event-grid-item {
    width: 50%;
}

[data-elementor-columns="3"] .event-grid-item {
    width: 33.333%;
}

[data-elementor-columns="4"] .event-grid-item {
    width: 25%;
}

@media (max-width: 1024px) {
    [data-elementor-columns="4"] .event-grid-item {
        width: 50%;
    }

    [data-elementor-columns="3"] .event-grid-item {
        width: 50%;
    }
}

@media (max-width: 640px) {

    [data-elementor-columns="2"] .event-grid-item,
    [data-elementor-columns="3"] .event-grid-item,
    [data-elementor-columns="4"] .event-grid-item {
        width: 100%;
    }
}

/* 16:9 thumbnail wrapper */
.eg-thumb-wrap {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16 : 9 */
    background: #f0ece4;
}

.eg-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--eg-trans);
}

/* Kategori badge */
.eg-cats {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.eg-cat-badge {
    background: var(--eg-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: background var(--eg-trans);
}

.eg-cat-badge:hover {
    background: var(--eg-dark);
    color: #fff;
}

/* Meta row */
.eg-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 4px;
}

.eg-meta-item {
    font-size: 12px;
    color: #777;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.eg-meta-item .dashicons {
    font-size: 13px;
    color: var(--eg-primary);
    flex-shrink: 0;
}

.eg-meta-date {
    color: var(--eg-primary);
    font-weight: 500;
}

/* Title */
.eg-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.eg-title a {
    color: inherit;
    text-decoration: none;
}

.eg-title a:hover {
    color: var(--eg-primary);
}

/* Link */
.eg-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--eg-primary);
    text-decoration: none;
    transition: opacity var(--eg-trans);
}

.eg-link:hover {
    opacity: .75;
}

.eg-link .dashicons {
    font-size: 14px;
}

/* =========================================================
   STYLE 1 — Card (görsel üst, bilgi alt)
   ========================================================= */
.eg-inner--card {
    border-radius: var(--eg-radius);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* hover: sadece görsel yavaş zoom, kutu hareketsiz */
.eg-inner--card:hover .eg-thumb-wrap img {
    transform: scale(1.03);
}

/* Görsel + şehir badge wrapper */
.eg-thumb-outer {
    position: relative;
    overflow: hidden;
}


/* Şehir badge — kategori ile aynı satırda, icon hizalaması */
.eg-city-inline .dashicons {
    font-size: 11px;
    vertical-align: middle;
    margin-right: 2px;
    position: relative;
    top: 4px;
}

/* Kategori badge — görsel sol ALT (absolute overlay) */
.eg-cats--bottom-left {
    position: absolute;
    top: auto;
    /* .eg-cats'tan gelen top: 12px'i sıfırla */
    bottom: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.eg-cat-badge--outline {
    /* Dolu badge — altın renkli kutu, beyaz yazı */
    background: var(--eg-primary);
    color: #fff;
    border: none;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 2px;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: opacity var(--eg-trans);
}

.eg-cat-badge--outline:hover {
    opacity: .85;
}

.eg-style-1 .eg-content {
    padding: 14px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Style 1 başlık — Opal Posts Grid .entry-title ile birebir eşleştirildi */
.eg-style-1 .eg-title {
    font-size: 1.33333rem;
    /* = 20px — DevTools'dan alındı */
    font-weight: 700;
    line-height: 1.45;
    padding-top: 5px;
    margin-top: 0;
    margin-bottom: 5px;
    color: #173e62;
}

.eg-style-1 .eg-title a {
    color: inherit;
    text-decoration: none;
}

.eg-style-1 .eg-title a:hover {
    color: var(--eg-primary);
}

/* Şehir badge içindeki icon */
.eg-city-badge .dashicons {
    font-size: 12px;
    vertical-align: middle;
    margin-right: 3px;
    line-height: 1;
}

/* =========================================================
   STYLE 2 — Overlay (hover'da bilgi yükselir)
   ========================================================= */
.eg-inner--overlay {
    border-radius: var(--eg-radius);
    overflow: hidden;
    height: 100%;
}

.eg-style-2 .eg-thumb-wrap {
    height: 100%;
    padding-top: 56.25%;
}

.eg-style-2 .eg-thumb-wrap:hover img {
    transform: scale(1.06);
}

.eg-overlay-panel {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, .92) 40%, rgba(26, 26, 46, .2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
}

.eg-style-2 .eg-thumb-wrap:hover .eg-overlay-panel {
    transform: translateY(0);
    opacity: 1;
}

.eg-overlay-panel .eg-title {
    color: #fff;
    margin-bottom: 8px;
    font-size: 17px;
}

.eg-overlay-panel .eg-title a {
    color: inherit;
    pointer-events: none;
}

.eg-overlay-panel .eg-meta-item {
    color: rgba(255, 255, 255, .8);
}

.eg-overlay-panel .eg-meta-item .dashicons {
    color: var(--eg-primary);
}

.eg-overlay-panel .eg-cats {
    position: static;
    margin-bottom: 10px;
}

/* =========================================================
   STYLE 3 — Horizontal (liste düzeni)
   ========================================================= */
.eg-list-layout .event-grid-item {
    width: 100%;
}

.eg-list-layout .eg-grid.row {
    flex-direction: column;
}

.eg-inner--horizontal {
    display: flex;
    align-items: stretch;
    border-radius: var(--eg-radius);
    overflow: hidden;
    border: 1px solid #e8e3d8;
    background: #fff;
    min-height: 180px;
    transition: box-shadow var(--eg-trans), transform var(--eg-trans);
}

.eg-inner--horizontal:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
    transform: translateX(4px);
}

.eg-style-3 .eg-thumb-wrap {
    padding-top: 0;
    width: 36%;
    min-width: 200px;
    flex-shrink: 0;
}

.eg-style-3 .eg-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-style-3 .eg-content {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.eg-style-3 .eg-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.eg-style-3 .eg-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 640px) {
    .eg-inner--horizontal {
        flex-direction: column;
    }

    .eg-style-3 .eg-thumb-wrap {
        width: 100%;
        padding-top: 56.25%;
        position: relative;
    }
}

/* =========================================================
   Load More Button
   ========================================================= */
.eg-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.eg-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 36px;
    background: transparent;
    border: 2px solid var(--eg-primary);
    color: var(--eg-primary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--eg-trans), color var(--eg-trans);
}

.eg-load-more-btn:hover:not(:disabled) {
    background: var(--eg-primary);
    color: #fff;
}

.eg-load-more-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.eg-load-more-btn.eg-btn--done {
    border-color: #ccc;
    color: #999;
}

.eg-load-more-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(181, 164, 122, .3);
    border-top-color: var(--eg-primary);
    border-radius: 50%;
    animation: egSpin .7s linear infinite;
}

@keyframes egSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Portfolio Caption — görsel de tıklanabilir
   ========================================================= */
.portfolio-thumb-link {
    display: block;
}

.portfolio-thumb-link img {
    display: block;
    width: 100%;
    transition: opacity .25s ease;
}

.portfolio-thumb-link:hover img {
    opacity: .9;
}

/* =========================================================
   Slider Revolution — preloader/spinner gizle
   ========================================================= */
.tp-loader,
.rs-p-wp-fix,
.tp-loader.spinner0,
.tp-loader.spinner1,
.tp-loader.spinner2,
.tp-loader.spinner3,
.tp-loader.spinner4,
.tp-loader.spinner5 {
    display: none !important;
}