/* Property Showcase Modal Styles */

/* Modal Container */
.showcase-modal {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.showcase-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.showcase-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.showcase-body-wrapper {
    overflow-y: auto;
    max-height: 90vh;
}

.showcase-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #64748b;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hero Section */
.showcase-hero {
    position: relative;
    background: #0f0f1a;
}

.showcase-main-photo {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.showcase-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fix for blurry image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
}

.showcase-photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.photo-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.photo-prev {
    left: 12px;
}

.photo-next {
    right: 12px;
}

.showcase-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #0f0f1a;
    overflow-x: auto;
}

.showcase-thumb {
    width: 80px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.showcase-thumb:hover,
.showcase-thumb.active {
    opacity: 1;
    border-color: #3b82f6;
}

.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo Delete Buttons */
.photo-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    border: 2px solid white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.showcase-thumb {
    position: relative;
}

.showcase-thumb:hover .photo-delete-btn {
    opacity: 1;
}

.photo-delete-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* Main photo delete button */
.main-photo-delete {
    width: 32px;
    height: 32px;
    font-size: 20px;
    top: 12px;
    right: 12px;
    opacity: 0.7;
}

.showcase-main-photo:hover .main-photo-delete {
    opacity: 1;
}

/* Thumbs wrapper */
.showcase-thumbs-wrapper {
    display: flex;
    align-items: center;
    background: #0f0f1a;
    padding-right: 12px;
}

.more-photos {
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Header Info */
.showcase-header-info {
    padding: 24px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: white;
}

.showcase-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.showcase-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
}

.showcase-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.showcase-commission {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.showcase-completeness {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.showcase-address {
    margin: 0 0 16px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.showcase-quick-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: stretch;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    min-height: 44px;
    box-sizing: border-box;
}

.stat-pill.rent {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.stat-pill.beds,
.stat-pill.baths {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: white;
}

.stat-pill.sqft {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: white;
}

.stat-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-value {
    font-weight: 700;
}

.stat-label {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Quick Action Buttons */
.showcase-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    min-width: fit-content;
}

.quick-action-btn.call {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.quick-action-btn.call:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.quick-action-btn.email {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.quick-action-btn.email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.quick-action-btn.website {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.quick-action-btn.website:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.quick-action-btn.edit {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-action-btn.edit:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Details Section */
.showcase-details {
    padding: 24px;
    background: #f8fafc;
}

.showcase-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.showcase-section h4 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #1e293b;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-card:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-name {
    margin: 0 0 12px;
    color: #475569;
}

/* Amenities */
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-tag {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.more-amenities {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* Specials Section */
.specials-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.specials-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.special-card {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.special-text {
    color: #92400e;
    font-weight: 500;
}

/* Units Section - Featured */
.units-section.featured {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #3b82f6;
    padding: 24px;
    margin: 0 -24px;
}

.units-section.featured h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.units-section .unit-count {
    color: #60a5fa;
    font-weight: 400;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.unit-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.unit-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.unit-name {
    font-size: 1.1rem;
    color: white;
}

.unit-rent {
    font-size: 1rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

.unit-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.unit-spec {
    font-size: 0.85rem;
    color: #94a3b8;
}

.unit-available {
    font-size: 0.8rem;
    color: #60a5fa;
    margin-bottom: 12px;
}

.unit-showcase-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.unit-showcase-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.more-units {
    margin: 16px 0 0;
    text-align: center;
    color: #60a5fa;
    font-weight: 500;
}

.no-data {
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

/* Description Section */
.description-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.property-description {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
}

.management-company {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.85rem;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.rating-stars {
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 700;
    color: #f59e0b;
    font-size: 1rem;
}

.rating-count {
    color: #64748b;
    font-size: 0.85rem;
}

/* 2nd Chance Housing Section */
.second-chance-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
}

.second-chance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.second-chance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #22c55e;
    color: white;
}

.second-chance-badge.section8 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.second-chance-badge.fast {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Pet Policy Section */
.pet-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
}

.pet-policy-text {
    margin: 0;
    color: #92400e;
    line-height: 1.5;
    font-size: 0.95rem;
}