:root {
    --ha-primary: #2F499F;     
    --ha-secondary: #507ABD;   
    --ha-accent: #F37321;      
    --ha-text: #1F2937;        
    --ha-bg-active: #eaf0fb;   
}
#ha-image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.ha-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.ha-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ha-cover-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--ha-primary); /* Your theme blue */
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}
.ha-submission-container { max-width: 750px !important; margin: 40px auto !important;; padding: 40px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); font-family: -apple-system, sans-serif; color: var(--ha-text); }
.ha-form-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; color: var(--ha-text); }
.ha-form-header p { color: #6b7280; margin-bottom: 30px; font-size: 15px; }
.ha-field-group { margin-bottom: 28px; }
.ha-group-label { display: block; font-weight: 600; margin-bottom: 12px; color: var(--ha-text); font-size: 15px; }

.ha-hidden-radio { display: none; }
.ha-tile-group { display: flex; flex-wrap: wrap; gap: 10px; }
.ha-tile { padding: 12px 18px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #4b5563; cursor: pointer; font-weight: 500; font-size: 14px; transition: all 0.2s ease; flex: 1 1 auto; text-align: center; }
.ha-tile:hover { border-color: var(--ha-secondary); background: #f9fafb; }
.ha-hidden-radio:checked + .ha-tile { border-color: var(--ha-primary); background-color: var(--ha-bg-active); color: var(--ha-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--ha-primary); }

.ha-input { width: 100%; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; box-sizing: border-box; color: var(--ha-text); transition: all 0.2s; font-family: inherit; }
.ha-input:focus { border-color: var(--ha-primary); outline: none; box-shadow: 0 0 0 3px rgba(47, 73, 159, 0.1); }
textarea.ha-input { resize: vertical; min-height: 100px; }
.ha-input[readonly] { background: #f9fafb; cursor: not-allowed; }

.ha-checkbox-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ha-checkbox-grid label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4b5563; cursor: pointer; }

.ha-hidden-file-input { display: none; }
.ha-upload-box { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 40px 20px; text-align: center; background: #f8fafc; cursor: pointer; transition: all 0.2s; }
.ha-upload-box:hover { background: var(--ha-bg-active); border-color: var(--ha-secondary); }
.ha-upload-icon { font-size: 30px; color: var(--ha-secondary); margin-bottom: 10px; }
.ha-upload-title { margin: 0; color: var(--ha-text); font-weight: 600; }
.ha-upload-subtitle { margin-top: 5px; font-size: 12px; color: #6b7280; }

.ha-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; }
.ha-preview-item { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; aspect-ratio: 1; }
.ha-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.ha-cover-badge { position: absolute; top: 0; left: 0; background: var(--ha-accent); color: white; font-size: 10px; padding: 4px 8px; font-weight: bold; border-bottom-right-radius: 6px; }

.ha-calc-btn { background: #f1f5f9; color: var(--ha-primary); border: 1px solid var(--ha-secondary); padding: 13px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.ha-calc-btn:hover { background: var(--ha-secondary); color: white; }
.ha-info-text { margin-top: 8px; font-size: 13px; color: var(--ha-primary); }

.ha-step-buttons { display: flex; justify-content: space-between; margin-top: 35px; padding-top: 25px; border-top: 1px solid #e5e7eb; }
.ha-next-btn, .ha-submit-btn { background: var(--ha-accent); color: white; border: none; padding: 14px 28px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.ha-prev-btn { background: #f3f4f6; color: #4b5563; border: none; padding: 14px 28px; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600; transition: background 0.2s; }
.ha-next-btn:hover, .ha-submit-btn:hover { background: #d66117; } 
.ha-prev-btn:hover { background: #e5e7eb; }

@media (max-width: 600px) {
    .ha-submission-container { padding: 20px; margin: 20px 10px; }
}

/* ==========================================================================
   Single Property Template Styles
   ========================================================================== */

/* Header Styles */
.ha-single-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; font-family: -apple-system, sans-serif; color: var(--ha-text); }
.ha-single-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.ha-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-bottom: 10px; }
.ha-badge-sell { background: #eaf0fb; color: var(--ha-primary); }
.ha-badge-rent { background: #fff1e6; color: var(--ha-accent); }
.ha-badge-pg { background: #e6f6ff; color: var(--ha-secondary); }

.ha-property-title { font-size: 28px; font-weight: 700; margin: 0 0 10px 0; color: var(--ha-text); line-height: 1.3; }
.ha-property-location { color: #6b7280; margin: 0; font-size: 15px; }

.ha-header-right { text-align: right; }
.ha-price-block { color: var(--ha-text); font-weight: 700; }
.ha-currency { font-size: 24px; vertical-align: top; }
.ha-price-amount { font-size: 36px; }
.ha-price-label { font-size: 16px; color: #6b7280; font-weight: normal; }
.ha-price-sqft { font-size: 14px; color: #6b7280; margin-top: 5px; }

/* Gallery Grid */
.ha-gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; margin-bottom: 30px; border-radius: 12px; overflow: hidden; }
.ha-gallery-main { grid-column: 1; grid-row: 1 / 3; background-size: cover; background-position: center; transition: transform 0.3s; }
.ha-gallery-thumb { background-size: cover; background-position: center; transition: transform 0.3s; cursor: pointer; }
.ha-gallery-main:hover, .ha-gallery-thumb:hover { transform: scale(1.02); }

/* Body Layout */
.ha-single-body { display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px; }

/* Metrics Box */
.ha-metrics-box { display: flex; background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; gap: 30px; flex-wrap: wrap; }
.ha-metric { flex: 1; border-right: 1px solid #e5e7eb; padding-right: 20px; }
.ha-metric:last-child { border-right: none; }
.ha-metric-val { display: block; font-size: 20px; font-weight: 700; color: var(--ha-text); }
.ha-metric-lbl { font-size: 13px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }

/* Sections */
.ha-section { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; }
.ha-section-title { font-size: 20px; font-weight: 700; margin: 0 0 20px 0; color: var(--ha-text); border-bottom: 2px solid #f3f4f6; padding-bottom: 10px; }

/* Overview Grid */
.ha-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; }
.ha-overview-item { display: flex; justify-content: space-between; border-bottom: 1px solid #f3f4f6; padding-bottom: 8px; }
.ha-overview-lbl { color: #6b7280; }
.ha-overview-val { font-weight: 600; color: var(--ha-text); text-align: right; }

/* Amenities Grid */
.ha-amenities-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.ha-amenity-pill { background: #f9fafb; border: 1px solid #e5e7eb; padding: 8px 16px; border-radius: 30px; font-size: 14px; font-weight: 500; }

/* Sidebar Contact Card */
.ha-sidebar { position: sticky; top: 30px; }
.ha-contact-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); border-top: 4px solid var(--ha-primary); }
.ha-contact-title { font-size: 18px; margin: 0 0 15px 0; }
.ha-contact-company { font-weight: 600; margin: 0 0 5px 0; }
.ha-contact-rera { font-size: 13px; color: #6b7280; margin: 0 0 20px 0; }
.ha-btn-primary { width: 100%; background: var(--ha-accent); color: white; border: none; padding: 15px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.ha-btn-primary:hover { background: #d66117; }
.ha-safety-tip { font-size: 12px; color: #6b7280; text-align: center; margin-top: 15px; line-height: 1.4; }

/* Responsive */
@media (max-width: 768px) {
    .ha-single-header { flex-direction: column; gap: 20px; }
    .ha-header-right { text-align: left; }
    .ha-single-body { grid-template-columns: 1fr; }
    .ha-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 100px; }
    .ha-gallery-main { grid-column: 1 / 3; grid-row: 1; }
    .ha-overview-grid { grid-template-columns: 1fr; }
    .ha-metrics-box { flex-direction: column; gap: 15px; }
    .ha-metric { border-right: none; border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; }
}