/* ------------------------------
   DESIGN TOKENS
------------------------------ */

/* LIGHT THEME (DEFAULT) */
:root {
  /* user-select: none; */

  --primary: #fe424d;
  --primary-dark: #e63b45;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  --nav-bg: #ffffff;
  --footer-bg: #f9fafb;
  --search-bg: #f3f4f6;
  --input-bg: #f9fafb;
  --pill-bg: #f3f4f6;
  --review-bg: #f9fafb;

  --tag-bg: #fef2f2;
  --tag-color: #b91c1c;

  --text-main: #1b1b1f;
  --text-muted: #6b7280;

  --border-subtle: #e5e7eb;

  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-light: 0 6px 16px rgba(15, 23, 42, 0.08);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --font-main: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* DARK THEME */
[data-theme="dark"] {
  --primary: #ff6b81;
  /* Rose pink */
  --primary-dark: #ff4d66;
  /* Deeper rose */

  --bg-body: #0d0c0c;
  /* Deep luxury charcoal */
  --bg-card: #141313;
  /* Soft elevated surface */
  --bg-elevated: #1b1a1a;
  /* Slight highlight */

  --nav-bg: #0d0c0c;
  --footer-bg: #0d0c0c;
  --search-bg: #141313;
  --input-bg: #141313;
  --pill-bg: #1b1a1a;
  --review-bg: #1b1a1a;

  --tag-bg: rgba(255, 107, 129, 0.18);
  --tag-color: #ffd6dc;

  --text-main: #f2f2f2;
  /* Soft premium white */
  --text-muted: #b3b3b3;
  /* Subtle grey */

  --border-subtle: #2a2929;
  /* Luxury thin border */

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shadow-light: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Smooth theme transitions on main surfaces */
body,
.nav-wrapper,
.footer,
.listing-card,
.form-card,
.auth-card,
.show-card,
.review-card,
.error-card {
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ------------------------------
   GLOBAL
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout container */
.layout-main {
  flex: 1;
  padding: 0.75rem 0 2rem 0;
}

.layout-container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.4);
}

[data-theme="dark"] .nav-wrapper {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.9);
}

.nav {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  flex: 0 0 auto;
}

.nav-center {
  flex: 1 1 auto;
  justify-content: center;
}

.nav-right {
  flex: 0 0 auto;
  gap: 0.75rem;
}

.nav-logo i {
  font-size: 2rem;
  color: var(--primary);
}

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--search-bg);
  border-radius: 999px;
  padding: 0.3rem 0.35rem 0.3rem 0.85rem;
  width: min(1080px, 60%);
  height: 3rem;
  margin: auto;
  border: 1px solid transparent;
}

[data-theme="dark"] .nav-search {
  border-color: var(--border-subtle);
}

.nav-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  outline: none;
  color: var(--text-main);
}

.nav-search-btn {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fe424d;
  color: #fff;
  cursor: pointer;
}

.nav-search-btn i {
  font-size: 0.85rem;
}

/* Links & CTAs */
.nav-link-simple {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  color: var(--text-main);
}

.nav-link-simple:hover {
  background: rgba(148, 163, 184, 0.15);
}

.nav-pill-btn {
  background: #fe424d;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-pill-btn:hover {
  border: 2px solid #fe424d;
  background: #fff;
  color: #fe424d;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.4);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--text-main);
  border-radius: 99px;
  margin-bottom: 4px;
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--nav-bg);
}

.nav-mobile-section {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding-block: 0.65rem;
}

.nav-search.mobile {
  margin-top: 0.2rem;
}

.nav-mobile-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--footer-bg);
}

.footer-inner {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.25rem 0;
  display: grid;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-socials i {
  font-size: 1.25rem;
  margin-inline: 0.35rem;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}

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

.footer-links a {
  margin-inline: 0.5rem;
}

/* ------------------------------
   FILTER BAR
------------------------------ */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  padding-block: 0.65rem 0.35rem;
  scrollbar-width: none;
}

.filters-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  min-width: 74px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.7;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.filter-icon {
  font-size: 1rem;
}

.filter-pill p {
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.filter-pill:hover {
  opacity: 1;
  color: var(--primary);
}

.filter-pill.is-active {
  opacity: 1;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ------------------------------
   LISTINGS GRID
------------------------------ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.15rem;
}

@media (max-width: 900px) {
  .listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .listings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.listing-link {
  display: block;
}

.listing-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

[data-theme="dark"] .listing-card {
  border-color: var(--border-subtle);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* Hide the ugly default file input */
#image {
  display: none;
}

/* Wrapper */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom Button */
.custom-file-btn {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.custom-file-btn:hover {
  background: var(--primary-dark);
}

/* Selected file name text */
.file-name {
  color: #a1a1a1;
  font-size: 0.9rem;
}

/* Hide default input */
#image {
  display: none;
}

/* Wrapper */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* Custom button */
.custom-file-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
}

.custom-file-btn:hover {
  background: var(--primary-dark);
}

/* File name display */
.file-name {
  color: #c7c7c7;
  font-size: 0.9rem;
}

/* Current image preview */
.current-image-label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #bdbdbd;
}

.current-image-preview {
  width: 150px;
  border-radius: 10px;
  border: 1px solid #333;
  object-fit: cover;
}

.listing-image-wrapper {
  position: relative;
  overflow: hidden;
}

.listing-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.listing-card:hover .listing-image {
  transform: scale(1.05);
}

.listing-content {
  padding: 0.7rem 0.75rem 0.9rem;
}

.listing-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.15rem 0;
}

.listing-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.listing-price span {
  font-weight: 400;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state h2 {
  margin-bottom: 0.5rem;
}

/* ------------------------------
   FORMS (shared)
------------------------------ */
.page-form,
.page-auth {
  display: flex;
  justify-content: center;
  padding-top: 1.2rem;
}

.form-card,
.auth-card {
  width: min(640px, 100%);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
}

[data-theme="dark"] .form-card,
[data-theme="dark"] .auth-card {
  border-color: var(--border-subtle);
}

.form-card h1,
.auth-card h1 {
  font-size: 1.45rem;
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  border-radius: 0.8rem;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.75rem;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  background: var(--input-bg);
  color: var(--text-main);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(254, 66, 77, 0.18);
  background: var(--bg-card);
}

/* Row of fields */
.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 750px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Category pills */
.category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-option {
  cursor: pointer;
}

.category-option input {
  display: none;
}

.category-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.2s;
  color: var(--text-main);
}

.category-option input:checked + span {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Current image (edit) */
.current-image {
  margin-top: 0.4rem;
}

.current-image-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.current-image-preview {
  max-width: 180px;
  max-height: 180px;
  border-radius: var(--radius-sm);
}

/* Actions */
.form-actions {
  margin-top: 0.6rem;
}

.form-actions.center {
  text-align: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(254, 66, 77, 0.35);
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-inline {
  padding-inline: 1rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1.6px solid #ef4444;
  background: transparent;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-outline:hover {
  background: #fef2f2;
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(248, 113, 113, 0.1);
}

.btn-link-danger {
  background: none;
  border: none;
  padding: 0;
  color: #dc2626;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-link-danger:hover {
  text-decoration: underline;
}

/* Auth card extra */
.auth-switch {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--primary);
}

/* ------------------------------
   SHOW PAGE
------------------------------ */
.page-show {
  padding-top: 1rem;
  width: 75%;
  margin: auto;
}

.show-card {
  background: var(--bg-card);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid transparent;
}

[data-theme="dark"] .show-card {
  border-color: var(--border-subtle);
}

.show-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem 0.85rem;
  gap: 0.75rem;
}

.show-header-bar {
  width: 6px;
  height: 34px;
  border-radius: 99px;
  background: var(--primary);
}

.show-header-text h1 {
  margin: 0;
  font-size: 1.35rem;
}

.show-owner {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.show-owner span {
  font-weight: 600;
}

.show-image-wrapper {
  margin: 0.3rem 1.2rem 0.9rem;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.show-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Body */
.show-body {
  padding: 0 1.2rem 1.4rem;
}

/* Tags */
.show-tags {
  margin: 0.4rem 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-color);
}

/* Description */
.show-description {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* Price + location */
.show-price-location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.show-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.price-per {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.show-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.show-location i {
  color: var(--primary);
}

/* Owner actions */
.show-owner-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Divider */
.show-divider {
  margin: 1.4rem 0;
  border: none;
  border-top: 1px solid var(--border-subtle);
}

/* Reviews */
.show-reviews h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.review-form .form-field textarea {
  min-height: 100px;
}

.reviews-list {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.reviews-title {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.review-card {
  background: var(--review-bg);
  border-radius: 1rem;
  padding: 0.7rem 0.8rem 0.75rem;
  border: 1px solid transparent;
}

[data-theme="dark"] .review-card {
  border-color: var(--border-subtle);
}

.review-header {
  margin-bottom: 0.2rem;
}

.review-author {
  font-size: 0.9rem;
  font-weight: 600;
}

.review-text {
  font-size: 0.9rem;
  margin: 0.15rem 0 0.4rem;
}

.review-delete-form {
  margin-top: 0.1rem;
}

/* Map */
.show-map-section {
  margin-top: 1.2rem;
}

.show-map-section h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

#map {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
}

.map-actions {
  margin-top: 0.65rem;
}

/* ------------------------------
   FLASH / TOAST
------------------------------ */
.toast {
  position: fixed;
  top: 82px;
  right: 16px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateX(120%);
  animation: toast-slide-in 0.4s forwards;
  z-index: 9999;
}

.toast i {
  font-size: 1rem;
}

.toast-success {
  background: #16a34a;
}

.toast-error {
  background: #dc2626;
}

@keyframes toast-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ------------------------------
   ERROR PAGE
------------------------------ */
.page-error {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.error-card {
  text-align: center;
  background: var(--bg-card);
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: min(420px, 100%);
  border: 1px solid transparent;
}

[data-theme="dark"] .error-card {
  border-color: var(--border-subtle);
}

.error-icon i {
  font-size: 2.2rem;
  color: #f97316;
  margin-bottom: 0.75rem;
}

.error-card h1 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.error-message {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ------------------------------
   RESPONSIVE NAV (HAMBURGER)
------------------------------ */
@media (max-width: 768px) {
  /* Hide desktop links, show hamburger */

  .nav-mobile-menu {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .nav-mobile-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-right {
    display: none;
  }

  .fa-bars {
    color: var(--text-main);
    font-size: 1.25rem;
    transition: color 0.25s ease;
  }

  [data-theme="dark"] .fa-bars {
    color: var(--text-main);
    /* Dark theme text color */
  }

  /* Optional hover effect */
  .nav-toggle:hover .fa-bars {
    color: var(--primary);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile menu visibility */
  .nav-mobile-menu {
    display: none;
  }

  .nav-mobile-menu.is-open {
    display: block;
  }
}

/* ------------------------------
   RESPONSIVE NAV BEHAVIOR
------------------------------ */
/* Responsive Search Bar Enhancements */
@media (max-width: 820px) {
  .nav-center {
    display: none;
  }

  .nav-search {
    width: 100%;
    height: 2.8rem;
    margin: 0.5rem 0;
    /* Reduce vertical spacing */
    padding: 0.3rem 0.75rem;
  }

  .nav-search-input {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .nav-search {
    width: calc(100% - 1rem);
    /* small padding left-right */
    margin-inline: 0.5rem;
    height: 2.6rem;
  }

  .nav-search-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
  }

  .nav-search-btn i {
    font-size: 0.75rem;
  }
}

/* ------------------------------
   THEME TOGGLE BUTTON (FINAL)
------------------------------ */
.theme-toggle-btn {
  background: var(--pill-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Icon color follows theme */
.theme-toggle-btn i {
  font-size: 1rem;
  color: var(--text-main);
  transition: color 0.25s ease;
}

/* Hover effect */
.theme-toggle-btn:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Ensure icon also turns red on hover */
.theme-toggle-btn:hover i {
  color: var(--primary);
}

/* Dark Mode Styling */
[data-theme="dark"] .theme-toggle-btn {
  background: var(--pill-bg);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

/* Icon adapts in dark mode */
[data-theme="dark"] .theme-toggle-btn i {
  color: var(--text-main);
}

/* Hover in dark mode */
[data-theme="dark"] .theme-toggle-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .theme-toggle-btn:hover i {
  color: var(--primary);
}

/* ------------------------------
   CHECKOUT PAGE
------------------------------ */
.checkout-listing-summary {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--review-bg);
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  border: 1px solid transparent;
}

[data-theme="dark"] .checkout-listing-summary {
  border-color: var(--border-subtle);
}

.checkout-listing-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.checkout-listing-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkout-listing-details h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-listing-location {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.checkout-listing-location i {
  color: var(--primary);
  font-size: 0.95rem;
}

.checkout-listing-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.checkout-divider {
  margin: 1.2rem 0;
  border: none;
  border-top: 1px solid var(--border-subtle);
}

.checkout-summary {
  background: var(--review-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.5rem;
  border: 1px solid transparent;
}

[data-theme="dark"] .checkout-summary {
  border-color: var(--border-subtle);
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.checkout-summary-item span:first-child {
  color: var(--text-muted);
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 0;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-summary-total span:last-child {
  color: var(--primary);
  font-size: 1.25rem;
}

.checkout-payment {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--review-bg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

[data-theme="dark"] .checkout-payment {
  border-color: var(--border-subtle);
}

.checkout-payment-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.checkout-payment-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.checkout-payment-method i {
  color: var(--primary);
  font-size: 1.1rem;
}

.checkout-payment-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.show-booking-action {
  margin-top: 1rem;
}

.btn-booking {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ------------------------------
   PROFILE PAGE
------------------------------ */
.page-profile {
  padding-top: 1rem;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid transparent;
}

[data-theme="dark"] .profile-card {
  border-color: var(--border-subtle);
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem 0.85rem;
  gap: 0.75rem;
}

.profile-header-bar {
  width: 6px;
  height: 34px;
  border-radius: 99px;
  background: var(--primary);
}

.profile-header-text h1 {
  margin: 0;
  font-size: 1.35rem;
}

.profile-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-body {
  padding: 0 1.2rem 1.4rem;
}

.profile-section {
  margin-top: 0.5rem;
}

.profile-section-title {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-divider {
  margin: 1.4rem 0;
  border: none;
  border-top: 1px solid var(--border-subtle);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-info-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.profile-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.profile-empty-state p {
  margin: 0 0 1rem;
}

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
}

@media (max-width: 640px) {
  .page-show {
    padding-top: 1rem;
    width: 100%;
    margin: auto;
  }

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

.booking-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .booking-card {
  border-color: var(--border-subtle);
}

.booking-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.booking-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.booking-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.booking-card:hover .booking-image {
  transform: scale(1.05);
}

.booking-content {
  padding: 0.9rem 1rem 1rem;
}

.booking-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.booking-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.booking-location i {
  color: var(--primary);
  font-size: 0.9rem;
}

.booking-dates {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  padding: 0.6rem;
  background: var(--review-bg);
  border-radius: var(--radius-sm);
}

.booking-date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-date-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking-date-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.booking-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.booking-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-meta-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking-meta-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.booking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.booking-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.booking-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.booking-price-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.booking-date {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: right;
}

.booking-payment {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.booking-payment i {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Global Scrollbar – Theme Aware */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-elevated);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 10px;
  transition: background 0.2s ease;
}

/* Hover → Pink */
::-webkit-scrollbar-thumb:hover {
  background: var(--primary); /* pink on hover */
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) var(--bg-elevated);
}
