/* Auction Asset Property Detail Page Styles */

/* Section Initial State */
#auction-asset-property-detail-section {
    background: #e8e8e8;
    display: none;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    visibility: hidden;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

/* Container */
.auction-asset-property-detail-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: block;
    visibility: visible;
    opacity: 1;
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 60px);
}

/* Header Share Button */
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: none;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    margin-left: 0.5rem;
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

.share-btn .share-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    stroke: var(--text-primary);
    stroke-width: 2;
}

/* Company Section - Uses same classes as auction-property-main-page-detail-category-header (defined in auction-property-detail.css) */

/* Asset Title */
.asset-detail-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: var(--spacing-md) 0;
    padding: 0 var(--spacing-sm);
    text-align: right;
    direction: rtl;
}

/* Image Gallery Section */
.asset-detail-image-gallery {
    position: relative;
    margin-bottom: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.image-gallery-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.gallery-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-wrapper.active {
    opacity: 1;
    z-index: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
    transition: transform 0.3s ease;
}

.gallery-indicators {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 2;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: var(--bg-white);
    width: 24px;
    border-radius: 4px;
}

.gallery-counter {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.6);
    color: var(--bg-white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    z-index: 2;
}

/* Fullscreen Image Container */
.fullscreen-image-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-image-container.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}

.fullscreen-close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-white);
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
}

.fullscreen-close-btn i {
    width: 24px;
    height: 24px;
}

/* Section Styles */
.asset-detail-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.asset-detail-section-title {
    width: 100%;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md) 0;
    text-align: right;
}

/* Empty State in Section */
.asset-detail-section .empty-state {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-size: 0.5rem;
    width: 100%;
}

.asset-detail-section .empty-state .empty-text {
    width: 100%;
    text-align: right;
}

/* Pricing Information Card */
.asset-detail-pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    direction: rtl;
}

.pricing-row:last-of-type {
    border-bottom: none;
}

.pricing-row-total {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    border-bottom: 0 solid var(--border-color);
}

.pricing-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: right;
}

.pricing-value-total {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
}

.rial-icon {
    width: 16px;
    height: 16px;
}

/* Outlined Button */
.outlined-btn {
    width: fit-content;
    padding: 0.2rem 0;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    direction: rtl;
}

/* VAT Notice */
.vat-notice {
    padding: 0.3rem;
    margin-top: var(--spacing-md);
    background: #e3f2fd;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: #1976d2;
    text-align: right;
}

/* Product Details List */
.product-details-list {
    width: 100%;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.product-detail-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    direction: rtl;
}

.detail-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    min-width: 100px;
    text-align: right;
}

.detail-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    text-align: right;
    flex: 1;
    text-align: left;
}

.product-attachments-btn {
    width: fit-content;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    direction: rtl;
}

/* Bottom Sheet for Attachments */
.attachments-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.attachments-bottom-sheet.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.bottom-sheet-content {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 5px var(--radius-sm) 0 0;
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    direction: rtl;
}

.attachments-bottom-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto var(--spacing-md) auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md) 0;
    text-align: right;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.attachment-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.attachment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    text-align: right;
}

.attachment-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.attachment-size {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.attachment-download-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

/* Override base icon styles for download button - ensure white icon */
.attachment-download-btn [data-lucide="download"],
.attachment-download-btn i[data-lucide="download"],
.attachment-download-btn i {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
}

/* Google Map Container */
.google-map-container {
    width: 100%;
    height: 400px;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.google-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    padding: 0;
}

.map-control-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-control-btn:active {
    transform: scale(0.95);
}

.map-control-btn i {
    width: 20px;
    height: 20px;
}

/* Fullscreen Map Modal */
.map-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.map-fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.map-fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.map-fullscreen-content {
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1400px;
    max-height: 900px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.map-fullscreen-modal.active .map-fullscreen-content {
    transform: scale(1);
}

/* Buttons Container */
.map-fullscreen-buttons-container {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
    z-index: 20;
    pointer-events: none;
    /* Allow clicks to pass through container */
}

.map-fullscreen-buttons-container>* {
    pointer-events: auto;
    /* Re-enable clicks on buttons */
}

.map-fullscreen-close-btn {
    position: relative;
    width: 41px;
    height: 41px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgb(192, 35, 35);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    flex-shrink: 0;
    order: 1;
    /* Close button appears first (on top) */
}

.map-fullscreen-close-btn i {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
}

/* Ensure close button icon SVG is white - comprehensive targeting */
.map-fullscreen-close-btn i svg,
.map-fullscreen-close-btn [data-lucide] svg,
.map-fullscreen-close-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
}

/* Target all SVG child elements */
.map-fullscreen-close-btn i svg *,
.map-fullscreen-close-btn [data-lucide] svg *,
.map-fullscreen-close-btn svg * {
    stroke: #ffffff !important;
    fill: none !important;
    color: #ffffff !important;
}

/* Specific targeting for paths, lines, circles, etc. */
.map-fullscreen-close-btn i svg path,
.map-fullscreen-close-btn [data-lucide] svg path,
.map-fullscreen-close-btn svg path,
.map-fullscreen-close-btn i svg line,
.map-fullscreen-close-btn [data-lucide] svg line,
.map-fullscreen-close-btn svg line,
.map-fullscreen-close-btn i svg circle,
.map-fullscreen-close-btn [data-lucide] svg circle,
.map-fullscreen-close-btn svg circle,
.map-fullscreen-close-btn i svg polyline,
.map-fullscreen-close-btn [data-lucide] svg polyline,
.map-fullscreen-close-btn svg polyline {
    stroke: #ffffff !important;
    fill: none !important;
}

.map-fullscreen-reset-btn {
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
    order: 2;
    /* Reset button appears second (below close button) */
}

.map-fullscreen-reset-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-fullscreen-reset-btn:active {
    transform: translateY(0);
}

/* Ensure reset button icon is white - comprehensive targeting */
.map-fullscreen-reset-btn i,
.map-fullscreen-reset-btn [data-lucide],
.map-fullscreen-reset-btn i[data-lucide="refresh-cw"] {
    width: 18px;
    height: 18px;
    color: #ffffff !important;
}

/* Ensure SVG icon paths are white - target all SVG elements */
.map-fullscreen-reset-btn i svg,
.map-fullscreen-reset-btn [data-lucide] svg,
.map-fullscreen-reset-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
}

/* Target all SVG child elements */
.map-fullscreen-reset-btn i svg *,
.map-fullscreen-reset-btn [data-lucide] svg *,
.map-fullscreen-reset-btn svg * {
    stroke: #ffffff !important;
    fill: none !important;
    color: #ffffff !important;
}

/* Specific targeting for paths, lines, circles, etc. */
.map-fullscreen-reset-btn i svg path,
.map-fullscreen-reset-btn [data-lucide] svg path,
.map-fullscreen-reset-btn svg path,
.map-fullscreen-reset-btn i svg line,
.map-fullscreen-reset-btn [data-lucide] svg line,
.map-fullscreen-reset-btn svg line,
.map-fullscreen-reset-btn i svg circle,
.map-fullscreen-reset-btn [data-lucide] svg circle,
.map-fullscreen-reset-btn svg circle,
.map-fullscreen-reset-btn i svg polyline,
.map-fullscreen-reset-btn [data-lucide] svg polyline,
.map-fullscreen-reset-btn svg polyline {
    stroke: #ffffff !important;
    fill: none !important;
}

.map-fullscreen-container {
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

.map-fullscreen-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive adjustments for map controls */
@media (max-width: 768px) {
    .map-control-btn {
        width: 36px;
        height: 36px;
    }

    .map-control-btn i {
        width: 18px;
        height: 18px;
    }

    .map-fullscreen-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .map-fullscreen-buttons-container {
        top: var(--spacing-sm);
        left: var(--spacing-sm);
        gap: var(--spacing-xs);
    }

    .map-fullscreen-reset-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }

    .map-fullscreen-reset-btn span {
        display: none;
    }

    .map-fullscreen-reset-btn i {
        width: 16px;
        height: 16px;
    }
}

/* Date Counter Container */
.asset-date-counter-bottom-action-bar-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-md) 0;
}

.asset-date-counter-bottom-action-bar-container .countdown-label {
    width: 100%;
    text-align: right;
    margin: 0 0 0.3rem;
}

.asset-date-counter-bottom-action-bar-container .flip-time-group {
    margin: 0 0.5rem;
}

/* Pricing Buttons Row */
.pricing-buttons-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    direction: rtl;
}

.auction-asset-bottom-action-btn {
    width: fit-content;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.auction-asset-fee-detail-button {
    width: fit-content;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-gallery-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .image-gallery-container {
        height: 200px;
    }
}