/* City landing pages (inc/city-pages.php).
   Values measured from the live category pages (Elementor page 475 +
   style.css) so city pages read as the same site:
   - hero: 550px banner, #00000030 overlay, 850px heading block, title
     Poppins 600 / line-height 1.4 (size + top margin come from the site's
     Additional CSS h1:first-of-type rule, as on the category pages),
     subtitle Poppins 20px (16px <=1200px), full-width search form
   - body: #F8FAFC like the listings area, 1400px container (= style.css
     .property-listings-container), headings like the homepage sections
     (Poppins 40px/500, #0F172B, centred), text Poppins 16px/24px #7A7A7A
   - cards, pagination, buttons: the site's own style.css classes */

/* Astra's content container is a flex row sized for post layouts; city
   pages manage their own widths. */
body.immo-city-page #content > .ast-container {
    display: block;
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.immo-city {
    width: 100%;
    overflow-x: hidden;
    background: #F8FAFC;
}

/* ---- Hero ---------------------------------------------------------------- */
.immo-city-hero {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.immo-city-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #00000030;
    pointer-events: none;
}
.immo-city-hero-head,
.immo-city-search {
    position: relative;
}
.immo-city-hero-head {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}
.immo-city .immo-city-title {
    font-family: "Poppins", Sans-serif;
    font-size: 70px;
    font-weight: 600;
    line-height: 1.4;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
}
.immo-city .immo-city-tagline {
    font-family: "Poppins", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 35px;
}
.immo-city-search {
    width: 100%;
}

/* ---- Body ---------------------------------------------------------------- */
.immo-city-inner {
    max-width: 1380px; /* 1360px content, as the category pages' grid */
    margin: 0 auto;
    padding: 60px 10px 80px;
    display: flex;
    flex-direction: column;
    gap: 70px;
}
.immo-city-inner section > h2 {
    font-family: "Poppins", Sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
    color: #0F172B;
    text-align: center;
    margin: 0 0 20px;
}
.immo-city-inner section > p {
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #7A7A7A;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 16px;
}
.immo-city-inner section > p:last-child {
    margin-bottom: 0;
}

/* At a glance: a white panel styled like the listing cards */
.immo-city-glance ul {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 36px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
    display: grid;
    gap: 12px;
}
.immo-city-glance li {
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #7A7A7A;
    padding-left: 22px;
    position: relative;
}
.immo-city-glance li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-image: linear-gradient(90deg, #3580B3 0%, #35A9D8 100%);
}
.immo-city-glance strong {
    color: #0F172B;
    font-weight: 500;
}

/* Listings: the grid itself is style.css .property-listings-container/-grid */
.immo-city-listings .property-listings-container {
    max-width: none;
    padding: 0;
    margin-top: 20px;
}
/* Page numbers 40px under the cards (the live listing gap) instead of the
   full 110px of spacing the category pages put above their pagination. */
.immo-city-listings .property-listings-pagination {
    margin-top: 0;
    padding-top: 40px;
}
.immo-city-listings .property-listings-pagination .property-pagination {
    margin-top: 0;
}
.immo-city .immo-city-button {
    width: auto;
}
.immo-city-none {
    margin-top: 20px;
}
/* The category pages sit inside Elementor's wrapper (".elementor a" has no
   shadow/underline) and build pagination from <button>s (Astra gives buttons
   a hairline shadow); city pages have neither, so mirror both. */
.immo-city a {
    box-shadow: none;
    text-decoration: none;
}
/* Server cards wrap the photo in a link (the JS cards use a click handler);
   make it a full-size block so the image fills the card the same way. */
.immo-city .property-listing-image > a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}
.immo-city .pagination-btn,
.immo-city .pagination-number {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: inherit;
}
.immo-city .pagination-btn {
    display: inline-block;
}
.immo-city .pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Regions: link tiles in the pagination buttons' palette */
.immo-city-region-grid {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.immo-city-region-grid a {
    display: block;
    height: 100%;
    padding: 12px 18px;
    background: #FFFFFF;
    border: 2px solid #ECF0F1;
    border-radius: 6px;
    font-family: "Poppins", Sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: #2C3E50;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.immo-city-region-grid a:hover,
.immo-city-region-grid a:focus-visible {
    border-color: #3498DB;
    color: #3498DB;
}
.immo-city-count {
    color: #95A5A6;
    font-size: 13px;
}

/* ---- Responsive (Elementor breakpoints used by the category pages) ------- */
@media (max-width: 1200px) {
    .immo-city .immo-city-title { font-size: 55px; }
    .immo-city .immo-city-tagline { font-size: 16px; }
}
@media (max-width: 767px) {
    .immo-city-hero { padding-left: 20px; padding-right: 20px; }
    .immo-city .immo-city-title { font-size: 30px; }
    .immo-city-inner { padding: 40px 16px 60px; gap: 50px; }
    .immo-city-inner section > h2 { font-size: 28px; }
    .immo-city-glance ul { padding: 22px 20px; }
}
