/* Styles for the [fsp_hero] shortcode (listing page top block). */

/* Elementor's flexbox container widgets shrink-wrap their content by
   default. Without this, the hero block's width depends on how much
   content it has (e.g. shrinks when a listing has no care-type badges)
   instead of always filling the page width. */
.elementor-widget-shortcode:has(.fsp-hero) {
    width: 100%;
    flex: 1 1 100%;
}

/* Shared section heading used before care types, videos, and amenities. */
.fsp-section-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.3rem;
    text-align: left;
}

.fsp-section-heading i {
    color: #118ad9;
    font-size: 1.2rem;
}

/* Override the old .similar-title blue text so it fully matches the
   other section headings instead of just gaining the icon. */
.similar-title.fsp-section-heading {
    color: #222;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.fsp-section-heading-spaced {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.fsp-section-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 1.2rem;
    text-align: left;
}

/* 6% side padding used for the videos and amenities sections — mobile only. */
@media (max-width: 768px) {
    .listing-container.fsp-side-padded {
        padding-left: 6%;
        padding-right: 6%;
        box-sizing: border-box;
    }
}

.fsp-amenities-bg {
    background: #f4f8fd;
}

.listing-single {
    background-color: #f4f8fd !important;
}

/* Similar Properties: same "title card" look as the hero (white,
   rounded, soft shadow, no hard border), the shared care-type badges,
   and the shared outline button — plus an adaptive grid so cards get
   more breathing room instead of always cramming into 4 columns. */
.listing-container .similar-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.similar-grid .similar-card {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: none;
}

.similar-grid .similar-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    transform: none;
}

.similar-grid .similar-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.similar-grid .similar-card-title {
    margin-bottom: 0.6rem;
}

.similar-grid .fsp-hero-badges {
    margin-bottom: 1rem;
}

.similar-grid .fsp-hero-btn {
    margin-top: auto;
}

.fsp-hero {
    max-width: 1400px;
    margin: 1.5em auto 0;
    padding: 0 10px;
}

.fsp-hero-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fsp-breadcrumbs {
    font-size: 0.85rem;
    color: #118ad9;
}

.fsp-breadcrumbs a {
    color: #118ad9;
    text-decoration: none;
}

.fsp-breadcrumbs a:hover {
    text-decoration: underline;
}

.fsp-breadcrumb-sep {
    margin: 0 0.4rem;
    color: #118ad9;
}

.fsp-breadcrumb-current {
    color: #118ad9;
}

.fsp-hero-actions {
    display: flex;
    gap: 1rem;
}

.fsp-hero-actions button.fsp-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: #6b7280 !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    cursor: pointer;
    padding: 0 !important;
}

.fsp-hero-actions button.fsp-hero-action:hover {
    color: #118ad9 !important;
}

.fsp-hero-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (max-width: 900px) {
    .fsp-hero-main {
        grid-template-columns: 1fr;
    }
}

.fsp-hero-media .listing-map {
    margin-top: 0 !important;
}

.fsp-hero-info {
    padding: 2rem;
}

.fsp-hero-title {
    margin: 0 0 0.4rem;
    font-size: 1.9rem;
    line-height: 1.2;
}

.fsp-hero-address {
    color: #555;
    margin: 0 0 0.9rem;
}

.fsp-hero-address i {
    color: #118ad9;
    margin-right: 0.3rem;
}

.fsp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.fsp-hero-badge {
    background: #e8f2fc;
    color: #0c447c;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}

/* Care-type color families — same light tint used for the hero badges
   above and the card corner accent further down the page, so each
   care type is the exact same color everywhere it appears. */
.fsp-hero-badge.fsp-badge-lifestyle {
    background: #e3f6f3;
    color: #0f766e;
}

.fsp-hero-badge.fsp-badge-support {
    background: #fdf1e0;
    color: #b45309;
}

.fsp-hero-badge.fsp-badge-clinical {
    background: #e8f2fc;
    color: #0c447c;
}

.fsp-hero-badge.fsp-badge-memory {
    background: #f3e8fd;
    color: #6b21a8;
}

.fsp-care-type-card {
    position: relative;
    overflow: hidden;
}

.fsp-care-type-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 28px 28px 0 0;
    border-color: #e5e7eb transparent transparent transparent;
}

.fsp-care-type-card.fsp-care-family-lifestyle::before {
    border-color: #e3f6f3 transparent transparent transparent;
}

.fsp-care-type-card.fsp-care-family-support::before {
    border-color: #fdf1e0 transparent transparent transparent;
}

.fsp-care-type-card.fsp-care-family-clinical::before {
    border-color: #e8f2fc transparent transparent transparent;
}

.fsp-care-type-card.fsp-care-family-memory::before {
    border-color: #f3e8fd transparent transparent transparent;
}

.fsp-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fsp-hero-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0.75rem;
}

.fsp-hero-buttons-row-priority {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fsp-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.fsp-hero-btn-fill {
    width: 100%;
    box-sizing: border-box;
}

.fsp-hero-btn-grow {
    flex: 1 1 auto;
    min-width: 0;
}

.fsp-hero-btn-primary {
    background: #FFDE59;
    color: #414141;
}

.fsp-hero-btn-primary:hover {
    background: #ffd83d;
    color: #414141;
}

.fsp-hero-btn-outline {
    background: #fff;
    color: #118ad9;
    border: 1px solid #118ad9;
}

.fsp-hero-btn-outline:hover {
    background: #118ad9;
    color: #fff;
}

.fsp-hero-social {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.fsp-hero-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #118ad9;
    color: #118ad9;
    text-decoration: none;
}

.fsp-hero-social-btn:hover {
    background: #118ad9;
    color: #fff;
}
