/*--------------------------------------------------------------
# Yardstics Off-Market Valuation Page Specific Styles
--------------------------------------------------------------*/

/* Scoping rules using body class */
/* Assumes page slug 'off-market-valuation' */

/* --- General Page Structure & Title --- */

.page-slug-off-market-valuation .entry-title {
    display: none;
}

.page-slug-off-market-valuation .valuation-page-content {
    padding-bottom: 60px;
    margin-top: 50px;
}

.page-slug-off-market-valuation .page-main-heading {
    text-align: center;
    font-size: 38px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}
.page-slug-off-market-valuation .page-main-heading sup {
    font-size: 0.5em;
    top: -1em;
    position: relative;
}

/* --- Intro Section --- */
.page-slug-off-market-valuation .valuation-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.page-slug-off-market-valuation .valuation-intro p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* --- Instructions Section --- */
.page-slug-off-market-valuation .valuation-instructions {
    max-width: 850px;
    margin: 0 auto 50px auto;
    padding: 30px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.page-slug-off-market-valuation .valuation-instructions h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
    text-align: center;
}

.page-slug-off-market-valuation .valuation-instructions ol {
    margin: 0 auto 20px auto;
    padding-left: 40px;
    max-width: 650px;
    text-align: left;
}

.page-slug-off-market-valuation .valuation-instructions li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.page-slug-off-market-valuation .valuation-instructions .token-cost,
.page-slug-off-market-valuation .valuation-instructions .disclaimer {
    font-size: 14px;
    line-height: 1.6;
    max-width: 700px;
    margin: 15px auto 0 auto;
    text-align: center;
    color: #555;
}

.page-slug-off-market-valuation .valuation-instructions .token-cost strong,
.page-slug-off-market-valuation .valuation-instructions .disclaimer strong {
    color: #333;
}

.page-slug-off-market-valuation .valuation-instructions .disclaimer {
    font-style: italic;
    color: #6c757d;
}

/* --- Valuation Tool Section --- */
.page-slug-off-market-valuation .valuation-tool {
    max-width: 750px;
    margin: 0 auto;
    padding-top: 20px;
}

.page-slug-off-market-valuation .valuation-tool h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #333;
}

/* Input Area Styling */
.page-slug-off-market-valuation .valuation-input-area {
    margin-bottom: 20px;
    /* Reduced margin slightly */
}

.page-slug-off-market-valuation .valuation-input-area label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #444;
    text-align: left;
}

.page-slug-off-market-valuation .input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    /* Needed for Google Autocomplete dropdown positioning */
}

/* Style for the Address Input */
.page-slug-off-market-valuation #address-input {
    flex-grow: 1;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-height: 50px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.page-slug-off-market-valuation #address-input:focus {
    border-color: #0099ff;
    box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.2);
    outline: none;
}

/* Google Places Autocomplete dropdown */
.pac-container {
    /* You might need to adjust z-index if it appears below other elements */
    z-index: 1050 !important;
    /* High z-index */
    border-radius: 6px;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    font-family: inherit;
    font-size: 15px;
}
.pac-item {
    padding: 10px 15px;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}
.pac-item:hover {
    background-color: #f0f0f0;
}
.pac-item-query {
    font-weight: 600;
    font-family: inherit;
    font-size: 15px;
}


.page-slug-off-market-valuation #fetch-button-om {
    flex-shrink: 0;
    padding: 14px 25px;
    line-height: normal;
    height: 50px;
    box-sizing: border-box;
}

/* --- Loading State --- */
.page-slug-off-market-valuation .loading-state {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
    color: #555;
}

.page-slug-off-market-valuation .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 153, 255, 0.2);
    border-radius: 50%;
    border-top-color: #0099ff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Confirmation Area --- */
.page-slug-off-market-valuation .confirmation-area {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-slug-off-market-valuation .confirmation-area h4 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px; /* Increased space */
    font-size: 20px;
    color: #333;
}

/* Confirmation Content (Property Details) - Simplified */
.page-slug-off-market-valuation #confirmation-content-om {
    text-align: left;
    margin-bottom: 30px;
    min-height: auto; /* Allow height to adjust naturally */
}

.page-slug-off-market-valuation .property-details.simplified {
    display: block; /* No flex needed for single item */
    /* Removed align-items and gap */
}

/* Removed .property-image styles */

.page-slug-off-market-valuation .property-info {
    flex: none; /* Not needed when not in flex */
    min-width: auto; /* Not needed */
    text-align: center; /* Center the address line */
}

.page-slug-off-market-valuation .property-info p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}
.page-slug-off-market-valuation .property-info p:last-child {
    margin-bottom: 0;
}

.page-slug-off-market-valuation .property-info strong {
    color: #111;
    margin-right: 5px;
}

/* --- Confirmation Maps Area (Now only Street View) --- */
.page-slug-off-market-valuation .confirmation-maps {
    display: block; /* No longer needs flex */
    /* Removed gap */
    margin-top: 20px;
    margin-bottom: 30px;
    /* Removed flex-wrap */
}

.page-slug-off-market-valuation .map-container {
    /* flex: 1; Removed flex property */
    min-width: 100%; /* Ensure it takes full width */
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background-color: #f9f9f9;
}

.page-slug-off-market-valuation .map-container h5 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.page-slug-off-market-valuation #streetview-map { /* Target StreetView directly */
    width: 100%;
    height: 350px; /* INCREASED HEIGHT */
    background-color: #e0e0e0; /* Placeholder background */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Removed #gis-map-placeholder styles */

.page-slug-off-market-valuation #streetview-map iframe {
    border: none; /* Remove iframe border */
    width: 100%;
    height: 100%;
    border-radius: 4px; /* Match container */
}

.page-slug-off-market-valuation #streetview-map p { /* Style placeholder text inside streetview */
     margin: 0;
     padding: 10px;
}

/* Confirmation Actions */
.page-slug-off-market-valuation .confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px; /* Adjusted space */
}

.page-slug-off-market-valuation #confirm-valuation-button-om .token-info {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 2px;
    opacity: 0.9;
}

.page-slug-off-market-valuation #back-button-om {
    color: #6c757d;
    border-color: #6c757d;
}
.page-slug-off-market-valuation #back-button-om:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}


/* --- Result Area --- */
.page-slug-off-market-valuation .result-area {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid #c3e6cb;
    background-color: #d4edda;
    border-radius: 8px;
    text-align: center;
}
.page-slug-off-market-valuation .result-area h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #155724;
    font-size: 20px;
}
.page-slug-off-market-valuation #result-content-om {
    font-size: 28px;
    font-weight: bold;
    color: #155724;
}

/* --- Error Message Area --- */
.page-slug-off-market-valuation .error-message {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}


/* --- Responsive Adjustments --- */

@media (max-width: 768px) { /* Tablet & Mobile */
    .page-slug-off-market-valuation .page-main-heading {
        font-size: 30px;
        margin-top: 30px;
    }
    .page-slug-off-market-valuation .valuation-intro p {
        font-size: 16px;
    }
    .page-slug-off-market-valuation .valuation-instructions {
        padding: 20px;
    }
    .page-slug-off-market-valuation .valuation-instructions h2 {
        font-size: 24px;
    }
    .page-slug-off-market-valuation .valuation-instructions li {
        font-size: 15px;
    }
    .page-slug-off-market-valuation .valuation-instructions .token-cost,
    .page-slug-off-market-valuation .valuation-instructions .disclaimer {
        font-size: 13px;
    }
    .page-slug-off-market-valuation .input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .page-slug-off-market-valuation #fetch-button-om {
        width: 100%;
        padding: 14px 20px;
    }

    /* Confirmation Details Responsive - Simplified */
    /* Removed responsive rules for .property-details flex and .property-image */
     .page-slug-off-market-valuation .property-info {
        width: 100%;
        text-align: center; /* Already centered above, kept for clarity */
    }
    .page-slug-off-market-valuation .property-info p {
        font-size: 15px;
    }

    /* Maps Responsive - Simplified */
     /* .confirmation-maps rule not needed as it's display: block */
     .page-slug-off-market-valuation .map-container {
         min-width: 100%; /* Already 100% above */
     }
      .page-slug-off-market-valuation #streetview-map {
          height: 280px; /* Adjusted height for mobile (can be different from desktop) */
      }

    /* Actions Responsive */
    .page-slug-off-market-valuation .confirmation-actions {
        gap: 10px;
    }
    .page-slug-off-market-valuation .confirmation-actions button {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    .page-slug-off-market-valuation #result-content-om {
        font-size: 24px;
    }
}

@media (max-width: 480px) { /* Smaller Mobile */
    .page-slug-off-market-valuation .page-main-heading {
        font-size: 26px;
    }
    .page-slug-off-market-valuation .valuation-instructions h2 {
        font-size: 22px;
    }
    .page-slug-off-market-valuation .valuation-tool h3 {
        font-size: 20px;
    }
    .page-slug-off-market-valuation #streetview-map {
          height: 250px; /* Slightly shorter on very small screens */
    }
}