/* Property Customizer Enhanced - Frontend Styles - Fixed Version */

/* Reset and Base Styles */
* {
box-sizing: border-box;
}

.pce-customizer-page {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
min-height: 100vh;
padding-top: 50px;
padding-bottom: 50px;
}

.pce-customizer-container {
max-width: 1400px;
margin: 0 auto;
padding: 50px 30px;
background: #ffffff;
border: 1px solid #dadada;
border-radius: 40px;
}

/* Header Styles */
.pce-customizer-header {
text-align: center;
margin-bottom: 3rem;
background: #ffffff;
}

.pce-page-title {
font-family: "Manrope", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 56px;
line-height: 120%;
text-align: center;
color: #242424;
margin-bottom: 0.5rem;
}

.pce-page-subtitle {
font-size: 1.1rem;
color: #6c757d;
margin: 0;
max-width: 600px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}

/* Progress Bar */
.pce-progress-bar {
display: flex;
justify-content: center;
gap: 2rem;
margin: 3rem 0;
position: relative;
}

.pce-progress-bar::before {
content: "";
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
width: 200px;
height: 2px;
background: #e5e7eb;
z-index: 1;
}

.pce-progress-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
position: relative;
z-index: 2;
}

.pce-step-number {
width: 40px;
height: 40px;
border-radius: 50%;
background: #e5e7eb;
color: #6b7280;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
transition: all 0.3s ease;
}

.pce-progress-step.active .pce-step-number {
background: #111827;
color: #ffffff;
}

.pce-step-label {
font-size: 0.9rem;
color: #6b7280;
font-weight: 500;
}

.pce-progress-step.active .pce-step-label {
color: #111827;
font-weight: 600;
}

/* Step Content */
.pce-step-content {
display: none;
}

.pce-step-content.active {
display: block;
}

.pce-step-title {
font-size: 20px;
font-weight: 700;
color: #1f2937;
text-align: left;
background: #ffffff;
border-radius: 12px;
margin-bottom: 2rem;
}

/* Two Column Layout */
.pce-two-column-layout {
display: grid;
gap: 3rem;
margin-bottom: 3rem;
}

.pce-left-column {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pce-right-column {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
height: fit-content;
position: sticky;
top: 2rem;
}

/* Plans Grid */
.pce-plans-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}

.pce-plan-card {
background: #ffffff;
border: 2px solid #e5e7eb;
border-radius: 16px;
overflow: hidden;
transition: all 0.3s ease;
cursor: pointer;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pce-plan-card:hover {
border-color: #d1d5db;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
}

.pce-plan-card.selected {
border-color: #3b82f6;
box-shadow: 0 0 0 1px #3b82f6;
}

.pce-plan-image {
height: 200px;
overflow: hidden;
position: relative;
}

.pce-plan-image img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}

.pce-plan-details {
padding: 1.5rem;
}

.pce-plan-name {
font-family: "Manrope", sans-serif;
font-style: normal;
font-weight: 600;
font-size: 24px;
line-height: 120%;
letter-spacing: -0.04em;
color: #0d0d12;
margin-bottom: 0.5rem;
}

.pce-plan-area {
color: #6b7280;
font-size: 0.9rem;
margin: 0 0 1rem 0;
}

.pce-plan-specs {
display: flex;
gap: 1rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid #eceff3;
margin-bottom: 1rem;
}

.pce-plan-specs .pce-spec {
display: flex;
align-items: center;
gap: 0.25rem;
font-size: 16px;
color: #0d0d12;
font-weight: 500;
text-align: center;
flex: 1;
padding: 0.5rem 1rem;
border: 1px solid #eceff3;
border-radius: 4px;
}

.pce-plan-specs .pce-spec img {
height: 18px;
width: 18px;
}

.pce-plan-price {
font-family: "Manrope", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 140%;
letter-spacing: -0.04em;
color: #062429;
padding-top: 1rem;
margin-bottom: 1rem;
}

.pce-plan-selector {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
cursor: pointer;
font-weight: 600;
color: #1f2937;
}

.pce-plan-selector input[type="radio"] {
display: none;
}

.pce-radio-custom {
width: 20px;
height: 20px;
border: 2px solid #d1d5db;
border-radius: 50%;
position: relative;
transition: all 0.3s ease;
}

.pce-plan-selector input[type="radio"]:checked + .pce-radio-custom {
border-color: #3b82f6;
}

.pce-plan-selector input[type="radio"]:checked + .pce-radio-custom::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 10px;
height: 10px;
background: #3b82f6;
border-radius: 50%;
}

/* Customization Sections */
.pce-customization-sections {
margin: 3rem 0;
display: grid;
gap: 2rem;
text-align: left;
grid-template-columns: 1fr 1fr; /* Default to two columns */
margin-bottom: 10px;
}

.pce-customization-group {
background: #ffffff;
border-radius: 16px;
}

.pce-customization-group h4 {
color: #101010;
text-align: left;
font-family: "Manrope", sans-serif;
font-size: 16px;
line-height: 150%;
font-weight: 700;
margin-bottom: 1rem;
}

/* Option Buttons (Radio Images) */
.pce-option-buttons {
display: flex;
flex-wrap: wrap; /* Allow wrapping for many options */
gap: 1rem;
margin-bottom: 1.5rem;
}

.pce-option-button {
cursor: pointer;
width: 80px; /* Increased size for better visibility */
height: 80px; /* Increased size for better visibility */
flex-shrink: 0; /* Prevent shrinking */
}

.pce-option-button input[type="radio"] {
display: none;
}

.pce-option-content {
display: flex;
flex-direction: column;
align-items: center;
background: #f8fafc;
border: 2px solid #e5e7eb;
border-radius: 12px;
color: #374151;
font-weight: 500;
transition: all 0.3s ease;
text-align: center;
width: 100%;
height: 100%;
justify-content: center;
overflow: hidden;
}

.pce-option-content span {
display: none; /* Hide text for image-only buttons */
}

.pce-option-image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
}

.pce-option-button input[type="radio"]:checked + .pce-option-content {
background: #eff6ff;
border-color: #3b82f6;
color: #1e40af;
}

.pce-option-button input[type="radio"]:checked + .pce-option-content .pce-option-image {
border-color: #3b82f6;
}

.pce-option-button:hover .pce-option-content {
border-color: #d1d5db;
background: #f1f5f9;
}

/* Dropdown Styles */
.pce-option-dropdown-wrapper {
position: relative;
width: 100%;
max-width: 100%;
}

.pce-customization-dropdown {
width: 100%;
padding: 1rem 1.5rem;
padding-right: 3rem;
border: 2px solid #e5e7eb;
border-radius: 12px;
background-color: #ffffff;
font-size: 1rem;
color: #1f2937;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}

.pce-customization-dropdown:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pce-dropdown-arrow {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid #6b7280;
}

/* Additional Details Section */
.pce-additional-details {
font-family: "Manrope", sans-serif;
margin: 0 auto;
padding: 10px 0;
}

.pce-additional-details h3 {
color: #101010;
font-family: "Manrope", sans-serif;
font-size: 24px;
line-height: 150%;
font-weight: 700;
margin-bottom: 20px;
display: none;
}

.pce-details-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

.pce-upgrade-item {
background: #ffffff;
border-radius: 16px;
}

.pce-upgrade-content {
display: flex;
flex-direction: column;
gap: 12px;
}

.pce-upgrade-name {
color: #101010;
text-align: left;
font-family: "Manrope", sans-serif;
font-size: 16px;
line-height: 150%;
font-weight: 700;
margin-bottom: 0.5rem;
}

/* Input Styles */
.pce-dropdown-input,
.pce-dropdown-qty-input {
background: #ffffff;
border-radius: 12px;
border: 1px solid #d6d6d6;
padding: 16px 20px;
color: #2d2929;
font-family: "Manrope", sans-serif;
font-size: 16px;
line-height: 150%;
font-weight: 400;
width: 100%;
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.pce-dropdown-input:focus,
.pce-dropdown-qty-input:focus {
outline: none;
border-color: #2d2929;
}

/* Quantity Selector */
.pce-quantity-selector {
background: #ffffff;
border-radius: 12px;
border: 1px solid #d6d6d6;
padding: 9px 16px;
display: flex;
flex-direction: row;
gap: 8px;
align-items: center;
justify-content: flex-start;
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
position: relative;
}

.pce-quantity-selector::before {
content: "Add to list";
color: #2d2929;
font-family: "Manrope", sans-serif;
font-size: 16px;
line-height: 150%;
font-weight: 400;
flex: 1;
width: 80%;
}

.pce-price-display {
color: #2d2929;
font-family: "Manrope", sans-serif;
font-size: 14px;
font-weight: 500;
margin-right: auto;
}

.pce-qty-btn {
background: #f1f0f0;
border-radius: 2px;
width: 28px;
height: 28px;
cursor: pointer;
border: none;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
color: #313131;
font-weight: 500;
}

.pce-qty-btn:hover {
background: #e5e5e5;
}

.pce-qty-input,
.pce-qty-input-field {
width: 50px !important;
background: #f1f0f0;
border: none;
text-align: center;
font-family: "Manrope", sans-serif;
font-size: 16px;
line-height: 150%;
font-weight: 400;
color: #313131;
appearance: textfield;
border-radius: 4px;
padding: 5px !important;
margin: 0 4px;
}

.pce-qty-input::-webkit-outer-spin-button,
.pce-qty-input::-webkit-inner-spin-button,
.pce-qty-input-field::-webkit-outer-spin-button,
.pce-qty-input-field::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

.pce-qty-input:focus,
.pce-qty-input-field:focus {
outline: none;
background: #e5e5e5;
}

/* Contact Section */
.pce-contact-section {
display: block;
gap: 3rem;
margin: 2rem 0;
}

.pce-contact-form {
margin-bottom: 30px;
}

.pce-form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-bottom: 1rem;
}

.pce-form-group {
display: flex;
flex-direction: column;
}

.pce-form-group label {
font-weight: 600;
color: #374151;
margin-bottom: 0.25rem;
}

.pce-form-group input,
.pce-form-group textarea {
font-family: "Manrope", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 150%;
color: #2d2929;
padding: 10px !important;
border: 2px solid #e5e7eb;
border-radius: 6px;
transition: border-color 0.3s ease;
background: #ffffff;
}

.pce-form-group input:focus,
.pce-form-group textarea:focus {
outline: none;
border-color: #3b82f6;
}

.pce-form-group textarea {
height: auto;
min-height: 120px;
resize: vertical;
}

/* Order Summary */
.pce-order-summary {
background: #EAF9FB;
border-radius: 16px;
padding: 2rem;
position: sticky;
top: 2rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-top: 20px;
}

.pce-order-summary h3 {
display: none;
}

.pce-summary-content {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.pce-selected-plan h4 {
font-family: 'Manrope', sans-serif;
font-style: normal;
font-weight: 600;
font-size: 24px;
line-height: 120%;
letter-spacing: -0.04em;
text-transform: capitalize;
margin-bottom: 10px;
}

.pce-selected-plan p {
color: #6b7280;
font-size: 0.9rem;
margin: 0 0 1rem 0;
}

.pce-summary-specs {
display: flex;
gap: 0.5rem;
}

.pce-summary-specs span {
font-size: 0.9rem;
color: #6b7280;
}

.pcs {
background: #fff;
padding: 5px 15px;
border-radius: 4px;
}

.pce-price-breakdown {
border-top: 1px solid #e5e7eb;
padding-top: 1rem;
}

.pce-price-line {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
font-size: 0.9rem;
color: #6b7280;
}

.pce-price-line:first-child {
display: none;
}

.pce-price-line.pce-total {
border-top: none;
margin-top: 0.5rem;
padding-top: 1rem;
font-size: 40px;
font-weight: 700;
color: #184E44;
}

#summary-customizations {
display: none;
}

#summary-additional-details {
display: none;
}

/* Step Actions */
.pce-step-actions {
display: flex;
justify-content: center;
gap: 1rem;
margin: 1rem 0;
padding-top: 2rem;
}

.pce-continue-btn,
.pce-submit-btn {
gap: 0.5rem;
padding: 1rem 2rem;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
border: none;
cursor: pointer;
font-size: 1rem;
font-family: inherit;
width: 100%;
background: #2ec8e2;
color: #ffffff;
font-family: "Inter", sans-serif;
font-style: normal;
font-weight: 600;
font-size: 18px;
line-height: 28px;
text-align: center;
}

.pce-continue-btn:hover,
.pce-submit-btn:hover {
background: #26b5d1;
transform: translateY(-2px);
box-shadow: 0 6px 20px 0 rgba(46, 200, 226, 0.5);
}

.pce-submit-btn:disabled {
background: #9ca3af;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

.pce-btn-icon {
font-size: 1.1rem;
}

/* Property Grid Styles */
.pce-property-grid {
display: grid;
gap: 2rem;
margin: 2rem 0;
}

.pce-property-grid[data-columns="1"] {
grid-template-columns: 1fr;
}

.pce-property-grid[data-columns="2"] {
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.pce-property-grid[data-columns="3"] {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pce-property-grid[data-columns="4"] {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pce-property-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}

.pce-property-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pce-card-image {
position: relative;
overflow: hidden;
}

.pce-card-image img {
width: 100%;
height: 250px;
object-fit: cover;
object-position: center;
transition: transform 0.3s ease;
}



.pce-category-overlay {
position: absolute;
top: 1rem;
left: 1rem;
display: flex;
gap: 0.5rem;
}

.pce-category-tag {
background: rgba(0, 123, 255, 0.9);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 500;
}

.pce-card-content {
padding: 1.5rem;
}

.pce-plan-name {
font-size: 1.25rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 0.5rem;
}

.pce-area {
color: #6c757d;
margin-bottom: 1rem;
font-size: 0.9rem;
}

.pce-plan-specs {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
}

.pce-spec {
display: flex;
align-items: center;
gap: 0.25rem;
font-size: 0.875rem;
color: #6c757d;
}

.pce-spec img {
width: 16px;
height: 16px;
}

.pce-price-section {
margin-bottom: 1.5rem;
}

.pce-property-price {
font-family: "Manrope", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 140%;
letter-spacing: -0.04em;
color: #062429;
display: block;
}

.pce-price-label {
font-family: "Manrope", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 140%;
letter-spacing: -0.04em;
color: #062429;
}

.pce-customize-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: #1ac1dd;
color: white;
padding: 0.75rem 1.5rem;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
width: 100%;
justify-content: center;
}

.pce-customize-button:hover {
background: #0056b3;
transform: translateY(-1px);
color: white;
text-decoration: none;
}

.pce-no-properties {
text-align: center;
padding: 3rem;
color: #6c757d;
background: white;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Error Styles */
.error {
border-color: #dc3545 !important;
box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
.pce-two-column-layout {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.pce-right-column {
  position: static;
}

.pce-customization-sections {
  grid-template-columns: 1fr;
}

.pce-details-list {
  grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.pce-customizer-container {
  padding: 1rem;
}

.pce-page-title {
  font-size: 2rem;
}

.pce-progress-bar {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pce-plans-grid {
  grid-template-columns: 1fr;
}

.pce-option-buttons {
  grid-template-columns: 1fr;
}

.pce-contact-section {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.pce-form-row {
  grid-template-columns: 1fr;
}

.pce-step-actions {
  flex-direction: column;
  align-items: center;
}

.pce-left-column,
.pce-right-column {
  padding: 1.5rem;
}

.pce-property-grid {
  grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
.pce-upgrade-item {
  padding: 0.75rem;
}

.pce-quantity-selector {
  flex-wrap: wrap;
  justify-content: center;
}

.pce-customizer-container {
  padding: 0.5rem;
}

.pce-page-title {
  font-size: 1.75rem;
}

}
.pce-order-summary{display:none;}
/* WooCommerce-style Magnifying Glass Effect */

/* Fixed WooCommerce-style Magnifying Glass Effect */
  /* Ensure proper positioning context for magnifier */
.pce-card-image,
.img-wrap,
.pce-property-card .pce-card-image {
  position: relative;
  overflow: hidden; /* Prevents lens from showing outside bounds */
}

/* Magnifier lens with improved positioning */
.lens {
  position: absolute !important;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none !important;
  background-repeat: no-repeat;
  background-position: 0 0;
  transition: opacity 120ms ease;
  opacity: 0;
  z-index: 10;
  backdrop-filter: blur(0.5px);
  /* Remove transform that might interfere with positioning */
  transform: none !important;
}

/* Responsive lens sizing */
@media (max-width: 420px) {
  .lens {
    width: 110px;
    height: 110px;
  }
}

/* Ensure images are properly contained */
.pce-card-image img,
.img-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
}

/* Prevent image dragging which can interfere with magnifier */
.zoomable {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}