* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f7fb;
  color: #222;
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 35px;
  color: #1d3557;
}

/* HEADER */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #dddddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  color: #1e88e5;
  font-size: 32px;
  font-weight: bold;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: #222;
  font-weight: bold;
  transition: 0.3s;
}

.nav a:hover {
  color: #1e88e5;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.account-link {
  color: #1e88e5 !important;
  font-weight: bold;
}

.logout-btn-link {
  background-color: #eef6ff;
  color: #1565c0 !important;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #cfe2ff;
}

.logout-btn-link:hover {
  background-color: #dcecff;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
  color: white;
  padding: 90px 0;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h2 {
  font-size: 50px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
  max-width: 600px;
}

/* SEARCH BOX */
.search-box {
  width: 100%;
  max-width: 400px;
  background-color: white;
  color: #222;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.search-box h3 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #1d3557;
}

.search-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box label {
  font-weight: bold;
  color: #333;
}

.search-box input,
.search-box select {
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  width: 100%;
}

.search-box input:focus,
.search-box select:focus {
  border-color: #1e88e5;
}

.input-icon-box {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  z-index: 2;
}

.input-icon-box input {
  padding-left: 38px;
}

/* GUEST PICKER */
.guest-picker {
  position: relative;
}

.guest-summary {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 15px;
  background-color: white;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guest-summary:hover {
  border-color: #1e88e5;
}

.guest-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}

.guest-icon {
  font-size: 18px;
  line-height: 1;
}

.guest-arrow {
  font-size: 18px;
  color: #555;
  line-height: 1;
}

.guest-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: white;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 18px;
  display: none;
  z-index: 50;
}

.guest-dropdown.open {
  display: block;
}

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.guest-row:last-child {
  border-bottom: none;
}

.guest-label {
  display: flex;
  flex-direction: column;
}

.guest-label span {
  font-weight: bold;
  color: #1d3557;
}

.guest-label small {
  color: #666;
  font-size: 12px;
}

.guest-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #1e88e5;
  background-color: white;
  color: #1e88e5;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.count-btn:hover {
  background-color: #1e88e5;
  color: white;
}

.guest-controls span {
  min-width: 18px;
  text-align: center;
  font-weight: bold;
  color: #222;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background-color: #ffb703;
  color: #222;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #f59f00;
}

.btn-full {
  width: 100%;
  margin-top: 10px;
}

.offer-btn {
  display: inline-block;
  background-color: #1e88e5;
  color: white;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.3s;
}

.offer-btn:hover {
  background-color: #1565c0;
}

/* OFFERS TABS */
.offers-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 12px 22px;
  border: 1.5px solid #d6dce5;
  background-color: #ffffff;
  color: #333;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn:hover {
  border-color: #1e88e5;
  color: #1e88e5;
}

.tab-btn.active {
  border-color: #1e88e5;
  color: #1e88e5;
  background-color: #eef6ff;
}

/* CAROUSEL */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.offers-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: none;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #1e88e5;
  font-size: 22px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 5;
}

.carousel-arrow:hover {
  background-color: #1e88e5;
  color: white;
}

.offers-empty {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 18px;
}

/* CARD */
.offer-card {
  flex: 0 0 calc(33.333% - 18px);
  margin-right: 18px;
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.favorite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font-size: 20px;
  transition: 0.3s;
  z-index: 10;
}

.favorite-btn:hover {
  transform: scale(1.05);
}

.favorite-btn.active {
  color: #e63946;
}

.offer-image {
  height: 220px;
  background-color: #e9eef5;
  flex-shrink: 0;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.offer-type {
  display: inline-block;
  background-color: #eef6ff;
  color: #1565c0;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: capitalize;
  width: fit-content;
}

.offer-card-content h3 {
  font-size: 22px;
  color: #1d3557;
  margin-bottom: 8px;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
}

.offer-location {
  font-size: 14px;
  color: #6b7280;
  font-weight: bold;
  margin-bottom: 10px;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-icon {
  font-size: 14px;
}

.offer-stars-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 28px;
}

.offer-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 18px;
  color: #c9c9c9;
}

.star.filled {
  color: #f5b301;
}

.offer-stars-text {
  font-size: 14px;
  font-weight: bold;
  color: #555;
}

.offer-description {
  color: #444;
  margin-bottom: 14px;
  min-height: 78px;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 72px;
  align-content: flex-start;
}

.offer-tags span {
  background-color: #f3f7fb;
  color: #23527c;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.offer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-top: auto;
}

.offer-rating-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.offer-rating-label {
  font-size: 14px;
  color: #555;
  min-height: 21px;
}

.offer-rating {
  background-color: #1e88e5;
  color: white;
  font-weight: bold;
  font-size: 17px;
  padding: 7px 11px;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
}

.offer-reviews {
  font-size: 13px;
  color: #666;
  min-height: 20px;
}

.offer-price {
  text-align: right;
}

.offer-price p {
  color: #666;
  font-size: 13px;
}

.offer-price strong {
  display: block;
  color: #1e88e5;
  font-size: 24px;
  margin-top: 4px;
  margin-bottom: 10px;
}

/* TYPES */
.types {
  background-color: #ffffff;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.type-card {
  background: linear-gradient(135deg, #eef6ff, #dcecff);
  color: #1d3557;
  border-radius: 18px;
  padding: 35px 20px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  cursor: pointer;
  border: none;
}

.type-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #dcecff, #cde4ff);
}

/* MINIMAL END SECTION */
.project-info {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background-color: #f8fbff;
  border: 1px solid #e2ecf8;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.project-card h3 {
  color: #1d3557;
  font-size: 22px;
  margin-bottom: 12px;
}

.project-card p {
  color: #4b5563;
  font-size: 15px;
}

/* SIMPLE FOOTER */
.simple-footer {
  background-color: #1d3557;
  color: white;
  padding: 50px 0 25px;
}

.simple-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}

.simple-footer-grid h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.simple-footer-grid p,
.simple-footer-grid a {
  color: #dce7f5;
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}

.simple-footer-grid a:hover {
  color: #ffffff;
}

.footer-line {
  margin: 30px 0 20px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.simple-footer-bottom {
  text-align: center;
  color: #dce7f5;
  font-size: 14px;
}

/* FAVORITES ON ACCOUNT */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.favorite-account-card {
  background-color: #f8fbff;
  border: 1px solid #e2ecf8;
  border-radius: 16px;
  overflow: hidden;
}

.favorite-account-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.favorite-account-content {
  padding: 18px;
}

.favorite-account-content h4 {
  color: #1d3557;
  font-size: 20px;
  margin-bottom: 8px;
}

.favorite-account-content p {
  color: #4b5563;
  margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .offer-card {
    flex: 0 0 calc(50% - 14px);
    margin-right: 14px;
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .simple-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }

  .nav {
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h2 {
    font-size: 40px;
  }

  .search-box {
    max-width: 100%;
  }

  .nav-auth-group {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 0;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 18px;
  }

  .offer-card {
    flex: 0 0 calc(100% - 8px);
    margin-right: 8px;
  }

  .offer-card-content h3,
  .offer-description,
  .offer-tags,
  .offer-location,
  .offer-stars-row,
  .offer-rating-label,
  .offer-reviews {
    min-height: auto;
  }

  .types-grid,
  .simple-footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
  }

  .nav-auth-group {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 26px;
  }

  .nav a {
    font-size: 14px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .search-box {
    padding: 20px;
  }

  .tab-btn {
    width: 100%;
  }
}