/* ====================================================================
   PROPERTY COST CALCULATOR STYLES - EXTRACTED FROM MAIN CSS
   ==================================================================== */

/* Cost Calculator */
.cost-calculator-container {
  width: 100%;
  max-width: 100%;
  color: var(--text-white);
}

.cost-input-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-small);
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-input-section h4 {
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-input-section h4 i {
  color: var(--success-green);
  font-size: 1.1rem;
}

.cost-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cost-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-label {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cost-input {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-small);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cost-input:focus {
  outline: none;
  border-color: var(--success-green);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.2);
  transform: translateY(-1px);
}

.cost-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: normal;
}

.bond-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-small);
  padding: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.bond-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius-small);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bond-toggle-btn.active {
  background: var(--gradient-success);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.bond-toggle-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.interest-rate-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.interest-rate-slider {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#interestSlider, #interestSliderStandalone {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

#interestSlider::-webkit-slider-thumb, #interestSliderStandalone::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-success);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6, 214, 160, 0.4);
  transition: all 0.3s ease;
}

#interestSlider::-webkit-slider-thumb:hover, #interestSliderStandalone::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.6);
}

#interestSlider::-moz-range-thumb, #interestSliderStandalone::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-success);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(6, 214, 160, 0.4);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
}

.cost-info-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(46, 134, 171, 0.3);
  flex-shrink: 0;
}

.cost-info-btn:hover {
  background: var(--gradient-success);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(6, 214, 160, 0.4);
}

.cost-info-btn i {
  font-size: 0.7rem;
}

.cost-info-btn.small {
  width: 16px;
  height: 16px;
}

.cost-info-btn.small i {
  font-size: 0.6rem;
}

.cost-section-container {
  background: var(--gradient-dark);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.cost-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.cost-section-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cost-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 700;
}

.cost-section-title i {
  color: var(--success-green);
  font-size: 1rem;
}

.cost-section-summary {
  background: rgba(6, 214, 160, 0.2);
  color: var(--success-green);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 15px;
}

.cost-section-toggle {
  color: var(--gold-accent);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cost-section-toggle.collapsed {
  transform: rotate(-90deg);
}

.cost-section-content {
  overflow: hidden;
  transition: all 0.3s ease;
}

.cost-section-content.expanded {
  max-height: none;
  padding: 25px;
}

.cost-section-content.collapsed {
  max-height: 0;
  padding: 0 25px;
}

.cost-breakdown-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cost-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.cost-breakdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.cost-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.cost-item-label {
  color: var(--text-white);
  font-weight: 500;
  font-size: 1rem;
}

.cost-item-amount {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: right;
}

.cost-breakdown-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(40, 167, 69, 0.1));
  border-radius: var(--border-radius-small);
  border: 2px solid rgba(6, 214, 160, 0.3);
  margin-top: 10px;
}

.cost-total-label {
  color: var(--success-green);
  font-weight: 700;
  font-size: 1.2rem;
}

.cost-total-amount {
  color: var(--success-green);
  font-weight: 900;
  font-size: 1.4rem;
}

.cost-summary-container {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(40, 167, 69, 0.05));
  border-radius: var(--border-radius);
  padding: 25px;
  margin-top: 20px;
  border: 2px solid rgba(6, 214, 160, 0.2);
}

.cost-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cost-summary-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.cost-summary-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cost-summary-item.monthly {
  border-left: 4px solid var(--success-green);
}

.cost-summary-item.once-off {
  border-left: 4px solid var(--warning-orange);
}

.cost-summary-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.cost-summary-amount {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.3rem;
}

.cost-summary-item.monthly .cost-summary-amount {
  color: var(--success-green);
}

.cost-summary-item.once-off .cost-summary-amount {
  color: var(--warning-orange);
}

.calculator-description {
  background: var(--gradient-dark);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 25px;
  margin-top: 0;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.calculator-description p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

#standaloneCostCalculator {
  background: var(--gradient-dark);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

#standaloneCostCalculator .cost-calculator-container {
  padding: 0;
}

#standaloneCostCalculator .cost-input-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#standaloneCostCalculator .cost-section-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#standaloneCostCalculator .cost-section-container:last-child {
  border-bottom: none;
}

#standaloneCostCalculator .cost-summary-container {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(40, 167, 69, 0.05));
  border-radius: 0;
  margin-top: 0;
  border: none;
  border-top: 2px solid rgba(6, 214, 160, 0.3);
}

#standaloneCostCalculator .financial-disclaimer {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(40, 167, 69, 0.1));
  border: 1px solid rgba(6, 214, 160, 0.2);
  border-radius: var(--border-radius-small);
  padding: 20px;
  margin: 20px 0 max(120px, env(safe-area-inset-bottom, 0px) + 80px) 0;
}

#standaloneCostCalculator .disclaimer-box h4 {
  color: var(--success-green);
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

#standaloneCostCalculator .disclaimer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#standaloneCostCalculator .disclaimer-box li {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

#standaloneCostCalculator .disclaimer-box li::before {
  content: '•';
  color: var(--success-green);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Financial Overview - Property Detail View */
.financial-overview {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-small);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.financial-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.financial-item label {
  color: var(--text-white);
  font-weight: 600;
  font-size: 1rem;
}

.financial-item .value {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.1rem;
}

.financial-item .price-highlight {
  color: var(--success-green);
  font-size: 1.3rem;
}

.financial-disclaimer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-small);
  padding: 20px;
  margin-top: 20px;
}

.disclaimer-box {
  color: var(--text-light);
}

.disclaimer-box h4 {
  color: var(--text-white);
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.disclaimer-box li {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.disclaimer-box li::before {
  content: '•';
  color: var(--success-green);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Responsive Design */
@media (min-width: 768px) {
  .cost-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .cost-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .cost-section-header {
    padding: 15px 20px;
  }
  
  .cost-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 1rem;
  }
  
  .cost-section-summary {
    margin-left: 0;
    margin-top: 5px;
  }
  
  .cost-breakdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
  
  .cost-item-amount {
    align-self: flex-end;
    text-align: right;
  }
  
  .cost-breakdown-total {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .cost-summary-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  #standaloneCostCalculator .financial-disclaimer {
    margin-bottom: max(140px, env(safe-area-inset-bottom, 0px) + 100px);
    padding: 15px;
  }
  
  #standaloneCostCalculator .disclaimer-box li {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .financial-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .financial-item .price-highlight {
    font-size: 1.2rem;
  }
}

/* Subsection Styles */
.cost-subsection {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-subsection:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.cost-subsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(6, 214, 160, 0.1);
  border-radius: var(--border-radius-small);
  margin-bottom: 10px;
  border-left: 3px solid var(--success-green);
}

.subsection-title {
  color: var(--success-green);
  font-weight: 700;
  font-size: 1rem;
}

.subsection-total {
  color: var(--success-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.cost-breakdown-item.sub-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  margin-left: 10px;
}

.cost-breakdown-item.sub-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}