@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  outline: none;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  overflow-x: hidden;
  background: var(--white);
}

:root {
  --white: #ffffff;
  --dark-white: #e9e9e9;
  --light-dark: #141414;
  --black: #000000;
  --root-clr: #f2a635;
}

.desktop-navbar {
  width: 100%;
  display: flex;
  position: sticky;
  top: 0;
  justify-content: space-around;
  background: rgb(0, 0, 0);
  z-index: 5;
}

.desktop-navbar .desk-nav-item {
  font-family: 'Poppins', sans-serif;
  height: 40px;
  margin-top: 50px;
}

.desktop-navbar .desk-nav-item a {
  padding-top: 20px;
  color: var(--dark-white);
}

.desktop-navbar .desk-nav-item a:hover {
  color: var(--root-clr);
}

.desktop-navbar .desk-nav-item-img {
  height: 100px;
  padding: 10px;
  background: transparent;
}

.desktop-navbar .desk-nav-item-img img {
  width: 110px;
  height: 100px;
}

.desktop-navbar .desk-nav-item svg {
  cursor: pointer;
  margin-top: 5px;
  color: var(--root-clr);
}

.desktop-navbar .desk-nav-item:nth-child(6) {
  display: none;
}

/* Overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  right: -270px;
  width: 270px;
  height: 100%;
  background-color: var(--light-dark);
  z-index: 100;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--root-clr);
  color: #fff;
  clip-path: ellipse(100% 55% at 48% 44%);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--black);
  font-size: 1.7rem;
  font-weight: 900;
  cursor: pointer;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  padding: 1rem;
}

.sidebar-menu li a {
  text-decoration: none;
  color: var(--dark-white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-menu li:hover {
  background-color: var(--root-clr);
  color: #fff;
  transition: 0.3s;
}

.first-sect {
  width: 100%;
  height: 500px;
  background: rgba(0, 0, 0, 0.7);
  background-blend-mode: darken;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  background-image: url('img/hero.jpg');
  clip-path: ellipse(100% 55% at 48% 44%);
  z-index: 1;
}

.first-sect div {
  width: 500px;
  height: 400px;
  margin-top: 50px;
  overflow: hidden;
}

.first-sect div:nth-child(1) {
  padding: 5px;
  text-align: left;
  font-size: 40px;
  color: white;
}

.first-sect div:nth-child(1) p {
  margin-top: calc(50% - 200px);
  font-weight: 200;
}

.contact-btn {
  cursor: pointer;
  width: 160px;
  padding: 12px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--root-clr);
  border: 1px solid var(--root-clr);
  background: black;
  border-radius: 18px;
  display: flex;
  justify-content: space-evenly;
}

.contact-btn i {
  font-size: x-large;
}

.search-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 12px;
  border-radius: 8px;
  margin-left: calc(50% - 45%);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 15px;
  align-items: end;
  /* Align inputs and buttons nicely */
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.search-card .form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-card label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.search-card select,
.search-card input {
  width: 100%;
  padding: 10px 8px;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  font-size: 0.95rem;
  background: #fff;
  box-sizing: border-box;
}

/* Button */
.btn-check {
  margin-top: auto;
  /* Push button down */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--root-clr);
  color: #fff;
  white-space: nowrap;
}

.btn-check i {
  font-size: 1.15rem;
}

/* Small utilities */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Adjust hero spacing if navbar overlaps (tweak if needed) */
@media (min-width: 801px) {
  .hero {
    margin-top: 0;
  }
}

/* Intermediate breakpoint (narrow desktops / tablets) */
@media (max-width: 1000px) {
  .search-card {
    grid-template-columns: 1.6fr 1fr 0.9fr 0.9fr auto;
  }
}


/* Section container */
.shortlets-section {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  background: #fafafa;
}

.shortlets-section h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--light-dark);
}

/* Shortlet card */
.shortlet-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1 1 280px;
  /* each card takes at least 280px and grows */
  max-width: 320px;
  /* limit width */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shortlet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.shortlet-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.shortlet-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shortlet-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--light-dark);
}

/* details row (price & rooms) */
.shortlet-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--root-clr);
}

/* footer row (location & rating) */
.shortlet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.see-more {
  padding: 0.6rem 1rem;
  background: var(--root-clr);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.see-more:hover {
  background: #d68a20;
}

/* Rent Now Button in Modal */
.rent-now {
  margin-top: 20px;
  text-align: center;
}

.rent-now a {
  display: inline-block;
  padding: 12px 20px;
  background: #28a745;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.rent-now a:hover {
  background: #1e7e34;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  /* Scrollable if content is too tall */
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 25px;
  /* Padding added */
  border-radius: 12px;
  width: 80%;
  max-width: 700px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Slider */
.slider {
  position: relative;
  max-width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
}

.slides img {
  display: none;
  width: 100%;
  border-radius: 10px;
}

.slides img.active {
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.amenities {
  text-align: left;
}

.amenities h3 {
  margin-bottom: 10px;
  color: #0077ff;
}

.amenities ul {
  list-style: none;
  padding: 0;
}

.amenities li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

/* Footer Styles */
.footer {
  background: #111;
  color: #ddd;
  font-family: 'Segoe UI', sans-serif;
  padding: 40px 20px 10px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer p, .footer a {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer a:hover {
  color: var(--root-clr);
}

.footer-logo {
  width: 140px;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--root-clr);
}

/* Icon Styling */
.footer i {
  font-size: 16px;
  color: var(--root-clr);
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 10px;
  }

  .footer p, .footer a {
    justify-content: center;
  }
}


/* About Section */
.about-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-image {
    margin-top: 20px;
  }
}
