/* --- GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
:root {
  --primary-purple: #5a4bff;
  --dark-navy: #0a2540;
  --text-gray: #4b5563;
}
html { scroll-behavior: smooth; }
body { background: #f8f9fc; color: #111; overflow-x: hidden; }

/* --- NAVBAR STYLES --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  transition: all 0.4s ease;
  z-index: 1000;
}
.navbar.scrolled {
  background: rgba(36, 8, 8, 0.85); 
  backdrop-filter: blur(15px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.about-navbar {
  background:   #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 .logo img {
      height: 40px; /* Adjust based on your logo size */
      display: block;
    }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link { text-decoration: none; color: #fff; font-weight: 500; font-size: 15px; position: relative; transition: 0.3s; }
.about-navbar .nav-link { color: var(--text-gray) !important; }
.nav-link.active-page { color: var(--primary-purple) !important; }

.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--primary-purple); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active-page::after { width: 100%; }
.nav-link:hover { color: var(--primary-purple) !important; }

.btn-login { background: var(--primary-purple); color: #fff !important; padding: 10px 24px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(90, 75, 255, 0.3); }

/* --- MOBILE SIDEBAR --- */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--dark-navy);
  cursor: pointer;
  z-index: 1100;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .navbar-container { padding: 0 20px; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 100px 30px;
    gap: 30px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    color: var(--dark-navy) !important;
    font-size: 18px;
    width: 100%;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
  }
}
 

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar,
  .hero,
  .popular {
    padding: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .search-bar {
    flex-direction: column;
    gap: 16px;
  }

  .divider {
    display: none;
  }
}
/* --- ROOMS HERO --- */
.rooms-hero {
    background: linear-gradient(rgba(10, 37, 64, 0.6), rgba(10, 37, 64, 0.6)), 
                url('https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 80px;
}

.rooms-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}
/* ================= MOBILE HERO TEXT FIX ================= */
/* MOBILE ONLY */
@media (max-width: 768px) {
  .rooms-hero-content h1 {
    font-size: 1.9rem;      /* 👈 perfect mobile size */
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .rooms-hero-content p {
    font-size: 0.9rem;
    margin-top: 6px;
  }
}

/* --- PREMIUM CAPSULE SEARCH BAR --- */
.search-wrapper {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    z-index: 100;
}

.search-bar-premium {
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px 15px 10px 35px;
    border-radius: 100px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.search-col {
    flex: 1;
    text-align: left;
    position: relative;
}

.search-col label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #5a4bff;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.search-col select, 
.dropdown-trigger {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    cursor: pointer;
}

.v-line {
    width: 1px;
    height: 35px;
    background: #eee;
    margin: 0 20px;
}

.search-icon-btn {
    background: #5a4bff;
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.search-icon-btn:hover {
    background: #4335e6;
    transform: scale(1.05);
}
 
 /* --------- Base Footer Styles --------- */
:root {
  --footer-bg: #051a33; /* Darker navy to match image */
  --footer-text: #adbdcc;
  --footer-heading: #ffffff;
  --accent: #7b61ff;
}

.vynest-footer {
  background-color: var(--footer-bg);
  padding: 80px 0 30px;
  color: var(--footer-text);
  font-family: 'Inter', sans-serif;
  width: 100%;
}

.footer-container {
  max-width: 1400px; 
  margin: 0 auto;
  padding: 0 40px; 
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* 4 columns for desktop */
  gap: 40px;
}

.footer-logo {
  color: var(--footer-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span { color: var(--accent); }

.footer-brand p {
  line-height: 1.6;
  font-size: 14.5px;
  margin-bottom: 25px;
}

.social-links { display: flex; gap: 15px; }

.social-links a {
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--footer-heading);
  transition: 0.3s;
}

.footer-links h4 {
  color: var(--footer-heading);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  text-decoration: none;
  color: var(--footer-text);
  font-size: 14.5px;
  transition: 0.3s;
}

/* ================= MOBILE FOOTER COMPRESSION (Matches Image) ================= */
@media (max-width: 768px) {
  .vynest-footer {
    padding-top: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr; /* 2-column link layout */
    gap: 30px 20px;
    padding: 0 24px;
  }

  /* Brand section: Full width and Centered */
  .footer-brand {
    grid-column: 1 / -1; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }

  .footer-logo {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 90%; /* Keeps text tight */
  }

  .social-links {
    justify-content: center;
    margin-bottom: 10px;
  }

  /* Link Sections: Left-aligned within their 2-column grid */
  .footer-links {
    text-align: center; /* Set to 'left' if you want links aligned left */
  }

  /* Force "Product" column to center if it looks lonely, 
     or let it sit in the grid like the image shows */
  .footer-links:last-of-type {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .footer-links h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-links ul li a {
    font-size: 14px;
  }

  /* Bottom footer */
  .footer-bottom {
    margin-top: 30px;
    padding: 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .bottom-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 0;
  }

  .bottom-legal {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
  }

  .bottom-legal a {
    margin-left: 0;
    font-size: 13px;
  }
}

/* ================= DESKTOP RESPONSIVE — FOOTER BOTTOM ONLY ================= */
@media (min-width: 769px) {

  .bottom-container {
    display: flex;
    flex-wrap: wrap;          /* allow wrapping */
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
  }

  /* Text blocks */
  .bottom-container p,
  .footer-credit {
    white-space: nowrap;      /* keep text clean */
  }

  /* Legal links */
  .bottom-legal {
    display: flex;
    gap: 16px;
    white-space: nowrap;
  }

  /* When desktop width is tight */
  @media (max-width: 1100px) {
    .bottom-legal {
      width: 100%;
      justify-content: center;
      margin-top: 6px;
    }
  }
}
/* ================= DESKTOP FIX — FOOTER BOTTOM ================= */
@media (min-width: 769px) {

  .footer-bottom {
    padding-top: 28px;
  }

  .bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;

    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left | center | right */
    align-items: center;
    gap: 20px;
  }

  /* Left text */
  .bottom-container p {
    justify-self: start;
    white-space: nowrap;
  }

  /* Center credit */
  .footer-credit {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
  }

  /* Right legal links */
  .bottom-legal {
    justify-self: end;
    display: flex;
    gap: 18px;
    white-space: nowrap;
  }

  /* Smaller desktop safety */
  @media (max-width: 1100px) {
    .bottom-container {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .bottom-container p,
    .footer-credit,
    .bottom-legal {
      justify-self: center;
    }
  }
}
/* ================= DESKTOP — WHITE BOTTOM FOOTER TEXT ================= */
@media (min-width: 769px) {

  /* Made with ❤️ by WebPrimeSite */
  .footer-credit,
  .footer-credit a {
    color: #ffffff !important;
  }

  /* Privacy Policy & Terms */
  .bottom-legal a {
    color: #ffffff !important;
  }

  /* Optional: subtle hover */
  .footer-credit a:hover,
  .bottom-legal a:hover {
    opacity: 0.85;
    text-decoration: underline;
  }
}
/* ================= BOTTOM FOOTER — WHITE TEXT (ALL DEVICES) ================= */

/* Made with ❤️ by WebPrimeSite */
.footer-credit,
.footer-credit a {
  color: #ffffff !important;
}

/* Privacy Policy & Terms of Service */
.bottom-legal a {
  color: #ffffff !important;
}

/* Optional hover effect */
.footer-credit a:hover,
.bottom-legal a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
/* ================= REMOVE UNDERLINE — BOTTOM FOOTER ================= */

.footer-credit a,
.bottom-legal a {
  text-decoration: none !important;
}

.footer-credit a:hover,
.bottom-legal a:hover {
  text-decoration: none !important;
  opacity: 0.85;
}




/* POPULAR ROOMS */
.popular {
  padding: 80px;
}

.popular h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.room-link {
  text-decoration: none;
  color: inherit;
}

.room-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.room-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.room-info {
  padding: 16px;
}

.room-info h4 {
  font-size: 16px;
}

.room-info p {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}

.room-info span {
  font-weight: 600;
  color: #5a4bff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar,
  .hero,
  .popular {
    padding: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .search-bar {
    flex-direction: column;
    gap: 16px;
  }

  .divider {
    display: none;
  }
}
   
 /* ================= PROPERTY TYPE BADGE ================= */
.property-type-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}/* ===== PROPERTY TYPE COLORS ===== */
.property-type-badge.pg {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.property-type-badge.hostel {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.property-type-badge.flat {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
}


/* ================= GENDER BADGE ================= */
.gender-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* BOYS → TEAL */
.gender-badge.boys {
  background: rgba(20, 184, 166, 0.15);
  color: #0f766e;
}

/* GIRLS → ROSE */
.gender-badge.girls {
  background: rgba(244, 63, 94, 0.15);
  color: #be123c;
}

/* UNISEX → AMBER */
.gender-badge.unisex {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
.room-body h3 {
  font-size: 18px;
  font-weight: 700;        /* same as screenshot */
  color: #0f172a;          /* dark slate */
  margin: 0;
}
.room-location {
  font-size: 14px;
  font-weight: 400;
  color: #64748b;          /* muted gray-blue */
  margin-top: 4px;
}
.room-price {
  font-size: 18px;
  font-weight: 700;
  color: #4f46e5;          /* premium indigo (matches image) */
  margin-top: 10px;
  display: block;
}
 
.room-body {
  padding: 16px 18px 18px;
} 
/* Card body */
.room-info {
  padding: 16px;
}

/* Title + tags in one row */
.room-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Hostel name */
.room-title-row h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
  flex: 1;
}

/* Tags on right */
.badge-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Location */
.room-location {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}

/* Price */
.room-price {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #4f46e5;
}


/* =================================================
   COMPACT SINGLE-LINE FILTER – MOBILE
================================================= */
@media (max-width: 768px) {

  /* Hero spacing */
  .rooms-hero {
    padding: 90px 16px 30px !important;
    margin-bottom: 0 !important;
  }

  /* Search wrapper */
  .search-wrapper {
    position: relative;
    margin-top: 16px !important;
  }

  /* 🔥 SINGLE LINE FILTER BAR */
  .search-bar-premium {
    flex-direction: row !important;
    align-items: center;
    gap: 14px;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Hide scrollbar */
  .search-bar-premium::-webkit-scrollbar {
    display: none;
  }

  /* Each filter column */
  .search-col {
    min-width: max-content;
    padding: 0 !important;
    border: none !important;
  }

  /* Labels */
  .search-col label {
    font-size: 9px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.6px;
  }

  /* Select values */
  .search-col select,
  .dropdown-trigger {
    font-size: 13px !important;
    padding: 0 !important;
  }

  /* Remove dividers */
  .v-line {
    display: none;
  }

  /* Search button stays at end */
  .search-icon-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 15px;
    flex-shrink: 0;
  }

  /* Reduce gap to cards */
  .rooms-grid {
    padding-top: 16px !important;
  }
}
 
 /* Sold Out Overlay */
.room-card.sold-out {
  filter: grayscale(0.5); /* Makes the card look "inactive" */
  position: relative;
}

.sold-out-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 8px 20px;
  font-weight: 900;
  font-size: 18px;
  border: 2px solid white;
  border-radius: 8px;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Availability Tag */
.availability-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 8px;
}

.tag-available {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.tag-full {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}/* Top-Left Availability Badge */
.availability-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85); /* Deep slate backdrop */
  backdrop-filter: blur(4px); /* Glassmorphism effect */
  color: white;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-sold-out {
  background: rgba(239, 68, 68, 0.9) !important; /* Premium Red */
}

/* Ensure the card is the reference for the absolute badge */
.room-card {
  position: relative;
}/* Ensure the container is a grid, not a single column */
#roomsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Fix the card sizing to match the 'My Rooms' look */
.room-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column; /* Stacks image on top of info */
  height: 100%;
  position: relative;
  transition: transform 0.2s;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-info {
  padding: 16px;
  flex-grow: 1;
}

/* Adjust the title row to handle badges correctly */
.room-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}