/* HostelPadi redesigned responsive UI */
:root{
  --bg:#faf9f7;
  --surface:#ffffff;
  --ink:#171717;
  --muted:#6d6a67;
  --line:#e9e5df;
  --orange:#f97316;
  --orange-dark:#ea580c;
  --orange-soft:#fff1e8;
  --radius-lg:28px;
  --radius-md:18px;
  --shadow:0 20px 60px rgba(28,23,18,.08);
  --max:1180px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.5;
  overflow-x:hidden;
}
body.menu-open{overflow:hidden}
button,input{font:inherit}
button{cursor:pointer}
a{color:inherit}
img{max-width:100%}

#loading-screen{
  position:fixed;inset:0;background:var(--surface);display:grid;place-items:center;
  z-index:9999;transition:opacity .45s,visibility .45s
}
#loading-screen.hidden{opacity:0;visibility:hidden}
.loader{
  width:44px;height:44px;border:4px solid #eee9e3;border-top-color:var(--orange);
  border-radius:50%;animation:spin .8s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}

.navbar{
  position:fixed;top:0;left:0;right:0;height:76px;z-index:1000;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:0 max(24px,calc((100vw - var(--max))/2));
  background:rgba(250,249,247,.82);backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(233,229,223,.7);transition:.25s
}
.logo{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:1.35rem;letter-spacing:-.04em;white-space:nowrap}
.logo-img{width:38px;height:38px;object-fit:contain}
.logo-accent{color:var(--orange)}
.nav-links{display:flex;align-items:center;gap:32px}
.nav-links a{position:relative;text-decoration:none;color:#55514d;font-size:.92rem;font-weight:600;padding:28px 0}
.nav-links a:hover,.nav-links a.active{color:var(--ink)}
.nav-links a.active:after{content:"";position:absolute;left:0;right:0;bottom:18px;height:2px;border-radius:2px;background:var(--orange)}
.nav-actions{display:flex;align-items:center;gap:10px}
.login-btn,.signup-btn,.mobile-login-btn,.mobile-signup-btn{
  text-decoration:none;border-radius:999px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:0 18px;transition:.2s
}
.login-btn{border:1px solid var(--line);background:#fff}
.login-btn:hover{border-color:#cfc7be;background:#f7f4f0}
.signup-btn{background:var(--ink);color:#fff}
.signup-btn:hover{background:var(--orange);transform:translateY(-1px)}
.menu-icon{display:none;border:0;background:transparent;font-size:1.35rem;padding:8px}

.hero{
  position:relative;min-height:680px;padding:150px 24px 70px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;overflow:hidden
}
.hero-gradient{position:absolute;inset:0;background:
  radial-gradient(circle at 18% 20%,rgba(249,115,22,.13),transparent 30%),
  radial-gradient(circle at 82% 30%,rgba(255,186,107,.16),transparent 28%),
  linear-gradient(180deg,#fffdf9 0%,var(--bg) 100%);z-index:-3}
.hero-orb{position:absolute;border-radius:50%;filter:blur(70px);opacity:.28;z-index:-2}
.hero-orb-one{width:320px;height:320px;background:#ffb26f;left:-150px;top:120px}
.hero-orb-two{width:300px;height:300px;background:#ffd9a9;right:-130px;bottom:50px}
.hero-content{width:min(900px,100%)}
.eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border:1px solid #f0e4d8;background:rgba(255,255,255,.75);border-radius:999px;color:#766b61;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:22px}
.eyebrow span{width:7px;height:7px;border-radius:50%;background:var(--orange)}
.hero h1{font-size:clamp(3rem,7vw,6rem);line-height:.98;letter-spacing:-.07em;max-width:950px;margin:auto;font-weight:800}
.hero h1 em{font-style:normal;color:var(--orange)}
.hero-copy{max-width:650px;margin:24px auto 30px;color:var(--muted);font-size:1.08rem}
.search-bar{
  width:min(720px,100%);margin:auto;display:flex;align-items:center;gap:8px;padding:7px;
  background:#fff;border:1px solid #ebe5de;border-radius:999px;box-shadow:0 18px 45px rgba(33,25,18,.10)
}
.search-input-wrap{display:flex;align-items:center;gap:12px;flex:1;padding:0 15px}
.search-input-wrap i{color:#9a928a}
.search-bar input{width:100%;border:0;outline:0;background:transparent;padding:13px 0;color:var(--ink);font-size:.98rem}
.search-bar input::placeholder{color:#9a928a}
.search-icon{border:0;background:var(--ink);color:#fff;border-radius:999px;padding:13px 20px;display:flex;align-items:center;gap:9px;font-weight:700;transition:.2s}
.search-icon:hover{background:var(--orange);transform:translateX(1px)}
.popular-searches{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px;color:#8a8179;font-size:.8rem}
.popular-searches button{border:0;background:transparent;color:#655d56;font-weight:700;padding:4px 6px}
.popular-searches button:hover{color:var(--orange)}
.hero-stats{display:flex;gap:0;margin-top:52px;background:rgba(255,255,255,.7);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 35px rgba(30,25,20,.05);overflow:hidden}
.hero-stats div{min-width:125px;padding:14px 22px;border-right:1px solid var(--line)}
.hero-stats div:last-child{border-right:0}
.hero-stats strong{display:block;font-size:1.15rem}
.hero-stats span{font-size:.72rem;color:#898078}

.section-container{width:min(var(--max),calc(100% - 48px));margin:auto}
.featured{padding:90px 0 105px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.section-heading.centered{display:block;text-align:center;max-width:700px;margin:0 auto 44px}
.section-heading h2{font-size:clamp(2rem,4vw,3rem);line-height:1.05;letter-spacing:-.05em;margin-top:6px}
.section-heading p{color:var(--muted);margin-top:12px}
.section-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--orange)}
.view-all{font-size:.85rem;font-weight:700;text-decoration:none;color:#5e5751;white-space:nowrap}
.view-all:hover{color:var(--orange)}
.view-all i{margin-left:6px}
.city-pills{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin-bottom:20px;scrollbar-width:none}
.city-pills::-webkit-scrollbar{display:none}
.city-pill{border:1px solid var(--line);background:#fff;color:#655f59;padding:9px 15px;border-radius:999px;font-size:.8rem;font-weight:700;white-space:nowrap}
.city-pill:hover,.city-pill.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.hostel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.hostel-card{
  background:#fff;border:1px solid #eee9e3;border-radius:var(--radius-md);overflow:hidden;
  cursor:pointer;transition:transform .25s,box-shadow .25s,border-color .25s
}
.hostel-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#e4ddd4}
.hostel-card img{display:block;width:100%;height:210px;object-fit:cover;background:#eee9e3}
.hostel-info{padding:15px 16px 17px}
.hostel-info h3{font-size:.98rem;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hostel-info p{display:flex;align-items:center;gap:6px;margin-top:5px;color:#8a8179;font-size:.78rem}
.hostel-info p:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--orange)}

.search-results-section{padding:42px 0;background:#f3f0ec;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-heading.compact{margin-bottom:20px}
.close-results{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:1rem;color:#665e56}
.close-results:hover{background:var(--ink);color:#fff}
.search-results-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.search-result-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;cursor:pointer;transition:.2s}
.search-result-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.search-result-card img{width:100%;height:170px;display:block;object-fit:cover}
.search-result-info{padding:14px}
.search-result-info h4{font-size:.92rem}
.search-result-info p{font-size:.76rem;color:#8a8179;margin-top:4px}
.no-results{grid-column:1/-1;background:#fff;border-radius:20px;text-align:center;padding:45px 20px;color:var(--muted)}
.no-results h3{color:var(--ink);margin:10px 0 5px}

.how-it-works{padding:100px 0;background:#171717;color:#fff}
.how-it-works .section-kicker{color:#ff9a56}
.how-it-works .section-heading p{color:#aaa5a0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.step{position:relative;background:#202020;border:1px solid #303030;border-radius:24px;padding:30px;min-height:270px}
.step-number{position:absolute;right:22px;top:20px;color:#5b5854;font-weight:800;font-size:.75rem}
.step-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#2b2927;color:#ff9653;font-size:1.1rem;margin-bottom:42px}
.step h3{font-size:1.25rem;margin-bottom:7px}
.step p{color:#a6a19d;font-size:.88rem;max-width:270px}

.cta-section{padding:70px 0}
.cta-card{width:min(var(--max),calc(100% - 48px));margin:auto;background:var(--orange);color:#fff;border-radius:30px;padding:42px 48px;display:flex;align-items:center;justify-content:space-between;gap:30px;box-shadow:0 25px 70px rgba(249,115,22,.18)}
.cta-card .section-kicker{color:#ffe5d4}
.cta-card h2{font-size:clamp(1.8rem,3.5vw,3rem);letter-spacing:-.05em;line-height:1.05;margin:6px 0 10px;max-width:650px}
.cta-card p{color:#fff0e8}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap}
.cta-primary,.cta-secondary{padding:13px 18px;border-radius:999px;text-decoration:none;font-weight:800;font-size:.85rem}
.cta-primary{background:#fff;color:var(--ink)}
.cta-secondary{border:1px solid rgba(255,255,255,.45);color:#fff}
.cta-primary:hover{transform:translateY(-2px)}
.cta-secondary:hover{background:rgba(255,255,255,.12)}

.footer{background:#121212;color:#fff;padding:65px 0 20px}
.footer-content{width:min(var(--max),calc(100% - 48px));margin:auto;display:grid;grid-template-columns:2fr repeat(3,1fr);gap:50px}
.footer-brand p{max-width:300px;color:#8f8b87;font-size:.85rem;margin-top:15px}
.footer-logo{color:#fff}
.footer-col{display:flex;flex-direction:column;gap:9px}
.footer-col h4{font-size:.8rem;color:#fff;margin-bottom:8px}
.footer-col a{font-size:.8rem;color:#8f8b87;text-decoration:none}
.footer-col a:hover{color:#fff}
.footer-bottom{width:min(var(--max),calc(100% - 48px));margin:50px auto 0;padding-top:18px;border-top:1px solid #2b2b2b;display:flex;justify-content:space-between;color:#6e6a66;font-size:.72rem}

.mobile-nav-overlay{position:fixed;inset:0;background:rgba(12,10,8,.48);backdrop-filter:blur(3px);z-index:1100;opacity:0;visibility:hidden;transition:.25s}
.mobile-nav-overlay.active{opacity:1;visibility:visible}
.mobile-nav{
  position:fixed;top:0;left:0;bottom:0;width:min(360px,88vw);background:#fff;z-index:1200;
  transform:translateX(-105%);transition:transform .35s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;
  box-shadow:20px 0 60px rgba(0,0,0,.16)
}
.mobile-nav.active{transform:translateX(0)}
.mobile-nav-top{display:flex;align-items:center;justify-content:space-between;padding:22px;border-bottom:1px solid var(--line)}
.mobile-logo{display:flex;align-items:center;gap:9px;text-decoration:none;font-weight:800}
.mobile-logo img{width:34px;height:34px;object-fit:contain}
.close-icon{width:42px;height:42px;border:0;border-radius:50%;background:#f5f2ef;color:#5f5954;font-size:1.1rem}
.close-icon:hover{background:var(--ink);color:#fff}
.mobile-user-profile{display:flex;align-items:center;gap:12px;margin:18px;padding:14px;background:var(--orange-soft);border-radius:18px}
.mobile-user-profile img{width:42px;height:42px;border-radius:50%}
.mobile-user-profile strong,.mobile-user-profile span{display:block}
.mobile-user-profile strong{font-size:.85rem}
.mobile-user-profile span{font-size:.72rem;color:var(--orange-dark);margin-top:2px}
.mobile-nav-links{display:flex;flex-direction:column;gap:4px;padding:10px 14px;flex:1}
.mobile-nav-link{display:flex;align-items:center;gap:13px;text-decoration:none;color:#5c5752;padding:13px 12px;border-radius:13px;font-size:.9rem;font-weight:700}
.mobile-nav-link i{width:22px;color:#928a83}
.mobile-nav-link:hover,.mobile-nav-link.active{background:#fff4ed;color:var(--orange-dark)}
.mobile-nav-link:hover i,.mobile-nav-link.active i{color:var(--orange)}
.mobile-auth-buttons{padding:18px;border-top:1px solid var(--line);display:grid;gap:9px}
.mobile-login-btn{border:1px solid var(--line)}
.mobile-signup-btn{background:var(--ink);color:#fff}
.mobile-nav-footer{text-align:center;color:#9a928a;font-size:.7rem;padding:15px;border-top:1px solid var(--line)}

.toast-notification{position:fixed;right:22px;bottom:22px;z-index:3000;max-width:min(420px,calc(100vw - 44px));background:#171717;color:#fff;padding:14px 17px;border-radius:15px;box-shadow:0 18px 50px rgba(0,0,0,.2);font-size:.82rem;line-height:1.5;white-space:pre-line;animation:toastIn .25s ease}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

@media (max-width:1050px){
  .navbar{padding:0 24px}
  .nav-links{gap:20px}
  .hostel-grid,.search-results-grid{grid-template-columns:repeat(3,1fr)}
  .hostel-card img{height:200px}
}
@media (max-width:820px){
  .navbar{height:68px;padding:0 16px}
  .logo{font-size:1.15rem}.logo-img{width:32px;height:32px}
  .nav-links,.nav-actions .login-btn,.nav-actions .signup-btn{display:none}
  .menu-icon{display:block}
  .hero{min-height:650px;padding:120px 16px 50px}
  .hero h1{font-size:clamp(2.65rem,12vw,4.4rem)}
  .hero-copy{font-size:.95rem}
  .search-bar{border-radius:20px;display:block;padding:7px}
  .search-input-wrap{padding:0 12px}
  .search-icon{width:100%;justify-content:center;margin-top:3px}
  .hero-stats{margin-top:36px;width:100%;justify-content:center}
  .hero-stats div{min-width:0;flex:1;padding:12px 8px}
  .section-container{width:min(100% - 32px,var(--max))}
  .featured{padding:65px 0}
  .section-heading{align-items:flex-start}
  .section-heading h2{font-size:2rem}
  .view-all{display:none}
  .hostel-grid,.search-results-grid{grid-template-columns:repeat(2,1fr);gap:13px}
  .hostel-card img{height:180px}
  .how-it-works{padding:70px 0}
  .steps{grid-template-columns:1fr}
  .step{min-height:220px}
  .step-icon{margin-bottom:35px}
  .cta-card{width:calc(100% - 32px);padding:30px 24px;display:block}
  .cta-actions{margin-top:22px}
  .footer-content{width:calc(100% - 32px);grid-template-columns:1fr 1fr;gap:30px}
  .footer-brand{grid-column:1/-1}
  .footer-bottom{width:calc(100% - 32px)}
}
@media (max-width:520px){
  .hero{min-height:620px}
  .eyebrow{font-size:.63rem}
  .hero-stats{border-radius:15px}
  .hero-stats strong{font-size:.95rem}.hero-stats span{font-size:.62rem}
  .section-heading{margin-bottom:20px}
  .city-pills{margin-bottom:15px}
  .hostel-grid,.search-results-grid{grid-template-columns:1fr 1fr}
  .hostel-card img{height:145px}
  .hostel-info{padding:12px}
  .hostel-info h3{font-size:.82rem}
  .hostel-info p{font-size:.68rem}
  .search-result-card img{height:140px}
  .search-result-info{padding:11px}
  .footer-content{grid-template-columns:1fr 1fr}
  .footer-bottom{display:block;line-height:1.8}
  .footer-bottom span{display:block}
}
@media (max-width:360px){
  .hero h1{font-size:2.35rem}
  .hostel-card img{height:130px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
