/* Base CSS and Variables */
:root {
    --sahibinden-yellow: #fecb00;
    --sahibinden-blue: #316bbe;
    --sahibinden-blue-hover: #24529b;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-gray: #f5f5f5;
    --border-color: #e5e5e5;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* Similar to Roboto/Tahoma typically used */
}

body {
    background-color: #f5f5f5;
    /* Lighter background matching real site */
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

/* Typography Helpers */
a {
    text-decoration: none;
    color: inherit;
}

.blue-link {
    color: var(--sahibinden-blue);
    font-size: 13px;
}

.blue-link:hover {
    text-decoration: underline;
}

/* Layout Containers */
.main-container {
    width: 100%;
    max-width: 1140px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
    /* Lighter, more subtle shadow */
    border-radius: 4px;
    /* Optional slight rounding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* TOP HEADER */
.top-header {
    background-color: #2b354e;
    /* Dark navy top bar */
    color: white;
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-sahibinden {
    display: inline-flex;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
}

.logo-sahibinden .yellow-bg {
    background-color: var(--sahibinden-yellow);
    color: #000;
    padding: 2px 4px;
}

.logo-sahibinden .dark-bg {
    color: var(--sahibinden-yellow);
    padding: 2px 4px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.user-dropdown {
    cursor: pointer;
}

.action-icons {
    display: flex;
    gap: 15px;
    color: #a0a6cc;
}

.icon-wrap {
    position: relative;
    cursor: pointer;
}

.icon-wrap:hover {
    color: white;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #fca5a5;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 10px;
    font-weight: bold;
}

.btn-post-ad {
    background-color: #4682b4;
    /* Lighter blue */
    color: white;
    padding: 6px 16px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
}

.btn-post-ad:hover {
    background-color: #3b6d99;
}

/* PROFILE BANNER & INFO */
.profile-banner {
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cover-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.profile-info-card {
    display: flex;
    padding: 0 30px;
    margin-top: -60px;
    /* Pull up over cover */
    position: relative;
    gap: 20px;
}

.profile-logo-wrapper {
    width: 130px;
    height: 130px;
    border: 4px solid white;
    background: #000;
    /* Dark background for the logo */
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Since it's a square logo */
}

.verified-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background-color: var(--sahibinden-yellow);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
}

.profile-details {
    padding-top: 70px;
    /* Push text down to clear the overlap */
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
}

.details-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.store-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.store-location {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 140px auto;
    gap: 8px 10px;
    font-size: 13px;
}

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
}

.btn-message {
    background-color: var(--sahibinden-blue);
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-message:hover {
    background-color: var(--sahibinden-blue-hover);
}

/* PROFILE TABS */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
}

.tab-item {
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.tab-item:hover {
    color: var(--sahibinden-blue);
}

.tab-item.active {
    color: var(--sahibinden-blue);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--sahibinden-blue);
}

/* CONTROLS BAR */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-color);
}

.results-text {
    font-size: 13px;
    color: var(--text-light);
}

.highlight-count {
    color: #c00;
    /* Red color for count */
    font-weight: 600;
}

.view-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.layout-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.layout-btn {
    background: white;
    border: none;
    padding: 6px 12px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
}

.layout-btn.active {
    background-color: #e8f0fe;
    color: var(--sahibinden-blue);
}

.layout-toggle button:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.dropdown-filter {
    border: 1px solid var(--border-color);
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    color: var(--text-dark);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.dropdown-filter i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--text-light);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #c00;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 5px;
}

/* LISTINGS GRID */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
}

/* LISTING CARD */
.listing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* standard small corner */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-id {
    color: #999;
    font-size: 8px;
    padding: 2px 5px;
    text-align: right;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
}

.card-image-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.badge-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-img {
    transform: scale(1.05);
}

.watermark-logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    z-index: 2;
    opacity: 0.8;
}

.watermark-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-val {
    color: #c00;
    font-weight: 700;
    font-size: 16px;
}

.date-val {
    color: #999;
    font-size: 10px;
}

.listing-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--sahibinden-blue);
    line-height: 1.4;
    height: 32px;
    /* Fixed height for 2 lines overflow */
    overflow: hidden;
    text-transform: uppercase;
}

.listing-title a:hover {
    text-decoration: underline;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-light);
    border-top: 1px dotted var(--border-color);
    padding-top: 10px;
    margin-top: auto;
}

.meta-item i {
    margin-right: 3px;
    color: #999;
}