/* City/places page styles */

.places-hero {
    text-align: center;
    padding: 48px 20px 32px
}

.places-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 8px;
    letter-spacing: -0.5px
}

.places-section {
    margin-bottom: 40px
}

.places-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 20px;
    padding: 0
}

.places-grid {
    display: grid;
    gap: 20px
}

.hp-cities-content .places-section-title {
    text-align: center;
    margin-bottom: 28px
}

.place-page ul {
    font-size: 15px
}

.place-page .header-bar-wrapper {
    height: 75px;
    position: relative
}

.place-page .regular-page-wrapper {
    margin-top: 20px
}

.place-page .page-content {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    font-size: 15px;
    margin-bottom: 80px
}

.place-page .content-left-wrapper {
    flex: 1 0 0px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 10px
}

.place-page h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    flex-direction: column
}

.place-page h2 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700
}

.place-page .listing-list-header {
    margin-bottom: 0;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: 700
}

.place-page .listing-list ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.place-page .listing-list li {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 10px
}

.place-page .listing-list li .property-info-image {
    width: 120px;
    margin: 0 10px
}

.place-page .listing-list li .property-info-address {
    flex: 1 0 auto;
    flex-direction: row;
    width: 40%;
    margin: 0 10px
}

.place-page .listing-list li .property-info-address .bold {
    font-weight: 600
}

.place-page .listing-list li .property-info-bed-bath {
    width: 40%
}

.place-page .listing-list li .property-info-price {
    width: 170px
}

.place-page .listing-list li .ads-thumb {
    height: 100%;
    width: 100%;
    transition-duration: 1s;
    background-position: 50% 50%;
    background-size: cover;
    background-color: var(--muted)
}

.place-page .listing-list li .ads-thumbnail {
    height: 80px;
    max-width: 100%
}

.place-page .listing-list li h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: inherit;
    color: var(--muted-foreground) !important;
    letter-spacing: -1px;
    width: 100%;
    border: none
}

.place-page .listing-list li h2 {
    margin: 0;
    font-weight: 700;
    font-size: 16px
}

.place-page .listing-list li .prop-status {
    display: flex;
    align-items: center
}

.places-hero {
    text-align: center;
    padding: 48px 20px 32px
}

.places-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 8px;
    letter-spacing: -0.5px
}

.places-section {
    margin-bottom: 40px
}

.places-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 20px;
    padding: 0
}

.places-grid {
    display: grid;
    gap: 20px
}

@media (max-width:600px) {
    .places-hero h1 {
        font-size: 26px
    }

    .places-hero {
        padding: 32px 16px 24px
    }

    .places-hero h1 {
        font-size: 26px
    }

    .places-hero {
        padding: 32px 16px 24px
    }

}

@media (max-width:500px) {
    .place-page .content-left-wrapper {
        padding: 0 5px !important
    }

    .place-page ul {
        padding-left: 0px;
        font-size: 14px !important
    }

    .place-page .property-info-address {
        width: 45% !important
    }

    .place-page .property-info-bed-bath {
        width: 0% !important;
        display: none
    }

}

/* Extracted from style.css */
.city-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 60px
}

.city-hero {
    position: relative;
    text-align: center;
    padding: 48px 20px 32px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px
}

.city-hero-map {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .12;
    filter: blur(2px);
    z-index: 0
}

.city-hero-content {
    position: relative;
    z-index: 1
}

.city-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 10px;
    letter-spacing: -0.5px
}

.city-hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    font-size: 15px
}

.city-stat-active {
    color: var(--foreground);
    font-weight: 600
}

.city-stat-inactive {
    color: var(--muted-foreground);
    font-weight: 400
}

.city-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 32px;
    flex-wrap: wrap
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* 2026-09-05 — dodirna meta: bilo 41px visine (8px razmaka + 14px slog) */
    min-height: 44px;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--foreground);
    background: var(--muted);
    border: 2px solid transparent;
    transition: all .15s ease
}

.city-pill:hover {
    background: var(--secondary);
    text-decoration: none;
    color: var(--foreground)
}

.city-pill-active {
    background: var(--primary);
    color: var(--primary-foreground)
}

.city-pill-active:hover {
    background: var(--primary-hover);
    color: var(--primary-foreground)
}

.city-pill-outline {
    background: transparent;
    border: 2px solid var(--input);
    color: var(--foreground)
}

.city-pill-outline:hover {
    border-color: var(--primary-hover);
    color: var(--primary-hover)
}

.city-section {
    margin-bottom: 48px
}

.city-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.city-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    padding: 0
}

.city-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap
}

.city-badge-green {
    background: var(--status-ok-soft);
    color: var(--status-ok);
    font-size: 15px;
    padding: 3px 12px
}

.city-badge-gray {
    background: var(--muted);
    color: var(--muted-foreground)
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.city-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow .2s ease, transform .15s ease
}

.city-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit
}

.city-card:visited {
    color: inherit
}

.city-card-img {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    background-color: var(--muted);
    overflow: hidden
}
.city-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.city-card-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1
}

.city-card-status-sale {
    background: rgba(252, 56, 74, 0.9);
    color: #fff
}

.city-card-status-rent {
    background: rgba(0, 136, 255, 0.9);
    color: #fff
}

.city-card-status-offmarket {
    background: rgba(100, 100, 100, 0.85);
    color: #fff
}

.city-card-body {
    padding: 14px 16px 16px
}

.city-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
    letter-spacing: -0.3px
}

.city-card-permonth {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-foreground)
}

.city-card-address {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 2px
}

.city-card-unit {
    font-weight: 300;
    text-transform: lowercase
}

.city-card-location {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 8px
}

.city-card-details {
    font-size: 13px;
    color: var(--muted-foreground);
    display: flex;
    align-items: center
}

.city-card-dot {
    margin: 0 6px;
    font-weight: 700
}

.city-card-inactive .city-card-img {
    filter: grayscale(100%);
    opacity: .65
}

.city-card-inactive:hover .city-card-img {
    filter: grayscale(60%);
    opacity: .8
}

.city-card-inactive .city-card-price {
    color: var(--muted-foreground)
}

.city-loadmore {
    display: block;
    width: fit-content;
    margin: 28px auto 0;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-hover);
    background: transparent;
    border: 2px solid var(--primary-hover);
    transition: all .15s ease;
    text-align: center
}

.city-loadmore:hover {
    background: var(--primary-hover);
    color: var(--primary-foreground);
    text-decoration: none
}

.city-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-foreground);
    font-size: 16px
}@media (max-width:900px) {
    .city-grid {
            grid-template-columns: repeat(2, 1fr)
        }


}@media (max-width:600px) {
    .city-grid {
            grid-template-columns: 1fr
        }
    .city-hero h1 {
            font-size: 26px
        }
    .city-hero {
            padding: 32px 16px 24px
        }
    .city-page-wrapper {
            padding: 12px 16px 40px
        }
    .city-hero-stats {
            flex-direction: column;
            gap: 8px
        }
    .city-filters {
            padding: 16px 0 24px
        }
    .city-card-price {
            font-size: 18px
        }

}

/* Market stats bar */
.city-stats-bar {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px
}
.city-stats-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--foreground)
}
.city-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}
.city-stat-item {
    text-align: center;
    padding: 12px 8px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border)
}
.city-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px
}
.city-stat-label {
    font-size: 12px;
    color: var(--muted-foreground);
    line-height: 1.3
}
.city-stats-link { margin: 16px 0 0; text-align: center }
/* The /grad cross-link is a standalone CTA between the market card and the
   "Aktivni oglasi" heading. Base .city-stats-link has margin-bottom:0, so it
   collided with the heading right below — give it real space on both sides.
   (Placed after .city-stats-link so it wins; both are single-class selectors.) */
.city-building-link { margin: 20px 0 34px; }
.city-stats-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    background: transparent;
    border: 1.5px solid var(--input);
    text-decoration: none;
    transition: all .15s ease;
}
.city-stats-link a:hover { border-color: var(--primary-hover); color: var(--primary-hover); text-decoration: none }

/* Mobile: 2-col stat grid. MUST come after the base repeat(3,1fr) above — equal
   specificity, so source order decides. grid items default to min-width:auto, which
   lets long unbreakable values (e.g. the price range) force the column wider than the
   viewport → horizontal overflow; min-width:0 + overflow-wrap fixes that. */
@media (max-width:600px) {
    .city-stats-bar { padding: 16px }
    .city-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px }
    .city-stat-item { min-width: 0; padding: 12px 6px }
    .city-stat-value { font-size: 16px; overflow-wrap: break-word }
    .city-stat-label { font-size: 11px }
}
