:root {
  --primary: #1a5276;
  --accent: #d4a017;
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* NAV */
nav { background: var(--primary); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; z-index: 100; }
nav .logo { color: #fff; font-size: 1.3rem; font-weight: 700; text-decoration: none; }
nav .logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { color: #ffffffcc; text-decoration: none; font-size: 0.95rem; transition: color .2s; }
nav a:hover, nav a.active { color: #fff; }

/* HERO */
.hero { position: relative; height: 420px; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55)), url('../photos/hotel/facade.jpg') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero h1 { font-size: 2.6rem; margin-bottom: .5rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 600px; }
.hero .stars { color: var(--accent); font-size: 1.4rem; margin-bottom: .3rem; }

/* SECTIONS */
section { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; }
section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary); border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: .3rem; }

/* ROOM CARDS */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.room-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .2s; }
.room-card:hover { transform: translateY(-4px); }
.room-card img { width: 100%; height: 200px; object-fit: cover; }
.room-card .info { padding: 1.2rem; }
.room-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.room-card .price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.room-card .meta { font-size: .85rem; color: var(--text-light); margin: .3rem 0; }
.room-card .btn { display: inline-block; margin-top: .8rem; padding: .5rem 1rem; background: var(--primary); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: .9rem; text-decoration: none; }
.room-card .btn:hover { background: #154360; }

/* ROOM DETAIL */
.room-gallery { display: flex; gap: .5rem; margin-bottom: 1rem; }
.room-gallery img { flex: 1; height: 180px; object-fit: cover; border-radius: 6px; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.service-item { background: var(--card-bg); padding: 1.5rem; border-radius: var(--radius); text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.service-item .icon { font-size: 2rem; margin-bottom: .5rem; }

/* BOOKING FORM */
.booking-form { background: var(--card-bg); padding: 2rem; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,.08); max-width: 600px; }
.booking-form label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .9rem; }
.booking-form input, .booking-form select { width: 100%; padding: .6rem; margin-bottom: 1rem; border: 1px solid #ddd; border-radius: 6px; font-size: .95rem; }
.booking-form .btn { width: 100%; padding: .8rem; font-size: 1rem; }

/* CONTACT */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info p { margin-bottom: .5rem; }

/* FOOTER */
footer { background: var(--primary); color: #ffffffbb; text-align: center; padding: 1.5rem; margin-top: 3rem; font-size: .85rem; }

/* CHAT WIDGET */
.chat-toggle { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.chat-toggle:hover { background: #154360; }
.chat-panel { position: fixed; bottom: 96px; right: 24px; width: 380px; max-height: 520px; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.2); z-index: 1000; display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-header { background: var(--primary); color: #fff; padding: .8rem 1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.chat-header button { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; max-height: 360px; }
.chat-messages .msg { margin-bottom: .8rem; padding: .6rem .9rem; border-radius: 10px; max-width: 85%; font-size: .9rem; line-height: 1.4; }
.chat-messages .msg.user { background: #e8f4f8; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-messages .msg.bot { background: #f5f5f5; border-bottom-left-radius: 4px; }
.chat-messages .msg.typing { color: var(--text-light); font-style: italic; }
.chat-input { display: flex; border-top: 1px solid #eee; }
.chat-input input { flex: 1; padding: .8rem; border: none; outline: none; font-size: .9rem; }
.chat-input button { padding: .8rem 1.2rem; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: .9rem; }
.chat-input button:hover { background: #154360; }

@media (max-width: 600px) {
  .chat-panel { width: calc(100% - 32px); right: 16px; bottom: 88px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  nav ul { gap: .8rem; }
  .hero h1 { font-size: 1.8rem; }
}
