/* Shared PlusHouse-style listing layout */
:root {
    --ph-orange: #f97316;
    --ph-orange-dark: #ea580c;
    --ph-text: #0f172a;
    --ph-muted: #6b7280;
    --ph-border: #e5e7eb;
    --ph-bg: #ffffff;
    --ph-soft: #f8fafc;
}

.ph-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.ph-hero {
    position: relative;
    padding: 72px 0 56px;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(249, 115, 22, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 20%, rgba(14, 165, 233, 0.08), transparent 50%),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 70%);
    overflow: hidden;
}

.ph-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ph-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ph-text);
    margin: 0 0 14px;
    line-height: 1.15;
}

.ph-hero p {
    font-size: 1.05rem;
    color: var(--ph-muted);
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.6;
}

.ph-section {
    padding: 56px 0;
}

.ph-section.soft {
    background: var(--ph-soft);
}

.ph-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.ph-section-header h2 {
    font-size: 1.65rem;
    font-weight: 750;
    color: var(--ph-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ph-section-header p {
    margin: 0;
    color: var(--ph-muted);
    font-size: 0.95rem;
    max-width: 520px;
    line-height: 1.5;
}

.ph-view-all {
    color: var(--ph-orange);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ph-view-all:hover {
    color: var(--ph-orange-dark);
}

.listings-grid,
.ph-listings-grid,
.properties-grid,
.products-grid,
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.listing-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
    height: auto !important;
    position: relative;
    /* Prevent intrinsic image size from blowing out equal grid columns */
    min-width: 0;
    width: 100%;
}

a.listing-card:visited,
a.listing-card:hover,
a.listing-card:focus {
    color: inherit;
    text-decoration: none;
}

.listing-card:hover {
    transform: translateY(-4px);
}

.listing-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.listing-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.listing-card:hover .listing-card-image img {
    transform: scale(1.04);
}

.listing-card-image .image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.listing-card-image .image-placeholder i {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Uniform card image format for all listing variants site-wide */
.product-image,
.property-image,
.job-image,
.listing-image,
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    flex-shrink: 0;
    background: #f3f4f6;
}

.product-image img,
.property-image img,
.job-image img,
.listing-image img,
.product-image-container img,
.product-image-container .product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.image-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.image-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.image-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.image-dots span.active {
    background: #fff;
}

.listing-card-body {
    padding: 14px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.listing-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.listing-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ph-muted);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-location i {
    color: #9ca3af;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.listing-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--ph-muted);
    font-size: 0.875rem;
}

.listing-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ph-muted);
    font-size: 0.875rem;
}

.listing-card-meta .meta-item i {
    color: #9ca3af !important;
    font-size: 0.8rem;
}

.listing-card-price {
    margin-top: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.ph-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ph-muted);
    padding: 40px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.type-card:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--ph-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.type-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ph-text);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.city-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: auto !important;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a !important;
    background: #fff !important;
    border: 1px solid #e5e7eb;
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.city-card:nth-child(n) {
    background: #fff !important;
}

.city-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    color: #0f172a !important;
    text-decoration: none;
}

.city-card i {
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

.city-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    position: static;
}

.city-card span {
    display: none;
}

.ph-cta {
    margin: 20px 0 40px;
    padding: 48px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249,115,22,0.95), rgba(234,88,12,0.92));
    color: #fff;
    text-align: center;
}

.ph-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
}

.ph-cta p {
    margin: 0 auto 24px;
    max-width: 560px;
    opacity: 0.95;
    line-height: 1.55;
}

.ph-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ph-orange-dark);
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ph-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    color: var(--ph-orange-dark);
    text-decoration: none;
}

.ph-subcat-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ph-subcat-bar .back-link {
    color: var(--ph-muted);
    text-decoration: none;
    font-weight: 600;
}

.ph-subcat-bar .back-link:hover {
    color: var(--ph-orange);
}

.ph-pagination,
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.ph-pagination a,
.ph-pagination span {
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--ph-border);
    color: var(--ph-muted);
}

.pagination a:hover,
.ph-pagination a:hover {
    color: var(--ph-orange);
    border-color: var(--ph-orange);
}

.pagination .current,
.ph-pagination .current {
    background: var(--ph-orange);
    color: #fff;
    border-color: var(--ph-orange);
}

@media (max-width: 1100px) {
    .listings-grid,
    .ph-listings-grid,
    .properties-grid,
    .products-grid,
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .types-grid { grid-template-columns: repeat(3, 1fr); }
    .cities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .ph-hero { padding: 48px 0 36px; }
    .ph-section { padding: 40px 0; }
    .ph-section-header { flex-direction: column; gap: 10px; }
    .listings-grid,
    .ph-listings-grid,
    .properties-grid,
    .products-grid,
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .types-grid { grid-template-columns: repeat(2, 1fr); }
    .cities-grid { grid-template-columns: repeat(2, 1fr); }
    .ph-cta { padding: 36px 22px; }
}

@media (max-width: 480px) {
    .listings-grid,
    .ph-listings-grid,
    .properties-grid,
    .products-grid,
    .jobs-grid,
    .types-grid,
    .cities-grid {
        grid-template-columns: 1fr;
    }
}

/* Signup / free posting promo */
.signup-promo {
    padding: 64px 0;
    background:
        radial-gradient(ellipse 70% 80% at 10% 20%, rgba(249, 115, 22, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 70% at 90% 80%, rgba(14, 165, 233, 0.08), transparent 50%),
        #fff7ed;
}

.signup-promo-inner {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 36px;
    align-items: center;
}

.signup-promo-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.signup-promo-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.2;
}

.signup-promo-copy p {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 420px;
}

.signup-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f97316;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.signup-promo-cta:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.signup-promo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.signup-step {
    position: relative;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 22px 18px 20px;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signup-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.signup-step-num {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fdba74;
    letter-spacing: 0.04em;
}

.signup-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.signup-step h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 750;
    color: #0f172a;
}

.signup-step p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 992px) {
    .signup-promo-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .signup-promo-copy {
        text-align: center;
    }
    .signup-promo-copy p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .signup-promo {
        padding: 48px 0;
    }
    .signup-promo-steps {
        grid-template-columns: 1fr;
    }
}

/* Trust / about promo */
.trust-promo {
    padding: 64px 0 72px;
    background: #f8fafc;
}

.trust-promo-header {
    text-align: center;
    justify-content: center;
    margin-bottom: 32px;
}

.trust-promo-header > div {
    max-width: 560px;
}

.trust-promo-header h2 {
    text-align: center;
}

.trust-promo-header p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.trust-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 28px 22px 26px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
    font-size: 1.35rem;
}

.trust-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.trust-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .trust-promo {
        padding: 48px 0 56px;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
}
