/* Homepage — premium PG / accommodation (mobile-first) */
:root {
    --hp-blue: #2563eb;
    --hp-blue-dark: #1d4ed8;
    --hp-blue-soft: #eff6ff;
    --hp-ink: #0f172a;
    --hp-muted: #64748b;
    --hp-border: #e2e8f0;
    --hp-radius: 16px;
    --hp-radius-sm: 12px;
    --hp-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --hp-shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
    --hp-tap: 48px;
    --hp-space: clamp(1rem, 4vw, 1.5rem);
}

.home-premium {
    overflow-x: clip;
    font-family: "Inter", system-ui, sans-serif;
}

.home-premium h1,
.home-premium h2,
.home-premium h3,
.home-premium .hp-font-display {
    font-family: "Poppins", "Inter", system-ui, sans-serif;
}

.hp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--hp-space);
    padding-right: var(--hp-space);
}

/* —— Hero —— */
.hp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 45%, #e0e7ff 100%);
    padding-bottom: 2rem;
}

.hp-hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    width: 100%;
}

@media (min-width: 992px) {
    .hp-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }
}

.hp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hp-blue-dark);
    background: rgba(37, 99, 235, 0.1);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1rem;
}

.hp-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--hp-ink);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hp-hero__lead {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.55;
    color: var(--hp-muted);
    margin-bottom: 0.75rem;
    max-width: 36rem;
}

.hp-hero__desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.hp-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 576px) {
    .hp-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hp-hero__actions .hp-btn {
        flex: 1 1 auto;
        min-width: 160px;
    }
}

@media (min-width: 992px) {
    .hp-hero__actions .hp-btn--primary {
        flex: 0 1 auto;
    }
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--hp-tap);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--hp-radius-sm);
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hp-btn:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
}

.hp-btn--primary {
    background: var(--hp-blue);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.hp-btn--primary:hover {
    background: var(--hp-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.hp-btn--ghost {
    background: #fff;
    color: var(--hp-ink);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
}

.hp-btn--ghost:hover {
    border-color: #cbd5e1;
    color: var(--hp-blue-dark);
    background: #fff;
}

.hp-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .hp-trust-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

.hp-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

.hp-trust-list i {
    color: #16a34a;
    font-size: 1rem;
}

/* Hero visual / carousel */
.hp-hero-visual {
    position: relative;
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    background: #fff;
    aspect-ratio: 4 / 3;
    max-height: min(420px, 70vw);
}

@media (min-width: 992px) {
    .hp-hero-visual {
        max-height: 520px;
        aspect-ratio: 1 / 1;
    }
}

.hp-hero-visual .carousel,
.hp-hero-visual .carousel-inner,
.hp-hero-visual .carousel-item {
    height: 100%;
}

.hp-hero-visual .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-hero-visual .carousel-control-prev,
.hp-hero-visual .carousel-control-next {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: var(--hp-shadow-sm);
}

.hp-hero-visual .carousel-control-prev-icon,
.hp-hero-visual .carousel-control-next-icon {
    filter: invert(0.35);
    width: 1rem;
    height: 1rem;
}

.hp-hero-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hp-ink);
    box-shadow: var(--hp-shadow-sm);
}

/* —— Search card —— */
.hp-search-section {
    margin-top: -2.5rem;
    position: relative;
    z-index: 3;
    padding-bottom: 3rem;
}

.hp-search-card {
    background: #fff;
    border-radius: var(--hp-radius);
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--hp-border);
}

.hp-search-card h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--hp-ink);
}

.hp-search-card .hp-sub {
    color: var(--hp-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.hp-search-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hp-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .hp-search-grid {
        grid-template-columns: 1.2fr 1fr 1fr 0.9fr auto;
        align-items: end;
    }
}

.hp-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hp-muted);
    margin-bottom: 0.4rem;
}

.hp-field .form-select,
.hp-field .form-control {
    min-height: var(--hp-tap);
    border-radius: var(--hp-radius-sm);
    border: 1px solid var(--hp-border);
    font-size: 0.95rem;
}

.hp-field--submit {
    display: flex;
    align-items: flex-end;
}

.hp-search-submit {
    width: 100%;
    min-height: var(--hp-tap);
    font-weight: 600;
    border-radius: var(--hp-radius-sm);
}

@media (min-width: 1200px) {
    .hp-field--submit .hp-search-submit {
        width: auto;
        min-width: 140px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* —— Section shells —— */
.hp-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hp-section--muted {
    background: #f8fafc;
}

.hp-section--white {
    background: #fff;
}

.hp-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hp-section-head h2 {
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    font-weight: 700;
    color: var(--hp-ink);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hp-section-head p {
    color: var(--hp-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

/* —— Why choose (6 cards) —— */
.hp-why-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .hp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .hp-why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-why-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    padding: 1.25rem 1.25rem;
    box-shadow: var(--hp-shadow-sm);
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
    .hp-why-card {
        padding: 1.5rem;
    }
}

.hp-why-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

.hp-why-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: var(--hp-blue-soft);
    color: var(--hp-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.hp-why-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--hp-ink);
}

.hp-why-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--hp-muted);
    margin: 0;
}

/* —— Featured properties —— */
.hp-properties-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    margin: 0 calc(-1 * var(--hp-space));
    padding-left: var(--hp-space);
    padding-right: var(--hp-space);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (min-width: 992px) {
    .hp-properties-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        margin: 0;
        padding: 0;
        gap: 1.25rem;
    }
}

.hp-property-card {
    flex: 0 0 min(300px, 85vw);
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--hp-radius-sm);
    border: 1px solid var(--hp-border);
    overflow: hidden;
    box-shadow: var(--hp-shadow-sm);
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .hp-property-card {
        flex: none;
    }
}

.hp-property-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e2e8f0;
}

.hp-property-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-property-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--hp-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.hp-property-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.hp-property-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hp-ink);
    line-height: 1.3;
    margin: 0;
}

.hp-property-card__excerpt {
    font-size: 0.875rem;
    color: var(--hp-muted);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-property-card__price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hp-blue);
}

.hp-property-card__price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hp-muted);
}

.hp-property-card__meta {
    font-size: 0.8125rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.hp-property-card__meta i {
    color: var(--hp-blue);
    margin-top: 0.15rem;
}

.hp-property-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hp-property-card__tags .badge {
    font-weight: 500;
    padding: 0.35em 0.55em;
    border-radius: 6px;
}

.hp-property-card .hp-btn {
    width: 100%;
    margin-top: auto;
}

.hp-properties-footer {
    text-align: center;
    margin-top: 2rem;
}

.hp-properties-footer .hp-btn--ghost {
    min-width: 200px;
}

/* —— How it works —— */
.hp-steps {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .hp-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.hp-step {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--hp-shadow-sm);
}

.hp-step__num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--hp-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.hp-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--hp-ink);
}

.hp-step p {
    font-size: 0.9rem;
    color: var(--hp-muted);
    margin: 0;
    line-height: 1.5;
}

/* —— Stats 2x2 —— */
.hp-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .hp-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hp-stat {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--hp-shadow-sm);
}

.hp-stat__icon {
    font-size: 1.5rem;
    color: var(--hp-blue);
    margin-bottom: 0.5rem;
}

.hp-stat__value {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 700;
    color: var(--hp-ink);
    line-height: 1.2;
}

.hp-stat__label {
    font-size: 0.8125rem;
    color: var(--hp-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* —— Testimonials carousel —— */
.hp-testimonials .carousel-item {
    padding-bottom: 0.5rem;
}

.hp-quote-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    padding: 1.5rem;
    margin: 0 0.25rem;
    box-shadow: var(--hp-shadow-sm);
    height: 100%;
}

@media (min-width: 768px) {
    .hp-quote-card {
        padding: 2rem;
        margin: 0 2rem;
    }
}

.hp-quote-card .hp-stars {
    color: #f59e0b;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.hp-quote-card blockquote {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #334155;
    margin: 0 0 1rem;
}

.hp-quote-card .hp-author {
    font-weight: 600;
    color: var(--hp-ink);
    margin: 0;
    font-size: 0.9rem;
}

.hp-quote-card .hp-role {
    font-size: 0.8125rem;
    color: var(--hp-muted);
    margin: 0.15rem 0 0;
}

.hp-testimonials .carousel-indicators {
    position: static;
    margin-top: 1rem;
    margin-bottom: 0;
}

.hp-testimonials .carousel-indicators [type="button"] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    opacity: 1;
}

.hp-testimonials .carousel-indicators .active {
    background-color: var(--hp-blue);
}

/* —— Sister companies —— */
.hp-section--network {
    background: #f8fafc;
}

.hp-section-label {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--hp-blue-dark);
}

.hp-network-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

@media (min-width: 992px) {
    .hp-network-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.2rem;
    }
}

.hp-network-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    box-shadow: var(--hp-shadow-sm);
    padding: 1.15rem 1rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

@media (min-width: 768px) {
    .hp-network-card {
        padding: 1.35rem 1.2rem;
    }
}

.hp-network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border-color: #bfdbfe;
}

.hp-network-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-blue-soft);
    color: var(--hp-blue);
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.hp-network-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.99rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-network-card p {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--hp-muted);
}

.hp-network-note {
    text-align: center;
    margin: 1.25rem 0 0;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Subtle reveal */
.hp-reveal {
    animation: hpFadeUp 0.55s ease both;
    animation-delay: calc(var(--reveal-delay, 0) * 90ms);
}

@keyframes hpFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@supports (animation-timeline: view()) {
    .hp-reveal {
        animation-name: hpFadeUp;
        animation-duration: 1ms;
        animation-timeline: view();
        animation-range: entry 10% cover 28%;
    }
}

/* —— Location chips —— */
.hp-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.hp-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    min-height: 44px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hp-border);
    color: var(--hp-ink);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: var(--hp-shadow-sm);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.hp-loc-chip:hover {
    border-color: var(--hp-blue);
    color: var(--hp-blue);
    transform: translateY(-1px);
}

.hp-loc-chip i {
    color: var(--hp-blue);
    font-size: 0.85rem;
}

/* —— CTA banner —— */
.hp-cta {
    background: linear-gradient(120deg, var(--hp-blue) 0%, #1e40af 50%, #1d4ed8 100%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    text-align: center;
}

.hp-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hp-cta > .hp-container > p {
    opacity: 0.92;
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.hp-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

@media (min-width: 576px) {
    .hp-cta-actions {
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hp-cta-actions .hp-btn {
        flex: 1 1 160px;
        max-width: 220px;
    }
}

.hp-btn--on-dark {
    background: #fff;
    color: var(--hp-blue-dark);
}

.hp-btn--on-dark:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

.hp-btn--outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.hp-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hp-cta-contact {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hp-cta-contact a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Empty states */
.hp-empty-hint {
    text-align: center;
    color: var(--hp-muted);
    padding: 2rem 1rem;
    background: #f8fafc;
    border-radius: var(--hp-radius-sm);
    border: 1px dashed var(--hp-border);
}
