/* Reset */

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

/* Variables */

:root {
  --airbnb-primary: #FF385C;
  --airbnb-dark: #E61E4D;
  --text-dark: #222222;
  --text-light: #717171;
  --border-light: #dddddd;
  --background-light: #f7f7f7;
}

/* Base */

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  background-color: var(--background-light);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* Page Wrapper */

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  padding: 0.8rem 1.5rem !important;
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ebebeb !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.navbar .container-fluid {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
}

.navbar-collapse {
  display: flex !important;
  flex-basis: auto !important;
  align-items: center !important;
}

.navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem;
  text-decoration: none;
  margin: 0 !important;
  flex-shrink: 0;
}

/* Logo */

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF385C, #E61E4D);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 22px rgba(255,56,92,0.22);
  transition: all 0.25s ease;
}

.nav-logo-icon:hover {
  transform: scale(1.05);
}

.nav-logo-icon i {
  color: #ffffff;
  font-size: 1.2rem;
}

.brand-text {
  color: #FF385C;
  font-size: 1.9rem !important;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Center Section */

.nav-center-section,
.nav-search-wrapper {
  flex: 1;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem;
}

/* Search */

.search-form {
  margin: 0 !important;
  flex-shrink: 0;
}

.search-bar {
  width: 300px;
  height: 44px;
  padding: 0 0.45rem 0 1rem;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.search-bar:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.search-bar:focus-within {
  border-color: #FF385C;
  box-shadow: 0 0 0 4px rgba(255,56,92,0.12), 0 10px 26px rgba(0,0,0,0.12);
}

.search-bar i {
  color: #717171;
  font-size: 1rem;
}

.search-input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.search-input::placeholder {
  color: #9a9a9a;
}

.search-btn {
  height: 34px;
  min-width: 82px;
  padding: 0 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF385C, #E61E4D);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255,56,92,0.18);
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255,56,92,0.25);
}

/* Nav Pills */

.nav-search-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  gap: 0.25rem;
  padding: 0.45rem 0.85rem;
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.pill-link {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem;
  padding: 0.42rem 0.65rem;
  text-decoration: none;
  color: #222222;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.pill-link i {
  font-size: 0.82rem;
  transition: all 0.25s ease;
}

.pill-link:hover,
.pill-link:hover i {
  color: #FF385C;
}

.pill-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: #FF385C;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.pill-link:hover::after,
.active-nav-link::after {
  width: 100%;
}

.active-nav-link,
.active-nav-link i,
.active-nav-link span {
  color: #FF385C !important;
}

.pill-divider {
  width: 1px;
  height: 15px;
  background-color: #dddddd;
}

/* Main Container */

.container {
  flex: 1;
  width: 100%;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.container-fluid {
  width: 100%;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.row {
  margin-left: -0.75rem !important;
  margin-right: -0.75rem !important;
}

/* Footer */

footer {
  width: 100%;
  position: relative;
}

.f-info {
  width: 100%;
  min-height: 6rem;
  padding: 1.2rem 0;
  background-color: rgba(235,235,235,0.96);
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.f-info-links,
.f-info-socials,
.f-info-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.f-info-links {
  gap: 12px;
}

.f-info-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.f-info-links a:hover {
  text-decoration: underline;
  color: var(--airbnb-primary);
}

.f-info-socials {
  gap: 1rem;
}

.f-info-socials a {
  color: inherit;
  text-decoration: none;
}

.f-info-socials i {
  font-size: 1.15rem;
  color: #555555;
  transition: all 0.2s ease;
}

.f-info-socials i:hover {
  color: var(--airbnb-primary);
  transform: translateY(-2px);
}

/* Cards */

.card {
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: 18px !important;
  overflow: hidden;
  background-color: #ffffff;
  margin-bottom: 1.8rem;
  transition: all 0.25s ease;
}

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

.card-img-top {
  width: 100% !important;
  height: 18rem !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

.card-body {
  padding: 0.85rem 0.5rem !important;
  text-align: center;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.card-price {
  font-size: 0.94rem;
  color: var(--text-light);
}

.listing-link {
  text-decoration: none;
  color: inherit;
}

/* Buttons */

.btn,
button,
a.btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transition: all 0.25s ease !important;
}

.btn:focus,
.btn:active {
  box-shadow: none !important;
  outline: none !important;
}

.btn-primary-action,
.btn-danger-action,
.btn-book-now,
.create-btn,
.btn-submit-action,
.btn-signup {
  min-width: 160px;
  height: 48px;
  padding: 0 1.4rem !important;
  border: none !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 1rem;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0.2px;
  position: relative;
  top: 0;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.btn-primary-action,
.btn-book-now,
.create-btn,
.btn-submit-action,
.btn-signup {
  background: linear-gradient(135deg, #FF385C, #E61E4D) !important;
  color: #ffffff !important;
}

.btn-danger-action {
  background: linear-gradient(135deg, #2b2b2b, #111111) !important;
  color: #ffffff !important;
}

.btn-primary-action:hover,
.btn-book-now:hover,
.create-btn:hover,
.btn-submit-action:hover,
.btn-signup:hover,
.btn-danger-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.btn-fixed {
  min-width: 160px;
}

/* Button Containers */

.show-actions,
.edit-delete-wrapper,
.my-listing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.edit-delete-wrapper form,
.my-listing-actions form {
  margin: 0 !important;
}

.show-actions {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-top: 1.8rem !important;
}

.book-now-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.edit-delete-wrapper {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
}

/* My Listing Actions */

.my-listing-actions {
  margin-top: 1rem;
}

.my-listing-actions .btn {
  min-width: 140px;
  height: 48px;
  border: none !important;
  border-radius: 14px !important;
  font-size: 1rem;
  font-weight: 400 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.28s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  margin: 0 !important;
  position: relative;
  top: 0 !important;
}

.my-listing-actions .btn-primary-action {
  background: linear-gradient(135deg, #FF385C, #E61E4D) !important;
  color: #ffffff !important;
}

.my-listing-actions .btn-primary-action:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(255,56,92,0.28);
}

.my-listing-actions .btn-danger-action {
  background: linear-gradient(135deg, #2c2c2c, #111111) !important;
  color: #ffffff !important;
}

.my-listing-actions .btn-danger-action:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

/* Show Page */

.show-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.show-card {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
  padding-bottom: 1rem !important;
  overflow: visible !important;
}

/* Listing Title */

.listing-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.8rem !important;
  line-height: 1.15;
}

/* Listing Gallery */

.listing-gallery {
  display: grid;
  grid-template-columns: 2fr 0.7fr;
  gap: 8px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 0.9rem auto !important;
  align-items: start;
  justify-content: center;
}

.main-image {
  width: 100%;
}

.main-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.side-images {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 280px;
  align-self: start;
}

.side-images img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-image img:hover,
.side-images img:hover {
  opacity: 0.95;
  transform: scale(0.99);
}

/* Listing Info */

.listing-info {
  width: 100%;
  max-width: 760px;
  margin: 0 auto !important;
  text-align: center;
  overflow: visible !important;
}

.owner-text {
  font-size: 1.2rem;
  margin-bottom: 0.35rem !important;
  color: var(--text-dark);
}

.listing-meta {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 0.25rem !important;
  color: var(--text-dark);
}

.listing-description {
  max-width: 720px;
  margin-top: 0.7rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1.05rem;
  line-height: 1.5 !important;
  color: #555555;
}

/* Divider */

.show-divider {
  width: 85%;
  max-width: 1180px;
  margin: 2.5rem auto !important;
  border: none;
  border-top: 2px solid #d6d6d6;
  display: block;
  opacity: 1 !important;
}

/* Reviews */

.review-container {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 1rem;
}

.review-container h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.review-field {
  max-width: 950px;
  margin: 0 auto 1.4rem auto;
}

.review-field fieldset.starability-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

.center-input {
  width: 100%;
}

textarea.form-control {
  min-height: 140px;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #dddddd;
  resize: vertical;
  transition: all 0.25s ease;
}

textarea.form-control:hover {
  border-color: #c9c9c9;
}

.form-control:focus {
  border-color: var(--airbnb-primary) !important;
  box-shadow: 0 0 0 0.15rem rgba(255,56,92,0.18) !important;
}

/* Review Cards */

.review-card {
  height: 100%;
  border-radius: 1rem;
  background-color: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.review-card .card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem !important;
  min-height: 260px;
}

.review-card .card-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
}

.review-card .card-text {
  color: #555555;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.starability-result {
  margin-bottom: 1.4rem;
}

.review-card .btn {
  width: fit-content;
  align-self: center;
}

/* Image Modal */

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
}

.modal-content-img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 14px;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 42px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.08);
}

/* New & Edit Form */

.listing-page-bg {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: calc(100vh - 5rem);
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)), url("/image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.listing-form-container {
  width: 100%;
  max-width: 820px;
  padding: 1rem 1.7rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: fadeUpForm 0.5s ease;
}

@keyframes fadeUpForm {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.listing-form-title {
  font-size: 3rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.listing-form-subtitle,
.edit-subtitle {
  color: #717171;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Edit Listing */

.edit-listing-wrapper {
  max-width: 900px;
  padding: 2rem;
}

.edit-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.edit-heading > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edit-heading-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF385C, #E61E4D);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(255,56,92,0.25);
}

.edit-heading-icon i {
  color: #ffffff;
  font-size: 1.5rem;
}

/* Inputs */

.custom-input,
.custom-textarea,
.custom-file-input {
  border-radius: 16px !important;
  border: 1px solid #dddddd !important;
  padding: 0.9rem 1rem !important;
  transition: all 0.25s ease;
  box-shadow: none !important;
}

.custom-input:focus,
.custom-textarea:focus,
.custom-file-input:focus {
  border-color: #FF385C !important;
  box-shadow: 0 0 0 4px rgba(255,56,92,0.12) !important;
}

.custom-textarea {
  resize: vertical;
  min-height: 130px;
}

.custom-file-input {
  background-color: #ffffff !important;
  cursor: pointer;
}

.custom-file-input:hover {
  border-color: #FF385C !important;
}

.custom-input::placeholder,
.custom-textarea::placeholder {
  color: #9a9a9a;
}

/* Current Images */

.current-images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.current-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.current-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

.current-image-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.current-image-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 0.35rem 0.7rem;
  background: rgba(0,0,0,0.72);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Upload Section */

.upload-section {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(247,247,247,0.9);
  border: 1px solid #ebebeb;
}

.upload-section .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.upload-section .mb-3:last-child {
  margin-bottom: 0 !important;
}

.upload-heading {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222222;
}

.form-label {
  font-weight: 600;
  color: #222222;
  margin-bottom: 0.55rem;
}

/* Auth Page */

.auth-page {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)), url("/image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-box {
  width: 100%;
  max-width: 460px;
  margin: 2rem auto;
  padding: 2.2rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 12px 45px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.auth-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.auth-box h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.96rem;
  margin-bottom: 1.7rem;
}

.auth-input {
  height: 54px;
  border-radius: 16px !important;
  border: 1px solid #dddddd !important;
  padding: 0 1rem !important;
  box-shadow: none !important;
}

.auth-input:focus {
  border-color: #FF385C !important;
  box-shadow: 0 0 0 4px rgba(255,56,92,0.12) !important;
}

/* Auth Bottom Text */

.auth-bottom-text {
  margin-top: 1.5rem;
  text-align: center;
  color: #717171;
  font-size: 0.95rem;
}

.auth-bottom-text a {
  color: #FF385C;
  text-decoration: none;
  font-weight: 600;
}

.auth-bottom-text a:hover {
  text-decoration: underline;
}

/* Search Result Text */

.search-result-text {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  color: #717171;
  font-size: 1rem;
  font-weight: 500;
}

.search-result-text span {
  color: var(--airbnb-primary);
  font-weight: 700;
}

/* Wishlist Heading */

.wishlist-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.wishlist-heading-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF385C, #E61E4D);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(255,56,92,0.22);
}

.wishlist-heading-icon i {
  color: #ffffff;
  font-size: 1.5rem;
}

.wishlist-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.1;
}

.wishlist-subtitle {
  margin: 0.2rem 0 0 0;
  color: #717171;
  font-size: 1rem;
  font-weight: 500;
}

/* Wishlist */

.listing-card-wrapper {
  position: relative;
}

.wishlist-form {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
}

.wishlist-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: all 0.25s ease;
}

.wishlist-btn:hover {
  transform: scale(1.08);
  background-color: #ffffff;
  box-shadow: 0 8px 22px rgba(255,56,92,0.18);
}

.wishlist-btn i {
  font-size: 1.15rem;
  color: #555555;
  transition: all 0.25s ease;
}

.wishlist-btn:hover i,
.active-heart i,
.wishlist-btn.active i {
  color: var(--airbnb-primary);
}

.active-heart i,
.wishlist-btn.active i {
  font-weight: 900;
}

.listing-card-wrapper:hover .wishlist-btn {
  opacity: 1;
  transform: scale(1.04);
}

.empty-listing-box {
  width: 100%;
  max-width: 650px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255,255,255,0.96);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.empty-listing-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.empty-listing-box i {
  font-size: 3rem;
  color: var(--airbnb-primary);
  margin-bottom: 1rem;
}

.empty-listing-box h3 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  color: var(--text-dark);
}

.empty-listing-box p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Listing Slider */

.listing-slider {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background-color: #f2f2f2;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s ease;
  transform: scale(1);
}

.slider-image.active-slide {
  opacity: 1;
  transform: scale(1.01);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.95);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  z-index: 20;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.listing-slider:hover .slider-btn {
  opacity: 1;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slider-btn:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Smooth Card Rendering */

.listing-card {
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Category Filters */

.category-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 1rem 0 1.2rem 0;
  margin-top: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ebebeb;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.category-wrapper::-webkit-scrollbar {
  display: none;
}

.category-heading {
  display: none !important;
}

.category-card {
  position: relative;
  min-width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0 0.3rem 0.9rem 0.3rem;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.category-card i {
  font-size: 1.45rem;
  color: #717171;
  transition: all 0.25s ease;
}

.category-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #717171;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.category-card:hover {
  opacity: 1;
}

.category-card:hover i,
.category-card:hover span,
.category-card.active-category i,
.category-card.active-category span {
  color: #222222;
}

.category-card.active-category {
  opacity: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #222222;
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.category-card:hover::after,
.category-card.active-category::after {
  transform: scaleX(1);
}

/* Map */

.map-section {
  width: 100%;
  margin-top: 2rem;
  overflow: visible !important;
}

#map {
  width: 100%;
  height: 500px;
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background-color: #e5e5e5;
  z-index: 1;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: #d8d8d8;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom,
.leaflet-control-container,
.leaflet-marker-pane,
.leaflet-popup-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 300;
}

.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Wishlist Navbar Link */

.wishlist-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.wishlist-nav-link i {
  font-size: 1.1rem;
  color: #222222;
  transition: all 0.25s ease;
}

.wishlist-nav-link span {
  font-weight: 600;
  color: #222222;
  transition: all 0.25s ease;
}

.wishlist-nav-link:hover i,
.wishlist-nav-link:hover span {
  color: var(--airbnb-primary);
}

/* Responsive */

@media (min-width: 992px) {
  .nav-search-wrapper,
  .nav-center-section {
    flex-direction: row !important;
  }

  .nav-search-pill,
  .auth-links {
    width: auto !important;
  }

  .category-wrapper {
    justify-content: space-between;
  }
}

@media (max-width: 1200px) {
  .nav-search-wrapper {
    gap: 0.8rem;
  }

  .search-bar {
    width: 280px;
  }

  .nav-search-pill {
    gap: 0.3rem;
  }

  .pill-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 991px) {
  .navbar .container-fluid {
    flex-wrap: wrap !important;
  }

  .nav-search-wrapper,
  .nav-center-section {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
  }

  .search-form {
    width: 100% !important;
  }

  .search-bar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .nav-search-pill {
    width: 100% !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
  }

  .auth-links {
    width: 100%;
    justify-content: center !important;
    margin-left: 0 !important;
  }

  .listing-gallery {
    grid-template-columns: 1fr !important;
    max-width: 92%;
  }

  .main-image img {
    height: 220px;
  }

  .side-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .side-images img {
    height: 105px;
  }

  .listing-title,
  .review-container h2 {
    font-size: 2rem;
  }

  #map {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem !important;
  }

  .search-bar {
    height: 40px;
  }

  .search-input {
    font-size: 0.95rem;
  }

  .search-btn {
    padding: 0 1rem;
    font-size: 0.9rem;
    min-width: 76px !important;
  }

  .wishlist-heading {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .wishlist-title,
  .review-container h2 {
    font-size: 2rem !important;
  }

  .wishlist-subtitle {
    font-size: 0.92rem;
  }

  .listing-slider {
    height: 16rem;
  }

  .slider-image {
    height: 16rem;
  }

  .slider-btn {
    opacity: 1;
    width: 30px;
    height: 30px;
  }

  .wishlist-btn {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }

  .edit-delete-wrapper {
    flex-direction: row !important;
  }

  .btn-fixed,
  .btn-primary-action,
  .btn-danger-action,
  .create-btn {
    width: 100%;
    max-width: 260px;
  }

  .main-image img {
    height: 200px;
  }

  .side-images img {
    height: 95px;
  }

  .edit-listing-wrapper {
    padding: 1.3rem;
  }

  .edit-heading {
    flex-direction: column;
  }

  .current-images-container {
    grid-template-columns: 1fr;
  }

  .current-image-card img {
    height: 220px;
  }

  .upload-section {
    padding: 1rem;
  }

  .listing-form-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .edit-subtitle,
  .listing-form-subtitle {
    text-align: center;
    font-size: 0.92rem;
  }

  .my-listing-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .my-listing-actions .btn {
    width: 100%;
    max-width: 260px;
  }

  .listing-description {
    padding: 0 1rem;
  }

  .auth-box {
    margin: 1rem auto;
  }

  .category-wrapper {
    gap: 1.6rem;
    padding-bottom: 1rem;
  }

  .category-card i {
    font-size: 1.25rem;
  }

  .category-card span {
    font-size: 0.72rem;
  }

  .auth-links {
    width: 100%;
    justify-content: center !important;
    gap: 0.7rem !important;
  }

  .auth-link {
    min-width: 118px !important;
    height: 44px !important;
    padding: 0 1rem !important;
    font-size: 0.88rem !important;
    gap: 0.45rem !important;
  }

  .auth-link span {
    font-size: 0.88rem !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem !important;
  }

  .navbar-brand {
    margin-bottom: 0.6rem;
  }

  .brand-text {
    font-size: 1.45rem !important;
  }

  .nav-search-wrapper {
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .search-bar {
    height: 40px !important;
    padding-left: 0.8rem;
  }

  .search-input {
    font-size: 0.85rem;
  }

  .search-btn {
    height: 32px !important;
    padding: 0 0.7rem;
    font-size: 0.8rem !important;
  }

  .pill-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.35rem;
  }

  .pill-divider {
    display: none;
  }

  .auth-link {
    min-width: 108px !important;
    height: 42px !important;
    padding: 0 0.85rem !important;
    font-size: 0.82rem !important;
    gap: 0.35rem !important;
  }

  .auth-link span {
    font-size: 0.82rem !important;
  }

  .auth-link i {
    font-size: 0.8rem !important;
  }

  .auth-links {
    gap: 0.6rem !important;
  }

  .wishlist-heading-icon {
    width: 54px;
    height: 54px;
  }

  .wishlist-heading-icon i {
    font-size: 1.3rem;
  }

  .wishlist-title {
    font-size: 1.6rem !important;
  }

  .listing-title {
    font-size: 1.7rem !important;
  }

  .owner-text {
    font-size: 1rem;
  }

  .listing-meta {
    font-size: 0.95rem;
  }

  .main-image img {
    height: 190px !important;
  }

  .side-images img {
    height: 90px !important;
  }

  .review-container h2 {
    font-size: 1.7rem;
  }

  .empty-listing-box {
    padding: 2rem 1.2rem;
  }

  .empty-listing-box h3 {
    font-size: 1.5rem;
  }

  .listing-form-title {
    font-size: 1.8rem;
  }

  .listing-form-container {
    padding: 1.2rem;
  }

  .upload-section {
    padding: 1rem;
  }

  .edit-heading-icon {
    width: 58px;
    height: 58px;
  }

  .edit-heading-icon i {
    font-size: 1.3rem;
  }

  .current-image-card img {
    height: 190px;
  }

  .auth-box {
    padding: 1.5rem;
  }

  .auth-box h2 {
    font-size: 2rem;
  }

  .auth-main-btn {
    font-size: 0.95rem !important;
    gap: 0.5rem !important;
  }

  .google-btn {
    font-size: 0.92rem !important;
    gap: 0.55rem !important;
  }

  #map {
    height: 300px;
  }

  .category-wrapper {
    gap: 1.25rem;
  }

  .category-card i {
    font-size: 1.1rem;
  }

  .category-card span {
    font-size: 0.68rem;
  }
}

/* Flash Messages*/

.flash-wrapper {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  margin-top: 1rem !important;
}

.custom-flash {
  width: calc(100% - 40px) !important;
  max-width: 1220px !important;
  min-height: 62px !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 0.95rem 1.2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  margin: 0 auto !important;
}

.success-flash {
  background: #e9f9ee !important;
  color: #146c43 !important;
}

.error-flash {
  background: #fdecec !important;
  color: #b42318 !important;
}

.flash-content {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.7rem !important;
  text-align: center !important;
}

.flash-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.flash-icon i {
  font-size: 1rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.flash-message {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.96rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.custom-flash .btn-close {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Navbar Auth Buttons */

.auth-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.auth-link {
  min-width: 132px;
  height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #222222;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.auth-link:hover {
  color: #FF385C;
  border-color: #FF385C;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255,56,92,0.14);
}

.auth-link i {
  font-size: 0.9rem;
  line-height: 1;
  margin: 0;
}

.auth-link span {
  line-height: 1;
  margin: 0;
}

.logout-pill {
  min-width: 145px;
}

/* AUTH BUTTON CONTENT */

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  line-height: 1;
}

.btn-content i,
.btn-content span {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Login + Signup Button */

.auth-main-btn {
  width: 100% !important;
  height: 56px !important;
  border: none !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #FF385C, #E61E4D) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 10px 24px rgba(255,56,92,0.22) !important;
}

.auth-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,56,92,0.28) !important;
}

.auth-main-btn i {
  font-size: 0.95rem !important;
  line-height: 1 !important;
}

/* Auth Divider */

.auth-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.4rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dddddd;
}

.auth-divider span {
  padding: 0 1rem;
  background: rgba(255,255,255,0.96);
  color: #717171;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

/* Google Button */

.google-btn {
  width: 100% !important;
  height: 56px !important;
  border-radius: 16px !important;
  border: 1px solid #dadce0 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
  color: #222222 !important;
  font-size: 0.97rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
}

.google-btn:hover {
  transform: translateY(-2px);
  border-color: #4285F4 !important;
  box-shadow: 0 10px 24px rgba(66,133,244,0.14) !important;
}

.google-btn .btn-content {
  gap: 0.8rem !important;
}

.google-btn img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.google-btn span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Wishlist Heart */

.wishlist-form {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 100 !important;
}

.wishlist-btn {
  width: 44px !important;
  height: 44px !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.97) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.25s ease !important;
}

.wishlist-btn:hover {
  transform: scale(1.08) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(255,56,92,0.18) !important;
}

.wishlist-btn i {
  font-size: 1.12rem !important;
  color: #6b6b6b !important;
  line-height: 1 !important;
  transition: all 0.22s ease !important;
}

.wishlist-btn .fa-solid.fa-heart {
  color: #FF385C !important;
  font-weight: 900 !important;
}

.wishlist-btn:hover i {
  color: #FF385C !important;
}

/* Mobile */

@media (max-width: 768px) {
  .auth-links {
    width: 100%;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
  }

  .auth-link {
    min-width: 118px;
    height: 42px;
    padding: 0 1rem;
    font-size: 0.88rem;
    gap: 0.45rem;
  }

  .wishlist-btn {
    width: 40px !important;
    height: 40px !important;
  }

  .wishlist-btn i {
    font-size: 1rem !important;
  }

  .flash-message {
    white-space: normal !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
}

/* Login Page Flash Message */

.login-flash-wrapper {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  z-index: 99999;
  padding: 0 1rem;
  pointer-events: none;
}

.login-flash-wrapper .flash-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 0 !important;
}

.login-flash-wrapper .custom-flash {
  width: 100% !important;
  max-width: 1180px !important;
  min-height: 62px !important;
  border-radius: 18px !important;
  pointer-events: auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}