/* EmlakTimi - extracted from index.php */

* { box-sizing: border-box; }

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            background: #f4f4f4;
            color: #102c46;
        }

        .container {
            width: min(calc(100% - 40px), 1500px);
            margin: 30px auto 60px;
            padding: 0;
        }

        .main-layout {
            display: grid;
            grid-template-columns: 210px minmax(0, 1fr) 210px;
            gap: 20px;
            align-items: start;
        }

        aside { padding-top: 60px; }

        .ad-sidebar {
            position: sticky;
            top: 20px;
        }

        .ad-stack {
            display: grid;
            gap: 16px;
        }

        .ad-slot {
            min-height: 180px;
            padding: 18px 14px;
            border: 1px dashed #c9d0d6;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 2px 10px rgba(16,44,70,.05);
            text-align: center;
        }

        .ad-slot strong {
            display: block;
            margin-bottom: 8px;
            color: #102c46;
        }

        .ad-slot span {
            color: #7a858f;
            font-size: 13px;
            line-height: 1.5;
        }

        .profile-card, .guest-card {
            background: #fff;
            border: 1px solid #e6e8eb;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(16,44,70,.07);
        }

        .profile-card { position: sticky; top: 20px; }

        .profile-icon {
            width: 70px; height: 70px;
            background: #102c46;
            color: #fff;
            border: 3px solid #d9a21b;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            margin: 0 auto 15px;
        }

        .profile-card h3 {
            text-align: center;
            color: #102c46;
            margin: 0 0 8px;
        }

        .profile-email {
            text-align: center;
            color: #66717c;
            font-size: 13px;
            word-break: break-word;
            margin-bottom: 20px;
        }

        .profile-menu {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .profile-menu a {
            display: block;
            padding: 10px 12px;
            background: #f6f7f8;
            color: #102c46;
            text-decoration: none;
            border: 1px solid transparent;
            border-radius: 7px;
            transition: .2s;
        }

        .profile-menu a:hover {
            background: #fff6dc;
            border-color: #d9a21b;
        }

        .profile-menu .logout {
            background: #102c46;
            color: #fff;
        }

        .profile-menu .logout:hover {
            background: #d9a21b;
            border-color: #d9a21b;
        }

        .guest-card { text-align: center; }
        .guest-card h3 { margin-top: 0; color: #102c46; }

        .guest-button {
            display: inline-block;
            padding: 10px 15px;
            background: #102c46;
            color: #fff;
            text-decoration: none;
            border-radius: 7px;
            font-weight: 700;
        }

        .guest-button:hover { background: #d9a21b; }

        .listings-area { min-width: 0; }

        .listings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 13px;
            border-bottom: 3px solid #d9a21b;
        }

        .listings-header h2 {
            margin: 0;
            color: #102c46;
            font-size: 28px;
        }

        .listings-header form {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #102c46;
        }

        .listings-header select {
            padding: 9px 12px !important;
            border-radius: 7px !important;
            border: 1px solid #ccd2d8 !important;
            background: #fff;
            color: #102c46;
            outline: none;
        }

        .listings-header select:focus {
            border-color: #d9a21b !important;
            box-shadow: 0 0 0 3px rgba(217,162,27,.13);
        }


        .filter-panel {
            background: #fff;
            border: 1px solid #e6e8eb;
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 22px;
            box-shadow: 0 2px 9px rgba(16,44,70,.06);
        }

        .filter-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
        }

        .filter-field {
            min-width: 0;
        }

        .filter-field label {
            display: block;
            margin-bottom: 6px;
            color: #102c46;
            font-size: 13px;
            font-weight: 700;
        }

        .filter-field select,
        .filter-field input {
            width: 100%;
            height: 39px;
            padding: 7px 9px;
            border: 1px solid #ccd2d8;
            border-radius: 7px;
            background: #fff;
            color: #102c46;
            outline: none;
            font: inherit;
            font-size: 13px;
        }

        .filter-field select:focus,
        .filter-field input:focus {
            border-color: #d9a21b;
            box-shadow: 0 0 0 3px rgba(217,162,27,.13);
        }

        .filter-field select:disabled {
            background: #f1f2f3;
            color: #9299a0;
            cursor: not-allowed;
        }

        .filter-actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
        }

        .filter-button,
        .clear-filter {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 40px;
            padding: 9px 18px;
            border-radius: 7px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            transition: .2s;
        }

        .filter-button {
            border: none;
            background: #102c46;
            color: #fff;
        }

        .filter-button:hover {
            background: #d9a21b;
        }

        .clear-filter {
            border: 1px solid #d7dce0;
            background: #fff;
            color: #102c46;
        }

        .clear-filter:hover {
            border-color: #d9a21b;
            color: #d9a21b;
        }

        .result-count {
            margin-left: auto;
            color: #66717c;
            font-size: 14px;
        }

        .nearby-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 40px;
            padding: 9px 18px;
            border: 1px solid #d9a21b;
            border-radius: 7px;
            background: #fff8e7;
            color: #102c46;
            font-weight: 700;
            cursor: pointer;
            transition: .2s;
        }

        .nearby-button:hover {
            background: #d9a21b;
            color: #fff;
        }

        .nearby-panel {
            display: none;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid #e6e8eb;
        }

        .nearby-panel.open {
            display: block;
        }

        .nearby-note {
            margin: 0 0 10px;
            color: #66717c;
            font-size: 13px;
            line-height: 1.5;
        }

        #nearbyMap {
            width: 100%;
            height: 360px;
            border: 1px solid #ccd2d8;
            border-radius: 10px;
            overflow: hidden;
            background: #eef0f2;
        }

        .nearby-map-footer {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .nearby-status {
            flex: 1 1 260px;
            color: #66717c;
            font-size: 13px;
        }

        .nearby-status.selected {
            color: #102c46;
            font-weight: 700;
        }

        .nearby-submit {
            border: none;
            background: #d9a21b;
            color: #fff;
        }

        .nearby-submit:hover {
            background: #102c46;
        }

        .distance-badge {
            display: inline-block;
            margin: 0 0 10px;
            padding: 5px 8px;
            border-radius: 999px;
            background: #fff6dc;
            border: 1px solid #efd58d;
            color: #102c46;
            font-size: 12px;
            font-weight: 700;
        }

        .listings {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
        }

        .card {
            background: #fff;
            border: 1px solid #e6e8eb;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 9px rgba(16,44,70,.07);
            transition: transform .2s ease, box-shadow .2s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 7px 18px rgba(16,44,70,.12);
        }

        .card-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
            transition: transform .3s ease;
        }

        .card > a {
            display: block;
            overflow: hidden;
        }

        .card > a:hover .card-image { transform: scale(1.05); }

        .no-image {
            height: 220px;
            background: #eef0f2;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #66717c;
        }

        .card-content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-height: 0;
        }

        .card h3 {
            margin: 0 0 10px;
            color: #102c46;
            font-size: 19px;
            line-height: 1.3;
            min-height: calc(1.3em * 2);
            max-height: calc(1.3em * 2);
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .type {
            font-size: 14px;
            color: #66717c;
            margin-bottom: 10px;
            min-height: 18px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .distance-badge {
            min-height: 28px;
            align-self: flex-start;
        }

        .location {
            margin-bottom: 10px;
            color: #394957;
            line-height: 1.4;
            min-height: calc(1.4em * 2);
            max-height: calc(1.4em * 2);
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .price {
            font-size: 21px;
            font-weight: bold;
            color: #d9a21b;
            margin-top: 5px;
            min-height: 30px;
            display: flex;
            align-items: center;
        }

        .description {
            margin-top: 15px;
            margin-bottom: 15px;
            line-height: 1.5;
            color: #56636e;
            min-height: calc(1.5em * 3);
            max-height: calc(1.5em * 3);
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }

        .detail-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            align-self: flex-start;
            margin-top: auto;
            padding: 9px 14px;
            background: #102c46;
            color: #fff;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 700;
            transition: .2s;
        }

        .detail-link:hover { background: #d9a21b; }

        @media (max-width: 1200px) {
            .main-layout { grid-template-columns: 210px minmax(0, 1fr); }
            .ad-rail { display: none; }
            .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }

        @media (max-width: 1100px) {
            .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        @media (max-width: 800px) {
            .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .main-layout { grid-template-columns: 1fr; }
            aside { padding-top: 0; }
            .profile-card { position: static; }
        }

        @media (max-width: 600px) {
            .container { padding: 0 15px; margin-top: 20px; }
            .filter-grid { grid-template-columns: 1fr; }
            .listings { grid-template-columns: 1fr; }
            .listings-header { align-items: stretch; }
            .listings-header form { width: 100%; }
            .listings-header select { width: 100%; }
            .result-count { width: 100%; margin-left: 0; }
        }


        
        .home-all-listings {
            display:flex;
            justify-content:center;
            margin:24px 0 8px;
        }
        .home-all-listings a {
            display:inline-flex;
            align-items:center;
            justify-content:center;
            min-height:44px;
            padding:10px 18px;
            border:1px solid #102c46;
            border-radius:7px;
            background:#102c46;
            color:#fff;
            text-decoration:none;
            font-weight:700;
        }
        .home-all-listings a:hover { background:#d9a21b; border-color:#d9a21b; }
        @media (min-width:601px) and (max-width:900px) {
            .listings > .card:nth-child(n+17) { display:none !important; }
        }
        @media (max-width:600px), (orientation:landscape) and (max-width:950px) and (max-height:500px) {
            .listings > .card:nth-child(n+11) { display:none !important; }
        }

.et-home-intros{margin:24px 0;padding:18px;background:#fff;border:1px solid #dce3e8;border-radius:12px}.et-home-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.et-home-news-grid{grid-template-columns:1fr}}
