:root {
    --zep-accent: #cfae8b;
    --zep-dark: #263247;
    --zep-surface: #ffffff;
    --zep-soft-bg: #f6f5f2;
    --zep-muted: #667080;
    --zep-line: #eee7df;
    --zep-shadow: 0 14px 38px rgba(38, 50, 71, 0.10);
}

.zep-section,
.zep-single {
    box-sizing: border-box;
    color: var(--zep-dark);
    font-family: inherit;
}

.zep-section *,
.zep-single * {
    box-sizing: border-box;
}

/* Vitrin ve liste alanı */
.zep-section {
    display: block !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 48px 20px !important;
    overflow: visible !important;
}

.zep-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.zep-section-heading h2 {
    margin: 0 0 8px !important;
    color: var(--zep-dark) !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
}

.zep-section-heading p {
    margin: 0 !important;
    color: var(--zep-muted) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.zep-slider-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.zep-slider-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0 0 3px;
    border: 1px solid color-mix(in srgb, var(--zep-accent) 52%, #ffffff);
    border-radius: 50%;
    background: var(--zep-surface);
    color: var(--zep-dark);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.zep-slider-controls button:hover {
    border-color: var(--zep-accent);
    background: var(--zep-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.zep-slider {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
}

.zep-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding: 4px 2px 20px !important;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.zep-slider-track::-webkit-scrollbar {
    display: none;
}

.zep-slide {
    display: block !important;
    flex: 0 0 calc((100% - 48px) / 3) !important;
    width: calc((100% - 48px) / 3) !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: start;
}

.zep-listing-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px !important;
}

/* İlan kartı — tema ile uyumlu referans tasarım */
.zep-property-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--zep-line) !important;
    border-radius: 15px !important;
    background: var(--zep-surface) !important;
    box-shadow: var(--zep-shadow) !important;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.zep-property-card:hover {
    border-color: color-mix(in srgb, var(--zep-accent) 48%, #ffffff) !important;
    box-shadow: 0 20px 48px rgba(38, 50, 71, 0.15) !important;
    transform: translateY(-5px);
}

.zep-card-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--zep-soft-bg) !important;
    text-decoration: none !important;
}

.zep-card-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.zep-property-card:hover .zep-card-image img {
    transform: scale(1.035);
}

.zep-image-placeholder {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 20px;
    background: var(--zep-soft-bg) !important;
    color: color-mix(in srgb, var(--zep-dark) 55%, #ffffff) !important;
    font-weight: 700;
    text-align: center;
}

.zep-status-badge,
.zep-special-badge {
    position: absolute;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 6px;
    max-width: 45%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: .10em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 5px 16px rgba(38, 50, 71, .12);
}

.zep-status-badge {
    left: 14px;
    background: var(--zep-accent);
    color: #ffffff;
}

.zep-special-badge {
    right: 14px;
    max-width: 48%;
    overflow: hidden;
    background: var(--zep-dark);
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zep-card-price {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: calc(100% - 28px);
    padding: 10px 16px;
    overflow: hidden;
    border: 1px solid rgba(38, 50, 71, .08);
    border-radius: 7px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 7px 20px rgba(38, 50, 71, .18);
    color: var(--zep-dark);
    font-size: clamp(16px, 1.65vw, 20px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.zep-card-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0;
    padding: 20px 20px 18px !important;
    background: var(--zep-surface) !important;
}

.zep-card-location {
    display: flex !important;
    align-items: flex-start !important;
    gap: 7px !important;
    min-height: 20px;
    margin: 0 0 18px !important;
    color: color-mix(in srgb, var(--zep-accent) 86%, var(--zep-dark)) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

.zep-card-location svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.zep-card-body h3 {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 13px !important;
    overflow: hidden;
    color: var(--zep-dark) !important;
    font-size: clamp(18px, 1.7vw, 22px) !important;
    font-weight: 750 !important;
    letter-spacing: .035em !important;
    line-height: 1.28 !important;
    text-transform: uppercase !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zep-card-body h3 a {
    color: var(--zep-dark) !important;
    text-decoration: none !important;
}

.zep-card-body h3 a:hover {
    color: color-mix(in srgb, var(--zep-accent) 75%, var(--zep-dark)) !important;
}

.zep-card-excerpt {
    display: -webkit-box;
    min-height: 70px;
    margin: 18px 0 20px !important;
    overflow: hidden;
    color: var(--zep-muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.zep-card-facts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100%;
    margin: auto 0 18px !important;
    padding: 15px 0 12px !important;
    border-top: 1px solid var(--zep-line) !important;
    border-bottom: 1px solid var(--zep-line) !important;
}

.zep-card-facts > span {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    min-width: 0;
    padding: 0 8px;
    color: var(--zep-dark) !important;
    text-align: center;
}

.zep-card-facts > span + span {
    border-left: 1px solid color-mix(in srgb, var(--zep-line) 84%, transparent);
}

.zep-card-facts strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--zep-dark) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zep-card-facts small {
    display: block;
    margin-top: 6px;
    color: var(--zep-dark) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.zep-card-facts .is-empty {
    opacity: .48;
}

.zep-card-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 13px 18px !important;
    border: 1px solid var(--zep-dark) !important;
    border-radius: 5px !important;
    background: var(--zep-dark) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .11em !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.zep-card-button:hover {
    border-color: var(--zep-accent) !important;
    background: var(--zep-accent) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.zep-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-direction: column;
    min-height: 220px;
    padding: 30px;
    border: 1px dashed color-mix(in srgb, var(--zep-accent) 52%, #ffffff);
    border-radius: 15px;
    background: var(--zep-soft-bg);
    color: var(--zep-muted);
    text-align: center;
}

.zep-empty-state strong {
    margin-bottom: 6px;
    color: var(--zep-dark);
    font-size: 18px;
}

/* Tekil ilan — tema kolonundan bağımsız tam genişlik */
.zep-single {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-right: -50vw;
    margin-left: -50vw;
    padding: 34px 0 80px;
    background: var(--zep-soft-bg);
    overflow-x: clip;
}

.zep-single-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.zep-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--zep-muted);
    font-size: 13px;
}

.zep-breadcrumb a {
    color: var(--zep-dark);
    text-decoration: none;
}

.zep-listing-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.zep-listing-kicker {
    margin-bottom: 9px;
    color: var(--zep-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zep-listing-header h1 {
    max-width: 850px;
    margin: 0 0 10px !important;
    color: var(--zep-dark) !important;
    font-size: clamp(30px, 4vw, 52px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
}

.zep-listing-location {
    margin: 0 !important;
    color: var(--zep-muted) !important;
    font-size: 16px !important;
}

.zep-listing-price-box {
    min-width: 260px;
    padding: 20px 22px;
    border: 1px solid var(--zep-line);
    border-radius: 15px;
    background: var(--zep-surface);
    box-shadow: 0 8px 28px rgba(38, 50, 71, .07);
    text-align: right;
}

.zep-listing-price-box span,
.zep-listing-price-box small {
    display: block;
    color: var(--zep-muted);
}

.zep-listing-price-box strong {
    display: block;
    margin: 2px 0;
    color: var(--zep-dark);
    font-size: 29px;
}

.zep-detail-gallery {
    position: relative;
    margin-bottom: 30px;
}

.zep-main-photo {
    position: relative;
    display: block;
    width: 100%;
    height: min(62vw, 650px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: color-mix(in srgb, var(--zep-soft-bg) 70%, #d5d5d5);
    cursor: zoom-in;
}

.zep-main-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zep-photo-count {
    position: absolute;
    bottom: 18px;
    left: 18px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(38, 50, 71, .86);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.zep-thumb-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.zep-gallery-thumb {
    flex: 0 0 114px;
    height: 78px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #dddddd;
    cursor: pointer;
}

.zep-gallery-thumb.is-active {
    border-color: var(--zep-accent);
}

.zep-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zep-show-all {
    position: absolute;
    right: 18px;
    bottom: 105px;
    padding: 11px 15px;
    border: 0;
    border-radius: 10px;
    background: var(--zep-surface);
    box-shadow: 0 8px 24px rgba(38, 50, 71, .16);
    color: var(--zep-dark);
    font-weight: 800;
    cursor: pointer;
}

.zep-no-gallery {
    display: grid;
    place-items: center;
    min-height: 350px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--zep-soft-bg) 82%, #d5d5d5);
    color: var(--zep-muted);
}

.zep-detail-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.zep-detail-main {
    min-width: 0;
}

.zep-content-section {
    margin-bottom: 22px;
    padding: 29px;
    border: 1px solid var(--zep-line);
    border-radius: 18px;
    background: var(--zep-surface);
    box-shadow: 0 7px 26px rgba(38, 50, 71, .045);
}

.zep-content-section h2 {
    margin: 0 0 21px !important;
    color: var(--zep-dark) !important;
    font-size: 25px !important;
}

.zep-details-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
}

.zep-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--zep-line);
}

.zep-detail-row span {
    color: var(--zep-muted);
}

.zep-detail-row strong {
    color: var(--zep-dark);
    text-align: right;
}

.zep-description-content {
    color: color-mix(in srgb, var(--zep-dark) 76%, #ffffff);
    line-height: 1.8;
}

.zep-description-content p:last-child {
    margin-bottom: 0;
}

.zep-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.zep-feature-list li {
    position: relative;
    padding: 9px 10px 9px 31px;
    border-radius: 8px;
    background: var(--zep-soft-bg);
    color: color-mix(in srgb, var(--zep-dark) 80%, #ffffff);
}

.zep-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 11px;
    color: var(--zep-accent);
    font-weight: 900;
}

.zep-contact-card {
    position: sticky;
    top: 30px;
    padding: 28px;
    border-radius: 18px;
    background: var(--zep-dark);
    box-shadow: 0 18px 44px rgba(38, 50, 71, .22);
    color: #ffffff;
    text-align: center;
}

.zep-agent-photo {
    width: 105px;
    height: 105px;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.zep-agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zep-contact-card > span {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.zep-contact-card h3 {
    margin: 7px 0 4px !important;
    color: #ffffff !important;
    font-size: 23px !important;
}

.zep-contact-card p {
    margin: 0 0 19px !important;
    color: rgba(255, 255, 255, .74) !important;
}

.zep-contact-button {
    display: block;
    margin-top: 10px;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
}

.zep-call-button {
    background: var(--zep-accent);
    color: #ffffff !important;
}

.zep-whatsapp-button {
    background: #25d366;
    color: #102519 !important;
}

.zep-office-button {
    background: #ffffff;
    color: var(--zep-dark) !important;
}

.zep-contact-card small {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, .65);
}

.zep-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zep-link-buttons a {
    padding: 11px 15px;
    border-radius: 9px;
    background: var(--zep-soft-bg);
    color: var(--zep-dark) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.zep-link-buttons a:hover {
    background: var(--zep-accent);
    color: #ffffff !important;
}

/* Galeri ışık kutusu */
.zep-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 55px 70px;
    background: rgba(7, 10, 12, .94);
}

.zep-lightbox.is-open {
    display: flex;
}

.zep-lightbox figure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
}

.zep-lightbox figure img {
    max-width: 100%;
    max-height: calc(100vh - 110px);
    object-fit: contain;
}

.zep-lightbox figcaption {
    margin-top: 10px;
    color: #ffffff;
}

.zep-lightbox-close,
.zep-lightbox-prev,
.zep-lightbox-next {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, .13);
    color: #ffffff;
    cursor: pointer;
}

.zep-lightbox-close {
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
}

.zep-lightbox-prev,
.zep-lightbox-next {
    top: 50%;
    width: 48px;
    height: 64px;
    border-radius: 10px;
    font-size: 42px;
    transform: translateY(-50%);
}

.zep-lightbox-prev {
    left: 15px;
}

.zep-lightbox-next {
    right: 15px;
}

/* Klavye erişilebilirliği */
.zep-section a:focus-visible,
.zep-section button:focus-visible,
.zep-single a:focus-visible,
.zep-single button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--zep-accent) 72%, #ffffff);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .zep-slide {
        flex-basis: calc((100% - 24px) / 2) !important;
        width: calc((100% - 24px) / 2) !important;
    }

    .zep-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .zep-detail-layout {
        grid-template-columns: 1fr;
    }

    .zep-contact-card {
        position: relative;
        top: auto;
    }

    .zep-listing-header {
        align-items: flex-start;
    }

    .zep-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .zep-section {
        padding: 34px 12px !important;
    }

    .zep-section-heading {
        align-items: center;
    }

    .zep-section-heading p {
        font-size: 14px !important;
    }

    .zep-slider-controls button {
        width: 40px;
        height: 40px;
    }

    .zep-slide {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .zep-listing-grid {
        grid-template-columns: 1fr !important;
    }

    .zep-property-card {
        border-radius: 13px !important;
    }

    .zep-card-body {
        padding: 18px 18px 16px !important;
    }

    .zep-card-body h3 {
        min-height: auto;
        font-size: 19px !important;
    }

    .zep-card-excerpt {
        min-height: auto;
        margin-top: 12px !important;
    }

    .zep-card-price {
        right: 12px;
        bottom: 12px;
        min-height: 40px;
        padding: 9px 13px;
        font-size: 16px;
    }

    .zep-single {
        padding-top: 22px;
    }

    .zep-single-container {
        width: min(100% - 24px, 1240px);
    }

    .zep-listing-header {
        display: block;
    }

    .zep-listing-price-box {
        margin-top: 18px;
        text-align: left;
    }

    .zep-main-photo {
        height: 62vw;
        min-height: 270px;
        border-radius: 13px;
    }

    .zep-show-all {
        right: 10px;
        bottom: 96px;
    }

    .zep-content-section {
        padding: 21px 18px;
        border-radius: 14px;
    }

    .zep-details-table,
    .zep-feature-list {
        grid-template-columns: 1fr;
    }

    .zep-lightbox {
        padding: 52px 10px;
    }

    .zep-lightbox-prev,
    .zep-lightbox-next {
        width: 40px;
        height: 55px;
    }

    .zep-listing-header h1 {
        font-size: 34px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zep-slider-track {
        scroll-behavior: auto;
    }

    .zep-property-card,
    .zep-card-image img,
    .zep-card-button,
    .zep-slider-controls button {
        transition: none !important;
    }

    .zep-property-card:hover,
    .zep-property-card:hover .zep-card-image img,
    .zep-card-button:hover,
    .zep-slider-controls button:hover {
        transform: none !important;
    }
}
