/* ══════════════════════════════════════════
   Style dùng chung cho các trang mới:
   Tour Detail, News, Đăng nhập/Đăng ký, Hồ sơ...
   Kế thừa màu sắc & font hiện có của theme (ionicons, bootstrap3)
   ══════════════════════════════════════════ */

.page-section { padding: 70px 0; }

/* ── Tour Detail ── */
.tour-detail-gallery img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 14px;
  max-height: 420px;
  object-fit: cover;
}
.tour-detail-album { display: flex; gap: 10px; flex-wrap: wrap; }
.tour-detail-album img {
  width: 110px; height: 80px; object-fit: cover; border-radius: 4px;
  cursor: pointer; transition: .2s;
}
.tour-detail-album img:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(0,0,0,.15); }

.tour-detail-title { font-size: 26px; font-weight: 700; color: #333; margin-bottom: 10px; }
.tour-detail-price { font-size: 24px; font-weight: 700; color: #60c9eb; margin-bottom: 16px; }
.tour-detail-meta { list-style:none; padding:0; margin:0 0 20px; }
.tour-detail-meta li { padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; color:#555; }
.tour-detail-meta li i { color:#60c9eb; width:20px; display:inline-block; }
.tour-detail-section-title { font-size:18px; font-weight:700; color:#333; margin: 26px 0 12px; border-left:4px solid #60c9eb; padding-left:10px; }
.tour-detail-block { font-size:14px; line-height:1.8; color:#666; white-space:pre-line; }
.badge-tour-status { display:inline-block; padding:5px 14px; border-radius:99px; font-size:12px; font-weight:700; margin-bottom:14px; }
.badge-tour-status.open { background:#e7f9ee; color:#2e9e5b; }
.badge-tour-status.full { background:#fdf3e3; color:#b8790f; }
.badge-tour-status.closed { background:#fbe9e9; color:#c0392b; }
.btn-book-now { background:#60c9eb; border:none; color:#fff; padding:12px 30px; border-radius:30px; font-weight:600; transition:.2s; }
.btn-book-now:hover { background:#2596be; color:#fff; }
.btn-book-now:disabled, .btn-book-now.disabled { background:#ccc; cursor:not-allowed; }

/* ── News ── */
.news-card { background:#fff; border:1px solid #eee; border-radius:6px; overflow:hidden; margin-bottom:28px; transition:.25s; height:100%; }
.news-card:hover { box-shadow:0 6px 24px rgba(0,0,0,.08); transform:translateY(-3px); }
.news-card img { width:100%; height:190px; object-fit:cover; }
.news-card-body { padding:18px; }
.news-card-date { font-size:12px; color:#999; margin-bottom:8px; }
.news-card-date i { color:#60c9eb; margin-right:5px; }
.news-card-title { font-size:16px; font-weight:700; color:#333; margin-bottom:10px; line-height:1.4; min-height:44px; }
.news-card-title a { color:#333; }
.news-card-title a:hover { color:#60c9eb; }
.news-card-summary { font-size:13px; color:#888; line-height:1.6; }

.news-detail-title { font-size:26px; font-weight:700; color:#333; margin-bottom:10px; }
.news-detail-date { font-size:13px; color:#999; margin-bottom:20px; }
.news-detail-image { width:100%; max-height:420px; object-fit:cover; border-radius:6px; margin-bottom:24px; }
.news-detail-content { font-size:15px; line-height:1.9; color:#444; }
.news-related-title { font-size:18px; font-weight:700; margin: 30px 0 16px; }

/* ── Pagination ── */
.pagination-wrap { margin-top: 20px; text-align:center; }
.pagination>li>a, .pagination>li>span { color:#60c9eb; }
.pagination>.active>a, .pagination>.active>span { background:#60c9eb; border-color:#60c9eb; }

/* ── Auth forms (Login / Register) ── */
.auth-wrapper { min-height: 100vh; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg,#eaf8fd,#f7fbfe); padding: 40px 15px; position: relative; }
.auth-home-btn { position: absolute; top: 24px; left: 24px; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#555; background:#fff; padding:8px 14px; border-radius:6px; box-shadow:0 2px 10px rgba(0,0,0,.06); text-decoration:none; }
.auth-home-btn:hover { color:#60c9eb; text-decoration:none; }
.auth-card { background:#fff; width:100%; max-width:420px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.08); padding: 36px 32px; }
.auth-card.wide { max-width: 560px; }
.auth-logo { text-align:center; font-size:22px; font-weight:800; color:#333; margin-bottom:4px; }
.auth-logo span { color:#60c9eb; }
.auth-sub { text-align:center; font-size:13px; color:#999; margin-bottom:24px; }
.auth-field { margin-bottom:16px; }
.auth-field label { font-weight:600; font-size:13px; color:#555; margin-bottom:6px; display:block; }
.auth-field .form-control { border-radius:6px; height:42px; box-shadow:none; border:1px solid #e2e2e2; }
.auth-field textarea.form-control { height:auto; }
.auth-error { background:#fbe9e9; border:1px solid #f3c9c9; color:#c0392b; padding:10px 14px; border-radius:6px; font-size:13px; margin-bottom:16px; }
.auth-success { background:#e7f9ee; border:1px solid #c8ecd6; color:#2e9e5b; padding:10px 14px; border-radius:6px; font-size:13px; margin-bottom:16px; }
.auth-submit { width:100%; background:#60c9eb; border:none; color:#fff; padding:12px; border-radius:6px; font-weight:600; margin-top:6px; }
.auth-submit:hover { background:#2596be; color:#fff; }
.auth-hint { text-align:center; font-size:13px; color:#777; margin-top:18px; }
.auth-hint a { color:#60c9eb; font-weight:600; }
.auth-row { display:flex; gap:14px; }
.auth-row .auth-field { flex:1; }
@media(max-width:480px){ .auth-row{ flex-direction:column; gap:0; } }

/* ── Table cards (booking, profile) ── */
.simple-table { width:100%; background:#fff; border-radius:6px; overflow:hidden; }
.simple-table th { background:#f7fbfe; font-size:12px; text-transform:uppercase; color:#777; }
.simple-table td { color:#333; font-size:14px; }
.simple-table td, .simple-table th { padding:12px 14px; vertical-align:middle; }
.simple-table tbody tr { border-bottom:1px solid #f0f0f0; }
.simple-table tbody tr:last-child { border-bottom:none; }
.status-chip { display:inline-block; padding:4px 12px; border-radius:99px; font-size:11.5px; font-weight:700; }
.status-chip.pending { background:#fdf3e3; color:#b8790f; }
.status-chip.confirmed { background:#e7f9ee; color:#2e9e5b; }
.status-chip.cancelled { background:#fbe9e9; color:#c0392b; }

/* — Payment page — */
.payment-wrapper { display:flex; gap:24px; flex-wrap:wrap; max-width:900px; margin:0 auto; }
.payment-card { flex:1; min-width:280px; background:#fff; border:1px solid #eee; border-radius:8px; padding:22px; }
.payment-card h3 { margin:0 0 14px; font-size:16px; color:#333; }
.payment-info-table { width:100%; border-collapse:collapse; }
.payment-info-table td { padding:8px 0; color:#333; font-size:14px; border-bottom:1px solid #f5f5f5; }
.payment-info-table td:first-child { color:#888; width:40%; }
.payment-amount { color:#2596be; font-size:16px; font-weight:700; }

/* — Floating inbox widget — */
#inbox-widget { position:fixed; right:24px; bottom:24px; z-index:9999; font-family:'Roboto','Open-Sans',sans-serif; }
#inbox-toggle-btn { width:56px; height:56px; border-radius:50%; background:#60c9eb; border:none; color:#fff; font-size:24px; box-shadow:0 4px 14px rgba(0,0,0,.2); cursor:pointer; position:relative; display:flex; align-items:center; justify-content:center; transition:.2s; }
#inbox-toggle-btn:hover { background:#2596be; }
.inbox-badge { position:absolute; top:-4px; right:-4px; background:#e74c3c; color:#fff; font-size:11px; font-weight:700; min-width:20px; height:20px; border-radius:10px; align-items:center; justify-content:center; padding:0 5px; }
#inbox-panel { display:none; flex-direction:column; position:absolute; right:0; bottom:70px; width:320px; max-height:440px; background:#fff; border-radius:10px; box-shadow:0 8px 30px rgba(0,0,0,.2); overflow:hidden; }
#inbox-panel.open { display:flex; }
.inbox-panel-header { background:#60c9eb; color:#fff; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; font-weight:600; font-size:14px; }
.inbox-panel-header button { background:none; border:none; color:#fff; font-size:20px; cursor:pointer; line-height:1; }
#inbox-panel-body { flex:1; overflow-y:auto; padding:12px 14px; background:#f7fbfe; min-height:120px; }
.inbox-empty { color:#999; font-size:13px; text-align:center; margin-top:30px; }
.inbox-item { margin-bottom:14px; }
.inbox-bubble { padding:8px 12px; border-radius:10px; font-size:13px; line-height:1.4; margin-bottom:4px; max-width:90%; word-wrap:break-word; }
.inbox-bubble-user { background:#e8f9ff; color:#333; margin-left:auto; border-bottom-right-radius:2px; }
.inbox-bubble-admin { background:#fff; color:#333; border:1px solid #eee; border-bottom-left-radius:2px; }
.inbox-time { font-size:10px; color:#aaa; text-align:right; margin-bottom:2px; }
.inbox-waiting { font-size:11px; color:#b8790f; font-style:italic; }
.inbox-send-form { display:flex; gap:8px; padding:10px; border-top:1px solid #eee; background:#fff; }
.inbox-send-form textarea { flex:1; resize:none; border:1px solid #e2e2e2; border-radius:6px; padding:6px 10px; font-size:13px; font-family:inherit; color:#333; }
.inbox-send-form button { background:#60c9eb; border:none; color:#fff; width:38px; border-radius:6px; cursor:pointer; font-size:16px; }
.inbox-send-form button:hover { background:#2596be; }
@media (max-width:480px){ #inbox-panel { width:calc(100vw - 32px); right:-8px; } }
