/* ============================================
   HOME PAGE — Travelo-style middle sections
   Scoped to .ifm-home
   ============================================ */

.ifm-home {
    --ih-bg: #fffcf7;
    --ih-bg-alt: #fffcf7;
    --ih-accent-light: #fffcf7;
    --ih-accent: #d1aa6a;
    --ih-accent-dark: #a4773a;
    --ih-text: #5b3818;
    --ih-text-muted: rgba(91, 56, 24, 0.7);
    --ih-border: #f0ddc1;
    --ih-card-shadow: 0 4px 20px rgba(91, 56, 24, 0.06);
    --ih-card-shadow-hover: 0 12px 36px rgba(91, 56, 24, 0.12);
    --ih-display: 'Playfair Display', Georgia, serif;
    --ih-sans: 'Poppins', -apple-system, sans-serif;
}

.ifm-home,
.ifm-home p,
.ifm-home span,
.ifm-home div,
.ifm-home li,
.ifm-home a {
    font-family: var(--ih-sans);
}

/* ---- INTRO HEADING (replaces "WE ARE HERE FOR YOU") ---- */
.ifm-intro {
    padding: 20px 0 20px;
    text-align: center;
    background: var(--ih-bg);
}

.ifm-intro__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ih-accent-dark);
    background: var(--ih-accent-light);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 500;
    margin-bottom: 18px;
}

.ifm-intro__tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ih-accent-dark);
}

.ifm-intro__title {
    font-family: var(--ih-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--ih-text);
    line-height: 1.15;
    margin: 0 0 14px;
}

.ifm-intro__subtitle {
    color: var(--ih-text-muted);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- CATEGORY SECTIONS ---- */
.ifm-categories {
    padding: 40px 0 80px;
    background: var(--ih-bg);
}

.ifm-category {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 32px;
}

.ifm-category__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.ifm-category__heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ifm-category__name {
    font-family: var(--ih-display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 600;
    color: var(--ih-text);
    margin: 0;
    line-height: 1;
}

.ifm-category__count {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ih-text-muted);
    font-weight: 500;
}

.ifm-category__viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    border: 1px solid var(--ih-accent);
    border-radius: 999px;
    color: var(--ih-accent-dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 220ms ease;
    white-space: nowrap;
}

.ifm-category__viewall:hover {
    background: var(--ih-accent-dark);
    color: #fff;
    border-color: var(--ih-accent-dark);
    gap: 10px;
}

/* ---- PROPERTY CARD GRID ---- */
.ifm-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* ---- PROPERTY CARD (matches Similar Properties from property-show) ---- */
.ifm-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ih-card-shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 300ms ease;
}

.ifm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ih-card-shadow-hover);
    color: inherit;
}

.ifm-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: white;
}

.ifm-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
    padding: 11px;
    padding: 8px 8px 1px 8px;
    border-radius: 15px;
}

.ifm-card:hover .ifm-card__image img {
    transform: scale(1.06);
}

.ifm-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ih-accent-dark);
}

.ifm-card__placeholder svg {
    width: 48px;
    height: 48px;
}

.ifm-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ifm-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ih-text);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ifm-card__location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ih-text-muted);
    margin-bottom: 10px;
    line-height: 1.3;
}

.ifm-card__location svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.ifm-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ifm-card__rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--ih-text);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
}

.ifm-card__rating-label {
    font-size: 12px;
    color: var(--ih-text);
    font-weight: 500;
}

.ifm-card__footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ih-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ifm-card__amount {
    font-family: var(--ih-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ih-accent-dark);
    line-height: 1;
}

.ifm-card__unit {
    font-size: 11px;
    color: var(--ih-text-muted);
    margin-left: 2px;
}

.ifm-card__link {
    font-size: 12px;
    font-weight: 500;
    color: var(--ih-accent-dark);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ---- PARTNERS SECTION ---- */
.ifm-partners {
    padding: 80px 0 100px;
    background: var(--ih-bg-alt);
    text-align: center;
}

.ifm-partners__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.ifm-partners__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ih-accent-dark);
    background: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 500;
    margin-bottom: 18px;
}

.ifm-partners__tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ih-accent-dark);
}

.ifm-partners__title {
    font-family: var(--ih-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--ih-text);
    margin: 0 0 14px;
    line-height: 1.15;
}

.ifm-partners__subtitle {
    color: var(--ih-text-muted);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto 0px;
    line-height: 1.65;
}

.ifm-partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.ifm-partner {
    /* background: #fff; */
    /* border-radius: 16px; */
    /* padding: 30px 24px; */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 300ms ease;
    /* box-shadow: 0 2px 10px rgba(91, 56, 24, 0.04); */
}

/* .ifm-partner:hover {
    transform: translateY(-4px);
    box-shadow: var(--ih-card-shadow-hover);
} */

.ifm-partner img {
    /* max-width: 100%; */
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all 300ms ease;
}

.ifm-partner:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ---- MOBILE ---- */
@media (max-width: 1024px) {
    .ifm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ifm-intro {
        padding: 60px 0 10px;
    }

    .ifm-intro__title {
        font-size: 1.8rem;
    }

    .ifm-categories {
        padding: 20px 0 60px;
    }

    .ifm-category {
        padding: 24px 20px;
    }

    .ifm-category__head {
        margin-bottom: 20px;
    }

    .ifm-category__viewall {
        padding: 9px 18px;
        font-size: 12px;
    }

    .ifm-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ifm-card__body {
        padding: 12px 14px 14px;
    }

    .ifm-card__title {
        font-size: 13px;
    }

    .ifm-card__amount {
        font-size: 15px;
    }

    .ifm-card__link {
        font-size: 11px;
    }

    .ifm-partners {
        padding: 60px 0 60px;
    }

    .ifm-partners__inner {
        padding: 0 20px;
    }

    .ifm-partners__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ifm-partner {
        padding: 20px 16px;
        min-height: 90px;
    }

    .ifm-partner img {
        max-height: 48px;
    }
}

/* ============================================
   OUR STORY SECTION
   ============================================ */

.ifm-home .ifm-story {
    padding: 90px 0 80px;
    background: var(--ih-bg);
}

.ifm-home .ifm-story__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.ifm-home .ifm-story__head {
    text-align: center;
    margin-bottom: 50px;
}

.ifm-home .ifm-story__heading {
    font-family: var(--ih-display);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 600;
    color: var(--ih-text);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.ifm-home .ifm-story__row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.ifm-home .ifm-story__media {
    position: relative;
}

.ifm-home .ifm-story__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(91, 56, 24, 0.15);
    background: var(--ih-bg-alt);
}

.ifm-home .ifm-story__video iframe,
.ifm-home .ifm-story__video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ifm-home .ifm-story__placeholder {
    aspect-ratio: 16/10;
    border-radius: 22px;
    background: var(--ih-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ih-accent-dark);
    box-shadow: 0 18px 50px rgba(91, 56, 24, 0.1);
}

.ifm-home .ifm-story__placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.ifm-home .ifm-story__body {
    padding-left: 12px;
}

.ifm-home .ifm-story__text {
    color: var(--ih-text-muted);
    font-size: 16px;
    line-height: 1.85;
}

.ifm-home .ifm-story__text p {
    margin: 0 0 1.2em;
}

.ifm-home .ifm-story__text p:last-child {
    margin-bottom: 0;
}

.ifm-home .ifm-story__text strong {
    color: var(--ih-text);
    font-weight: 600;
}

.ifm-home .ifm-story__text a {
    color: var(--ih-accent-dark);
    text-decoration: underline;
    text-decoration-color: var(--ih-accent);
    text-underline-offset: 3px;
}

.ifm-home .ifm-story__text a:hover {
    color: var(--ih-text);
}

@media (max-width: 900px) {
    .ifm-home .ifm-story {
        padding: 60px 0 50px;
    }

    .ifm-home .ifm-story__inner {
        padding: 0 20px;
    }

    .ifm-home .ifm-story__head {
        margin-bottom: 30px;
    }

    .ifm-home .ifm-story__row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ifm-home .ifm-story__body {
        padding-left: 0;
    }

    .ifm-home .ifm-story__text {
        font-size: 15px;
        line-height: 1.75;
    }
}