/* =========================================================
   GAS Properties Plugin v1.0.3
   Property portfolio cards for multi-building clients
   CSS Variables from GAS Admin Display Settings
   ========================================================= */

/* Wrapper */
.gas-properties-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 4rem;
    background: var(--gas-prop-bg, transparent);
}

.gas-properties-page-wrapper {
    min-height: 60vh;
}

/* =========================================================
   Location Filter
   ========================================================= */
.gas-properties-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.gas-prop-filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: white;
    color: var(--gas-prop-text-secondary, #475569);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.gas-prop-filter-btn:hover {
    border-color: var(--gas-prop-accent, #9e7b6b);
    color: var(--gas-prop-accent, #9e7b6b);
    background: #eff6ff;
}

.gas-prop-filter-btn.active {
    background: var(--gas-prop-accent, #9e7b6b);
    color: white;
    border-color: var(--gas-prop-accent, #9e7b6b);
}

/* =========================================================
   Grid Layout
   ========================================================= */
.gas-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gas-properties-grid.gas-properties-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* =========================================================
   List Layout
   ========================================================= */
.gas-properties-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gas-properties-list .gas-property-card {
    display: grid;
    grid-template-columns: 350px 1fr;
}

.gas-properties-list .gas-property-image {
    border-radius: 0;
    min-height: 250px;
}

.gas-properties-list .gas-property-image img {
    border-radius: 0;
}

.gas-properties-list .gas-property-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================================
   Property Card
   ========================================================= */
.gas-property-card {
    background: var(--gas-prop-card-bg, white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f1f5f9;
}

.gas-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Image */
.gas-property-image {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background: #f1f5f9;
}

.gas-property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gas-property-card:hover .gas-property-image img {
    transform: scale(1.05);
}

.gas-property-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
}

/* Price Badge */
.gas-property-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gas-prop-badge-bg, rgba(0, 0, 0, 0.75));
    color: var(--gas-prop-badge-text, white);
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    line-height: 1.3;
}

.gas-property-price-badge span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Content */
.gas-property-content {
    padding: 1.25rem;
    text-align: center;
}

.gas-property-name {
    margin: 0.75rem 0 0.4rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gas-prop-text, #1e293b);
    line-height: 1.3;
}

.gas-property-location {
    color: var(--gas-prop-text-secondary, #64748b);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.gas-property-subtitle {
    margin: 0.5rem 0 0.4rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gas-prop-text, #374151);
}

.gas-property-feature {
    color: var(--gas-prop-text-secondary, #64748b);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.2rem 0;
}

.gas-property-description {
    color: var(--gas-prop-text-secondary, #64748b);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

/* Meta (legacy, kept for compatibility) */
.gas-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
}

.gas-property-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gas-prop-text-secondary, #475569);
    font-size: 0.825rem;
}

.gas-property-meta svg {
    color: var(--gas-prop-accent, #9e7b6b);
    flex-shrink: 0;
}

/* CTA Button */
.gas-property-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--gas-prop-button-bg, #6b7280);
    color: var(--gas-prop-button-text, white);
    text-decoration: none;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.gas-property-btn:hover {
    filter: brightness(0.85);
    color: var(--gas-prop-button-text, white);
    text-decoration: none;
}

/* =========================================================
   Error / Empty States
   ========================================================= */
.gas-properties-error,
.gas-properties-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gas-prop-text-secondary, #64748b);
}

.gas-properties-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0;
    color: #991b1b;
}

.gas-properties-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .gas-properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gas-properties-grid,
    .gas-properties-grid.gas-properties-grid-2 {
        grid-template-columns: 1fr;
    }

    .gas-properties-list .gas-property-card {
        grid-template-columns: 1fr;
    }

    .gas-properties-list .gas-property-image {
        border-radius: 0;
        min-height: 200px;
    }

    .gas-properties-list .gas-property-image img {
        border-radius: 0;
    }

    .gas-properties-wrapper {
        padding: 1rem 0.75rem;
    }

    .gas-properties-filter {
        gap: 0.375rem;
    }

    .gas-prop-filter-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gas-property-name {
        font-size: 1.05rem;
    }

    .gas-property-content {
        padding: 1rem;
    }

    .gas-property-meta {
        gap: 0.75rem;
    }
}

/* =========================================================
   Theme Compatibility
   Dark theme support via CSS custom properties
   ========================================================= */
[data-theme="dark"] .gas-property-card,
.dark-theme .gas-property-card {
    background: var(--gas-prop-card-bg, #1e293b);
    border-color: #334155;
}

[data-theme="dark"] .gas-property-name,
.dark-theme .gas-property-name {
    color: var(--gas-prop-text, #f1f5f9);
}

[data-theme="dark"] .gas-property-location,
[data-theme="dark"] .gas-property-description,
[data-theme="dark"] .gas-property-meta span,
.dark-theme .gas-property-location,
.dark-theme .gas-property-description,
.dark-theme .gas-property-meta span {
    color: var(--gas-prop-text-secondary, #94a3b8);
}

[data-theme="dark"] .gas-property-meta,
.dark-theme .gas-property-meta {
    border-top-color: #334155;
}

[data-theme="dark"] .gas-property-image-placeholder,
.dark-theme .gas-property-image-placeholder {
    background: #334155;
    color: #64748b;
}

[data-theme="dark"] .gas-prop-filter-btn,
.dark-theme .gas-prop-filter-btn {
    background: #1e293b;
    border-color: #475569;
    color: #94a3b8;
}

[data-theme="dark"] .gas-prop-filter-btn:hover,
.dark-theme .gas-prop-filter-btn:hover {
    background: #1e3a5f;
    border-color: var(--gas-prop-accent, #9e7b6b);
    color: #93c5fd;
}

[data-theme="dark"] .gas-prop-filter-btn.active,
.dark-theme .gas-prop-filter-btn.active {
    background: var(--gas-prop-accent, #9e7b6b);
    color: white;
    border-color: var(--gas-prop-accent, #9e7b6b);
}

[data-theme="dark"] .gas-properties-empty,
.dark-theme .gas-properties-empty {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .gas-properties-error,
.dark-theme .gas-properties-error {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .gas-properties-filter,
.dark-theme .gas-properties-filter {
    border-bottom-color: #334155;
}
