/**
 * Property Detail Page - Actions Section Styles
 * 
 * Horizontal section for Contact/Share/Expert Assistance below main content
 * Uses CSS Grid with glassmorphism card design
 * 
 * Version: 1.0
 * Created: 2025-01-14
 */

/* ========================================================================
   ACTIONS SECTION - HORIZONTAL LAYOUT
   ======================================================================== */

.property-actions-section {
    padding: var(--section-spacing-md) 0;
    background: linear-gradient(180deg,
            var(--property-bg) 0%,
            var(--color-background-secondary, #f8f9fa) 100%);
    border-top: 1px solid var(--property-border);
}

.actions-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Header */
.actions-section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.actions-section-title {
    font-family: var(--font-family-heading, 'Playfair Display', serif);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 700;
    color: var(--property-text);
    margin: 0 0 var(--space-sm) 0;
}

.actions-section-subtitle {
    font-family: var(--font-family-body, 'Poppins', sans-serif);
    font-size: 1rem;
    color: var(--property-text-secondary);
    margin: 0;
}

/* Actions Grid - 2 Column Layout on Desktop */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    align-items: stretch;
}

/* Action Cards - Modern Glass Design */
.action-card {
    background: var(--property-card-bg);
    border: 1px solid var(--property-border);
    border-radius: var(--card-radius, 16px);
    padding: var(--space-xl);
    box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Accent gradient on hover */
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color, #d4af37), var(--primary-color, #0c2340));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color, #d4af37);
}

.action-card:hover::before {
    opacity: 1;
}

/* Override inner card styles to remove nesting */
.action-card>.property-card,
.action-card>.share-save-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.action-card>.agent-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

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

/* Tablet */
@media (max-width: 991px) {
    .actions-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        max-width: 600px;
        margin: 0 auto;
    }

    .actions-section-container {
        padding: 0 var(--space-md);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .property-actions-section {
        padding: var(--space-xl) 0;
    }

    .actions-section-header {
        margin-bottom: var(--space-lg);
    }

    .actions-section-title {
        font-size: 1.5rem;
    }

    .action-card {
        padding: var(--space-lg);
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .actions-section-container {
        padding: 0 var(--space-sm);
    }

    .action-card {
        padding: var(--space-md);
        border-radius: var(--card-radius-sm, 12px);
    }
}

/* ========================================================================
   DARK MODE
   ======================================================================== */

html[data-theme="dark"] .property-actions-section {
    background: linear-gradient(180deg,
            var(--property-bg) 0%,
            rgba(10, 10, 10, 1) 100%);
    border-color: var(--property-border);
}

html[data-theme="dark"] .action-card {
    background: var(--color-background-secondary, #0a0a0a);
    border-color: var(--property-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .action-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .actions-section-title {
    color: var(--property-text);
}

html[data-theme="dark"] .actions-section-subtitle {
    color: var(--property-text-secondary);
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
    .action-card {
        transition: none;
    }

    .action-card:hover {
        transform: none;
    }

    .action-card::before {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .action-card {
        border-width: 2px;
    }

    .action-card::before {
        height: 5px;
    }
}