/*
Theme Name: Vista Core
Theme URI: https://clearwaterinteractive.com/vista-core
Author: Clearwater Interactive
Author URI: https://clearwaterinteractive.com
Description: An upscale international real-estate listings theme for luxury property portals, agencies, and brokerages. Features a navy-and-gold masthead, serif display headings, a featured-listings refine rail, and elegant property cards.
Version: 2.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vista-core
Tags: real-estate, listings, property, luxury, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, footer-widgets, threaded-comments
*/

:root {
    --estate-navy: #16233b;
    --estate-navy-deep: #0f1a2c;
    --estate-gold: #c5972f;
    --estate-gold-bright: #d9ae47;
    --estate-ivory: #f7f5f0;
    --estate-paper: #ffffff;
    --estate-ink: #1d2430;
    --estate-muted: #5d6675;
    --estate-line: #e1ddd2;
    --estate-line-dark: #2a3a57;
    --estate-radius: 4px;
    --estate-shadow: 0 8px 28px rgba(15, 26, 44, 0.10);
    --estate-shadow-soft: 0 2px 8px rgba(15, 26, 44, 0.06);
    --estate-serif: "Playfair Display", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
    --estate-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--estate-ivory);
    color: var(--estate-ink);
    font-family: var(--estate-sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--estate-navy);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--estate-gold);
}

/* Default in-content link colour — golden. Scoped to page/post body (.estate-prose)
   and the homepage intro (.estate-fossil); nav/header/footer links are unaffected. */
.estate-prose a,
.estate-fossil a,
.veyra-fossil-content a {
    color: #c5972f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.estate-prose a:hover,
.estate-prose a:focus,
.estate-fossil a:hover,
.estate-fossil a:focus,
.veyra-fossil-content a:hover,
.veyra-fossil-content a:focus {
    color: #9a7016;
}

/* Featured-listing excerpt card (homepage fossil) */
.estate-listing-excerpt {
    display: block;
    max-width: 540px;
    margin: 0 0 30px;
    border: 1px solid #d8d2c4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(22, 35, 59, 0.12);
    text-decoration: none;
}
.estate-listing-excerpt:hover {
    box-shadow: 0 9px 28px rgba(22, 35, 59, 0.22);
}
.estate-listing-excerpt img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.estate-le-body {
    display: block;
    padding: 16px 18px 18px;
}
.estate-le-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    background: #c5972f;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.estate-le-price {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #16233b;
    line-height: 1.1;
}
.estate-le-stats {
    display: block;
    font-size: 14px;
    color: #333;
    margin: 5px 0 6px;
}
.estate-le-addr {
    display: block;
    font-size: 14px;
    color: #6b7280;
}
.estate-le-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #c5972f;
}

/* Single listing page */
.estate-listing-hero {
    width: 100%;
    border-radius: 12px;
    margin: 0 0 22px;
}
.estate-listing-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    border-bottom: 2px solid #16233b;
    padding-bottom: 14px;
    margin: 0 0 8px;
}
.estate-listing-headline .price {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    color: #16233b;
}
.estate-listing-headline .stats {
    font-size: 15px;
    color: #555;
}
.estate-listing-eyebrow {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c5972f;
    font-weight: 700;
    margin: 0 0 18px;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--estate-serif);
    line-height: 1.2;
    color: var(--estate-navy);
    font-weight: 700;
}

/* Layout container */
.estate-shell-width {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== Masthead ===== */
.estate-masthead {
    background: var(--estate-paper);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--estate-shadow-soft);
}

.estate-utility-bar {
    background: var(--estate-navy-deep);
    color: #cfd6e2;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.estate-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
}

.estate-utility-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.estate-utility-tagline::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--estate-gold);
}

.estate-utility-links {
    display: flex;
    gap: 22px;
}

.estate-utility-links a {
    color: #cfd6e2;
}

.estate-utility-links a:hover {
    color: var(--estate-gold-bright);
}

.estate-main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 0;
    border-bottom: 3px solid var(--estate-gold);
}

.estate-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.estate-brand-title {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0.01em;
}

.estate-brand-title a {
    color: var(--estate-navy);
}

.estate-brand-tagline {
    margin: 0;
    font-family: var(--estate-sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--estate-gold);
    font-weight: 600;
}

.estate-brand .custom-logo {
    max-height: 64px;
    width: auto;
}

/* ===== Navigation ===== */
.estate-nav-toggle {
    display: none;
    background: var(--estate-navy);
    border: 0;
    color: #fff;
    font-family: var(--estate-sans);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 11px 18px;
    cursor: pointer;
    border-radius: var(--estate-radius);
}

.estate-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.estate-nav-list li {
    position: relative;
}

.estate-nav-list a {
    display: block;
    color: var(--estate-navy);
    font-family: var(--estate-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid transparent;
}

.estate-nav-list a:hover,
.estate-nav-list a:focus,
.estate-nav-list .current-menu-item > a,
.estate-nav-list .current-menu-ancestor > a {
    color: var(--estate-navy);
    border-bottom-color: var(--estate-gold);
}

/* Dropdown submenus */
.estate-nav-list ul {
    list-style: none;
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    background: var(--estate-navy);
    padding: 8px 0;
    margin: 0;
    box-shadow: var(--estate-shadow);
    border-top: 3px solid var(--estate-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 20;
}

.estate-nav-list li:hover > ul,
.estate-nav-list li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.estate-nav-list ul li {
    width: 100%;
}

.estate-nav-list ul a {
    color: #e7ebf2;
    border-bottom: 0;
    padding: 10px 20px;
    letter-spacing: 0.06em;
}

.estate-nav-list ul a:hover,
.estate-nav-list ul a:focus {
    color: var(--estate-gold-bright);
    background: var(--estate-navy-deep);
}

.estate-nav-list ul ul {
    left: 100%;
    top: -11px;
}

/* ===== Body grid ===== */
.estate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    padding: 48px 0;
    align-items: start;
}

.estate-content {
    min-width: 0;
}

/* ===== Page header ===== */
.estate-page-banner {
    margin: 0 0 34px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--estate-line);
}

.estate-page-title {
    margin: 0 0 8px;
    font-size: 38px;
}

.estate-page-title span {
    color: var(--estate-gold);
}

.estate-page-sub {
    margin: 0;
    color: var(--estate-muted);
    font-family: var(--estate-sans);
}

/* ===== Listing cards ===== */
.estate-listing-card {
    background: var(--estate-paper);
    border: 1px solid var(--estate-line);
    box-shadow: var(--estate-shadow-soft);
    margin: 0 0 32px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.estate-listing-card:hover {
    box-shadow: var(--estate-shadow);
    transform: translateY(-2px);
}

.estate-card-media {
    display: block;
    position: relative;
    overflow: hidden;
}

.estate-card-media img {
    display: block;
    width: 100%;
    transition: transform 0.4s ease;
}

.estate-card-media:hover img {
    transform: scale(1.04);
}

.estate-card-body {
    padding: 26px 30px 30px;
}

.estate-card-title {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.25;
}

.estate-card-title a {
    color: var(--estate-navy);
}

.estate-card-title a:hover {
    color: var(--estate-gold);
}

.estate-card-summary {
    color: #3c4453;
    font-size: 16px;
}

.estate-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-family: var(--estate-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--estate-gold);
}

.estate-card-cta::after {
    content: "\2192";
    transition: transform 0.18s ease;
}

.estate-card-cta:hover {
    color: var(--estate-navy);
}

.estate-card-cta:hover::after {
    transform: translateX(4px);
}

/* ===== Meta line (price-style accent) ===== */
.estate-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-family: var(--estate-sans);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--estate-muted);
}

.estate-meta li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.estate-meta li + li::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--estate-gold);
    border-radius: 50%;
}

.estate-meta a {
    color: var(--estate-muted);
    font-weight: 600;
}

.estate-meta a:hover {
    color: var(--estate-gold);
}

/* ===== Single / page content ===== */
.estate-article {
    background: var(--estate-paper);
    border: 1px solid var(--estate-line);
    box-shadow: var(--estate-shadow-soft);
    overflow: hidden;
}

.estate-article-media {
    display: block;
}

.estate-article-media img {
    display: block;
    width: 100%;
}

.estate-article-head {
    padding: 32px 38px 0;
}

.estate-article-title {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.18;
}

.estate-prose {
    padding: 24px 38px 38px;
    font-size: 17px;
}

.estate-prose p {
    margin: 0 0 1.3em;
}

.estate-prose img {
    border-radius: var(--estate-radius);
}

.estate-prose blockquote {
    margin: 1.6em 0;
    padding: 16px 26px;
    border-left: 4px solid var(--estate-gold);
    background: var(--estate-ivory);
    font-family: var(--estate-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--estate-navy);
}

.estate-prose a {
    color: var(--estate-gold);
    text-decoration: underline;
    text-decoration-color: rgba(197, 151, 47, 0.4);
}

.estate-prose a:hover {
    color: var(--estate-navy);
}

/* ===== Buttons ===== */
.estate-button,
.estate-prose .wp-block-button__link {
    display: inline-block;
    background: var(--estate-navy);
    color: #fff;
    border: 0;
    border-radius: var(--estate-radius);
    padding: 13px 26px;
    font-family: var(--estate-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.estate-button:hover,
.estate-button:focus,
.estate-prose .wp-block-button__link:hover {
    background: var(--estate-gold);
    color: var(--estate-navy-deep);
}

/* ===== Pagination ===== */
.estate-pagination {
    margin: 24px 0 0;
}

.estate-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.estate-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--estate-line);
    background: var(--estate-paper);
    color: var(--estate-navy);
    font-family: var(--estate-sans);
    font-weight: 600;
}

.estate-pagination .page-numbers.current,
.estate-pagination .page-numbers:hover {
    background: var(--estate-navy);
    color: #fff;
    border-color: var(--estate-navy);
}

.estate-post-nav {
    margin: 28px 0 0;
}

/* ===== Empty / fossil state ===== */
.estate-notice,
.estate-fossil {
    background: var(--estate-paper);
    border: 1px solid var(--estate-line);
    box-shadow: var(--estate-shadow-soft);
    padding: 44px 42px;
    margin: 0 0 32px;
}

.estate-notice-title {
    margin: 0 0 12px;
    font-size: 30px;
}

.estate-fossil h1,
.estate-fossil h2,
.estate-fossil h3 {
    color: var(--estate-navy);
}

/* ===== Sidebar / refine rail ===== */
.estate-rail {
    min-width: 0;
}

.estate-rail-intro {
    background: var(--estate-navy);
    color: #e7ebf2;
    padding: 24px 24px 26px;
    margin: 0 0 26px;
    border-top: 3px solid var(--estate-gold);
}

.estate-rail-intro-eyebrow {
    margin: 0 0 6px;
    font-family: var(--estate-sans);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--estate-gold-bright);
    font-weight: 700;
}

.estate-rail-intro-title {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.estate-panel {
    background: var(--estate-paper);
    border: 1px solid var(--estate-line);
    box-shadow: var(--estate-shadow-soft);
    margin: 0 0 26px;
    overflow: hidden;
}

.estate-panel-title {
    margin: 0;
    background: var(--estate-navy);
    color: #fff;
    font-size: 14px;
    font-family: var(--estate-sans);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 14px 22px;
    border-left: 4px solid var(--estate-gold);
}

.estate-panel > *:not(.estate-panel-title) {
    padding: 0 22px;
}

.estate-panel ul {
    list-style: none;
    margin: 16px 0;
    padding: 0 22px;
}

.estate-panel li {
    padding: 9px 0;
    border-bottom: 1px solid var(--estate-line);
}

.estate-panel li:last-child {
    border-bottom: 0;
}

.estate-panel a {
    color: var(--estate-ink);
}

.estate-panel a:hover {
    color: var(--estate-gold);
}

.estate-panel p,
.estate-panel select,
.estate-panel .textwidget {
    margin: 16px 0;
}

/* Search form in rail */
.estate-panel .search-form {
    display: flex;
    gap: 8px;
    margin: 18px 0;
}

.estate-panel .search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--estate-line);
    font-size: 15px;
    background: var(--estate-ivory);
}

.estate-panel .search-submit {
    background: var(--estate-gold);
    color: var(--estate-navy-deep);
    border: 0;
    padding: 11px 18px;
    cursor: pointer;
    font-family: var(--estate-sans);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

/* Block search widget in the rail — match the theme + give it breathing room so the
   input/button don't sit flush against the panel's bottom edge. */
.estate-panel .wp-block-search {
    margin: 18px 0 24px;
}
.estate-panel .wp-block-search__label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.estate-panel .wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
}
.estate-panel .wp-block-search__input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--estate-line);
    font-size: 15px;
    background: var(--estate-ivory);
    border-radius: 0;
}
.estate-panel .wp-block-search__button {
    margin: 0;
    background: var(--estate-gold);
    color: var(--estate-navy-deep);
    border: 0;
    padding: 11px 18px;
    cursor: pointer;
    font-family: var(--estate-sans);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

/* ===== Comments ===== */
.estate-discussion {
    background: var(--estate-paper);
    border: 1px solid var(--estate-line);
    box-shadow: var(--estate-shadow-soft);
    padding: 32px 38px;
    margin: 32px 0 0;
}

.estate-discussion-title {
    margin: 0 0 22px;
    font-size: 24px;
    border-bottom: 2px solid var(--estate-gold);
    padding-bottom: 12px;
    display: inline-block;
}

.estate-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.estate-comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 30px;
}

.estate-comment-list li {
    margin: 0 0 20px;
}

.estate-comment-list .comment-body {
    background: var(--estate-ivory);
    border: 1px solid var(--estate-line);
    border-left: 4px solid var(--estate-gold);
    padding: 18px 22px;
}

.estate-discussion .comment-respond {
    margin-top: 28px;
}

.estate-discussion input[type="text"],
.estate-discussion input[type="email"],
.estate-discussion input[type="url"],
.estate-discussion textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--estate-line);
    background: var(--estate-ivory);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 14px;
}

.estate-discussion .form-submit input,
.estate-discussion .submit {
    background: var(--estate-navy);
    color: #fff;
    border: 0;
    border-radius: var(--estate-radius);
    padding: 13px 26px;
    font-family: var(--estate-sans);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.estate-discussion .form-submit input:hover {
    background: var(--estate-gold);
    color: var(--estate-navy-deep);
}

.estate-closed-note {
    color: var(--estate-muted);
    font-family: var(--estate-sans);
    font-size: 14px;
}

/* ===== Footer ===== */
.estate-footer {
    background: var(--estate-navy-deep);
    color: #b9c2d2;
    margin-top: 40px;
}

.estate-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 38px;
    padding: 56px 0;
    border-bottom: 1px solid var(--estate-line-dark);
}

.estate-footer-panel .estate-panel-title {
    background: transparent;
    color: var(--estate-gold-bright);
    padding: 0 0 14px;
    border-left: 0;
    border-bottom: 1px solid var(--estate-line-dark);
    margin: 0 0 14px;
}

.estate-footer-panel ul,
.estate-footer-panel p {
    padding: 0;
    margin: 0;
}

.estate-footer-panel li {
    padding: 7px 0;
    border-bottom: 1px solid var(--estate-line-dark);
}

.estate-footer-panel a {
    color: #b9c2d2;
}

.estate-footer-panel a:hover {
    color: var(--estate-gold-bright);
}

.estate-colophon {
    padding: 22px 0;
    font-family: var(--estate-sans);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #8b95a8;
}

.estate-colophon-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.estate-colophon a {
    color: var(--estate-gold-bright);
}

.estate-colophon a:hover {
    color: #fff;
}

/* ===== Accessibility ===== */
.estate-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--estate-gold);
    color: var(--estate-navy-deep);
    padding: 12px 18px;
    font-weight: 700;
    z-index: 999;
}

.estate-skip-link:focus {
    left: 16px;
    top: 16px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
    .estate-layout {
        grid-template-columns: 1fr;
    }

    .estate-footer-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .estate-utility-bar {
        display: none;
    }

    .estate-main-bar {
        flex-wrap: wrap;
    }

    .estate-nav-toggle {
        display: inline-block;
    }

    .estate-primary-nav {
        flex-basis: 100%;
    }

    .estate-nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 12px;
    }

    .estate-primary-nav.is-open .estate-nav-list {
        display: flex;
    }

    .estate-nav-list a {
        border-bottom: 1px solid var(--estate-line);
    }

    .estate-nav-list ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
        padding-left: 16px;
    }

    .estate-footer-cols {
        grid-template-columns: 1fr;
    }
}
