/* ASK Real Estate Property Preview CSS - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Container */
.askre-preview-container {
    font-family: 'Poppins', Arial, sans-serif;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    color: #222222;
    background-color: #fff;
}

/* Error Message */
.askre-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    font-family: 'Poppins', Arial, sans-serif;
    text-align: center;
    font-size: 16px;
}

/* Property Header */
.askre-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.askre-preview-title-section {
    flex: 1;
    min-width: 300px;
}

.askre-preview-title {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 10px;
    line-height: 1.3;
}

.askre-preview-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    color: #717171;
    font-size: 16px;
}

.askre-preview-location svg {
    width: 18px;
    height: 18px;
    fill: #FF5A5F;
}

.askre-preview-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    flex-wrap: wrap;
}

.askre-preview-status {
    background-color: #FF5A5F;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.askre-preview-type {
    color: #717171;
    padding: 5px 12px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 12px;
}

.askre-preview-price-section {
    text-align: right;
}

.askre-preview-price {
    font-size: 28px;
    font-weight: 700;
    color: #FF5A5F;
    margin-bottom: 5px;
}

.askre-preview-price-period {
    font-size: 14px;
    color: #717171;
}

/* Property Gallery */
.askre-preview-gallery {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.askre-preview-main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.askre-preview-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.askre-preview-main-image:hover img {
    transform: scale(1.02);
}

.askre-preview-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    height: 120px;
    margin-top: 2px;
}

.askre-preview-thumbnail,
.askre-preview-thumbnail-more {
    height: 120px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.askre-preview-thumbnail img,
.askre-preview-thumbnail-more img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.askre-preview-thumbnail:hover img,
.askre-preview-thumbnail-more:hover img {
    transform: scale(1.1);
}

.askre-preview-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.askre-preview-thumbnail-more:hover .askre-preview-more-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.askre-preview-no-image {
    width: 100%;
    height: 400px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.askre-preview-no-image-placeholder {
    text-align: center;
    color: #adb5bd;
}

.askre-preview-no-image-placeholder svg {
    fill: #dee2e6;
    margin-bottom: 15px;
}

/* Main Content Area */
.askre-preview-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.askre-preview-main {
    flex: 2;
    min-width: 300px;
}

.askre-preview-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Property Sections */
.askre-preview-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.askre-preview-section:last-child {
    border-bottom: none;
}

.askre-preview-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.askre-preview-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #FF5A5F;
    border-radius: 2px;
}

/* Property Features */
.askre-preview-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.askre-preview-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.askre-preview-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.askre-preview-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: #FF5A5F;
}

.askre-preview-feature-content {
    display: flex;
    flex-direction: column;
}

.askre-preview-feature-value {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
}

.askre-preview-feature-label {
    font-size: 14px;
    color: #717171;
}

/* Property Description */
.askre-preview-description {
    color: #555555;
    line-height: 1.7;
    font-size: 16px;
    text-align: left !important;
}

.askre-preview-description p {
    margin-bottom: 15px;
}

.askre-preview-description p:last-child {
    margin-bottom: 0;
}

/* Property Video Tour */
.askre-preview-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 15px;
    background-color: #000;
}

.askre-preview-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Property Amenities */
.askre-preview-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.askre-preview-amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555555;
    font-size: 14px;
}

.askre-preview-amenity svg {
    fill: #FF5A5F;
    flex-shrink: 0;
}

/* Contact Card */
.askre-preview-contact-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

.askre-preview-contact-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 20px;
}

.askre-preview-agent {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.askre-preview-agent-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.askre-preview-agent-image svg {
    fill: #adb5bd;
}

.askre-agent-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.askre-preview-agent-info {
    flex: 1;
}

.askre-preview-agent-name {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 5px;
}

.askre-preview-agency-name {
    font-size: 14px;
    color: #717171;
}

.askre-preview-contact-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.askre-preview-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.askre-preview-phone-btn {
    background-color: #FF5A5F;
    color: white;
}

.askre-preview-phone-btn:hover {
    background-color: #e54c51;
    color: white;
}

.askre-preview-email-btn {
    background-color: #f8f9fa;
    color: #333;
}

.askre-preview-email-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

.askre-preview-virtual-tour-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.askre-preview-virtual-tour-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    color: white !important;
    transform: translateY(-2px);
}

.askre-preview-contact-btn svg {
    fill: currentColor;
}

/* Inquiry Form */
.askre-preview-inquiry-form {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.askre-preview-form-title {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 15px;
}

.askre-preview-form-field {
    margin-bottom: 15px;
}

.askre-preview-form-field input,
.askre-preview-form-field textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 14px;
    color: #222222;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.askre-preview-form-field input:focus,
.askre-preview-form-field textarea:focus {
    border-color: #FF5A5F;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.2);
}

.askre-preview-submit-btn {
    width: 100%;
    background-color: #FF5A5F;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.askre-preview-submit-btn:hover {
    background-color: #e54c51;
}

.askre-preview-btn-icon {
    display: flex;
    align-items: center;
}

.askre-preview-btn-icon svg {
    fill: currentColor;
}

.askre-preview-submit-btn.loading .askre-preview-btn-text {
    visibility: hidden;
}

.askre-preview-submit-btn.loading::after {
    content: "Sending...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.askre-preview-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Response Messages */
.askre-inquiry-response {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.askre-inquiry-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.askre-inquiry-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Sticky Contact Buttons for Mobile */
.askre-sticky-contact-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e2e2;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* Back Button */
.askre-preview-actions {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.askre-preview-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    color: #222222;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.askre-preview-back-btn:hover {
    background-color: #e9ecef;
    color: #222222;
}

.askre-preview-back-btn svg {
    fill: currentColor;
}

/* Hide WhatsApp widget on preview pages */
.wa__widget_container,
#wa {
    display: none !important;
}

.askre-preview-container .wa__widget_container,
.askre-preview-container #wa,
div[id="wa"] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .askre-preview-container {
        padding: 0 15px;
    }
    
    .askre-preview-main-image {
        height: 400px;
    }
    
    .askre-preview-contact-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .askre-preview-container {
        padding: 0 15px;
    }
    
    .askre-preview-header {
        flex-direction: column;
        align-items: flex-start;
        margin: 20px 0 15px;
        gap: 15px;
    }
    
    .askre-preview-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .askre-preview-location {
        font-size: 14px;
    }
    
    .askre-preview-price-section {
        text-align: left;
        width: 100%;
    }
    
    .askre-preview-price {
        font-size: 24px;
    }
    
    .askre-preview-meta {
        gap: 10px;
    }
    
    .askre-preview-main-image {
        height: 280px;
    }
    
    .askre-preview-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        height: 80px;
    }
    
    .askre-preview-thumbnail,
    .askre-preview-thumbnail-more {
        height: 80px;
    }
    
    .askre-preview-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .askre-preview-main,
    .askre-preview-sidebar {
        min-width: auto;
    }
    
    .askre-preview-features {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .askre-preview-feature {
        gap: 10px;
    }
    
    .askre-preview-feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .askre-preview-feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .askre-preview-feature-value {
        font-size: 16px;
    }
    
    .askre-preview-feature-label {
        font-size: 13px;
    }
    
    .askre-preview-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .askre-preview-section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .askre-preview-amenities {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .askre-preview-amenity {
        font-size: 13px;
    }
    
    .askre-preview-contact-card {
        padding: 20px;
        margin-bottom: 80px;
    }
    
    .askre-preview-contact-buttons {
        display: none;
    }
    
    .askre-sticky-contact-mobile {
        display: flex;
    }
    
    .askre-preview-actions {
        margin: 20px 0 80px;
    }
}

@media (max-width: 576px) {
    .askre-preview-container {
        padding: 0 10px;
    }
    
    .askre-preview-title {
        font-size: 20px;
    }
    
    .askre-preview-price {
        font-size: 20px;
    }
    
    .askre-preview-main-image {
        height: 220px;
    }
    
    .askre-preview-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        height: 70px;
    }
    
    .askre-preview-thumbnail,
    .askre-preview-thumbnail-more {
        height: 70px;
    }
    
    .askre-preview-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .askre-preview-section-title {
        font-size: 18px;
    }
    
    .askre-preview-amenities {
        grid-template-columns: 1fr;
    }
    
    .askre-preview-contact-card {
        padding: 15px;
    }
    
    .askre-preview-agent {
        gap: 12px;
    }
    
    .askre-preview-agent-image {
        width: 50px;
        height: 50px;
    }
    
    .askre-preview-agent-name {
        font-size: 15px;
    }
    
    .askre-preview-agency-name {
        font-size: 13px;
    }
    
    .askre-preview-form-field input,
    .askre-preview-form-field textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .askre-preview-submit-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .askre-sticky-contact-mobile {
        padding: 12px 15px;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .askre-preview-main-image {
        height: 250px;
    }
}

/* Print styles */
@media print {
    .askre-sticky-contact-mobile,
    .askre-preview-back-btn {
        display: none !important;
    }
    
    .askre-preview-container {
        max-width: none;
        padding: 0;
    }
    
    .askre-preview-gallery {
        page-break-inside: avoid;
    }
}


/* Hide WhatsApp widget on preview pages */
.wa__widget_container,
#wa {
    display: none !important;
}

/* Server Video Styles */
.askre-server-video {
    position: relative;
    padding-bottom: 0 !important;
    height: auto !important;
    margin-top: 20px;
}

.askre-server-video video {
    position: static !important;
}

.askre-preview-video-wrapper video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.askre-preview-video-wrapper video::-webkit-media-controls-play-button {
    background-color: #FF5A5F;
    border-radius: 50%;
}

.askre-video-title {
    font-size: 14px;
    color: #717171;
    margin-bottom: 10px;
    font-weight: 500;
}

i.backtotop{
    display:none !important;
}