/*
Theme Name: Real Estate Sao Miguel
Theme URI: https://realestatesaomiguel.com
Author: Real Estate Sao Miguel
Version: 1.0.0
Text Domain: resm-theme
*/

:root {
    --resm-red: #d71920;
    --resm-blue: #003c8f;
    --resm-navy: #08224a;
    --resm-ink: #17202a;
    --resm-muted: #5e6b7a;
    --resm-line: #dfe4ea;
    --resm-bg: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--resm-ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #fff;
}

a {
    color: inherit;
}

.site-header {
    background: #fff;
    position: relative;
    z-index: 5;
}

.brand-line {
    width: min(1180px, calc(100% - 32px));
    height: 5px;
    margin: 0 auto;
    background: var(--resm-red);
}

.nav-inner,
.container {
    width: min(1020px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-inner {
    min-height: 72px;
    gap: 22px;
    font-size: 13px;
}

.brand {
    display: flex;
    align-items: center;
    color: var(--resm-blue);
    text-decoration: none;
    flex: 0 1 360px;
    min-width: 220px;
}

.brand-logo {
    display: block;
    line-height: 0;
    max-width: 360px;
    width: 100%;
}

.brand-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 62px;
    object-fit: contain;
    object-position: left center;
}

.menu {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    color: #1f2933;
    font-weight: 500;
    text-decoration: none;
}

.login-link {
    border-left: 1px solid var(--resm-line);
    color: #1f2933;
    padding-left: 18px;
    text-decoration: none;
}

.hero {
    background: #fff;
    color: #fff;
    padding: 10px 0 0;
}

.hero-stage {
    position: relative;
    min-height: 358px;
    overflow: hidden;
    border-radius: 4px;
    background:
        linear-gradient(90deg, rgba(2, 15, 25, .86), rgba(2, 15, 25, .35) 58%, rgba(2, 15, 25, .62)),
        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=78');
    background-position: center;
    background-size: cover;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 15, 25, .86), rgba(2, 15, 25, .35) 58%, rgba(2, 15, 25, .62));
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy,
.hero-badge,
.hero-search {
    z-index: 2;
}

.hero-copy {
    position: absolute;
    left: 14px;
    top: 24px;
    max-width: 710px;
}

.eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(48px, 5.8vw, 66px);
    font-weight: 300;
    letter-spacing: 0;
    line-height: .9;
    text-transform: uppercase;
}

.hero h1 strong {
    display: inline-block;
    margin-top: 6px;
    font-weight: 900;
}

.hero-badge {
    position: absolute;
    right: 40px;
    top: 28px;
    display: grid;
    place-items: center;
    gap: 4px;
    width: 126px;
    height: 154px;
    color: #fff;
    text-align: center;
}

.hero-badge span {
    display: grid;
    place-items: center;
    width: 102px;
    height: 92px;
    border-radius: 48% 48% 42% 42%;
    background: linear-gradient(#e4212a 0 33%, #fff 33% 56%, #00459f 56%);
    color: #00459f;
    font-size: 28px;
    font-weight: 900;
    border: 2px solid #fff;
}

.hero-badge strong {
    font-size: 16px;
}

.hero-badge small {
    font-size: 12px;
    color: rgba(255, 255, 255, .9);
}

.hero-search {
    position: absolute;
    left: 194px;
    right: 194px;
    bottom: 22px;
    color: var(--resm-ink);
}

.search-tabs {
    display: inline-flex;
    overflow: hidden;
    background: #f4f6f8;
    border-radius: 5px 5px 0 0;
}

.search-tabs label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    color: #3b4451;
    font-size: 12px;
    cursor: pointer;
}

.search-tabs input {
    position: absolute;
    opacity: 0;
}

.search-tabs label:has(input:checked) {
    background: #fff;
    color: var(--resm-blue);
    font-weight: 800;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 44px;
    min-height: 42px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}

.search-row input {
    min-width: 0;
    border: 0;
    padding: 0 18px;
    color: #263241;
    font: inherit;
}

.search-row button {
    overflow: hidden;
    border: 0;
    background: var(--resm-blue);
    color: #fff;
    font-size: 0;
    cursor: pointer;
}

.search-row button::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 8px 8px 0 -6px #fff;
    transform: rotate(45deg);
}

.promo-strip {
    padding: 44px 0 6px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 58px;
    width: min(742px, calc(100% - 32px));
}

.promo-card {
    display: grid;
    align-content: space-between;
    min-height: 244px;
    padding: 16px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 18px rgba(19, 41, 75, .08);
}

.promo-card strong {
    font-size: 28px;
    font-weight: 900;
    line-height: .95;
    text-transform: uppercase;
}

.promo-card span {
    display: inline-block;
    align-self: end;
    background: rgba(255, 255, 255, .95);
    color: var(--resm-blue);
    font-weight: 900;
    padding: 6px 8px;
    text-transform: uppercase;
}

.promo-red {
    background: linear-gradient(160deg, #e21d2a 0 56%, #fff 56% 72%, #12386d 72%);
}

.promo-blue {
    background: linear-gradient(180deg, #d7eef8, #edf8fd);
    color: var(--resm-blue);
}

.promo-blue span {
    background: var(--resm-red);
    color: #fff;
}

.promo-light {
    background: linear-gradient(180deg, #dceff9, #c6e4f3);
    color: var(--resm-red);
}

.promo-light span {
    background: var(--resm-red);
    color: #fff;
}

.section {
    padding: 16px 0 52px;
}

.section-alt {
    background: var(--resm-bg);
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    width: min(804px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    margin: 0;
    color: #242a31;
    font-size: 27px;
}

.section-title p {
    max-width: 560px;
    margin: 0;
    color: var(--resm-muted);
}

.cta-band {
    background: var(--resm-blue);
    color: #fff;
    padding: 42px 0;
}

.cta-band .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--resm-red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.resm-search {
    display: none;
}

.resm-property-grid {
    width: min(804px, 100%);
    margin: 0 auto;
}

.site-footer {
    padding: 32px 0;
    background: #0d1829;
    color: #dce3ec;
}

.property-single {
    padding: 42px 0;
}

.property-detail {
    display: grid;
    gap: 28px;
}

.property-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    border-bottom: 1px solid var(--resm-line);
    padding-bottom: 18px;
}

.property-hero h1 {
    margin: 8px 0;
    max-width: 760px;
    color: #1c252f;
    font-size: 36px;
    line-height: 1.12;
}

.property-hero span {
    display: inline-flex;
    margin-right: 10px;
    color: var(--resm-muted);
    font-weight: 700;
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 210px;
    gap: 8px;
}

.property-gallery a {
    display: block;
    overflow: hidden;
    background: #edf1f5;
}

.property-gallery .is-main {
    grid-row: span 2;
}

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

.property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
}

.property-main {
    min-width: 0;
}

.property-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--resm-line);
    margin-bottom: 24px;
    overflow-x: auto;
}

.property-tabs a {
    padding: 14px 0;
    color: var(--resm-blue);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.property-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--resm-line);
}

.property-section h2 {
    margin-top: 0;
    color: #1c252f;
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--resm-line);
    border-left: 1px solid var(--resm-line);
}

.property-details-grid div {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 10px;
    padding: 12px;
    border-right: 1px solid var(--resm-line);
    border-bottom: 1px solid var(--resm-line);
}

.property-details-grid dt {
    color: var(--resm-muted);
    font-weight: 700;
}

.property-details-grid dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.property-section video,
.property-section iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    background: #111827;
}

.property-sidebar {
    border: 1px solid var(--resm-line);
    padding: 18px;
    align-self: start;
    position: sticky;
    top: 20px;
    background: #fff;
}

.property-sidebar .button {
    margin-top: 12px;
}

.resm-share-float {
    position: fixed;
    left: 18px;
    top: 42%;
    z-index: 30;
    display: grid;
    gap: 8px;
}

.resm-share-float a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #003a75;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

@media (max-width: 820px) {
    .nav-inner,
    .cta-band .container,
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .property-layout {
        grid-template-columns: 1fr;
    }

    .property-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .property-hero h1 {
        font-size: 30px;
    }

    .property-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .property-details-grid {
        grid-template-columns: 1fr;
    }

    .property-sidebar {
        position: static;
    }

    .resm-share-float {
        left: 10px;
        top: auto;
        bottom: 12px;
        grid-auto-flow: column;
    }

    .hero-stage {
        min-height: 520px;
    }

    .hero-copy {
        left: 18px;
        right: 18px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-badge {
        right: 16px;
        top: 205px;
        transform: scale(.82);
        transform-origin: top right;
    }

    .hero-search {
        left: 16px;
        right: 16px;
        bottom: 18px;
    }

    .search-tabs,
    .search-tabs label {
        width: 100%;
    }

    .search-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


@media (max-width: 720px) {
    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
        min-height: 0;
        padding: 10px 0 12px;
    }

    .brand {
        flex: 0 1 100%;
        justify-content: center;
        min-width: 0;
    }

    .brand-logo {
        max-width: min(330px, 88vw);
    }

    .brand-logo img {
        height: 56px;
        margin: 0 auto;
        object-position: center;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .login-link {
        border-left: 0;
        padding-left: 0;
    }
}
