/* ===== Room Dekho: ek hi style file ===== */
:root {
  --pr: #e2552a;
  --pr-d: #b8431d;
  --bg: #fff8f2;
  --soft: #fff0e3;
  --line: #f0e3d8;
  --tx: #14110f;
  --mu: #6b6560;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}
i { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; }
a { color: inherit; }
.mu { color: var(--mu); }

/* ---- Layout ---- */
.shell { max-width: 1100px; margin: 0 auto; padding: 14px 16px 0; }
.shell.mid { max-width: 820px; }
.shell.narrow { max-width: 520px; }
.title { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 22px 0 6px; font-weight: 700; }

/* ---- Menu ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px; }
.logo { font-size: 22px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-dot { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--pr); transform: rotate(-45deg); }
/* .links { display: flex; gap: 22px; }
.links a { color: #4a443f; text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--pr); } */

.pill-btn, .pill-line, .pill-white {
  display: inline-block; padding: 10px 20px; border-radius: 99px;
  text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--pr);
}
.pill-btn { background: var(--pr); color: #fff; }
.pill-line { background: #fff; color: var(--pr); }
.pill-white { background: #fff; color: var(--pr); padding: 12px 24px; font-weight: 700; align-self: flex-start; }

/* ---- Home: hero ---- */
.hero { text-align: center; padding: 30px 0 10px; }
.hero h1 { font-size: clamp(38px, 8vw, 72px); line-height: 1.05; margin: 0 0 12px; font-weight: 700; letter-spacing: -1px; }
.sub { color: var(--mu); margin: 0 auto 22px; max-width: 520px; font-size: 17px; }

.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pills button {
  border: 1px solid #e5d6c8; background: #fff; padding: 9px 20px; border-radius: 99px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--tx);
}
.pills button.on { background: var(--pr); border-color: var(--pr); color: #fff; }

.searchbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 780px;
  margin: 0 auto 26px; background: var(--soft); border-radius: 24px; padding: 10px;
  box-shadow: 0 8px 24px rgba(226, 85, 42, 0.12);
}
.searchbar input, .searchbar select {
  flex: 0 0 auto; min-width: 0; padding: 12px 14px; border: 0; border-radius: 99px;
  background: #fff; font-size: 15px; font-family: inherit; outline: none; color: var(--tx);
}
.searchbar button {
  flex: 0 0 auto; background: var(--pr); color: #fff; border: 0; border-radius: 99px;
  padding: 12px 26px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit;
}
.banner { border-radius: 26px; overflow: hidden; height: clamp(180px, 34vw, 360px); }
.banner svg { width: 100%; height: 100%; display: block; }

/* ---- Home: kyun Room Dekho ---- */
.why { padding: 54px 0 10px; }
.why-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.why-head h2 { font-size: clamp(30px, 5vw, 44px); margin: 0; line-height: 1.1; }
.why-head p { max-width: 380px; color: var(--mu); margin: 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.stat b { display: block; font-size: 32px; font-weight: 600; }
.stat span { color: var(--mu); font-size: 14px; }
.cta-card { background: var(--pr); color: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.cta-card h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; }
.cta-card p { margin: 0; opacity: 0.92; }

/* ---- Rooms ke cards (home, dashboard, admin) ---- */
.rooms { padding: 40px 0 20px; }
.center { text-align: center; font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; }
.count { text-align: center; color: var(--mu); font-size: 14px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.empty { text-align: center; color: var(--mu); padding: 40px 0; grid-column: 1 / -1; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { box-shadow: 0 14px 34px rgba(226, 85, 42, 0.15); transform: translateY(-4px); }
.pic {
  position: relative; display: flex; align-items: center; justify-content: center; height: 200px;
  border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #ffe9d6, #ffd2b0);
  font-size: 60px; text-decoration: none;
}
.pic img, .cover { width: 100%; height: 100%; object-fit: cover; }
.cover { height: 190px; border-radius: 16px; display: block; }
.badge-type { position: absolute; top: 10px; left: 10px; background: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.info { padding: 14px 8px 8px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.info h3 { margin: 0; font-size: 17px; font-weight: 700; }
.title-link { text-decoration: none; }
.title-link:hover { color: var(--pr); }
.price { margin: 0; font-size: 18px; font-weight: 700; color: var(--pr); white-space: nowrap; }
.place { margin: 4px 0 10px; color: var(--mu); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span { background: #fff1e6; color: var(--pr-d); padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; }

/* ---- Buttons ---- */
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.buttons a, .buttons button {
  flex: 1 1 auto; text-align: center; padding: 11px 14px; border-radius: 99px; font: inherit;
  font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.details { border-color: #d9c9bb !important; color: var(--tx); background: #fff; }
.whatsapp { background: linear-gradient(135deg, #2ee27a, #1fb855); color: #fff; }
.call { border-color: var(--pr) !important; color: var(--pr); background: #fff; }

.btn { padding: 10px 18px; border: 0; border-radius: 99px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn-main { background: var(--pr); color: #fff; }
.btn-light { background: #fff1e6; color: var(--pr); }
.btn-red { background: #fdecea; color: #c0392b; }
.btn-ok { background: #e3f6e8; color: #1e8e3e; }
.btn-no { background: #fff4d6; color: #8a6100; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- Forms (login, dashboard) ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-bottom: 22px; }
.panel h2 { margin: 0 0 14px; font-size: 22px; }
.panel input, .panel select {
  width: 100%; padding: 12px 14px; border: 1px solid #e5d6c8; border-radius: 12px;
  background: #fffdfb; font: inherit; color: var(--tx); outline: none;
}
.panel input:focus, .panel select:focus { border-color: var(--pr); box-shadow: 0 0 0 3px rgba(226, 85, 42, 0.15); }
.stack { display: grid; gap: 10px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.full { grid-column: 1 / -1; }
.msg { margin: 12px 0 0; min-height: 20px; color: #c0392b; font-size: 14px; }
.msg.ok { color: #1e8e3e; }
.note { font-size: 13px; color: var(--mu); margin: 0; }
.prev { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.main-btn { width: 100%; padding: 13px; border: 0; border-radius: 99px; background: var(--pr); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; margin-top: 6px; }

/* ---- Status badges ---- */
.badge { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.b-pending { background: #fff4d6; color: #8a6100; }
.b-approved { background: #e3f6e8; color: #1e8e3e; }
.b-rejected { background: #fdecea; color: #c0392b; }
.b-full { background: #eceff3; color: #667085; }

/* ---- Room detail page ---- */
.detail { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 12px; }
.big { width: 100%; height: 340px; object-fit: cover; display: block; border-radius: 16px; }
.big-ph { height: 220px; border-radius: 16px; background: linear-gradient(135deg, #ffe9d6, #ffd2b0); display: flex; align-items: center; justify-content: center; font-size: 72px; }
.thumbs { display: flex; gap: 8px; padding-top: 10px; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.on { border-color: var(--pr); }
.det { padding: 16px 8px 8px; }
.det h1 { margin: 0 0 4px; font-size: 28px; }
.det .price { font-size: 26px; margin: 10px 0; }
.notice { background: #eceff3; color: #667085; padding: 10px 14px; border-radius: 12px; margin: 0 0 14px; }
.back { display: inline-block; margin: 8px 4px 14px; color: var(--pr); font-weight: 600; text-decoration: none; }

footer { text-align: center; color: var(--mu); font-size: 13px; padding: 36px 16px 40px; }

@media (max-width: 760px) {
  .links { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .big { height: 240px; }
} 


.chat-btn { background: var(--pr); color: #fff; }
.chatbox { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; height: min(68vh, 560px); }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 17px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fffaf6; }
.bubble { max-width: 80%; padding: 9px 14px; border-radius: 18px; font-size: 15px; word-wrap: break-word; white-space: pre-wrap; }
.bubble small { display: block; opacity: 0.7; font-size: 11px; margin-top: 3px; }
.bubble.me { align-self: flex-end; background: var(--pr); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.composer input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #e5d6c8; border-radius: 99px; font: inherit; outline: none; }
.composer input:focus { border-color: var(--pr); }
.blocked-note { background: #fdecea; color: #c0392b; padding: 10px 14px; font-size: 14px; display: none; } 

.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.inbox-list { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; max-height: 68vh; overflow-y: auto; }
.chat-item { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.chat-item:hover, .chat-item.on { background: #fff3e8; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-top small { color: var(--mu); }
.ci-room { display: block; font-size: 12px; color: var(--mu); margin: 2px 0; }
.ci-last { display: block; font-size: 14px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-last.unread { color: var(--tx); font-weight: 700; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pr); margin-left: 6px; }
.thread-empty { background: #fff; border: 1px dashed var(--line); border-radius: 22px; padding: 60px 20px; text-align: center; color: var(--mu); }
.back-btn { display: none; border: 0; background: #fff1e6; color: var(--pr); border-radius: 99px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; margin-bottom: 6px; }
.nav-badge { background: var(--pr); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }

@media (max-width: 760px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox .inbox-thread { display: none; }
  .inbox.show-thread .inbox-list { display: none; }
  .inbox.show-thread .inbox-thread { display: block; }
  .back-btn { display: inline-block; }
}

/* Dropdown: arrow text ke paas */
.searchbar select,
.panel select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* Home page ke search bar me dropdown ki chaudai text ke hisaab se */
.searchbar select {
  flex: 0 0 auto;
  width: auto;
}


/* Chhoti screen pe dropdown poori chaudai le */
@media (max-width: 600px) {
  .searchbar select { flex: 1 1 100px; }
} 




/* ===== Responsive fixes (ise sabse neeche rakho) ===== */
img, svg, video { max-width: 100%; }
body { overflow-x: hidden; }
.topbar { flex-wrap: wrap; row-gap: 8px; }
.topbar .row-btns { flex-wrap: wrap; justify-content: flex-end; }

/* Tablet */
@media (max-width: 900px) {
  .shell { padding: 12px 14px 0; }
  .why-head p { max-width: none; }
}

/* Phone */
@media (max-width: 760px) {
  .topbar { padding: 8px 2px; }
  .pill-btn, .pill-line { padding: 8px 14px; font-size: 13px; }

  /* Home ka menu: chhupao mat, scroll hone wale buttons banao */
  .links {
    display: flex; order: 3; width: 100%; gap: 8px;
    overflow-x: auto; padding: 4px 0 2px; -webkit-overflow-scrolling: touch;
  }
  .links a {
    white-space: nowrap; background: #fff; border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 99px; font-size: 14px; color: var(--tx);
  }

  .hero { padding-top: 16px; }
  .sub { font-size: 15px; }

  /* Search bar */
  .searchbar { border-radius: 20px; padding: 8px; }
  .searchbar input { flex: 1 1 100%; width: 100%; }
  .searchbar select { flex: 1 1 calc(50% - 4px); width: auto; min-width: 0; }
  .searchbar button { flex: 1 1 100%; width: 100%; }

  /* iPhone zoom rokne ke liye 16px */
  .searchbar input, .searchbar select,
  .panel input, .panel select, .composer input { font-size: 16px; }

  /* Cards aur buttons */
  .pic { height: 190px; }
  .buttons a, .buttons button { padding: 10px 8px; }
  .cta-card { padding: 22px; }
  .cta-card h3 { font-size: 22px; }
  .stat { padding: 16px 14px; }
  .stat b { font-size: 26px; }

  /* Forms */
  .panel { padding: 16px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .row-btns .btn { flex: 1 1 auto; }

  /* Room detail */
  .thumbs { overflow-x: auto; }
  .thumbs img { flex: 0 0 auto; }

  /* Chat: keyboard aur browser bar ke hisaab se */
  .chatbox { height: calc(100vh - 240px); height: calc(100dvh - 240px); min-height: 380px; }
  .bubble { max-width: 88%; }
}

/* Bahut chhoti screen (320-380px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .title { font-size: 28px; }
  .logo { font-size: 19px; }
  .pills button { padding: 8px 14px; }
  .searchbar select { flex: 1 1 100%; }
  .price { font-size: 17px; }
} 

/* ===== Notifications (toast) ===== */
#toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { background: #14110f; color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); border-left: 5px solid #2ecc71; opacity: 0; transform: translateY(-12px); transition: opacity 0.25s, transform 0.25s; }
.toast.err { border-left-color: #e74c3c; }
.toast.show { opacity: 1; transform: translateY(0); } 



/* ===== Header me owner ka naam aur message icon ===== */
#navUser.wait { visibility: hidden; }
.nu { display: flex; align-items: center; gap: 10px; }
.nu-msg { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--tx); text-decoration: none; }
.nu-msg:hover { background: #fff3e8; }
.nu-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--pr); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.nu-wrap { position: relative; }
.nu-name { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px 4px 4px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--tx); }
.nu-name:hover { background: #fff3e8; }
.nu-av { width: 32px; height: 32px; border-radius: 50%; background: var(--pr); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.nu-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12); padding: 6px; z-index: 50; }
.nu-menu[hidden] { display: none; }
.nu-menu a, .nu-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 14px; color: var(--tx); text-decoration: none; cursor: pointer; }
.nu-menu a:hover, .nu-menu button:hover { background: #fff3e8; }

@media (max-width: 480px) {
  .nu-text { display: none; }
  .nu-name { padding: 4px; }
} 


/* ===== Photo upload box ===== */
.upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed #e5b99c; border-radius: 16px; background: #fff8f2; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.upload:hover { background: #fff1e6; border-color: var(--pr); }
.upload:focus-within { border-color: var(--pr); box-shadow: 0 0 0 3px rgba(226, 85, 42, 0.18); }
.upload input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; padding: 0; border: 0; }
.up-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--pr); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.up-t b { display: block; font-size: 15px; color: var(--tx); }
.up-t small { color: var(--mu); font-size: 13px; }

/* ===== Google login button ===== */
.g-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; padding: 0 18px; border: 1px solid #dadce0; border-radius: 99px; background: #fff; color: #3c4043; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: box-shadow 0.2s, transform 0.15s, background 0.2s; }
.g-btn svg { flex: none; }
.g-btn:hover { background: #fafafa; box-shadow: 0 4px 14px rgba(60, 64, 67, 0.18); transform: translateY(-1px); }
.g-btn:active { transform: translateY(0); box-shadow: none; }
.g-btn:focus-visible { outline: 3px solid rgba(66, 133, 244, 0.35); outline-offset: 2px; }
.g-btn:disabled { opacity: 0.6; cursor: wait; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--mu); font-size: 13px; margin: 16px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }