:root {
    --oc-navy: #12324a;
    --oc-navy-dark: #09253a;
    --oc-blue: #238fc8;
    --oc-blue-dark: #1677aa;
    --oc-aqua: #2bb7a9;
    --oc-ink: #163147;
    --oc-muted: #6f7f8d;
    --oc-line: #e5edf2;
    --oc-soft: #f5f8fa;
    --oc-white: #ffffff;
    --oc-container: 1480px;
    --oc-page-gutter: clamp(18px, 2.5vw, 48px);
    --oc-header-height: 78px;
    --oc-shadow: 0 18px 50px rgba(15, 48, 71, 0.10);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--oc-white);
    color: var(--oc-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.mobile-menu-open {
    overflow: hidden;
}

a {
    color: var(--oc-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--oc-blue-dark);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
    z-index: 100000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    border-radius: 8px;
    background: var(--oc-navy);
    color: #fff;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}

.oc-content-width {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: var(--oc-page-gutter);
}

/* Header */
.site-header {
    position: sticky;
    z-index: 9999;
    top: 0;
    width: 100%;
    min-height: var(--oc-header-height);
    border-bottom: 1px solid rgba(229, 237, 242, 0.9);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.oc-no-sticky-header .site-header {
    position: relative;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(13, 43, 63, 0.08);
}

.site-header__inner {
    width: 100%;
    max-width: none;
    min-height: var(--oc-header-height);
    margin-inline: auto;
    padding-inline: var(--oc-page-gutter);
    display: grid;
    grid-template-columns: minmax(190px, auto) 1fr auto;
    align-items: center;
    gap: 30px;
}

.site-branding {
    min-width: 0;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 245px;
    line-height: 0;
}

.custom-logo {
    width: auto;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.site-branding__text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--oc-navy-dark);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.site-branding__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e9f5fa;
    color: var(--oc-blue);
}

.site-branding__mark svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-navigation {
    min-width: 0;
    justify-self: center;
}

.primary-menu,
.primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 34px);
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--oc-header-height);
    color: #334c5f;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.primary-menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--oc-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a {
    color: var(--oc-blue);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after,
.primary-menu .current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.primary-menu .sub-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    z-index: 10;
    display: none;
    min-width: 210px;
    padding: 9px;
    border: 1px solid var(--oc-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--oc-shadow);
    transform: translateX(-50%);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    min-height: auto;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    white-space: normal;
}

.primary-menu .sub-menu a::after {
    display: none;
}

.primary-menu .sub-menu a:hover {
    background: var(--oc-soft);
}

.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: #fff;
    color: var(--oc-navy);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.account-link:hover {
    border-color: #cbdce6;
    background: var(--oc-soft);
    color: var(--oc-blue);
    transform: translateY(-1px);
}

.account-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: #fff;
    color: var(--oc-navy);
    cursor: pointer;
}

.menu-toggle__lines {
    display: grid;
    gap: 4px;
    width: 20px;
}

.menu-toggle__lines span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-is-open .menu-toggle__lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-is-open .menu-toggle__lines span:nth-child(2) {
    opacity: 0;
}

.menu-is-open .menu-toggle__lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Homepage */
.home-hero {
    position: relative;
    isolation: isolate;
    min-height: 600px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 60px;
    padding: clamp(70px, 9vw, 130px) var(--oc-page-gutter);
    background:
        radial-gradient(circle at 82% 22%, rgba(35, 143, 200, 0.13), transparent 31%),
        linear-gradient(135deg, #f8fbfc 0%, #edf5f8 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -12vw;
    bottom: -26vw;
    width: 52vw;
    height: 52vw;
    border: 1px solid rgba(35, 143, 200, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(35, 143, 200, 0.035), 0 0 0 150px rgba(35, 143, 200, 0.025);
}

.home-hero__content {
    max-width: 720px;
}

.home-hero__eyebrow,
.section-heading__eyebrow {
    display: inline-block;
    color: var(--oc-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 760px;
    margin: 12px 0 22px;
    color: var(--oc-navy-dark);
    font-size: clamp(46px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.home-hero p {
    max-width: 640px;
    margin: 0;
    color: #5f7280;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.oc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.oc-button:hover {
    transform: translateY(-2px);
}

.oc-button--primary {
    background: var(--oc-blue);
    color: #fff;
    box-shadow: 0 12px 28px rgba(35, 143, 200, 0.23);
}

.oc-button--primary:hover {
    background: var(--oc-blue-dark);
    color: #fff;
}

.oc-button--secondary {
    border-color: #d5e3eb;
    background: rgba(255, 255, 255, 0.86);
    color: var(--oc-navy);
}

.oc-button--secondary:hover {
    background: #fff;
    color: var(--oc-blue);
}

.home-hero__visual {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.home-hero__building {
    position: relative;
    width: min(100%, 480px);
    aspect-ratio: 1.15;
    border: 14px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    background:
        linear-gradient(90deg, transparent 49.3%, rgba(255,255,255,.72) 49.3%, rgba(255,255,255,.72) 50.7%, transparent 50.7%),
        linear-gradient(transparent 49.3%, rgba(255,255,255,.72) 49.3%, rgba(255,255,255,.72) 50.7%, transparent 50.7%),
        linear-gradient(145deg, #91c9dd 0%, #c8e4ec 62%, #89b7ca 100%);
    box-shadow: 0 34px 80px rgba(18, 50, 74, 0.18);
    transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
}

.home-hero__building::before {
    content: "";
    position: absolute;
    right: 9%;
    bottom: -14%;
    left: 9%;
    height: 24%;
    border-radius: 50%;
    background: rgba(20, 55, 77, 0.18);
    filter: blur(24px);
    transform: rotateX(75deg);
}

.home-hero__building span {
    position: absolute;
    width: 17%;
    height: 19%;
    border: 8px solid rgba(255,255,255,.9);
    border-radius: 7px;
    background: rgba(20, 64, 88, 0.47);
    box-shadow: inset 0 0 0 1px rgba(12, 45, 65, 0.12);
}

.home-hero__building span:nth-child(1) { left: 12%; top: 16%; }
.home-hero__building span:nth-child(2) { left: 42%; top: 16%; }
.home-hero__building span:nth-child(3) { right: 12%; top: 16%; }
.home-hero__building span:nth-child(4) { left: 12%; bottom: 16%; }
.home-hero__building span:nth-child(5) { left: 42%; bottom: 0; height: 35%; }
.home-hero__building span:nth-child(6) { right: 12%; bottom: 16%; }

.home-properties {
    padding: 76px 0 90px;
    background: #fff;
}

.section-heading {
    width: 100%;
    max-width: none;
    margin: 0 auto 22px;
    padding-inline: var(--oc-page-gutter);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2 {
    margin: 5px 0 0;
    color: var(--oc-navy);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading > a {
    flex: 0 0 auto;
    color: var(--oc-blue);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

/* Full-width pages and WordPress content */
.full-width-page,
.entry-content--full {
    width: 100%;
}

.entry-content--full > *:not(.alignfull):not(.alignwide):not(.ocp-template-shell):not(.ocp-directory):not(.wp-block-cover):not(.wp-block-group.has-background) {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--oc-page-gutter);
    padding-left: var(--oc-page-gutter);
}

.entry-content--full > .alignwide {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--oc-page-gutter);
    padding-left: var(--oc-page-gutter);
}

.entry-content--full > .alignfull {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.page-header {
    padding-top: 56px;
    padding-bottom: 28px;
}

.page-title,
.archive-header h1,
.single-post-entry .entry-title {
    margin: 0;
    color: var(--oc-navy-dark);
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.entry-content {
    color: #405767;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--oc-navy);
    line-height: 1.2;
}

.entry-content h2 {
    margin-top: 1.8em;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    font-size: 17px;
}

.content-listing,
.single-post-shell {
    padding-top: 64px;
    padding-bottom: 80px;
}

.archive-header {
    margin-bottom: 34px;
}

.archive-description {
    max-width: 720px;
    margin-top: 14px;
    color: var(--oc-muted);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    overflow: hidden;
    border: 1px solid var(--oc-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(18, 50, 74, 0.06);
}

.post-card__image {
    display: block;
    height: 230px;
    overflow: hidden;
    background: var(--oc-soft);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.035);
}

.post-card__body {
    padding: 22px;
}

.post-card__meta,
.entry-meta {
    color: var(--oc-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card h2 {
    margin: 8px 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.post-card h2 a {
    color: var(--oc-navy);
    text-decoration: none;
}

.post-card p {
    margin: 0 0 16px;
    color: var(--oc-muted);
    font-size: 15px;
}

.post-card__link {
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.single-post-entry {
    max-width: 900px;
    margin-inline: auto;
}

.single-post-entry .entry-header {
    margin-bottom: 28px;
}

.single-post-entry .entry-title {
    margin-top: 10px;
}

.entry-featured-image {
    overflow: hidden;
    margin-bottom: 34px;
    border-radius: 20px;
}

.entry-featured-image img {
    display: block;
    width: 100%;
}

.not-found,
.nothing-found {
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.not-found__code {
    display: block;
    color: #d9e8ef;
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 900;
    line-height: 0.9;
}

.not-found h1,
.nothing-found h1 {
    margin: 16px 0 8px;
    color: var(--oc-navy);
}

.not-found p,
.nothing-found p {
    color: var(--oc-muted);
}

.navigation.pagination {
    margin-top: 34px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--oc-line);
    border-radius: 10px;
    color: var(--oc-navy);
    text-decoration: none;
}

.page-numbers.current {
    border-color: var(--oc-blue);
    background: var(--oc-blue);
    color: #fff;
}

/* Property plugin compatibility */
.ocp-template-shell,
.ocp-template-shell--archive {
    width: 100%;
}

body.owning-cyprus-theme .ocp-directory,
body.owning-cyprus-theme .ocp-featured,
body.owning-cyprus-theme .ocp-single-property {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: var(--oc-page-gutter);
    padding-left: var(--oc-page-gutter);
}

body.owning-cyprus-theme .ocp-template-shell--archive .ocp-directory {
    margin-right: 0;
    margin-left: 0;
}

.ocp-template-shell .ocp-directory,
.ocp-template-shell .ocp-single-property {
    width: 100%;
    max-width: none;
}

.ocp-template-shell .ocp-directory {
    padding-right: var(--oc-page-gutter);
    padding-left: var(--oc-page-gutter);
}

.ocp-enquiry-card {
    top: calc(var(--oc-header-height) + 20px) !important;
}

/* Footer */
.site-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--oc-line);
    background: var(--oc-navy-dark);
    color: rgba(255, 255, 255, 0.72);
}

.footer-widgets,
.site-footer__bottom {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-right: var(--oc-page-gutter);
    padding-left: var(--oc-page-gutter);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 54px var(--oc-page-gutter) 28px;
}

.footer-widget__title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-widget a,
.footer-menu a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.footer-widget a:hover,
.footer-menu a:hover {
    color: #fff;
}

.site-footer__bottom {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px var(--oc-page-gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.site-footer__brand {
    color: #fff;
    font-weight: 850;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__copyright {
    text-align: right;
}

/* Responsive */
@media (max-width: 1100px) {
    .site-header__inner {
        gap: 18px;
    }

    .primary-menu {
        gap: 16px;
    }

    .account-link span {
        display: none;
    }

    .account-link {
        width: 44px;
        padding: 0;
    }

    .home-hero {
        min-height: 560px;
        gap: 30px;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    :root {
        --oc-header-height: 70px;
    }

    .site-header__inner {
        width: 100%;
        padding-right: var(--oc-page-gutter);
        padding-left: var(--oc-page-gutter);
        grid-template-columns: 1fr auto auto;
    }

    .custom-logo-link {
        max-width: 210px;
    }

    .custom-logo {
        max-height: 46px;
    }

    .menu-toggle {
        display: inline-flex;
        grid-column: 2;
    }

    .account-link {
        grid-column: 3;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - var(--oc-header-height));
        overflow-y: auto;
        border-top: 1px solid var(--oc-line);
        border-bottom: 1px solid var(--oc-line);
        background: #fff;
        box-shadow: 0 24px 45px rgba(13, 43, 63, 0.12);
    }

    .menu-is-open .main-navigation {
        display: block;
    }

    .primary-menu {
        width: 100%;
        max-width: none;
        margin-inline: auto;
        padding: 12px var(--oc-page-gutter) 20px;
        display: block;
    }

    .primary-menu a {
        min-height: 52px;
        padding: 0 8px;
        border-bottom: 1px solid var(--oc-line);
        font-size: 15px;
    }

    .primary-menu a::after {
        display: none;
    }

    .primary-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .primary-menu .sub-menu a {
        min-height: 44px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .home-hero__content {
        max-width: 760px;
    }

    .home-hero__visual {
        min-height: 330px;
    }

    .home-hero__building {
        width: min(84vw, 470px);
    }

    .site-footer__bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer__copyright {
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --oc-page-gutter: 14px;
    }

    .oc-content-width,
    .footer-widgets,
    .site-footer__bottom,
    .section-heading,
    .entry-content--full > *:not(.alignfull):not(.alignwide):not(.ocp-template-shell):not(.ocp-directory):not(.wp-block-cover):not(.wp-block-group.has-background),
    .entry-content--full > .alignwide,
    body.owning-cyprus-theme .ocp-directory,
    body.owning-cyprus-theme .ocp-featured,
    body.owning-cyprus-theme .ocp-single-property {
        width: 100%;
        max-width: none;
    }

    .site-branding__name {
        font-size: 16px;
    }

    .home-hero {
        min-height: auto;
        padding: 62px var(--oc-page-gutter);
    }

    .home-hero h1 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .home-hero__actions {
        display: grid;
    }

    .oc-button {
        width: 100%;
    }

    .home-hero__visual {
        min-height: 270px;
    }

    .home-hero__building {
        border-width: 9px;
        border-radius: 20px;
    }

    .home-hero__building span {
        border-width: 5px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-properties {
        padding-top: 58px;
        padding-bottom: 68px;
    }

    .post-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .content-listing,
    .single-post-shell {
        padding-top: 42px;
        padding-bottom: 60px;
    }

    .page-header {
        padding-top: 42px;
    }

    .entry-content p,
    .entry-content ul,
    .entry-content ol {
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    .site-header__inner {
        width: 100%;
        gap: 8px;
    }

    .site-branding__mark {
        width: 31px;
        height: 31px;
    }

    .site-branding__name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle,
    .account-link {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Version 0.1.3: soft segmented navigation inspired by the supplied reference. */
:root {
    --oc-navy: #26323b;
    --oc-navy-dark: #1f2a32;
    --oc-blue: #e67b4e;
    --oc-blue-dark: #cf653a;
    --oc-aqua: #d98d69;
    --oc-ink: #27323a;
    --oc-muted: #7b848a;
    --oc-line: #eceae7;
    --oc-soft: #f7f7f5;
    --oc-menu-active: #fff1e9;
    --oc-menu-active-text: #db7044;
    --oc-shadow: 0 18px 48px rgba(54, 43, 35, 0.10);
}

.site-header {
    border-bottom-color: #efeeeb;
    background: rgba(255, 255, 255, 0.98);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(57, 46, 38, 0.07);
}

.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    gap: 7px;
}

.primary-menu > li > a {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 11px;
    background: #f7f7f5;
    color: #747b80;
    font-size: 13px;
    font-weight: 650;
}

.primary-menu > li > a::after {
    display: none;
}

.primary-menu > li > a:hover,
.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu > .current-menu-ancestor > a {
    background: var(--oc-menu-active);
    color: var(--oc-menu-active-text);
    box-shadow: 0 7px 18px rgba(87, 59, 42, 0.08);
}

.primary-menu .sub-menu {
    top: calc(100% + 10px);
    border-color: #eceae7;
    box-shadow: 0 18px 44px rgba(54, 43, 35, 0.12);
}

.primary-menu .sub-menu a {
    color: #61696e;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a {
    background: var(--oc-menu-active);
    color: var(--oc-menu-active-text);
}

.site-branding__mark {
    background: var(--oc-menu-active);
    color: var(--oc-blue);
}

.account-link {
    border-color: #eceae7;
    border-radius: 13px;
    background: #ffffff;
    color: #364149;
    box-shadow: 0 5px 16px rgba(54, 43, 35, 0.04);
}

.account-link:hover {
    border-color: #f0d4c6;
    background: var(--oc-menu-active);
    color: var(--oc-menu-active-text);
}

.menu-toggle {
    border-color: #eceae7;
    background: #f7f7f5;
}

/* Keep the property plugin visually consistent with the theme. */
body.owning-cyprus-theme .ocp-directory,
body.owning-cyprus-theme .ocp-featured,
body.owning-cyprus-theme .ocp-single-property {
    --ocp-navy: #26323b;
    --ocp-blue: #e67b4e;
    --ocp-blue-dark: #cf653a;
    --ocp-aqua: #d98d69;
    --ocp-ink: #27323a;
    --ocp-muted: #7b848a;
    --ocp-line: #eceae7;
    --ocp-soft: #f7f7f5;
}

@media (max-width: 900px) {
    .main-navigation {
        display: none;
        align-items: stretch;
    }

    .menu-is-open .main-navigation {
        display: block;
    }

    .primary-menu {
        display: grid;
        gap: 8px;
        padding-top: 14px;
    }

    .primary-menu > li > a {
        min-height: 48px;
        padding: 0 15px;
        border: 0;
        border-radius: 12px;
        background: #f7f7f5;
        font-size: 15px;
    }

    .primary-menu .sub-menu {
        margin-top: 7px;
        padding-left: 10px;
        background: transparent;
    }

    .primary-menu .sub-menu a {
        border-bottom: 0;
        border-radius: 10px;
    }
}

.primary-menu > li > a {
    gap: 7px;
}

.menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.menu-item-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-item-label {
    min-width: 0;
}
