/**
 * Accommodation Management Platform — Frontend styles.
 * Fully namespaced under .amp-frontend so it never collides with theme
 * styles (Plan Section 13).
 */
.amp-frontend { --amp-accent: #2f5d50; --amp-ink: #1b1f23; --amp-ink-soft: #52585f; --amp-border: #e3e5e8; --amp-bg: #f5f6f7; max-width: 1100px; margin: 0 auto; color: var(--amp-ink); }
.amp-frontend * { box-sizing: border-box; }

.amp-detail__header { margin-bottom: 16px; }
.amp-detail__title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.amp-detail__title { font-size: 30px; font-weight: 700; margin: 0; }
.amp-detail__stars { color: #c8962c; letter-spacing: 2px; }
.amp-detail__subtitle { color: var(--amp-ink-soft); margin: 4px 0 0; }

.amp-detail__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-bottom: 32px; border-radius: 14px; overflow: hidden; }
.amp-detail__gallery-main img { width: 100%; height: 360px; object-fit: cover; display: block; }
.amp-detail__gallery-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.amp-detail__gallery-thumbs img { width: 100%; height: 176px; object-fit: cover; display: block; }

.amp-detail__layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.amp-detail__section { margin-bottom: 32px; }
.amp-detail__section h2 { font-size: 20px; margin-bottom: 12px; }
.amp-detail__prose p { line-height: 1.7; color: var(--amp-ink-soft); }

.amp-detail__facility-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.amp-detail__facility-list li { display: flex; align-items: center; gap: 8px; color: var(--amp-ink-soft); }
.amp-detail__facility-list .dashicons { color: var(--amp-accent); }

.amp-room-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.amp-room-card { border: 1px solid var(--amp-border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(16, 24, 32, 0.05); }
.amp-room-card__image img { width: 100%; height: 140px; object-fit: cover; display: block; }
.amp-room-card__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 6px 0; }
.amp-room-card__gallery img { width: 100%; height: 44px; object-fit: cover; display: block; border-radius: 6px; }
.amp-room-card__body { padding: 14px; }
.amp-room-card__body h3 { margin: 0 0 6px; font-size: 15px; }
.amp-room-card__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--amp-ink-soft); margin-bottom: 6px; }
.amp-room-card__body p { font-size: 13px; color: var(--amp-ink-soft); margin: 0; }

.amp-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e6efec; color: #234339; font-size: 11px; font-weight: 600; }

.amp-policy-list dt { font-weight: 700; margin-top: 12px; }
.amp-policy-list dd { margin: 4px 0 0; color: var(--amp-ink-soft); }

.amp-detail__card { border: 1px solid var(--amp-border); border-radius: 14px; padding: 20px; margin-bottom: 20px; background: #fff; }
.amp-detail__card h3 { margin-top: 0; }
.amp-pricing-card__list { list-style: none; margin: 0 0 16px; padding: 0; }
.amp-pricing-card__list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--amp-border); font-size: 14px; }
.amp-pricing-card__price { font-weight: 700; }
.amp-pricing-card__price small { font-weight: 400; color: var(--amp-ink-soft); }
.amp-btn-cta { width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--amp-accent); color: #fff; font-weight: 700; cursor: not-allowed; opacity: 0.6; }

.amp-map-card iframe { width: 100%; height: 200px; border: 0; border-radius: 10px; }

@media (max-width: 780px) {
	.amp-detail__layout { grid-template-columns: 1fr; }
	.amp-detail__gallery { grid-template-columns: 1fr; }
}
