/* Premium Share System Styles */
:root {
    --ip-share-radius: 20px;
    --ip-share-primary: #6366f1;
    --ip-share-primary-hover: #4f46e5;
    --ip-share-bg: #ffffff;
    --ip-share-overlay: rgba(17, 24, 39, 0.7);
    --ip-share-border: #e5e7eb;
    --ip-share-text: #111827;
    --ip-share-muted: #6b7280;
    --ip-share-skeleton-bg: #e5e7eb;
    --ip-share-skeleton-anim: #f3f4f6;
    --ip-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ip-share-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    height: 100dvh;
    background-color: var(--ip-share-overlay);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: var(--ip-font-sans);
    overscroll-behavior-y: contain;
}
.ip-share-modal-overlay.show { opacity: 1; visibility: visible; }

.ip-share-modal {
    background-color: var(--ip-share-bg);
    width: 100%; max-width: 1200px;
    max-height: min(95vh, 100dvh);
    min-height: 0;
    border-radius: var(--ip-share-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column; overflow: hidden;
    transform: scale(0.95); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.ip-share-modal-overlay.show .ip-share-modal { transform: scale(1); opacity: 1; }

.ip-share-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 2rem; border-bottom: 1px solid var(--ip-share-border);
}
.ip-share-modal-title { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--ip-share-text); }
.ip-share-modal-subtitle { margin: 0; font-size: 0.875rem; color: var(--ip-share-muted); margin-top: 4px; }
.ip-share-modal-close {
    background: #f3f4f6; border: none; color: var(--ip-share-muted);
    font-size: 1.25rem; cursor: pointer; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.ip-share-modal-close:hover { background: #e5e7eb; color: var(--ip-share-text); transform: scale(1.05); }

/* Body - single column by default; 3 columns from 1280px (avoids squeezed layout 1024–1279) */
.ip-share-modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 1280px) {
    .ip-share-modal-body {
        display: grid;
        grid-template-columns: minmax(320px, 1.2fr) minmax(400px, 1.5fr) minmax(280px, 1fr);
        overflow-x: visible;
    }
    .ip-share-preview-col,
    .ip-share-controls-col,
    .ip-share-settings-col {
        min-width: 0;
    }
}

/* Col 1: Preview */
.ip-share-preview-col {
    padding: 2rem;
    background-color: #f9fafb;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid var(--ip-share-border);
    min-width: 0;
}
.ip-share-preview-container {
    width: 100%; background-color: var(--ip-share-bg);
    border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden; position: relative; transition: aspect-ratio 0.3s ease;
}
.ip-share-preview-container[data-format="square"] { aspect-ratio: 1/1; max-width: 360px; }
.ip-share-preview-container[data-format="story"] { aspect-ratio: 9/16; max-width: 320px; }
.ip-share-preview-container[data-format="portrait"] { aspect-ratio: 4/5; max-width: 340px; }

.ip-poster-preview { width: 100%; height: 100%; object-fit: contain; background: #000; animation: fadeIn 0.5s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Skeleton */
.ip-poster-skeleton {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to bottom, #f3f4f6 50%, #e5e7eb 100%); z-index: 10;
}
.ip-skeleton-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--ip-share-skeleton-bg) 25%, var(--ip-share-skeleton-anim) 50%, var(--ip-share-skeleton-bg) 75%);
    background-size: 200% 100%; animation: loading 1.5s infinite linear;
}
.ip-skeleton-text {
    width: 80%; height: 1.5rem; background-color: rgba(255,255,255,0.7);
    border-radius: 4px; margin-bottom: 0.5rem; position: relative; z-index: 2;
    animation: pulse 1.5s infinite ease-in-out;
}
.ip-skeleton-text.short { width: 50%; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Col 2: Controls — overflow only on modal body (single scroll surface) */
.ip-share-controls-col { padding: 2rem; display: flex; flex-direction: column; gap: 2rem; border-right: 1px solid var(--ip-share-border); overflow: visible; min-height: 0; min-width: 0; }

.ip-share-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.ip-control-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0; flex-shrink: 0; }
.ip-step-badge {
    width: 24px; height: 24px; background: var(--ip-share-primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
.ip-share-label { font-size: 1rem; font-weight: 600; color: var(--ip-share-text); margin: 0; }

.ip-share-toggle-group { display: flex; flex-wrap: wrap; background: #f3f4f6; border-radius: 12px; padding: 0.375rem; gap: 0.35rem; }
.ip-share-toggle-btn {
    flex: 1 1 30%; background: transparent; border: none; padding: 0.75rem 0.5rem; font-size: 0.875rem;
    font-weight: 600; color: var(--ip-share-muted); border-radius: 8px; cursor: pointer;
    transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 0;
}
.ip-share-toggle-btn i { font-size: 1.1rem; }
.ip-share-toggle-btn.active { background: var(--ip-share-bg); color: var(--ip-share-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.ip-share-templates-scroll {
    display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.5rem; padding-top: 0.5rem;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.ip-share-templates-scroll::-webkit-scrollbar { display: none; }

.ip-template-card {
    flex: 0 0 100px;
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; cursor: pointer;
    position: relative;
}
.ip-template-thumb {
    width: 100%; aspect-ratio: 9/16; border-radius: 10px; background: #e5e7eb;
    position: relative; border: 2px solid transparent; transition: all 0.2s ease;
    overflow: hidden;
}
.bg-bold { background: linear-gradient(to bottom, #4b5563, #111827); }
.bg-minimal { background: #f9fafb; border: 1px solid #e5e7eb; }
.bg-glass { background: linear-gradient(135deg, #a855f7, #3b82f6); }
.bg-editorial { background: #1c1917; }
.bg-ultra { background: #d1d5db; }

.ip-template-card:hover .ip-template-thumb { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.ip-template-card.active .ip-template-thumb { border-color: var(--ip-share-primary); box-shadow: 0 0 0 2px rgba(99,102,241,0.2); }
.ip-thumb-check {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 32px; height: 32px; background: var(--ip-share-primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; font-size: 1.2rem; transition: opacity 0.2s ease;
}
.ip-template-card.active .ip-thumb-check { opacity: 1; }

.ip-template-name { font-size: 0.75rem; font-weight: 500; color: var(--ip-share-text); text-align: center; }
.ip-template-badge {
    background: #ede9fe; color: #7c3aed; font-size: 0.65rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 10px; margin-top: -4px;
}

.ip-caption-wrapper { position: relative; border: 1px solid var(--ip-share-border); border-radius: 12px; overflow: visible; background: #fff; transition: border-color 0.2s; }
.ip-caption-wrapper:focus-within { border-color: var(--ip-share-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.ip-share-textarea {
    width: 100%; box-sizing: border-box; border: none; padding: 1rem; font-size: 0.875rem; color: var(--ip-share-text);
    resize: none; background: transparent; font-family: inherit;
    min-height: 9rem;
    max-height: 220px;
    overflow-y: auto;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ip-share-textarea:focus { outline: none; }
.ip-caption-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1rem; border-top: 1px solid #f3f4f6; background: #f9fafb; }
.ip-caption-actions-left { display: flex; align-items: center; flex-shrink: 0; }
.ip-caption-actions-right { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.ip-caption-counter { font-size: 0.75rem; color: var(--ip-share-muted); margin-right: 0.5rem; font-weight: 500; }
.ip-btn-icon { background: transparent; border: none; color: var(--ip-share-text); font-size: 1.1rem; cursor: pointer; border-radius: 6px; padding: 0.25rem 0.5rem; transition: background 0.2s; }
.ip-btn-icon:hover { background: #e5e7eb; }
.ip-share-tooltip { font-size: 0.75rem; color: #10b981; position: absolute; right: 1rem; top: 0.5rem; font-weight: 500; background: #e0f2fe; padding: 0.25rem 0.5rem; border-radius: 4px; z-index: 10; }

.ip-share-primary-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ip-share-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1rem;
    border-radius: 10px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; border: none;
}
.ip-share-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ip-share-btn-primary { flex: 1.5 1 160px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.ip-share-btn-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4); }
.ip-share-btn-outline { background: #ffffff; border: 1px solid var(--ip-share-border); color: var(--ip-share-text); flex: 1 1 120px; }
.ip-share-btn-outline:not(:disabled):hover { background: #f9fafb; border-color: #d1d5db; }

.ip-share-label-small { font-size: 0.875rem; font-weight: 600; color: var(--ip-share-text); display: block; margin-bottom: 0.75rem; }
.ip-share-social-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.75rem 1rem;
    justify-items: center;
}
.ip-social-circle {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: transparent; border: none; cursor: pointer; padding: 0;
}
.ip-social-circle i {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; transition: transform 0.2s ease;
}
.ip-social-circle:hover i { transform: translateY(-3px); }
.ip-social-label { font-size: 0.7rem; color: var(--ip-share-text); font-weight: 500; }
.ip-social-circle.whatsapp i { background: #25D366; }
.ip-social-circle.instagram i { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ip-social-circle.facebook i { background: #1877F2; }
.ip-social-circle.telegram i { background: #0088cc; }
.ip-social-circle.linkedin i { background: #0A66C2; }
.ip-social-circle.more i { background: #f3f4f6; color: var(--ip-share-text); }

/* Col 3: Settings Sidebar */
.ip-share-settings-col { padding: 2rem; display: flex; flex-direction: column; background: #ffffff; overflow: visible; min-height: 0; min-width: 0; }
.ip-settings-title { font-size: 1rem; font-weight: 700; color: var(--ip-share-text); margin-bottom: 1.5rem; }

.ip-setting-item { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.ip-setting-item label:first-child { font-size: 0.875rem; color: var(--ip-share-text); font-weight: 500; margin: 0; }

/* iOS Switch */
.ip-switch { position: relative; display: inline-block; width: 44px; height: 24px; margin: 0; }
.ip-switch input { opacity: 0; width: 0; height: 0; }
.ip-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 34px; }
.ip-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.ip-switch input:checked + .ip-slider { background-color: var(--ip-share-primary); }
.ip-switch input:checked + .ip-slider:before { transform: translateX(20px); }

.ip-setting-preview-box { border: 1px solid var(--ip-share-border); border-radius: 8px; padding: 0.75rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; background: #f9fafb; }
.ip-setting-preview-content { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.75rem; color: var(--ip-share-text); letter-spacing: 1px; }
.ip-setting-preview-content i { font-size: 1rem; color: #d4af37; }
.ip-share-inmo-preview-wrap {
    flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start;
}
.ip-share-inmo-preview-wrap img {
    max-height: 36px; max-width: 100%; width: auto; object-fit: contain;
}
.ip-edit-icon { color: var(--ip-share-muted); font-size: 0.875rem; cursor: pointer; }

.ip-agent-preview { display: flex; align-items: center; gap: 0.75rem; }
.ip-agent-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #9ca3af; overflow: hidden; flex-shrink: 0; }
.ip-brand-preview-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
/* Branding preview: coloured logo needs a clean light backdrop (JS always uses light-bg asset here). */
#shareBrandLogoPreviewBox.ip-setting-preview-box { background: #ffffff; border-color: #e5e7eb; }
#shareInmoLogoPreview { display: block; max-height: 40px; max-width: 200px; width: auto; height: auto; object-fit: contain; mix-blend-mode: normal; }
.ip-setting-preview-content--logo { display: flex; align-items: center; justify-content: flex-start; min-height: 40px; }
.ip-agent-name { font-size: 0.875rem; font-weight: 600; color: var(--ip-share-text); display: flex; align-items: center; gap: 0.25rem; }
.ip-agent-sub { font-size: 0.7rem; color: var(--ip-share-muted); margin-top: 0.1rem; }

.ip-pro-tip { background: #f5f3ff; border-radius: 12px; padding: 1rem; display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
.ip-pro-tip i { color: #8b5cf6; font-size: 1.25rem; margin-top: 2px; }
.ip-pro-tip strong { display: block; font-size: 0.875rem; color: #6d28d9; margin-bottom: 0.25rem; }
.ip-pro-tip p { margin: 0; font-size: 0.8rem; color: #5b21b6; line-height: 1.4; }

/* -----------------------------------------------------------------
   Stacked layout: viewports < 1280px (phone, tablet, narrow laptop)
   ----------------------------------------------------------------- */
@media (max-width: 1279px) {
    .ip-share-modal-body {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
    }
    .ip-share-preview-col,
    .ip-share-controls-col,
    .ip-share-settings-col {
        width: 100%;
        min-width: 0;
        flex-shrink: 0;
        border-right: none;
    }
    .ip-share-preview-col {
        order: 1;
        border-bottom: 1px solid var(--ip-share-border);
        padding: 1.25rem;
    }
    .ip-share-controls-col {
        order: 2;
        border-bottom: 1px solid var(--ip-share-border);
        padding: 1.25rem;
        gap: 1.5rem;
    }
    .ip-share-settings-col {
        order: 3;
        padding: 1.25rem;
    }
    .ip-share-preview-container[data-format="story"] { max-width: 280px; }
    .ip-share-preview-container[data-format="square"] { max-width: 260px; }
    .ip-share-preview-container[data-format="portrait"] { max-width: 280px; }

    .ip-template-badge { margin-top: 0.25rem; }

    .ip-share-primary-actions {
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .ip-share-btn-primary,
    .ip-share-btn-outline {
        width: 100%;
        flex: none;
    }

    .ip-setting-item {
        align-items: flex-start;
    }
    .ip-setting-item label:first-child {
        flex: 1;
        min-width: 0;
        line-height: 1.35;
        padding-right: 0.5rem;
    }
    .ip-setting-item .ip-switch {
        flex-shrink: 0;
        margin-top: 2px;
    }
}

@media (max-width: 1023px) {
    .ip-share-modal {
        display: flex;
        flex-direction: column;
        max-height: min(94vh, 100dvh);
    }
    .ip-share-modal-overlay {
        align-items: stretch;
        padding: 0;
    }
}

/* Phone: bottom sheet + tighter rhythm */
@media (max-width: 767px) {
    .ip-share-preview-col,
    .ip-share-controls-col,
    .ip-share-settings-col {
        padding: 1.5rem;
    }
    .ip-share-controls-col { gap: 2rem; }
    .ip-share-settings-col { border-top: 1px solid var(--ip-share-border); }
    .ip-share-modal {
        transform: translateY(100%);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        align-self: flex-end;
        width: 100%;
        max-height: min(94vh, 100dvh);
    }
    .ip-share-modal-overlay.show .ip-share-modal { transform: translateY(0); }

    .ip-share-modal-header {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .ip-share-modal-header > div:first-child {
        min-width: 0;
        flex: 1;
    }
    .ip-share-modal-title {
        font-size: 1.25rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .ip-share-modal-subtitle { font-size: 0.8125rem; }

    .ip-share-toggle-btn { font-size: 0.75rem; padding: 0.55rem 0.35rem; gap: 0.35rem; }
    .ip-share-toggle-btn i { font-size: 1rem; }
    .ip-brand-preview-label { max-width: 140px; white-space: normal; hyphens: auto; word-break: break-word; letter-spacing: 0; }
}

/* =========================================
   POSTER RENDER TEMPLATES (HTML2Canvas)
   ========================================= */
.ip-poster-template { background-color: #ffffff; position: relative; overflow: hidden; color: #ffffff; box-sizing: border-box; }
.ip-poster-template * { box-sizing: border-box; }
.ip-poster-template.square { width: 1080px; height: 1080px; }
.ip-poster-template.story { width: 1080px; height: 1920px; }
.ip-poster-template.portrait { width: 1080px; height: 1350px; }

.ip-poster-bg-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.ip-poster-header { position: absolute; top: 60px; left: 60px; right: 60px; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; }
.ip-poster-branding { font-size: 30px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 220px); }
.ip-poster-branding i { color: #f59e0b; font-size: 38px; }
.ip-poster-inmo-logo { display: block; height: auto; object-fit: contain; }
.ip-poster-inmo-logo--header { max-height: 70px; max-width: min(440px, 75vw); width: auto; }
.ip-tpl-bold .ip-poster-inmo-logo--header,
.ip-tpl-glass .ip-poster-inmo-logo--header,
.ip-tpl-editorial .ip-poster-inmo-logo--header {
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}
.ip-tpl-minimal .ip-poster-inmo-logo--header { max-height: 56px; max-width: 340px; }
.ip-tpl-ultra .ip-poster-inmo-logo--header { max-height: 52px; max-width: 300px; }
.ip-poster-badge { background: #d97706; color: white; padding: 12px 25px; border-radius: 50px; font-weight: 800; font-size: 24px; letter-spacing: 1px; }

/* Template: Bold Highlight */
.ip-tpl-bold { font-family: ui-serif, Georgia, serif; }
.ip-tpl-bold .ip-poster-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 30%, rgba(10,10,15,0.95) 75%, rgba(10,10,15,1) 100%); z-index: 2;
}
.ip-tpl-bold .ip-poster-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 80px; z-index: 3; display: flex; flex-direction: column; }
.ip-tpl-bold .ip-poster-forsale { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 26px; font-weight: 700; color: #fcd34d; display: flex; align-items: center; gap: 15px; margin-bottom: 20px; letter-spacing: 2px; }
.ip-tpl-bold .ip-poster-forsale .dot { width: 16px; height: 16px; background: #fcd34d; border-radius: 50%; }
.ip-tpl-bold .ip-poster-price { font-size: 150px; font-weight: 700; color: #fde68a; line-height: 1; margin-bottom: 25px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.ip-tpl-bold .ip-poster-title { font-size: 65px; font-weight: 600; color: #ffffff; margin-bottom: 20px; }
.ip-tpl-bold .ip-poster-location { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 36px; font-weight: 400; color: #d1d5db; display: flex; align-items: center; gap: 15px; margin-bottom: 50px; }
.ip-tpl-bold .ip-poster-specs { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); padding: 40px 0; margin-bottom: 50px; font-family: ui-sans-serif, system-ui, sans-serif; }
.ip-tpl-bold .spec-item { display: flex; align-items: center; gap: 20px; }
.ip-tpl-bold .spec-item i { font-size: 45px; color: #d1d5db; }
.ip-tpl-bold .spec-item strong { display: block; font-size: 40px; color: #fff; }
.ip-tpl-bold .spec-item span { font-size: 26px; color: #9ca3af; }
.ip-tpl-bold .ip-poster-agent { display: flex; align-items: center; gap: 30px; font-family: ui-sans-serif, system-ui, sans-serif; margin-bottom: 50px; }
.ip-tpl-bold .ip-agent-av { width: 110px; height: 110px; border-radius: 50%; background: #4b5563; }
.ip-tpl-bold .ip-agent-info { flex: 1; }
.ip-tpl-bold .ip-agent-lbl { font-size: 24px; color: #9ca3af; }
.ip-tpl-bold .ip-agent-nm { font-size: 38px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.ip-tpl-bold .ip-agent-sub { font-size: 24px; color: #d1d5db; }
.ip-tpl-bold .ip-poster-swipe { font-family: ui-sans-serif, system-ui, sans-serif; text-align: center; font-size: 28px; color: #9ca3af; display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 10px; }

/* Template: Minimal Luxury */
.ip-tpl-minimal { font-family: ui-sans-serif, system-ui, sans-serif; background: #ffffff; color: #111827; }
.ip-tpl-minimal .ip-poster-bg-image { height: 60%; border-bottom-left-radius: 60px; border-bottom-right-radius: 60px; }
.ip-tpl-minimal .ip-poster-branding { color: #111827; background: #fff; padding: 20px 40px; border-radius: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.ip-tpl-minimal .ip-poster-content { position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; padding: 80px; z-index: 3; display: flex; flex-direction: column; justify-content: center; }
.ip-tpl-minimal .ip-poster-forsale { display: none; }
.ip-tpl-minimal .ip-poster-price { font-size: 110px; font-weight: 800; color: #111827; margin-bottom: 20px; }
.ip-tpl-minimal .ip-poster-title { font-size: 55px; font-weight: 600; color: #374151; margin-bottom: 15px; }
.ip-tpl-minimal .ip-poster-location { font-size: 38px; color: #6b7280; margin-bottom: 40px; }
.ip-tpl-minimal .ip-poster-specs { display: flex; gap: 40px; }
.ip-tpl-minimal .spec-item { display: flex; align-items: center; gap: 20px; background: #f3f4f6; padding: 20px 40px; border-radius: 30px; }
.ip-tpl-minimal .spec-item i { font-size: 40px; color: #4f46e5; }
.ip-tpl-minimal .spec-item strong { font-size: 40px; color: #111827; }
.ip-tpl-minimal .spec-item span { display: none; }
.ip-tpl-minimal .ip-poster-agent { margin-top: auto; display: flex; align-items: center; gap: 30px; }
.ip-tpl-minimal .ip-agent-av { width: 90px; height: 90px; border-radius: 50%; background: #e5e7eb; }
.ip-tpl-minimal .ip-agent-info { flex: 1; }
.ip-tpl-minimal .ip-agent-nm { font-size: 36px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ip-tpl-minimal .ip-agent-sub { font-size: 26px; color: #6b7280; }
.ip-tpl-minimal .ip-agent-brand-logo { display: none; }
.ip-tpl-minimal .ip-poster-swipe { display: none; }
.ip-tpl-minimal .ip-poster-badge { display: none; }

/* Template: Glass Modern */
.ip-tpl-glass { font-family: ui-sans-serif, system-ui, sans-serif; }
.ip-tpl-glass .ip-poster-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 2; }
.ip-tpl-glass .ip-poster-content { position: absolute; bottom: 60px; left: 60px; right: 60px; padding: 60px; z-index: 3; background: rgba(255,255,255,0.15); backdrop-filter: blur(30px); border-radius: 50px; border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.ip-tpl-glass .ip-poster-price { font-size: 110px; font-weight: 800; margin-bottom: 20px; }
.ip-tpl-glass .ip-poster-title { font-size: 55px; font-weight: 600; margin-bottom: 25px; }
.ip-tpl-glass .ip-poster-location { font-size: 36px; margin-bottom: 40px; }
.ip-tpl-glass .ip-poster-specs { display: flex; gap: 40px; margin-bottom: 40px; }
.ip-tpl-glass .spec-item { display: flex; align-items: center; gap: 20px; }
.ip-tpl-glass .spec-item strong { font-size: 45px; }
.ip-tpl-glass .spec-item span { display: none; }
.ip-tpl-glass .ip-poster-agent { display: flex; align-items: center; gap: 30px; border-top: 2px solid rgba(255,255,255,0.2); padding-top: 40px; }
.ip-tpl-glass .ip-agent-av { width: 90px; height: 90px; border-radius: 50%; background: #ffffff; }
.ip-tpl-glass .ip-agent-nm { font-size: 36px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ip-tpl-glass .ip-agent-sub { font-size: 26px; opacity: 0.8; }
.ip-tpl-glass .ip-agent-brand-logo { display: none; }
.ip-tpl-glass .ip-poster-swipe { display: none; }
.ip-tpl-glass .ip-poster-forsale { display: none; }

/* Template: Editorial Dark */
.ip-tpl-editorial { font-family: "Playfair Display", "Times New Roman", Times, serif; }
.ip-tpl-editorial .ip-poster-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; background: linear-gradient(to bottom, transparent, #1c1917 50%, #1c1917); z-index: 2; }
.ip-tpl-editorial .ip-poster-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 100px; z-index: 3; text-align: center; color: #f5f5f4; }
.ip-tpl-editorial .ip-poster-price { font-size: 130px; font-style: italic; margin-bottom: 30px; color: #d6d3d1; }
.ip-tpl-editorial .ip-poster-title { font-size: 70px; text-transform: uppercase; letter-spacing: 6px; margin-bottom: 30px; }
.ip-tpl-editorial .ip-poster-location { font-size: 36px; font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 60px; color: #a8a29e; }
.ip-tpl-editorial .ip-poster-specs { display: flex; justify-content: center; gap: 70px; font-family: ui-sans-serif, system-ui, sans-serif; margin-bottom: 60px; }
.ip-tpl-editorial .spec-item strong { font-size: 40px; }
.ip-tpl-editorial .spec-item span { display: none; }
.ip-tpl-editorial .ip-poster-agent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    margin-top: 50px;
    margin-bottom: 50px;
}
.ip-tpl-editorial .ip-agent-av { width: 105px; height: 105px; border-radius: 50%; background: #292524; border: 3px solid #78716c; }
.ip-tpl-editorial .ip-agent-info { text-align: center; max-width: 90%; }
.ip-tpl-editorial .ip-agent-lbl { font-size: 22px; color: #a8a29e; letter-spacing: 3px; text-transform: uppercase; }
.ip-tpl-editorial .ip-agent-nm { font-size: 42px; color: #fafaf9; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ip-tpl-editorial .ip-agent-sub { font-size: 26px; color: #d6d3d1; margin-top: 6px; }
.ip-tpl-editorial .ip-agent-brand-logo {
    margin-top: 10px;
    font-size: 26px;
    color: #fbbf24;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}
.ip-tpl-editorial .ip-poster-swipe { display: none; }
.ip-tpl-editorial .ip-poster-forsale { display: none; }

/* Template: Ultra Minimal */
.ip-tpl-ultra { font-family: ui-sans-serif, system-ui, sans-serif; }
.ip-tpl-ultra .ip-poster-gradient { display: none; }
.ip-tpl-ultra .ip-poster-content { position: absolute; bottom: 60px; left: 60px; background: #fff; color: #000; padding: 50px; border-radius: 30px; z-index: 3; max-width: 80%; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.ip-tpl-ultra .ip-poster-price { font-size: 80px; font-weight: 800; margin-bottom: 15px; }
.ip-tpl-ultra .ip-poster-title { font-size: 40px; font-weight: 600; margin-bottom: 10px; }
.ip-tpl-ultra .ip-poster-location { font-size: 30px; color: #666; margin-bottom: 30px; }
.ip-tpl-ultra .ip-poster-specs { display: flex; gap: 30px; }
.ip-tpl-ultra .spec-item { font-size: 32px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ip-tpl-ultra .spec-item span { display: none; }
.ip-tpl-ultra .ip-poster-agent {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.ip-tpl-ultra .ip-agent-av { width: 76px; height: 76px; border-radius: 50%; background: #e5e7eb; flex-shrink: 0; }
.ip-tpl-ultra .ip-agent-info { flex: 1 1 180px; min-width: 0; text-align: left; }
.ip-tpl-ultra .ip-agent-lbl { font-size: 14px; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; }
.ip-tpl-ultra .ip-agent-nm { font-size: 26px; color: #111827; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.ip-tpl-ultra .ip-agent-sub { font-size: 15px; color: #6b7280; }
.ip-tpl-ultra .ip-agent-brand-logo {
    flex: 1 1 100%;
    font-size: 18px;
    color: #b45309;
    text-align: left;
    font-weight: 700;
    padding-top: 8px;
    line-height: 1.3;
}
.ip-tpl-ultra .ip-agent-brand-logo span { font-size: 12px; font-weight: 500; letter-spacing: 3px; color: #6b7280; }
.ip-tpl-ultra .ip-poster-swipe { display: none; }
.ip-tpl-ultra .ip-poster-forsale { display: none; }
