/* Habita — prémiová tmavá šablona */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap');

.template-habita {
    --sho-habita-dark: #0d1117;
    --sho-habita-surface: #141a22;
    --sho-habita-panel: rgba(13, 17, 23, 0.88);
    --sho-habita-muted: #9ca3af;
    --sho-habita-border: rgba(255, 255, 255, 0.08);
    --sho-habita-light-bg: #f4f3ef;
    --sho-habita-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sho-habita-stats-overlap: 3.75rem;
    --sho-habita-stats-clearance: 5.5rem;
    --sho-habita-stats-strip-offset: 1.65rem;
}

body.sho-public.template-habita {
    background: #fff;
}

.template-habita .sho-section-title {
    font-family: var(--sho-habita-serif);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Header */
.template-habita .sho-header--habita {
    background: var(--sho-header-bg-start, var(--sho-habita-dark));
    background-image: linear-gradient(180deg, var(--sho-header-bg-start, var(--sho-habita-dark)), var(--sho-header-bg-end, #0a0e14));
    border-bottom: 1px solid var(--sho-habita-border);
    padding: 0.75rem 0;
}

.template-habita .sho-header--habita .nav-link {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.template-habita .sho-btn-gold--habita-header {
    padding: 0.55rem 1.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero */
.template-habita .sho-hero--habita {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: visible;
}

.template-habita .sho-hero--habita:has(.sho-habita-stats-wrap) {
    min-height: 580px;
    padding-bottom: var(--sho-habita-stats-clearance);
}

.template-habita .sho-hero--habita:has(.sho-habita-hero-strip-search) {
    --sho-habita-stats-clearance: 7.65rem;
    min-height: 620px;
}

.template-habita .sho-hero--habita::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(8, 11, 16, 0.62) 0%,
        rgba(8, 11, 16, 0.34) 38%,
        rgba(8, 11, 16, 0.12) 58%,
        transparent 72%);
}

.template-habita .sho-hero--habita .container {
    z-index: 1;
    position: relative;
    padding-bottom: calc(var(--sho-habita-stats-overlap) + 1.5rem);
}

.sho-hero--habita h1 {
    font-family: var(--sho-habita-serif);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.65rem;
    /* Řádky řeší .sho-hero__title-line — pre-line z reality-public by mezi spanymě dělalo dvojité mezery. */
    white-space: normal;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.65);
}

/* Bez podnadpisu: ~2 řádky mezery před tlačítky */
.sho-hero--habita h1.sho-hero__title--before-cta {
    margin-bottom: 2.4em;
}

.sho-hero--habita .sho-hero__intro {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    padding: 1.15rem 1.35rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(8, 11, 16, 0.52) 0%,
        rgba(8, 11, 16, 0.28) 100%);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
}

/* S podnadpisem: ~1 prázdný řádek mezi podnadpisem a tlačítky */
.sho-hero--habita .sho-hero__intro .lead,
.sho-hero--habita .sho-hero__subtitle {
    margin-top: 0;
    margin-bottom: 1.55em;
}

.sho-hero--habita h1 .sho-hero__title-line {
    display: block;
    margin: 0;
    line-height: 1.2;
}

.sho-hero--habita .lead {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.05rem;
    max-width: 34rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.55);
}

.sho-habita-search-panel {
    background: rgba(13, 17, 23, 0.92);
    border: 1px solid var(--sho-habita-border);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    max-width: 100%;
    margin-left: auto;
}

@media (min-width: 992px) {
    .sho-habita-search-panel {
        transform: translateX(calc(1rem + 152px));
    }
}

.sho-habita-search-panel .form-label {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.sho-habita-search-panel .form-select {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.925rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    min-height: 2.5rem;
}

.sho-habita-search-panel .sho-btn-gold {
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
}

.sho-habita-search-panel .form-select option {
    color: #111;
}

.sho-habita-hero-highlights {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    max-width: 26.5rem;
    padding: 1.15rem 1.35rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(8, 11, 16, 0.82) 0%,
        rgba(8, 11, 16, 0.68) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(4px);
}

.sho-habita-hero-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sho-habita-hero-highlight:first-child {
    padding-top: 0;
}

.sho-habita-hero-highlight:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sho-habita-hero-highlight__icon {
    flex-shrink: 0;
    color: var(--sho-gold, #c5a059);
    line-height: 1;
    padding-top: 0.1rem;
}

.sho-habita-hero-highlight__icon .sho-why-icon {
    font-size: 2.35rem;
    width: auto;
    height: auto;
    display: block;
}

.sho-habita-hero-highlight__body {
    min-width: 0;
}

.sho-habita-hero-highlight__title {
    font-family: var(--sho-habita-serif);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem;
    line-height: 1.25;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.sho-habita-hero-highlight__text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.45;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    text-wrap: pretty;
}

@media (max-width: 991.98px) {
    .sho-habita-hero-highlights {
        margin-left: 0;
        max-width: none;
    }
}

@media (min-width: 992px) {
    .template-habita .sho-hero--habita:has(.sho-habita-hero-highlights) .sho-hero__intro {
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .template-habita .sho-hero--habita:has(.sho-habita-stats-wrap) {
        min-height: auto;
        padding-bottom: calc(var(--sho-habita-stats-clearance) + 0.5rem);
    }

    .template-habita .sho-hero--habita:has(.sho-habita-hero-strip-search) {
        --sho-habita-stats-clearance: 8.65rem;
    }

    body.template-habita .sho-section--habita-latest {
        padding-top: calc(var(--sho-habita-stats-clearance) + 2rem);
    }

    body.template-habita .sho-hero--habita-no-strip + .sho-section--habita-latest {
        padding-top: 2.5rem;
    }

    .sho-habita-search-panel {
        margin-left: 0;
    }
}

/* Stats bar — polovinou přesahuje z hero do bílé sekce */
.sho-habita-stats-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    transform: translateY(calc(50% + var(--sho-habita-stats-strip-offset)));
    pointer-events: none;
}

.sho-habita-stats-wrap .container {
    pointer-events: auto;
}

.sho-habita-stats-bar {
    background: var(--sho-homepage-stats-strip-bg, var(--sho-brand-primary, #06172b));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    padding: 1.15rem 0;
    width: 100%;
}

.sho-habita-stats-bar__row {
    align-items: stretch;
}

.sho-habita-stats-bar__row > [class*="col-"]:not(:last-child) .sho-habita-stat {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sho-habita-stat {
    text-align: center;
    padding: 0.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 4.5rem;
}

.sho-habita-stat__value {
    font-family: var(--sho-habita-serif);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 600;
    color: var(--sho-gold, #c5a059);
    line-height: 1.05;
}

.sho-habita-stat__label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    margin-top: 0.3rem;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .sho-habita-stats-bar {
        padding: 1rem 0;
    }

    .sho-habita-stat {
        min-height: 3.75rem;
        padding: 0.35rem 0.75rem;
    }

    .sho-habita-stats-bar__row > [class*="col-"]:nth-child(odd) .sho-habita-stat {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .sho-habita-stats-bar__row > [class*="col-"]:nth-child(even) .sho-habita-stat {
        border-right: none;
    }
}

.sho-habita-hero-strip-search {
    background: var(--sho-homepage-search-strip-bg, var(--sho-homepage-stats-strip-bg, var(--sho-brand-primary, #06172b)));
    padding: 1.1rem 1.35rem 1.25rem;
}

.sho-habita-hero-strip-search .form-label {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.sho-habita-hero-strip-search .form-select {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.875rem;
    min-height: 2.35rem;
}

.sho-habita-hero-strip-search .form-select option {
    color: #111;
}

.sho-habita-hero-strip-search .sho-habita-hero-strip-search__submit {
    white-space: nowrap;
    min-height: 2.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
}

.sho-hero--habita-no-strip .container {
    padding-bottom: 2rem !important;
}

body.template-habita .sho-section--habita-latest {
    padding-top: calc(var(--sho-habita-stats-clearance) + 2.5rem);
}

body.template-habita .sho-hero--habita-no-strip + .sho-section--habita-latest {
    padding-top: 3rem;
}

body.template-habita:has(.sho-habita-hero-strip-search) .sho-section--habita-latest {
    padding-top: calc(var(--sho-habita-stats-clearance) + 2.75rem);
}

/* Latest — featured + list */
.sho-section--habita-latest {
    padding-bottom: 2rem;
}

.sho-habita-featured-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
    .sho-section--habita-latest .row {
        align-items: stretch;
    }

    .sho-section--habita-latest .col-lg-7,
    .sho-section--habita-latest .col-lg-5 {
        display: flex;
        flex-direction: column;
    }

    .sho-habita-featured-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .sho-habita-featured-card__image {
        flex: 1;
        aspect-ratio: auto;
        min-height: 320px;
    }

    .sho-habita-list-stack {
        flex: 1;
    }

    .sho-habita-list-item {
        flex: 1 1 0;
        min-height: 0;
    }
}

.sho-habita-featured-card__image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.sho-habita-featured-card__image:hover,
.sho-habita-featured-card__image:focus,
.sho-habita-featured-card__image:focus-visible,
.sho-habita-featured-card__image:visited,
.sho-habita-featured-card__image:active {
    color: #fff;
    text-decoration: none;
}

.sho-habita-featured-card__image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(52%, 22rem);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(6, 9, 12, 0.94) 0%,
        rgba(6, 9, 12, 0.88) 42%,
        rgba(6, 9, 12, 0.45) 78%,
        transparent 100%
    );
}

.sho-habita-featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sho-habita-featured-card__image:hover img {
    transform: scale(1.03);
}

.sho-habita-featured-card__content {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.3rem;
    z-index: 2;
    color: #fff;
}

.sho-habita-featured-card__title {
    font-family: var(--sho-habita-serif);
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 18px rgba(0, 0, 0, 0.75);
}

.sho-habita-featured-card__top-badge {
    display: inline-block;
    background: var(--sho-gold);
    color: #101418;
    padding: 0.32rem 0.62rem;
    border-radius: 2px;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.sho-habita-featured-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.84rem;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 2px 12px rgba(0, 0, 0, 0.65);
}

.sho-habita-featured-card__meta i {
    color: rgba(255, 255, 255, 0.88);
    margin-right: 0.25rem;
}

.sho-habita-featured-card__link-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sho-habita-featured-card__image:hover .sho-habita-featured-card__link-btn,
.sho-habita-featured-card__image:focus .sho-habita-featured-card__link-btn {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.sho-habita-list-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Když je vpravo jen 1 položka, ať karta nepůsobí „napůl prázdná“. */
@media (min-width: 992px) {
    .sho-habita-list-stack:has(> .sho-habita-list-item:only-child) .sho-habita-list-item {
        min-height: 320px;
    }

    .sho-habita-list-stack:has(> .sho-habita-list-item:only-child) .sho-habita-list-item__thumb {
        flex: 0 0 46%;
        width: 46%;
        max-width: none;
    }

    .sho-habita-list-stack:has(> .sho-habita-list-item:only-child) .sho-habita-list-item__body {
        justify-content: flex-start;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

.sho-habita-list-item {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    overflow: hidden;
    min-height: 110px;
    transition: box-shadow 0.2s ease;
}

.sho-habita-list-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.sho-habita-list-item__thumb {
    position: relative;
    flex: 0 0 40%;
    width: 40%;
    min-width: 125px;
    max-width: 190px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 0;
}

.sho-habita-list-item__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sho-habita-list-item__thumb .sho-property-badge {
    top: 0.55rem;
    left: 0.55rem;
    z-index: 2;
    font-size: 0.58rem;
    padding: 0.2rem 0.45rem;
}

.sho-habita-list-item__thumb .sho-property-badge--secondary {
    top: auto;
    bottom: 0.55rem;
    left: 0.55rem;
}

.sho-habita-list-item__thumb .sho-property-watermark span {
    font-size: clamp(0.62rem, 2.2vw, 0.95rem);
    letter-spacing: 0.1em;
    border-width: 2px;
    padding: 0.22em 0.45em;
}

.sho-habita-featured-card__image .sho-property-badge {
    z-index: 3;
}

.sho-habita-featured-card__image .sho-property-badge--secondary {
    /* Na featured kartě je dole CTA — badge přesunout vpravo nahoru. */
    top: 12px;
    bottom: auto;
    left: auto;
    right: 1.4rem;
}

.sho-habita-featured-card__image .sho-property-watermark {
    z-index: 2;
}

.sho-habita-list-item:hover .sho-habita-list-item__thumb img {
    transform: scale(1.03);
}

.sho-habita-list-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 0.55rem 0.85rem 0.95rem;
}

.sho-habita-list-item__title {
    font-family: var(--sho-habita-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.sho-habita-list-item__title a {
    color: var(--sho-navy);
    text-decoration: none;
}

.sho-habita-list-item__location {
    font-size: 0.82rem;
    color: var(--sho-habita-muted);
    line-height: 1.25;
}

.sho-habita-list-item__meta {
    font-size: 0.78rem;
    color: var(--sho-habita-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-top: 0.1rem;
}

.sho-habita-list-item__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sho-habita-list-item__meta i {
    color: var(--sho-gold);
    font-size: 0.75rem;
    opacity: 0.85;
}

.sho-habita-list-item__arrow {
    color: var(--sho-gold);
    font-size: 0.88rem;
    align-self: center;
    flex-shrink: 0;
    padding: 0 0.9rem 0 0.3rem;
}

.sho-price-block--habita-featured .sho-price-main,
.sho-price-block--habita-list .sho-price-main,
.sho-price-block--habita-featured .sho-price-amount,
.sho-price-block--habita-list .sho-price-amount {
    color: var(--sho-gold);
    font-weight: 700;
}

.sho-price-block--habita-list .sho-price-amount {
    font-size: 1.05rem;
    line-height: 1.2;
}

.sho-price-block--habita-list .sho-price-note {
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 0.08rem;
}

.sho-price-block--habita-featured .sho-price-main {
    color: var(--sho-gold);
    font-size: 2rem;
    line-height: 1.2;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 14px rgba(0, 0, 0, 0.75);
}

.sho-price-block--habita-featured .sho-price-note {
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 2px 12px rgba(0, 0, 0, 0.65);
}

.sho-habita-featured-card__image:hover .sho-price-block--habita-featured .sho-price-amount,
.sho-habita-featured-card__image:hover .sho-price-block--habita-featured .sho-price-main {
    color: var(--sho-gold);
}

.sho-habita-featured-card__image:hover .sho-price-block--habita-featured .sho-price-note,
.sho-habita-featured-card__image:hover .sho-habita-featured-card__meta,
.sho-habita-featured-card__image:hover .sho-habita-featured-card__meta i {
    color: rgba(255, 255, 255, 0.92);
}

.sho-habita-featured-card__image:hover .sho-habita-featured-card__title {
    color: #fff;
}

/* Process timeline */
.sho-habita-process-section {
    background: #fff;
    padding: 0 0 3rem;
}

.sho-habita-process-panel {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--sho-habita-dark) 92%, var(--sho-gold) 8%) 0%, var(--sho-habita-dark) 55%, #080b10 100%);
    border-radius: 28px;
    padding: 2.75rem 1.25rem 2.25rem;
    box-shadow: 0 24px 48px rgba(8, 11, 16, 0.18);
    overflow: hidden;
}

.sho-habita-process-panel__title {
    font-family: var(--sho-habita-serif);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 0 0 2.5rem;
    letter-spacing: 0.01em;
}

.sho-habita-process-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem 0.75rem;
    position: relative;
}

.sho-habita-process-timeline::before {
    content: '';
    position: absolute;
    top: 3.1rem;
    left: 7%;
    right: 7%;
    height: 0;
    border-top: 2px dashed color-mix(in srgb, var(--sho-gold) 55%, transparent);
    z-index: 0;
}

.sho-habita-process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 0.35rem;
}

.sho-habita-process-step__icon {
    width: 6.25rem;
    height: 6.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, color-mix(in srgb, var(--sho-gold) 72%, #fff 28%) 0%, var(--sho-gold) 48%, color-mix(in srgb, var(--sho-gold) 88%, #3d2a08) 100%);
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sho-habita-process-step__icon .sho-habita-process-icon {
    font-size: 2.15rem;
    line-height: 1;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.sho-habita-process-step__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sho-gold);
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.sho-habita-process-step__text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    margin: 0;
}

@media (min-width: 992px) {
    .sho-habita-process-panel {
        padding: 3.25rem 2.5rem 3rem;
        border-radius: 32px;
    }

    .sho-habita-process-panel__title {
        margin-bottom: 3rem;
    }
}

@media (max-width: 1199.98px) {
    .sho-habita-process-timeline {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2rem;
    }

    .sho-habita-process-timeline::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .sho-habita-process-panel {
        border-radius: 20px;
        padding: 2rem 1rem 1.75rem;
    }

    .sho-habita-process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .sho-habita-process-step__icon {
        width: 5.15rem;
        height: 5.15rem;
    }

    .sho-habita-process-step__icon .sho-habita-process-icon {
        font-size: 1.85rem;
    }
}

/* Appraisal */
.sho-habita-appraisal-section {
    background: #fff;
    padding: 0 0 1.5rem;
}

.sho-habita-appraisal-panel {
    background: var(--sho-habita-light-bg);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(8, 11, 16, 0.06);
}

.sho-habita-appraisal-panel__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(330px, 420px) minmax(0, 1.08fr);
    align-items: center;
    padding: 2rem 0;
}

.sho-habita-appraisal-panel--no-photo .sho-habita-appraisal-panel__layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    max-width: 960px;
    margin: 0 auto;
}

.sho-habita-appraisal-panel__intro {
    padding: 0 1rem 0 2.5rem;
    align-self: center;
}

.sho-habita-appraisal-panel__rule {
    display: block;
    width: 3.25rem;
    height: 2px;
    background: var(--sho-gold);
    margin-bottom: 1rem;
}

.sho-habita-appraisal-panel__label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sho-gold);
    font-weight: 700;
    margin-bottom: 1.45rem;
}

.sho-habita-appraisal-panel__title {
    font-family: var(--sho-habita-serif);
    font-size: clamp(1.75rem, 2.8vw, 2.45rem);
    line-height: 1.15;
    color: var(--sho-navy, #0d1117);
    margin: 0.15rem 0 0.85rem;
    font-weight: 600;
}

.sho-habita-appraisal-panel__subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
    max-width: 22rem;
}

.sho-habita-appraisal-panel__form {
    padding: 0;
    margin-left: -1.85rem;
    width: calc(100% + 1.85rem);
    z-index: 2;
    align-self: center;
}

.sho-habita-appraisal-form-box {
    background: #fff;
    border-radius: 14px;
    padding: 1.55rem 1.45rem 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sho-habita-appraisal-form-grid {
    --bs-gutter-y: 0.85rem;
    --bs-gutter-x: 0.85rem;
}

.sho-habita-appraisal-field {
    display: block;
    margin: 0;
}

.sho-habita-appraisal-field__label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.32rem;
}

.sho-habita-appraisal-field__control {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.62rem 0.75rem;
    font-size: 0.9rem;
    background: #fff;
    color: #111827;
}

.sho-habita-appraisal-field__control:focus {
    border-color: color-mix(in srgb, var(--sho-gold) 65%, #d1d5db);
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--sho-gold) 18%, transparent);
    outline: 0;
}

.sho-habita-appraisal-form-box__submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 0.9rem 1rem;
    background: var(--sho-gold);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.sho-habita-appraisal-form-box__submit:hover {
    background: var(--sho-gold-hover, color-mix(in srgb, var(--sho-gold) 88%, black));
    color: #fff;
}

.sho-habita-appraisal-panel__photo {
    position: relative;
    align-self: stretch;
    min-height: 100%;
    overflow: hidden;
}

.sho-habita-appraisal-panel__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        var(--sho-habita-light-bg) 0%,
        color-mix(in srgb, var(--sho-habita-light-bg) 72%, transparent) 18%,
        transparent 42%);
    pointer-events: none;
}

.sho-habita-appraisal-panel__photo img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .sho-habita-appraisal-panel {
        border-radius: 32px;
    }

    .sho-habita-appraisal-panel__layout {
        padding: 2.25rem 0;
    }

    .sho-habita-appraisal-panel__form {
        margin-left: -2.25rem;
        width: calc(100% + 2.25rem);
    }
}

@media (max-width: 991.98px) {
    .sho-habita-appraisal-panel__layout {
        grid-template-columns: 1fr;
        padding: 1.5rem 0;
    }

    .sho-habita-appraisal-panel__intro {
        padding: 0 1.5rem 0.5rem;
        text-align: left;
    }

    .sho-habita-appraisal-panel__rule {
        margin-left: 0;
        margin-bottom: 1.05rem;
    }

    .sho-habita-appraisal-panel__subtitle {
        max-width: none;
        margin: 0 auto;
    }

    .sho-habita-appraisal-panel__form {
        padding: 0 1.25rem;
        margin-left: 0;
        width: 100%;
        max-width: 460px;
        margin-inline: auto;
    }

    .sho-habita-appraisal-panel__photo {
        order: -1;
        min-height: 220px;
        max-height: 280px;
    }

    .sho-habita-appraisal-panel__photo::before {
        background: linear-gradient(
            180deg,
            transparent 55%,
            var(--sho-habita-light-bg) 100%);
    }

    .sho-habita-appraisal-panel__photo img {
        min-height: 220px;
    }
}

/* Testimonials — kompaktní podsekce, ne dominanta stránky */
.sho-habita-testimonials-section {
    background: #fff;
    padding: 1.25rem 0 1.75rem;
}

.sho-habita-testimonials-section__title {
    font-family: var(--sho-habita-sans, inherit);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sho-gray-500, #6b7280);
    text-align: center;
    margin: 0 0 1rem;
}

.sho-habita-testimonial {
    background: var(--sho-habita-cream, #f3efe6);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
    color: var(--sho-navy, #0d1117);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sho-habita-testimonial__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.sho-habita-testimonial__mood {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.sho-habita-testimonial__mood--5 {
    background: color-mix(in srgb, var(--sho-gold) 22%, #fff);
    color: #9a7b2e;
}

.sho-habita-testimonial__mood--4 {
    background: color-mix(in srgb, var(--sho-gold) 16%, #fff);
    color: #a88438;
}

.sho-habita-testimonial__mood--3 {
    background: rgba(0, 0, 0, 0.06);
    color: var(--sho-gray-500, #6b7280);
}

.sho-habita-testimonial__mood--2 {
    background: rgba(0, 0, 0, 0.05);
    color: #8b7355;
}

.sho-habita-testimonial__mood--1 {
    background: rgba(0, 0, 0, 0.05);
    color: #9ca3af;
}

.sho-habita-testimonial__name {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
}

.sho-habita-testimonial__stars {
    color: var(--sho-gold);
    font-size: 0.65rem;
}

.sho-habita-testimonial__quote {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--sho-gray-500, #4b5563);
    margin: 0;
}

@media (min-width: 992px) {
    .sho-habita-testimonials-section {
        padding: 1.5rem 0 2rem;
    }

    .sho-habita-testimonials-section__title {
        font-size: 1rem;
        margin-bottom: 1.15rem;
    }
}

/* Team */
.sho-section--habita-team {
    background: #fff;
    padding: 3.5rem 0 4.5rem;
}

.sho-habita-team-section__header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.75rem;
}

.sho-habita-team-section__title {
    font-family: var(--sho-habita-serif);
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 600;
    color: var(--sho-navy, #0d1117);
    margin: 0 0 0.75rem;
    letter-spacing: 0.01em;
}

.sho-habita-team-section__subtitle {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #6b7280;
}

.sho-habita-team-card {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
    background: #f3f2ee;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sho-habita-team-card:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sho-habita-team-card__photo {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 21 / 20;
}

.sho-habita-team-card__photo .sho-team-photo-media {
    width: 100%;
    height: 100%;
}

.sho-habita-team-card__photo .sho-team-photo-media__img,
.sho-habita-team-card__photo .sho-team-photo-media__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: none;
    border-radius: 0;
}

.sho-habita-team-card__photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: rgba(255, 255, 255, 0.35);
    font-size: 2rem;
}

.sho-habita-team-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.8rem 0.7rem 0.9rem;
    background: #f3f2ee;
}

.sho-habita-team-card__name {
    font-family: var(--sho-habita-serif);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.25rem;
    color: var(--sho-navy, #0d1117);
}

.sho-habita-team-card__role {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
    text-wrap: pretty;
    margin: 0 auto;
    max-width: 14.5rem;
}

.sho-habita-team-card__divider {
    height: 1px;
    margin: 0.65rem auto 0.6rem;
    width: 100%;
    max-width: 12rem;
    background: rgba(0, 0, 0, 0.1);
}

.sho-habita-team-card__contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.sho-habita-team-card__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    max-width: 100%;
    font-size: 0.8rem;
    color: #4b5563;
    text-decoration: none;
    line-height: 1.35;
}

.sho-habita-team-card__contact:hover {
    color: var(--sho-navy, #0d1117);
}

.sho-habita-team-card__contact-icon {
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--sho-gold, #c5a059) 22%, white);
    color: var(--sho-gold, #c5a059);
    font-size: 0.62rem;
}

.sho-habita-team-card__contact-text {
    min-width: 0;
    text-align: left;
}

.sho-habita-team-card__contact--email .sho-habita-team-card__contact-text {
    font-size: clamp(0.7rem, 3.2cqi, 0.8rem);
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.sho-habita-team-card__profile {
    display: block;
    margin-top: 0.9rem;
    padding: 0.55rem 0.65rem;
    text-align: center;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sho-gold, #c5a059);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--sho-gold, #c5a059) 72%, white);
    border-radius: 7px;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sho-habita-team-card__profile:hover {
    color: #fff;
    background: var(--sho-gold, #c5a059);
    border-color: var(--sho-gold, #c5a059);
}

@media (max-width: 575.98px) {
    .sho-section--habita-team {
        padding: 2.75rem 0 3.5rem;
    }

    .sho-habita-team-section__header {
        margin-bottom: 2rem;
    }

    .sho-habita-team-card__contact--email .sho-habita-team-card__contact-text {
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 0.76rem;
    }
}

/* CTA banner */
.sho-habita-sell-cta-section {
    background: #fff;
    padding: 3rem 0 3.5rem;
}

.sho-habita-newsletter + .sho-habita-sell-cta-section {
    padding-top: 3.5rem;
}

.sho-habita-cta-banner {
    position: relative;
    background-color: var(--sho-habita-dark);
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    overflow: hidden;
    min-height: 17rem;
    display: flex;
    align-items: center;
}

.sho-habita-cta-banner--no-photo {
    background-image: linear-gradient(135deg, var(--sho-habita-dark) 0%, #1a2332 100%) !important;
}

.sho-habita-cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.72) 28%,
        rgba(0, 0, 0, 0.28) 58%,
        rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
}

.sho-habita-cta-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    padding: 2.75rem 2.5rem;
    text-align: left;
}

.sho-habita-cta-banner__title {
    font-family: var(--sho-habita-serif);
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 0.85rem;
}

.sho-habita-cta-banner__subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 0 1.65rem;
    max-width: 28rem;
}

.sho-habita-cta-banner__btn {
    display: inline-block;
    padding: 0.85rem 1.65rem;
    background: var(--sho-gold);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sho-habita-cta-banner__btn:hover {
    background: var(--sho-gold-hover, color-mix(in srgb, var(--sho-gold) 88%, black));
    color: #fff;
}

@media (min-width: 992px) {
    .sho-habita-cta-banner {
        border-radius: 32px;
        min-height: 18.5rem;
    }

    .sho-habita-cta-banner__inner {
        padding: 3rem 3rem;
    }
}

@media (max-width: 575.98px) {
    .sho-habita-cta-banner {
        border-radius: 20px;
        min-height: 15rem;
    }

    .sho-habita-cta-banner__inner {
        padding: 2rem 1.35rem;
    }
}

/* Blog */
.sho-section--habita-blog {
    padding: 4rem 0;
}

.template-habita .sho-blog-card {
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.template-habita .sho-blog-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.sho-habita-blog-all {
    color: var(--sho-gold);
}

/* Newsletter */
.sho-habita-newsletter {
    background: var(--sho-habita-dark);
    padding: 3rem 0;
}

.sho-habita-newsletter__panel {
    color: #fff;
}

.sho-habita-newsletter__panel h2 {
    font-family: var(--sho-habita-serif);
    color: #fff;
}

.sho-habita-newsletter__form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sho-habita-newsletter__form .form-control {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Footer */
.template-habita .sho-footer--habita {
    background: var(--sho-footer-bg-start, var(--sho-habita-dark));
    background-image: linear-gradient(180deg, var(--sho-footer-bg-start, var(--sho-habita-dark)), var(--sho-footer-bg-end, #080b10));
    color: var(--sho-footer-text, rgba(255, 255, 255, 0.75));
    border-top: 1px solid var(--sho-habita-border);
}

.template-habita .sho-footer--habita h6 {
    color: var(--sho-gold);
    font-family: var(--sho-habita-serif);
}

.template-habita .sho-footer--habita a {
    color: var(--sho-footer-link, rgba(255, 255, 255, 0.72));
}

.template-habita .sho-footer--habita a:hover {
    color: var(--sho-gold);
}

.template-habita .sho-footer--habita .sho-footer-bottom {
    color: color-mix(in srgb, var(--sho-footer-text, white) 72%, transparent);
    border-top-color: color-mix(in srgb, var(--sho-footer-text, white) 18%, transparent);
}

/* Buttons */
.template-habita .sho-btn-outline-navy {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border: 2px solid var(--sho-navy);
    color: var(--sho-navy);
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.template-habita .sho-btn-outline-navy:hover {
    background: var(--sho-navy);
    color: #fff;
}
