/* Property Details Container */
.show-property-details-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--background-primary);
}

/* Property Title */
.show-property-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0;
}

/* Price Header */
.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.property-price-main {
    font-size: 36px;
    font-weight: 800;
    color: var(--background-logo);
    flex-shrink: 0;
}

/* Key Features */
.show-key-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.key-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-secondary);
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    cursor: pointer;
}

.key-feature:hover {
    transform: translateY(-2px);
    background: var(--background-tertiary);
    border-color: var(--fill-primary);
}

.key-feature:focus-visible {
    outline: 2px solid var(--background-logo);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.key-feature svg {
    color: var(--background-logo);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.key-feature span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* TWO COLUMN LAYOUT */
.two-column-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 10px;
}

.left-column-details {
    flex: 2.2;
    min-width: 0;
}

.right-column-agent {
    flex: 1.1;
    min-width: 0;
    position: sticky;
    top: 20px;
}

/* Details List */
.details-list {
    background: var(--background-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 0;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.detail-line:hover {
    background: var(--fill-quaternary);
}

.detail-line:last-child {
    border-bottom: none;
}

.detail-line-label {
    font-size: 13px;
    color: var(--label-secondary);
    font-weight: 500;
    min-width: 150px;
    text-align: left;
}

.detail-line-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Description Text */
.description-text {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--background-logo);
    display: inline-block;
}

/* Installment Section */
.installment-section {
    margin-bottom: 30px;
}

.installment-card {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.installment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.installment-row:last-child {
    border-bottom: none;
}

.installment-label {
    font-size: 14px;
    color: var(--label-secondary);
}

.installment-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* AGENT SECTION */
.agent-section {
    margin-bottom: 35px;
}

.agent-card {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevated-shadow);
}

.agent-photo-wrapper {
    margin-bottom: 15px;
}

.agent-avatar-centered {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--background-logo);
    transition: all 0.2s ease;
    content-visibility: auto;
}

.agent-avatar-centered:hover {
    transform: scale(1.05);
    border-width: 4px;
}

.agent-name-centered {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.agent-role-centered {
    font-size: 13px;
    color: var(--label-secondary);
    margin-bottom: 3px;
}

.agent-company-centered {
    font-size: 13px;
    color: var(--label-secondary);
    margin-bottom: 20px;
}

/* Contact Row */
.contact-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    cursor: pointer;
}

.contact-link:focus-visible {
    outline: 2px solid var(--background-logo);
    outline-offset: 2px;
}

.call-link {
    background: var(--background-tertiary);
    color: var(--text-primary);
    gap: 10px;
}

.call-link:hover {
    background: var(--background-tertiary-hover);
    transform: translateY(-2px);
}

.call-number {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.whatsapp-link {
    background: #075E54;
    color: var(--text-primary);
}

.whatsapp-link:hover {
    background: #054a41;
    transform: translateY(-2px);
}

/* Location Icon */
.location-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 4px;
}

.location-icon svg,
.location-icon svg * {
    stroke: var(--background-logo);
}

/* LOADING STATES */
.skeleton-loader {
    background: linear-gradient(90deg, var(--background-secondary) 25%, var(--fill-quaternary) 50%, var(--background-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fixed Footer Buttons - MOBILE ONLY */
.fixed-footer-actions {
    display: none;
}

/* DESKTOP STICKY */
@media (min-width: 769px) {
    .right-column-agent {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

@media (min-width: 1025px) {
    .contact-row {
        flex-direction: row;
    }
}

/* TABLET (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .two-column-layout {
        gap: 20px;
    }
    
    .left-column-details {
        flex: 1.8;
    }
    
    .right-column-agent {
        flex: 1;
    }
    
    .key-feature span {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .key-feature {
        padding: 6px 14px;
    }
    
    .contact-row {
        flex-direction: column;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    .agent-card {
        padding: 20px 15px;
    }
    
    .contact-link {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    .show-property-details-container {
        background: var(--background-primary);
        padding-bottom: 80px;
    }
    
    .property-price-main {
        font-size: 28px;
        text-align: center;
    }
    
    .show-property-title {
        font-size: 20px;
    }
    
    .price-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .show-key-features {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }
    
    .key-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 8px 16px;
        min-width: 100px;
    }
    
    .key-feature svg {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }
    
    .key-feature span {
        white-space: normal;
        font-size: 12px;
    }
    
    .two-column-layout {
        flex-direction: column;
        gap: 25px;
    }
    
    .left-column-details {
        flex: auto;
        width: 100%;
    }
    
    .right-column-agent {
        flex: auto;
        width: 100%;
        position: static;
    }
    
    .detail-line {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }
    
    .detail-line-label {
        min-width: auto;
        flex-shrink: 0;
        text-align: left;
    }
    
    .detail-line-value {
        text-align: right;
        width: auto;
        flex: 1;
        word-break: break-word;
    }
    
    .description-text {
        margin-top: 20px;
        margin-bottom: 25px;
        padding: 16px;
    }
    
    .agent-card {
        padding: 25px 20px;
    }
    
    .agent-avatar-centered {
        width: 80px;
        height: 80px;
    }
    
    .agent-name-centered {
        font-size: 18px;
    }
    
    .contact-row {
        flex-direction: row;
        gap: 10px;
    }
    
    .contact-link {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .call-number {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .installment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Fixed Footer Buttons */
    .fixed-footer-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--popover-background);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 12px 20px;
        display: flex;
        justify-content: center;
        gap: 20px;
        box-shadow: var(--elevated-shadow);
    }

    .fixed-call-btn,
    .fixed-wa-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex: 1;
        max-width: 280px;
        padding: 12px 20px;
        border-radius: 100px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s ease;
        letter-spacing: 0.3px;
        border: none;
        cursor: pointer;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .fixed-call-btn:focus-visible,
    .fixed-wa-btn:focus-visible {
        outline: 2px solid var(--background-logo);
        outline-offset: 2px;
    }

    /* Fixed Call Button - Logo Color (Orange) */
    .fixed-call-btn {
        background: var(--background-logo);
        color: #FFFFFF;
        box-shadow: var(--tooltip-shadow);
    }

    .fixed-call-btn:hover {
        background: var(--background-logo-hover);
        transform: translateY(-2px);
    }

    /* Fixed WhatsApp Button - Dark Green */
    .fixed-wa-btn {
        background: #075E54;
        color: #FFFFFF;
        box-shadow: var(--tooltip-shadow);
    }

    .fixed-wa-btn:hover {
        background: #054a41;
        transform: translateY(-2px);
    }

    .fixed-call-btn svg,
    .fixed-wa-btn svg {
        width: 20px;
        height: 20px;
        stroke: #FFFFFF;
        stroke-width: 2;
        fill: none;
    }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .fixed-footer-actions {
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
        }
    }
}

/* EXTRA SMALL DEVICES (max-width: 480px) */
@media (max-width: 480px) {
    .show-key-features {
        gap: 10px;
    }
    
    .key-feature {
        padding: 8px 12px;
        min-width: 85px;
    }
    
    .key-feature svg {
        width: 20px;
        height: 20px;
    }
    
    .description-text {
        padding: 14px;
        font-size: 14px;
    }
    
    .contact-row {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
    
    .agent-avatar-centered {
        width: 70px;
        height: 70px;
    }
    
    .fixed-footer-actions {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .fixed-call-btn,
    .fixed-wa-btn {
        padding: 10px 12px;
        font-size: 14px;
        gap: 8px;
    }
    
    .fixed-call-btn svg,
    .fixed-wa-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* RTL LANGUAGE SUPPORT (Arabic) */
[dir="rtl"] .detail-line-label {
    text-align: right;
}

[dir="rtl"] .detail-line-value {
    text-align: left;
}

[dir="rtl"] .key-feature svg {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .location-icon {
    margin-right: 0;
    margin-left: 4px;
}

[dir="rtl"] .section-title {
    border-bottom: 2px solid var(--background-logo);
}

[dir="rtl"] .description-text {
    text-align: right;
}

[dir="rtl"] .installment-row {
    align-items: flex-end;
}

/* PRINT STYLES - Better for printing property details */
@media print {
    .fixed-footer-actions,
    .right-column-agent,
    .contact-row {
        display: none;
    }
    
    .show-property-details-container {
        background: white;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .show-property-title,
    .property-price-main,
    .detail-line-label,
    .detail-line-value,
    .description-text,
    .section-title {
        color: black !important;
    }
    
    .property-price-main {
        color: var(--background-logo) !important;
    }
    
    .details-list,
    .installment-card,
    .description-text {
        border: 1px solid #ccc;
        background: white;
    }
    
    .key-feature {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }
    
    .key-feature span {
        color: black;
    }
    
    .two-column-layout {
        display: block;
    }
    
    .left-column-details {
        width: 100%;
    }
    
    .detail-line {
        break-inside: avoid;
    }
    
    .agent-card {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
}

/* REDUCED MOTION PREFERENCE - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .key-feature,
    .contact-link,
    .fixed-call-btn,
    .fixed-wa-btn,
    .agent-card,
    .agent-avatar-centered {
        transition: none;
        transform: none;
    }
    
    .key-feature:hover,
    .contact-link:hover,
    .fixed-call-btn:hover,
    .fixed-wa-btn:hover,
    .agent-card:hover,
    .agent-avatar-centered:hover {
        transform: none;
    }
    
    .skeleton-loader {
        animation: none;
        background: var(--background-secondary);
    }
}

/* HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: high) {
    .key-feature,
    .contact-link,
    .fixed-call-btn,
    .fixed-wa-btn {
        border: 2px solid currentColor;
    }
}

/* UTILITY CLASSES */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .text-truncate-mobile {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Share Section Styles */
.share-section {
    position: relative;
    display: inline-block;
}

/* Share Trigger Button */
.share-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.share-trigger-btn:hover {
    background: var(--background-tertiary);
    transform: translateY(-2px);
}

.share-trigger-btn:focus-visible {
    outline: 2px solid var(--background-logo);
    outline-offset: 2px;
}

.share-trigger-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Share Dropdown */
.share-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 320px;
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--elevated-shadow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Share Dropdown Header */
.share-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.share-dropdown-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.share-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-quaternary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.share-close-btn:hover {
    background: var(--fill-quaternary);
    color: var(--text-primary);
}

.share-close-btn:focus-visible {
    outline: 2px solid var(--background-logo);
    outline-offset: 2px;
}

/* Share Options Container */
.share-options {
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
}

/* Individual Share Option */
.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
}

.share-option:hover {
    background: var(--fill-quaternary);
    transform: translateX(4px);
}

.share-option:focus-visible {
    outline: 2px solid var(--background-logo);
    outline-offset: 2px;
    background: var(--fill-quaternary);
}

.share-option svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: var(--background-logo);
}

.share-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.share-option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.share-option-desc {
    font-size: 12px;
    color: var(--text-primary);
}

/* Platform-specific colors on hover */
.share-whatsapp:hover svg {
    color: #25D366;
    stroke: #25D366;
}

.share-email:hover svg {
    color: #EA4335;
    stroke: #EA4335;
}

.share-facebook:hover svg {
    color: #1877F2;
    stroke: #1877F2;
}

.share-twitter:hover svg {
    color: #1DA1F2;
    stroke: #1DA1F2;
}

.share-linkedin:hover svg {
    color: #0077B5;
    stroke: #0077B5;
}

.share-copy:hover svg {
    color: var(--background-logo);
    stroke: var(--background-logo);
}

/* Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--background-tertiary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1100;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: var(--tooltip-shadow);
    white-space: nowrap;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-toast svg {
    stroke: var(--status-success);
    width: 18px;
    height: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: auto;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .share-dropdown.active {
        transform: translateY(0);
    }
    
    .share-dropdown-header {
        padding: 20px;
    }
    
    .share-options {
        max-height: 60vh;
        padding: 12px;
    }
    
    .share-option {
        padding: 14px;
    }
    
    .copy-toast {
        bottom: 80px;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .share-dropdown {
        min-width: 360px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .share-dropdown,
    .share-option,
    .share-trigger-btn,
    .copy-toast {
        transition: none;
        transform: none;
    }
    
    .share-option:hover {
        transform: none;
    }
}

/* RTL LANGUAGE SUPPORT (Arabic) */
[dir="rtl"] .share-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .share-option {
    text-align: right;
}

[dir="rtl"] .share-option-content {
    text-align: right;
}

[dir="rtl"] .share-trigger-btn svg {
    margin-left: 0;
    margin-right: 0;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .share-dropdown {
        left: 0;
        right: 0;
    }
}