/* Timeshare Rental Manager — front-end styles.
   Brand: purple #4c3483, orange #f39200, red #e30613 */

.tsro-wrap { width: 92%; max-width: 1300px; margin: 30px auto; font-family: 'Open Sans', system-ui, sans-serif; }
.tsro-narrow { max-width: 600px; }

.tsro-h1 { color: #4c3483; text-align: center; margin-top: 30px; }
.tsro-h2 { color: #4c3483; text-align: center; }
.tsro-h3 { color: #4c3483; margin-top: 24px; }
.tsro-subtle { text-align: center; color: #555; max-width: 800px; margin: 10px auto 20px; }
.tsro-center { text-align: center; }
.tsro-nowrap { white-space: nowrap; }

.tsro-link-red { color: #e30613; text-decoration: none; font-weight: 500; }
.tsro-link-red:hover { color: #f39200; text-decoration: underline; }
.tsro-link-purple { color: #4c3483; text-decoration: none; font-weight: 600; }
.tsro-link-purple:hover { color: #f39200; text-decoration: underline; }

/* Notices */
.tsro-notice { padding: 12px 16px; border-radius: 4px; margin: 16px auto; max-width: 800px; font-weight: 500; }
.tsro-notice-success { background: #e7f6ec; color: #1a7f37; border: 1px solid #b7e0c4; }
.tsro-notice-error { background: #fdecec; color: #b3261e; border: 1px solid #f4c2c0; }

/* Buttons */
.tsro-btn { display: inline-block; padding: 11px 20px; background: #4c3483; color: #fff; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.tsro-btn:hover { background: #f39200; color: #fff; }
.tsro-btn-sm { padding: 6px 14px; font-size: .9rem; }

/* Directory columns */
.tsro-state-columns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 24px; margin-top: 30px; }
.tsro-state-block { padding: 10px; }
.tsro-state-title { text-align: center; font-size: 1.1rem; margin: 20px 0 10px; }
.tsro-city-list { list-style: none; padding: 0; margin: 0 0 16px; text-align: center; }
.tsro-city-list li { margin: 3px 0; }

/* Listing table */
.tsro-table-scroll { overflow-x: auto; margin-top: 30px; }
.tsro-listing-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tsro-listing-table th, .tsro-listing-table td { border: 1px solid #ccc; padding: 8px; text-align: center; vertical-align: middle; }
.tsro-listing-table th { background: #4c3483; color: #fff; }
.tsro-accordion-content { display: none; background: #f8f8f8; text-align: left; }
.tsro-accordion-arrow { cursor: pointer; font-size: 16px; }
.tsro-show-mobile { display: none; }
.tsro-back { text-align: center; margin-top: 20px; }

/* Forms */
.tsro-form label { display: block; font-weight: 500; color: #333; margin-top: 12px; }
.tsro-form input, .tsro-form select, .tsro-form textarea {
	width: 100%; padding: 8px; margin: 6px 0; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 15px;
}
.tsro-form .tsro-btn { width: 100%; margin-top: 18px; }
.tsro-radio-row { margin: 8px 0; }
.tsro-inline { display: inline-block; margin-right: 20px; }
.tsro-inline input { width: auto; margin-right: 6px; }
.tsro-fee-note { background: #f4f1fb; border: 1px solid #d9cff0; color: #4c3483; padding: 12px 16px; border-radius: 4px; font-size: .95rem; }
.tsro-listing-meta { line-height: 1.7; }

.tsro-amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.tsro-amenity { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 400; }
.tsro-amenity input { width: auto; margin: 0; }

/* Dashboard */
.tsro-account { background: #f8f8f8; border: 1px solid #eee; padding: 16px 20px; border-radius: 6px; margin: 20px 0; }
.tsro-pay-box { border: 2px solid #4c3483; border-radius: 6px; padding: 16px 20px; margin: 20px 0; }
.tsro-dash-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tsro-dash-table th, .tsro-dash-table td { border: 1px solid #ccc; padding: 8px; text-align: center; }
.tsro-dash-table th { background: #4c3483; color: #fff; }
.tsro-pay-total { font-size: 1.1rem; font-weight: 700; color: #4c3483; text-align: right; margin: 14px 0; }
.tsro-status-tsro_expired { background: #ffecec; }

/* Status badges */
.tsro-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.tsro-badge-publish { background: #e7f6ec; color: #1a7f37; }
.tsro-badge-pending { background: #fff4e0; color: #a35c00; }
.tsro-badge-tsro_unpaid { background: #eee; color: #555; }
.tsro-badge-tsro_expired { background: #fdecec; color: #b3261e; }

@media (max-width: 1024px) {
	.tsro-state-columns { grid-template-columns: repeat(3, 1fr); }
	.tsro-hide-mobile { display: none !important; }
	.tsro-show-mobile { display: table-cell; }
}
@media (max-width: 768px) {
	.tsro-state-columns { grid-template-columns: repeat(2, 1fr); }
	.tsro-amenity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.tsro-state-columns { grid-template-columns: 1fr; }
}
