/*== Reset cơ bản ==*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #73abe3;
    color: #353535;
    line-height: 1.6;
}

/*== Navbar ==*/
.navbar {
    background: linear-gradient(135deg, #01363f, #033b96);
    padding: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ffda79;
}
/* ==== FORM ĐĂNG NHẬP / ĐĂNG KÝ ==== */
body.login-body {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    font-family: 'Segoe UI', sans-serif;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 10px;
    color: #1976d2;
}

.login-container .subtitle {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.login-form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.login-form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 8px;
    transition: 0.3s;
}

.login-form input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.4);
    outline: none;
}

.btn-login {
    background-color: #1976d2;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #0d47a1;
}

.alert {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.note {
    margin-top: 15px;
    font-size: 14px;
}

.note a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

.note a:hover {
    text-decoration: underline;
}


/*== Header ==*/
header {
    background: linear-gradient(135deg, #033b96, #01363f);
    color: white;
    text-align: center;
    padding: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header h1, 
header h2 {
    margin: 0;
    font-size: 32px;
}

/*== Search bar ==*/
.search-bar {
    text-align: center;
    margin: 25px 0;
}

.search-bar form {
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.search-bar input {
    width: 60%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
}

.search-bar button {
    padding: 10px 15px;
    background: #033b96;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #2563eb;
}

/*== Container chung ==*/
.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px;
}

/*== Danh sách phòng ==*/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Mỗi thẻ phòng */
.room {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.room:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.room img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Phần nội dung */
.info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 20px;
}

/* Tiêu đề & mô tả */
.info h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #1e293b;
}

.info p {
    margin: 6px 0;
}

.price {
    color: #30010b;
    font-weight: bold;
}

.address {
    font-style: italic;
    color: #444;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.address::before {
    content: "📍 ";
    margin-right: 4px;
}

/*== Nút bấm ==*/
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #063685, #06b6d4);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.btn.pay {
    background: #3749ad;
    color: #fff;
}
.desc {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  line-height: 1.4;
}

/*== Chi tiết phòng ==*/
.detail-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fce5e5;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.detail-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-container h1 {
    margin: 20px 0;
    font-size: 28px;
}

.detail-container .price {
    font-size: 20px;
    color: #35010d;
    font-weight: bold;
}
/*== Popup xem ảnh phòng ==*/
.gallery-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.gallery-content {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  max-width: 900px;
  width: 90%;
}

.gallery-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.gallery-nav {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.gallery-nav button {
  background: linear-gradient(135deg, #063685, #06b6d4);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.gallery-nav button:hover {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  font-weight: bold;
  color: red;
  cursor: pointer;
}


/*== Đánh giá khách hàng ==*/
.reviews {
    max-width: 900px;
    margin: 40px auto;
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.reviews h2 {
    color: #1e293b;
    margin-bottom: 10px;
}

.reviews textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    resize: none;
    height: 100px;
    margin-top: 10px;
    font-size: 15px;
}

.reviews button {
    margin-top: 10px;
}

/*== Form thanh toán ==*/
.payment-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.payment-container h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #1e293b;
    text-align: center;
}

.payment-container label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
}

.payment-container input,
.payment-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
}

.payment-container input:focus,
.payment-container select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59,130,246,0.5);
}

.payment-container button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.payment-container button:hover {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}
.qr-btn {
    background-color: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.qr-btn:hover {
    background-color: #0d47a1;
}

.qrBox {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid #ccc;
    animation: fadeIn 0.5s ease;
}

.qr-img {
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    margin: 10px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/*== Trang thanh toán thành công ==*/
.success-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.success-container h1 {
    color: #16a34a;
    margin-bottom: 20px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table th {
    background: #3b82f6;
    color: white;
    padding: 10px;
    text-align: center;
}

.info-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

/*== Footer ==*/
footer {
    background: linear-gradient(135deg, #01363f, #033b96);
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

footer p {
    font-size: 16px;
}
