.flat-detail { padding: 60px 0 80px; }
.flat-detail .back-link { float: right; color: #8dc63f; font-size: 15px; font-weight: 500; margin-left: auto; }
.flat-detail .back-link:hover { color: #0b233d; }
.flat-detail .back-link i { margin-right: 4px; }

.flat-header { margin-bottom: 36px; }
.flat-header h1 { font-size: 28px; font-weight: bold; color: #0b233d; margin: 0; display: inline; margin-right: 12px; }
.flat-header .flat-type { font-size: 20px; color: #8dc63f; font-weight: 500; margin: 0; display: inline; }
.flat-header .flat-title-line { margin-bottom: 8px; }

.flat-status-badge { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; vertical-align: middle; margin-left: 12px; }
.flat-status-badge.free { background: #e8f5e0; color: #4a8c1c; }
.flat-status-badge.reserved { background: #fff3cd; color: #856404; }
.flat-status-badge.sold { background: #f8d7da; color: #721c24; }

.flat-plan-col { text-align: center; }
.flat-plan-img { width: 100%; height: auto; border: 1px solid #eee; border-radius: 8px; }

.flat-price-section { background: #0b233d; color: #fff; border-radius: 8px; padding: 28px 32px; margin-bottom: 24px; }
.flat-price-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.flat-price-right .flat-btn { white-space: nowrap; }
.flat-price-main { font-size: 36px; font-weight: bold; color: #8dc63f; margin: 0; line-height: 1.1; display: inline; }
.flat-price-original { font-size: 18px; color: rgba(255,255,255,0.7); text-decoration: line-through; margin: 0; display: inline; margin-left: 12px; }
.flat-price-note { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 8px; }
.flat-price-hidden { font-size: 18px; color: rgba(255,255,255,0.6); margin: 0; }

.flat-stats { display: flex; flex-wrap: nowrap; gap: 0; margin-bottom: 24px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.flat-stat { flex: 1 1 0; text-align: center; padding: 16px 8px; border-right: 1px solid #eee; }
.flat-stat:last-child { border-right: none; }
.flat-stat-value { font-size: 22px; font-weight: bold; color: #0b233d; }
.flat-stat-label { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.flat-rooms { margin-bottom: 24px; }
.flat-rooms h3 { font-size: 16px; font-weight: bold; color: #0b233d; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.room-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.room-row:last-child { border-bottom: none; }
.room-row .room-name { color: #555; }
.room-row .room-name span { color: #999; margin-right: 6px; font-size: 13px; }
.room-row .room-area { font-weight: 500; color: #0b233d; }
.room-row.room-total { border-top: 2px solid #0b233d; border-bottom: none; padding-top: 12px; margin-top: 4px; }
.room-row.room-total .room-name,
.room-row.room-total .room-area { font-weight: bold; color: #0b233d; }

.flat-extras { margin-bottom: 28px; }
.flat-extras h3 { font-size: 16px; font-weight: bold; color: #0b233d; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.extra-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.extra-row:last-child { border-bottom: none; }
.extra-row .extra-name { color: #555; }
.extra-row .extra-price { font-weight: 500; color: #0b233d; }

.flat-seo-text { margin-top: 48px; padding-top: 32px; border-top: 1px solid #eee; }
.flat-seo-text h2 { font-size: 22px; font-weight: bold; color: #0b233d; margin-bottom: 12px; }
.flat-seo-text p { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 12px; }

.flat-actions { display: flex; flex-direction: column; gap: 10px; }
.flat-btn { display: block; text-align: center; padding: 14px 24px; border-radius: 6px; font-size: 16px; font-weight: bold; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; width: 100% !important; }
.flat-btn-primary { background: #8dc63f; color: #fff; }
.flat-btn-primary:hover { background: #7ab535; color: #fff; text-decoration: none; }
.flat-btn-outline { background: transparent; color: #0b233d; border: 2px solid #0b233d; }
.flat-btn-outline:hover { background: #0b233d; color: #fff; text-decoration: none; }
.flat-btn-disabled { background: #ddd; color: #999; cursor: default; }
.flat-btn i { margin-right: 6px; }

@media (max-width: 991px) {
  .flat-plan-col { margin-bottom: 32px; }
    .flat-header h1 { font-size: 28px; }
  .flat-price-main { font-size: 28px; }
}
@media (max-width: 767px) {
  .flat-detail { padding: 30px 0 50px; }
  .flat-stats { flex-wrap: wrap; }
  .flat-stat { flex: 1 1 33.33%; border-bottom: 1px solid #eee; }
  .flat-stat:last-child { border-bottom: none; }
    .flat-stat-value { font-size: 18px; }
  .flat-stat-label { font-size: 10px; }
}
