/* Accommodation Marketplace Pro – Frontend styles */

/* ---------- Base ---------- */
.amp-wrapper,
.amp-auth-wrapper,
.amp-dashboard {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1d2327;
}

.amp-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
}
.amp-notice-info { background: #e7f3fe; border-left: 4px solid #2196F3; }
.amp-notice-success { background: #e8f5e9; border-left: 4px solid #4CAF50; }
.amp-notice-error { background: #ffebee; border-left: 4px solid #f44336; }

/* ---------- Auth forms ---------- */
.amp-auth-wrapper {
	max-width: 480px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 32px 28px;
	box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.amp-auth-wrapper h2 {
	margin: 0 0 24px;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
}

.amp-form-row {
	margin-bottom: 16px;
}
.amp-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	font-size: 14px;
}
.amp-form-row .required { color: #d63638; }

.amp-form-row input[type="text"],
.amp-form-row input[type="email"],
.amp-form-row input[type="password"],
.amp-form-row input[type="tel"],
.amp-form-row input[type="date"],
.amp-form-row input[type="number"],
.amp-form-row textarea,
.amp-form-row select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
	transition: border-color .15s;
}
.amp-form-row input:focus,
.amp-form-row textarea:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.amp-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 520px) {
	.amp-form-grid { grid-template-columns: 1fr; }
}

.amp-role-choice .amp-radio {
	display: block;
	margin: 8px 0;
	font-weight: 400;
}
.amp-checkbox label { font-weight: 400; }

.amp-btn {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
	transition: background .15s, border-color .15s;
}
.amp-btn:hover { background: #f0f0f1; }
.amp-btn-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}
.amp-btn-primary:hover { background: #135e96; border-color: #135e96; color: #fff; }
.amp-btn-secondary {
	background: #fff;
	border-color: #2271b1;
	color: #2271b1;
}

.amp-auth-links {
	margin-top: 20px;
	text-align: center;
	font-size: 14px;
}
.amp-auth-links a { color: #2271b1; }

/* ---------- Dashboard ---------- */
.amp-dashboard-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}
.amp-dashboard-header h1 {
	margin: 0;
	font-size: 1.6rem;
}
.amp-dashboard-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0;
}

.amp-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}
.amp-dashboard-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.amp-dashboard-card h3 {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 500;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.amp-stat {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 4px;
}
.amp-muted {
	font-size: 13px;
	color: #646970;
	margin: 0;
}

.amp-dashboard-section {
	margin-top: 24px;
}
.amp-quick-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.amp-quick-links a {
	display: inline-block;
	padding: 8px 14px;
	background: #f0f0f1;
	border-radius: 6px;
	color: #1d2327;
	text-decoration: none;
	font-size: 14px;
}
.amp-quick-links a:hover { background: #e0e0e0; }

/* ---------- Profile ---------- */
.amp-profile-section {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e0e0e0;
}
.amp-profile-photo {
	margin-bottom: 20px;
}
.amp-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin-bottom: 8px;
}
.amp-avatar-placeholder {
	background: #2271b1;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	font-weight: 600;
}
.amp-help {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.amp-auth-wrapper { padding: 24px 16px; }
	.amp-dashboard-header { flex-direction: column; align-items: flex-start; }
}

/* ---------- Property Wizard ---------- */
.amp-wizard { max-width: 800px; margin: 0 auto; padding: 24px 16px; }
.amp-wizard-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
}
.amp-step-btn {
	padding: 8px 12px;
	border: 1px solid #c3c4c7;
	background: #f6f7f7;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}
.amp-step-btn.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}
.amp-wizard-panel { display: none; }
.amp-wizard-panel.active { display: block; }
.amp-wizard-nav {
	display: flex;
	gap: 10px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
	flex-wrap: wrap;
}
.amp-amenity-group {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 12px;
}
.amp-amenity-group legend {
	font-weight: 600;
	padding: 0 6px;
}
.amp-amenity-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
}

/* Gallery */
.amp-media-upload { margin-bottom: 16px; }
.amp-gallery-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}
.amp-gallery-item {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
}
.amp-gallery-item.is-featured { border-color: #2271b1; }
.amp-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.amp-gallery-item button {
	position: absolute;
	top: 2px;
	border: none;
	background: rgba(0,0,0,.6);
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}
.amp-set-featured { right: 28px; }
.amp-remove-image { right: 2px; }

/* ---------- My Properties table ---------- */
.amp-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.amp-table th,
.amp-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
	font-size: 14px;
}
.amp-table th {
	background: #f6f7f7;
	font-weight: 600;
}
.amp-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}
.amp-status-publish { background: #e8f5e9; color: #2e7d32; }
.amp-status-draft { background: #f5f5f5; color: #616161; }
.amp-status-amp_pending_review { background: #fff8e1; color: #f57f17; }
.amp-actions .amp-btn { margin-right: 4px; margin-bottom: 4px; }

/* ---------- Single Property ---------- */
.amp-single-property { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.amp-property-title { margin: 0 0 8px; font-size: 1.8rem; }
.amp-property-meta-bar {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	color: #646970;
	margin-bottom: 20px;
	font-size: 14px;
}
.amp-property-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 8px;
	margin-bottom: 28px;
	border-radius: 12px;
	overflow: hidden;
}
.amp-property-gallery .is-main {
	grid-row: span 2;
}
.amp-property-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 160px;
}
@media (max-width: 700px) {
	.amp-property-gallery {
		grid-template-columns: 1fr 1fr;
	}
	.amp-property-gallery .is-main {
		grid-column: span 2;
		grid-row: auto;
	}
}
.amp-property-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
}
@media (max-width: 800px) {
	.amp-property-layout { grid-template-columns: 1fr; }
}
.amp-overview-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	font-weight: 500;
}
.amp-amenities-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
	list-style: none;
	padding: 0;
}
.amp-amenities-list li:before {
	content: "✓ ";
	color: #2271b1;
}
.amp-booking-widget {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
	position: sticky;
	top: 24px;
}
.amp-booking-price {
	font-size: 1.4rem;
	margin-bottom: 12px;
}
.amp-booking-price span { font-size: 14px; font-weight: 400; color: #646970; }

/* Property cards */
.amp-property-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	transition: box-shadow .2s;
}
.amp-property-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.amp-property-card-link { text-decoration: none; color: inherit; display: block; }
.amp-property-card-image {
	aspect-ratio: 4/3;
	background: #f0f0f1;
	overflow: hidden;
}
.amp-property-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.amp-property-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #646970;
}
.amp-property-card-body { padding: 14px; }
.amp-property-card-title {
	margin: 0 0 4px;
	font-size: 1rem;
}
.amp-property-card-location,
.amp-property-card-meta {
	margin: 0 0 4px;
	font-size: 13px;
	color: #646970;
}
.amp-property-card-price { margin: 8px 0 0; }

/* ---------- Search ---------- */
.amp-search-page { max-width: 1200px; margin: 0 auto; padding: 24px 16px; box-sizing: border-box; }

.amp-search-form {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,.04);
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}
.amp-search-primary {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
	gap: 12px;
	align-items: end;
}
.amp-search-primary > * { min-width: 0; }
.amp-search-submit .amp-btn { width: 100%; }
@media (max-width: 800px) {
	.amp-search-primary { grid-template-columns: 1fr 1fr; }
	.amp-search-destination,
	.amp-search-submit { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.amp-search-primary { grid-template-columns: 1fr; }
	.amp-search-destination,
	.amp-search-submit { grid-column: auto; }
	.amp-search-form { padding: 14px; }
	.amp-search-page { padding: 16px 12px; }
}
.amp-search-filters {
	margin-top: 16px;
	border-top: 1px solid #e0e0e0;
	padding-top: 12px;
}
.amp-search-filters summary {
	cursor: pointer;
	font-weight: 500;
	color: #2271b1;
}
.amp-filters-body { margin-top: 16px; }
.amp-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.amp-results-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.amp-results-count { margin: 0; font-weight: 500; }
.amp-results-controls {
	display: flex;
	gap: 12px;
	align-items: center;
}
.amp-view-toggle {
	display: flex;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	overflow: hidden;
}
.amp-view-btn {
	border: none;
	background: #f6f7f7;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}
.amp-view-btn.active {
	background: #2271b1;
	color: #fff;
}

.amp-properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.amp-properties-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.amp-properties-list .amp-property-card {
	display: grid;
	grid-template-columns: 220px 1fr;
}
.amp-properties-list .amp-property-card-image {
	aspect-ratio: auto;
	height: 100%;
	min-height: 140px;
}
@media (max-width: 600px) {
	.amp-properties-list .amp-property-card {
		grid-template-columns: 1fr;
	}
}

.amp-map-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 16px;
	min-height: 480px;
}
@media (max-width: 900px) {
	.amp-map-layout { grid-template-columns: 1fr; }
}
.amp-search-map {
	height: 520px;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
	z-index: 1;
}
.amp-map-list {
	max-height: 520px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.amp-map-popup { font-size: 13px; }

.amp-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 28px;
	justify-content: center;
}
.amp-page {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	text-decoration: none;
	color: #1d2327;
	font-size: 14px;
}
.amp-page.active,
.amp-page:hover {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

/* ---------- Host Calendar ---------- */
.amp-host-calendar { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.amp-cal-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 16px 0;
}
.amp-cal-legend {
	display: flex;
	gap: 16px;
	margin-bottom: 12px;
	font-size: 13px;
}
.amp-leg::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 4px;
	vertical-align: middle;
}
.amp-leg-available::before { background: #e8f5e9; border: 1px solid #c8e6c9; }
.amp-leg-blocked::before { background: #ffebee; border: 1px solid #ffcdd2; }
.amp-leg-booked::before { background: #e3f2fd; border: 1px solid #90caf9; }

.amp-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	margin-bottom: 4px;
}
.amp-cal-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.amp-cal-day {
	aspect-ratio: 1;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #e8f5e9;
	cursor: pointer;
	padding: 4px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.amp-cal-day.is-blocked { background: #ffebee; color: #c62828; }
.amp-cal-day.is-booked { background: #e3f2fd; color: #1565c0; cursor: default; }
.amp-cal-day.is-selected { outline: 2px solid #2271b1; background: #bbdefb; }
.amp-cal-empty { aspect-ratio: 1; }
.amp-cal-price { font-size: 10px; color: #646970; }
.amp-cal-actions {
	margin-top: 24px;
	padding: 16px;
	background: #f6f7f7;
	border-radius: 8px;
}
.amp-cal-action-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Booking widget */
.amp-btn-block { width: 100%; margin-top: 8px; }
.amp-price-breakdown {
	font-size: 14px;
	margin: 12px 0;
	padding: 12px;
	background: #f6f7f7;
	border-radius: 6px;
}
.amp-price-breakdown .amp-total {
	border-top: 1px solid #e0e0e0;
	padding-top: 8px;
	margin-top: 8px;
}

/* ---------- Reservations ---------- */
.amp-trip-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.amp-trip-filters a,
.amp-filter-link {
	padding: 6px 12px;
	border-radius: 6px;
	background: #f0f0f1;
	text-decoration: none;
	color: #1d2327;
	font-size: 13px;
}
.amp-trip-filters a.active,
.amp-filter-link.active {
	background: #2271b1;
	color: #fff;
}
.amp-reservation-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
@media (max-width: 500px) {
	.amp-reservation-card { grid-template-columns: 1fr; }
}
.amp-res-image img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
}
.amp-res-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.amp-res-meta { margin: 0 0 6px; font-size: 14px; color: #646970; }
.amp-res-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.amp-status-confirmed { background: #e8f5e9; color: #2e7d32; }
.amp-status-pending_payment,
.amp-status-pending,
.amp-status-awaiting_host_approval { background: #fff8e1; color: #f57f17; }
.amp-status-cancelled_by_guest,
.amp-status-cancelled_by_host,
.amp-status-rejected,
.amp-status-expired { background: #ffebee; color: #c62828; }
.amp-status-completed { background: #e3f2fd; color: #1565c0; }

/* My Trips */
.amp-trips-list { display: flex; flex-direction: column; gap: 12px; }
.amp-trip-card {
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 14px;
	align-items: flex-start;
}
.amp-trip-thumb {
	width: 96px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
}
.amp-trip-body { flex: 1; }
.amp-trip-body h4 { margin: 0 0 4px; }
.amp-trip-dates { margin: 0 0 6px; color: #646970; font-size: 14px; }
.amp-inline-form { display: inline; margin-top: 8px; }
.amp-status-confirmed { background: #e8f5e9; color: #2e7d32; }
.amp-status-pending_payment, .amp-status-awaiting_host_approval { background: #fff8e1; color: #f57f17; }
.amp-status-cancelled_by_guest, .amp-status-cancelled_by_host, .amp-status-rejected { background: #ffebee; color: #c62828; }
.amp-status-completed { background: #e3f2fd; color: #1565c0; }

/* Messages */
.amp-messages-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 0;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	min-height: 420px;
	background: #fff;
}
@media (max-width: 700px) {
	.amp-messages-layout { grid-template-columns: 1fr; }
}
.amp-messages-list {
	border-right: 1px solid #e0e0e0;
	padding: 16px;
	background: #fafafa;
}
.amp-messages-list h2 { margin: 0 0 12px; font-size: 1.1rem; }
.amp-conv-list { list-style: none; padding: 0; margin: 0; }
.amp-conv-item { margin-bottom: 4px; }
.amp-conv-btn {
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
}
.amp-conv-item.active .amp-conv-btn,
.amp-conv-btn:hover { background: #e7f3fe; }
.amp-conv-subject {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 2px;
}
.amp-unread-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #2271b1;
	border-radius: 50%;
	margin-left: 6px;
}
.amp-messages-thread {
	display: flex;
	flex-direction: column;
	padding: 16px;
}
.amp-thread-messages {
	flex: 1;
	overflow-y: auto;
	max-height: 360px;
	margin: 12px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.amp-msg {
	max-width: 75%;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
}
.amp-msg.is-mine {
	align-self: flex-end;
	background: #2271b1;
	color: #fff;
}
.amp-msg.is-theirs {
	align-self: flex-start;
	background: #f0f0f1;
}
.amp-msg-meta {
	font-size: 11px;
	opacity: 0.8;
	margin-bottom: 4px;
}
.amp-message-form {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}
.amp-message-form textarea {
	flex: 1;
	padding: 10px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	resize: vertical;
}

/* Messaging */
.amp-messages {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 0;
	min-height: 480px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	max-width: 960px;
	margin: 24px auto;
}
@media (max-width: 700px) {
	.amp-messages { grid-template-columns: 1fr; }
}
.amp-msg-list {
	background: #f6f7f7;
	border-right: 1px solid #e0e0e0;
	padding: 16px;
	overflow-y: auto;
}
.amp-msg-list h2 { margin-top: 0; font-size: 18px; }
.amp-msg-list ul { list-style: none; margin: 0; padding: 0; }
.amp-msg-list li a {
	display: block;
	padding: 10px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}
.amp-msg-list li.active a,
.amp-msg-list li a:hover { background: #fff; }
.amp-msg-list li.unread a { font-weight: 600; }
.amp-msg-subject { display: block; font-size: 12px; color: #646970; font-weight: 400; }
.amp-msg-thread {
	display: flex;
	flex-direction: column;
	padding: 16px;
}
.amp-msg-thread-body {
	flex: 1;
	overflow-y: auto;
	max-height: 400px;
	margin-bottom: 12px;
}
.amp-msg {
	margin-bottom: 12px;
	padding: 10px 12px;
	background: #f0f0f1;
	border-radius: 10px;
	max-width: 85%;
}
.amp-msg.mine {
	background: #e3f2fd;
	margin-left: auto;
}
.amp-msg-meta { font-size: 11px; color: #646970; margin-bottom: 4px; }
.amp-msg-compose {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}
.amp-msg-compose textarea {
	flex: 1;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 8px;
}

/* Notifications */
.amp-notifications { max-width: 640px; margin: 24px auto; padding: 0 16px; }
.amp-notifications-header { display: flex; justify-content: space-between; align-items: center; }
.amp-notif-list { list-style: none; margin: 0; padding: 0; }
.amp-notif-list li {
	padding: 12px;
	border-bottom: 1px solid #e0e0e0;
}
.amp-notif-list li.unread { background: #f0f6fc; }
.amp-notif-msg { display: block; color: #646970; font-size: 14px; }

/* Reviews */
.amp-stars { color: #f5a623; letter-spacing: 1px; }
.amp-reviews { margin-top: 40px; }
.amp-rating-summary { font-size: 16px; font-weight: 400; margin-left: 8px; }
.amp-rating-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	font-size: 14px;
}
.amp-review-cards { display: flex; flex-direction: column; gap: 16px; }
.amp-review-card {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 16px;
	background: #fff;
}
.amp-review-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.amp-review-card time { color: #646970; font-size: 13px; margin-left: auto; }
.amp-host-response {
	margin-top: 12px;
	padding: 12px;
	background: #f6f7f7;
	border-radius: 8px;
	font-size: 14px;
}
.amp-host-response-form { margin-top: 12px; }
.amp-host-response-form textarea { width: 100%; margin-bottom: 8px; }
.amp-write-review { margin-top: 8px; }
.amp-write-review summary { display: inline-block; cursor: pointer; list-style: none; }
.amp-review-form { margin-top: 12px; padding: 16px; background: #f6f7f7; border-radius: 8px; }
.amp-property-card-rating { font-size: 13px; margin: 4px 0; }

/* Earnings */
.amp-earnings-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 20px 0;
}
.amp-stat {
	background: #f6f7f7;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
}
.amp-stat-label { display: block; font-size: 12px; color: #646970; margin-bottom: 4px; }
.amp-stat strong { font-size: 20px; }

/* Wishlist */
.amp-property-card-image { position: relative; }
.amp-wishlist-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	border: none;
	background: rgba(255,255,255,.9);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0,0,0,.15);
	z-index: 2;
}
.amp-wishlist-btn.is-active { color: #e53935; }

/* Mobile containment */
.amp-search-page,
.amp-dashboard,
.amp-wrapper,
.amp-my-trips,
.amp-host-reservations,
.amp-my-properties {
	max-width: 100%;
	box-sizing: border-box;
}
.amp-table {
	width: 100%;
	max-width: 100%;
}
.amp-host-reservations,
.amp-my-properties .amp-properties-table-wrap,
.amp-trips-list {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}
@media (max-width: 600px) {
	.amp-dashboard-grid { grid-template-columns: 1fr; }
	.amp-property-gallery { grid-template-columns: 1fr; }
	.amp-booking-widget { position: static; }
}

/* ========== Site-wide mobile fit ========== */
.amp-search-page,
.amp-dashboard,
.amp-wrapper,
.amp-single-property,
.amp-wizard,
.amp-my-trips,
.amp-messages,
.amp-messages-layout,
.amp-auth-wrapper {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}
.amp-search-page *,
.amp-dashboard *,
.amp-single-property *,
.amp-wizard *,
.amp-messages *,
.amp-messages-layout * {
	box-sizing: border-box;
}
.amp-search-page img,
.amp-dashboard img,
.amp-single-property img,
.amp-trip-thumb,
.leaflet-container {
	max-width: 100%;
}
.amp-table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 700px) {
	.amp-trip-card {
		flex-direction: column;
	}
	.amp-trip-thumb {
		width: 100%;
		height: 160px;
	}
	.amp-message-form {
		flex-direction: column;
		align-items: stretch;
	}
	.amp-message-form textarea,
	.amp-message-form button {
		width: 100%;
	}
	.amp-msg {
		max-width: 100%;
	}
	.amp-property-gallery {
		grid-template-columns: 1fr !important;
	}
	.amp-property-gallery .is-main {
		grid-column: auto !important;
	}
	.amp-dashboard-grid,
	.amp-properties-grid,
	.amp-amenities-list,
	.amp-form-grid {
		grid-template-columns: 1fr !important;
	}
	.amp-cal-nav,
	.amp-wizard-nav,
	.amp-wizard-steps {
		flex-wrap: wrap;
	}
	.amp-page-title,
	.amp-property-title,
	.amp-dashboard-header h1 {
		overflow-wrap: anywhere;
		word-break: break-word;
	}
}
