/* ============================================================
   Immo Hainaut Pro — Front-end v4.0
   Premium Real Estate Programme Viewer
   ============================================================ */

.ihp {
    --ihp-primary: #2c5f2d;
    --ihp-primary-rgb: 44, 95, 45;
    --ihp-secondary: #97be11;
    --ihp-secondary-rgb: 151, 190, 17;
    --ihp-accent: #f7a600;
    --ihp-accent-rgb: 247, 166, 0;
    --ihp-bg: #ffffff;
    --ihp-text: #1a1a2e;
    --ihp-text-muted: #64748b;
    --ihp-text-light: #94a3b8;
    --ihp-border: #e2e8f0;
    --ihp-border-light: #f1f5f9;
    --ihp-surface: #f8fafc;
    --ihp-surface-warm: #fefdfb;
    --ihp-radius: 12px;
    --ihp-radius-lg: 20px;
    --ihp-radius-xl: 28px;
    --ihp-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --ihp-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
    --ihp-shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --ihp-shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --ihp-shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
    --ihp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ihp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ihp-available: #16a34a;
    --ihp-available-bg: #f0fdf4;
    --ihp-reserved: #d97706;
    --ihp-reserved-bg: #fffbeb;
    --ihp-sold: #dc2626;
    --ihp-sold-bg: #fef2f2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--ihp-text);
    line-height: 1.6;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    background: var(--ihp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ihp *, .ihp *::before, .ihp *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   NAV — One-page sticky navigation
   ============================================================ */

.ihp-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ihp-border);
    transition: box-shadow 0.3s var(--ihp-ease);
}

.ihp-nav.scrolled {
    box-shadow: var(--ihp-shadow);
}

.ihp-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    max-width: 1440px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ihp-nav-inner::-webkit-scrollbar { display: none; }

.ihp-nav-link {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ihp-text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.25s var(--ihp-ease);
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.ihp-nav-link:hover {
    color: var(--ihp-primary);
}

.ihp-nav-link.active {
    color: var(--ihp-primary);
    border-bottom-color: var(--ihp-secondary);
}

/* ============================================================
   HERO — Full-width immersive header
   ============================================================ */

.ihp-hero {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ihp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.35) 40%,
        rgba(0,0,0,0.05) 70%,
        transparent 100%
    );
}

.ihp-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 40px;
    color: #fff;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
}

.ihp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ihp-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ihp-secondary);
    animation: ihpPulse 2s ease-in-out infinite;
}

@keyframes ihpPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.ihp-hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.ihp-hero-stats {
    display: flex;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.ihp-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ihp-hero-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    font-size: 15px;
}

/* ============================================================
   SECTION — Common section layout
   ============================================================ */

.ihp-section {
    padding: 56px 32px;
    scroll-margin-top: 60px;
}

.ihp-section:nth-child(even) {
    background: var(--ihp-surface);
}

.ihp-section-header {
    margin-bottom: 36px;
}

.ihp-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ihp-text);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ihp-section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(to bottom, var(--ihp-primary), var(--ihp-secondary));
    border-radius: 4px;
    flex-shrink: 0;
}

.ihp-section-subtitle {
    font-size: 15px;
    color: var(--ihp-text-muted);
    margin-top: 8px;
    padding-left: 16px;
}

/* ============================================================
   DESCRIPTION — Programme description
   ============================================================ */

.ihp-description-content {
    max-width: 800px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ihp-text);
}

.ihp-description-content p {
    margin-bottom: 16px;
}

.ihp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.ihp-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--ihp-bg);
    border: 1px solid var(--ihp-border);
    border-radius: var(--ihp-radius);
    transition: all 0.25s var(--ihp-ease);
}

.ihp-feature-card:hover {
    border-color: var(--ihp-secondary);
    box-shadow: var(--ihp-shadow-sm);
    transform: translateY(-1px);
}

.ihp-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(var(--ihp-primary-rgb),0.08), rgba(var(--ihp-secondary-rgb),0.08));
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.ihp-feature-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ihp-text);
}

.ihp-feature-sub {
    font-size: 12px;
    color: var(--ihp-text-muted);
    margin-top: 2px;
    font-weight: 400;
}

/* ============================================================
   GALLERY — Photo carousel
   ============================================================ */

.ihp-gallery {
    position: relative;
    overflow: hidden;
    border-radius: var(--ihp-radius-lg);
    background: #000;
}

.ihp-gallery-track {
    display: flex;
    transition: transform 0.5s var(--ihp-ease);
    will-change: transform;
}

.ihp-gallery-slide {
    min-width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.ihp-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--ihp-text);
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ihp-ease);
    box-shadow: var(--ihp-shadow-md);
    backdrop-filter: blur(8px);
}

.ihp-gallery-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.ihp-gallery-prev { left: 16px; }
.ihp-gallery-next { right: 16px; }

.ihp-gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.ihp-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ihp-ease);
    padding: 0;
}

.ihp-gallery-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.ihp-gallery-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
}

/* ============================================================
   LOTS — Interactive plan + table
   ============================================================ */

.ihp-floor-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 6px;
    background: var(--ihp-surface);
    border: 1px solid var(--ihp-border);
    border-radius: var(--ihp-radius);
    width: fit-content;
}

.ihp-floor-btn {
    padding: 10px 22px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ihp-ease);
    color: var(--ihp-text-muted);
    font-family: inherit;
    white-space: nowrap;
}

.ihp-floor-btn:hover {
    color: var(--ihp-primary);
    background: var(--ihp-bg);
}

.ihp-floor-btn.active {
    background: var(--ihp-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--ihp-primary-rgb), 0.3);
}

.ihp-floor-btn .ihp-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 4px;
    font-weight: 500;
}

.ihp-lots-layout {
    display: grid;
    gap: 24px;
}

.ihp-lots-layout.layout-left {
    grid-template-columns: 420px 1fr;
}

.ihp-lots-layout.layout-left .ihp-lots-panel { order: 1; }
.ihp-lots-layout.layout-left .ihp-plan-panel { order: 2; }

.ihp-lots-layout.layout-right {
    grid-template-columns: 1fr 420px;
}

.ihp-lots-layout.layout-right .ihp-plan-panel { order: 1; }
.ihp-lots-layout.layout-right .ihp-lots-panel { order: 2; }

.ihp-lots-layout.layout-bottom {
    grid-template-columns: 1fr;
}

/* Lots panel */
.ihp-lots-panel {
    background: var(--ihp-bg);
    border: 1px solid var(--ihp-border);
    border-radius: var(--ihp-radius-lg);
    overflow: hidden;
    box-shadow: var(--ihp-shadow);
    display: flex;
    flex-direction: column;
}

.ihp-lots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ihp-border);
    flex-shrink: 0;
}

.ihp-lots-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ihp-text);
}

.ihp-lots-count {
    font-size: 12px;
    color: var(--ihp-text-muted);
    font-weight: 500;
}

.ihp-filter-row {
    display: flex;
    gap: 6px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--ihp-border-light);
    background: var(--ihp-surface);
    flex-shrink: 0;
}

.ihp-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--ihp-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ihp-ease);
    color: var(--ihp-text-muted);
    background: var(--ihp-bg);
    font-family: inherit;
}

.ihp-filter-btn:hover {
    border-color: var(--ihp-primary);
    color: var(--ihp-primary);
}

.ihp-filter-btn.active {
    background: var(--ihp-primary);
    border-color: var(--ihp-primary);
    color: #fff;
}

.ihp-lots-list {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
    scroll-behavior: smooth;
}

.ihp-lot-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ihp-border-light);
    cursor: pointer;
    transition: all 0.2s var(--ihp-ease);
}

.ihp-lot-row:last-child { border-bottom: none; }

.ihp-lot-row:hover {
    background: var(--ihp-surface);
}

.ihp-lot-row.highlighted {
    background: rgba(var(--ihp-accent-rgb), 0.06);
    border-left: 3px solid var(--ihp-accent);
    padding-left: 21px;
}

.ihp-lot-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--ihp-text);
    margin-bottom: 3px;
}

.ihp-lot-meta {
    font-size: 12px;
    color: var(--ihp-text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ihp-lot-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ihp-lot-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--ihp-primary);
    white-space: nowrap;
}

.ihp-lot-price.on-demand {
    font-size: 12px;
    font-weight: 600;
    color: var(--ihp-text-muted);
}

.ihp-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.ihp-status.available {
    background: var(--ihp-available-bg);
    color: var(--ihp-available);
}

.ihp-status.reserved {
    background: var(--ihp-reserved-bg);
    color: var(--ihp-reserved);
}

.ihp-status.sold {
    background: var(--ihp-sold-bg);
    color: var(--ihp-sold);
}

/* Plan panel */
.ihp-plan-panel {
    background: var(--ihp-bg);
    border: 1px solid var(--ihp-border);
    border-radius: var(--ihp-radius-lg);
    overflow: hidden;
    box-shadow: var(--ihp-shadow);
    position: relative;
}

.ihp-plan-wrapper {
    position: relative;
    line-height: 0;
    cursor: default;
}

.ihp-plan-image {
    display: block;
    width: 100%;
    height: auto;
}

.ihp-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ihp-zone {
    cursor: pointer;
    transition: fill-opacity 0.25s var(--ihp-ease), stroke-width 0.15s var(--ihp-ease);
    vector-effect: non-scaling-stroke;
}

.ihp-zone.available {
    fill: var(--ihp-available);
    fill-opacity: 0.1;
    stroke: var(--ihp-available);
    stroke-width: 2;
}

.ihp-zone.reserved {
    fill: var(--ihp-reserved);
    fill-opacity: 0.1;
    stroke: var(--ihp-reserved);
    stroke-width: 2;
}

.ihp-zone.sold {
    fill: var(--ihp-sold);
    fill-opacity: 0.1;
    stroke: var(--ihp-sold);
    stroke-width: 2;
}

.ihp-zone:hover,
.ihp-zone.active {
    fill-opacity: 0.3;
    stroke-width: 3;
    filter: drop-shadow(0 0 6px currentColor);
}

.ihp-plan-legend {
    display: flex;
    gap: 20px;
    padding: 14px 24px;
    border-top: 1px solid var(--ihp-border);
    background: var(--ihp-surface);
}

.ihp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ihp-text-muted);
}

.ihp-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ihp-legend-dot.available { background: var(--ihp-available); }
.ihp-legend-dot.reserved { background: var(--ihp-reserved); }
.ihp-legend-dot.sold { background: var(--ihp-sold); }

.ihp-plan-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    color: var(--ihp-text-light);
    text-align: center;
    min-height: 360px;
}

.ihp-plan-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.25;
}

.ihp-plan-empty-text {
    font-size: 15px;
    font-weight: 500;
}

/* ============================================================
   TOOLTIP — Floating lot info
   ============================================================ */

.ihp-tooltip {
    position: fixed;
    background: var(--ihp-text);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--ihp-radius);
    font-size: 13px;
    pointer-events: none;
    z-index: 100000;
    white-space: nowrap;
    box-shadow: var(--ihp-shadow-lg);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
}

.ihp-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.ihp-tooltip-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.ihp-tooltip-meta {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    gap: 10px;
}

.ihp-tooltip-price {
    font-weight: 700;
    color: var(--ihp-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* ============================================================
   MODAL — Lot detail modal (enriched)
   ============================================================ */

.ihp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ihp-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ihp-modal {
    background: var(--ihp-bg);
    border-radius: var(--ihp-radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--ihp-shadow-xl);
    animation: ihpModalIn 0.35s var(--ihp-ease-spring);
}

@keyframes ihpModalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ihp-modal-hero {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--ihp-radius-lg) var(--ihp-radius-lg) 0 0;
    overflow: hidden;
}

.ihp-modal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
}

.ihp-modal-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 28px;
    color: #fff;
    z-index: 1;
}

.ihp-modal-hero-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.ihp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--ihp-border);
}

.ihp-modal-head h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ihp-text);
}

.ihp-modal-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ihp-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ihp-surface);
    border: 1px solid var(--ihp-border);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s var(--ihp-ease);
    color: var(--ihp-text-muted);
    font-family: inherit;
    line-height: 1;
    flex-shrink: 0;
}

.ihp-modal-close:hover {
    background: var(--ihp-sold);
    border-color: var(--ihp-sold);
    color: #fff;
}

.ihp-modal-body {
    padding: 28px;
}

.ihp-modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ihp-modal-spec {
    background: var(--ihp-surface);
    padding: 16px;
    border-radius: var(--ihp-radius);
    text-align: center;
    border: 1px solid var(--ihp-border-light);
    transition: border-color 0.2s;
}

.ihp-modal-spec:hover {
    border-color: var(--ihp-border);
}

.ihp-modal-spec-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.ihp-modal-spec-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--ihp-text);
    line-height: 1.2;
}

.ihp-modal-spec-label {
    font-size: 11px;
    color: var(--ihp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 4px;
}

.ihp-modal-price-box {
    background: linear-gradient(135deg, var(--ihp-primary), rgba(var(--ihp-secondary-rgb), 0.9));
    color: #fff;
    padding: 28px;
    border-radius: var(--ihp-radius);
    text-align: center;
    margin-bottom: 24px;
}

.ihp-modal-price-label {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.ihp-modal-price-amount {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ihp-modal-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ihp-text);
    margin-bottom: 24px;
    padding: 20px;
    background: var(--ihp-surface);
    border-radius: var(--ihp-radius);
    border: 1px solid var(--ihp-border-light);
}

/* ============================================================
   CONTACT — Contact form section
   ============================================================ */

.ihp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
}

.ihp-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ihp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ihp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ihp-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ihp-text);
}

.ihp-form-input,
.ihp-form-select,
.ihp-form-textarea {
    padding: 12px 16px;
    border: 1px solid var(--ihp-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s var(--ihp-ease);
    color: var(--ihp-text);
    background: var(--ihp-bg);
    width: 100%;
}

.ihp-form-input:focus,
.ihp-form-select:focus,
.ihp-form-textarea:focus {
    outline: none;
    border-color: var(--ihp-primary);
    box-shadow: 0 0 0 4px rgba(var(--ihp-primary-rgb), 0.08);
}

.ihp-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.ihp-form-submit {
    padding: 14px 32px;
    background: var(--ihp-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ihp-ease);
    font-family: inherit;
    align-self: flex-start;
}

.ihp-form-submit:hover {
    background: #245024;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--ihp-primary-rgb), 0.3);
}

.ihp-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ihp-contact-card {
    padding: 24px;
    background: var(--ihp-bg);
    border: 1px solid var(--ihp-border);
    border-radius: var(--ihp-radius);
    display: flex;
    align-items: center;
    gap: 16px;
}

.ihp-contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(var(--ihp-primary-rgb), 0.08);
    border-radius: 12px;
    font-size: 22px;
    flex-shrink: 0;
}

.ihp-contact-card-label {
    font-size: 12px;
    color: var(--ihp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 2px;
}

.ihp-contact-card-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ihp-text);
}

/* ============================================================
   LOT IMAGE / PLAN in modal
   ============================================================ */

.ihp-modal-lot-plan {
    margin-bottom: 24px;
    border-radius: var(--ihp-radius);
    overflow: hidden;
    border: 1px solid var(--ihp-border);
}

.ihp-modal-lot-plan img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   EMPTY & UTILITY
   ============================================================ */

.ihp-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--ihp-text-muted);
}

.ihp-empty p {
    font-size: 14px;
}

.ihp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .ihp-lots-layout.layout-left,
    .ihp-lots-layout.layout-right {
        grid-template-columns: 1fr;
    }

    .ihp-lots-layout .ihp-lots-panel,
    .ihp-lots-layout .ihp-plan-panel {
        order: unset !important;
    }

    .ihp-lots-list {
        max-height: 400px;
    }

    .ihp-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ihp-hero {
        height: 320px;
    }

    .ihp-hero-content {
        padding: 28px 24px;
    }

    .ihp-hero h1 {
        font-size: 28px;
    }

    .ihp-hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        font-size: 14px;
    }

    .ihp-section {
        padding: 36px 16px;
    }

    .ihp-section-title {
        font-size: 22px;
    }

    .ihp-floor-nav {
        width: 100%;
    }

    .ihp-lot-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 18px;
    }

    .ihp-lot-row > * {
        justify-self: start;
    }

    .ihp-lots-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        padding: 16px 18px;
    }

    .ihp-filter-row {
        padding: 10px 18px;
        overflow-x: auto;
    }

    .ihp-modal {
        margin: 10px;
        max-height: 95vh;
    }

    .ihp-modal-head {
        padding: 18px 20px;
    }

    .ihp-modal-body {
        padding: 20px;
    }

    .ihp-modal-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .ihp-modal-price-amount {
        font-size: 28px;
    }

    .ihp-plan-legend {
        gap: 12px;
        padding: 12px 18px;
    }

    .ihp-features-grid {
        grid-template-columns: 1fr;
    }

    .ihp-form-row {
        grid-template-columns: 1fr;
    }

    .ihp-nav-link {
        padding: 14px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ihp-hero {
        height: 260px;
    }

    .ihp-hero h1 {
        font-size: 24px;
    }

    .ihp-hero-content {
        padding: 20px 16px;
    }

    .ihp-modal-specs {
        grid-template-columns: 1fr;
    }

    .ihp-gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .ihp-plan-legend {
        flex-direction: column;
        gap: 8px;
    }
}

@media print {
    .ihp-nav,
    .ihp-floor-nav,
    .ihp-filter-row,
    .ihp-modal-overlay,
    .ihp-tooltip,
    .ihp-gallery-btn,
    .ihp-gallery-dots,
    .ihp-form-submit {
        display: none !important;
    }

    .ihp {
        max-width: 100%;
        padding: 0;
    }

    .ihp-lots-layout.layout-left,
    .ihp-lots-layout.layout-right {
        grid-template-columns: 1fr;
    }

    .ihp-lot-row {
        break-inside: avoid;
    }
}
