/* ====== ROOMA21 PROPERTY SHORTCODE STYLES ====== */
/* Horizontal Scroll Container */
.shortcode-property-section {
    margin-bottom: 3rem;
}

.horizontal-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.horizontal-scroll-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff5a28 #f3f4f6;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ff5a28;
    border-radius: 4px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ff4518;
}

/* Property Card Modern Shortcode - Fixed Dimensions */
.property-card-modern-shortcode {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 280px !important; /* Fixed width */
    min-width: 280px !important;
    max-width: 280px !important;
    height: 480px !important; /* Fixed total height */
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

.property-card-modern-shortcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-color: #d1d5db;
}

.property-card-modern-shortcode .property-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-height: 0; /* Allow flex shrinking */
}

.property-card-modern-shortcode .property-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Image Container - Fixed 4:3 Aspect Ratio */
.property-card-modern-shortcode .property-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio (280px * 0.75 = 210px height) */
    overflow: hidden;
    flex-shrink: 0; /* Don't allow shrinking */
}

.property-card-modern-shortcode .property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f9fafb;
    background-repeat: no-repeat;
}

.property-card-modern-shortcode .property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ff5a28;
    color: white;
    padding: 3px 7px;
    border-radius: 50px;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    z-index: 2;
}

/* Content Area - Flexible but constrained */
.property-card-modern-shortcode .property-content {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex shrinking */
    overflow: hidden; /* Prevent overflow */
}

.property-card-modern-shortcode .search-property-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.2;
    flex-shrink: 0;
}

.property-card-modern-shortcode .search-property-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: transparent !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    height: 2.6em !important; /* Fixed height for 2 lines */
    flex-shrink: 0;
}

.property-card-modern-shortcode .property-development {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 6px 0;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.property-card-modern-shortcode .property-location {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.property-card-modern-shortcode .property-location i {
    color: #ef4444;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.property-card-modern-shortcode .property-features {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
    padding-top: 0;
    flex-shrink: 0;
}

.property-card-modern-shortcode .feature-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
}

.property-card-modern-shortcode .feature-item i {
    color: #9ca3af;
    font-size: 0.65rem;
}

.property-card-modern-shortcode .feature-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.7rem;
}

/* Action Buttons - Fixed Height */
.property-card-modern-shortcode .search-property-actions {
    padding: 10px 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
    background: white;
    height: 56px; /* Fixed height */
    align-items: center;
    flex-shrink: 0; /* Don't allow shrinking */
}

.property-card-modern-shortcode .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.property-card-modern-shortcode .share-btn {
    background: #3b82f6;
    color: white;
    width: 36px;
    padding: 7px;
}

.property-card-modern-shortcode .share-btn:hover {
    background: #2563eb;
    color: white;
}

.property-card-modern-shortcode .whatsapp-btn {
    background: #22c55e;
    color: white;
    flex: 1;
}

.property-card-modern-shortcode .whatsapp-btn:hover {
    background: #16a34a;
    color: white;
    text-decoration: none;
}

.property-card-modern-shortcode .whatsapp-btn i {
    font-size: 0.8rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .property-card-modern-shortcode {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        height: 460px !important;
    }

    .property-card-modern-shortcode .property-image-container {
        padding-bottom: 75%; /* Keep 4:3 ratio */
    }

    .horizontal-scroll-wrapper {
        gap: 12px;
    }

    .property-card-modern-shortcode .property-features {
        margin-top: 8px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .property-card-modern-shortcode {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        height: 440px !important;
    }
}
