/* Refonte visuelle globale - Nestvia */

:root {
  --primary-color: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #14b8a6;
  --primary-lighter: #ccfbf1;
  --secondary-color: #16324f;
  --secondary-dark: #10263d;
  --secondary-light: #4f6d8a;
  --accent-color: #f97316;
  --accent-dark: #c2410c;
  --accent-light: #fdba74;
  --gray-50: #f7f7f3;
  --gray-100: #efeee8;
  --gray-200: #ddd9cf;
  --gray-300: #c5bfb1;
  --gray-400: #9e9788;
  --gray-500: #746c60;
  --gray-600: #575248;
  --gray-700: #38352f;
  --gray-800: #22201c;
  --gray-900: #141310;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(197, 191, 177, 0.45);
  --nav-bg: rgba(247, 247, 243, 0.84);
  --nav-height: 82px;
  --nav-shadow: 0 14px 40px rgba(16, 38, 61, 0.08);
  --footer-bg: #10263d;
  --footer-text: rgba(255, 255, 255, 0.74);
  --footer-link: rgba(255, 255, 255, 0.84);
  --footer-link-hover: #ffffff;
  --shadow-sm: 0 10px 24px rgba(22, 50, 79, 0.08);
  --shadow-md: 0 18px 40px rgba(22, 50, 79, 0.12);
  --shadow-lg: 0 26px 52px rgba(16, 38, 61, 0.16);
  --shadow-xl: 0 34px 80px rgba(16, 38, 61, 0.2);
  --shadow-2xl: 0 48px 110px rgba(16, 38, 61, 0.24);
  --font-primary: 'Manrope', 'Segoe UI', sans-serif;
  --font-secondary: 'Fraunces', Georgia, serif;
  --bs-primary: var(--primary-color);
  --bs-primary-rgb: 15, 118, 110;
  --bs-secondary: var(--secondary-color);
  --bs-secondary-rgb: 22, 50, 79;
  --bs-light: #f4efe7;
  --bs-light-rgb: 244, 239, 231;
  --bs-body-font-family: var(--font-primary);
  --bs-body-color: var(--gray-800);
  --bs-body-bg: var(--gray-50);
  --bs-link-color: var(--secondary-color);
  --bs-link-hover-color: var(--primary-color);
}

body.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfbf8 0%, #f3efe7 48%, #f7f7f3 100%);
  color: var(--gray-800);
}

body.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 70%);
}

/* Refonte visuelle globale - Nestvia */
h1,
h2,
.h1,
.h2,
.navbar-brand,
.footer-brand-text {
  font-family: var(--font-secondary);
}

.admin-danger-zone {
  padding: 1.6rem;
  border-radius: 1.65rem;
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.96), rgba(153, 27, 27, 0.88));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.admin-danger-zone.admin-danger-zone-off {
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.9), rgba(71, 85, 105, 0.8));
  box-shadow: none;
  opacity: 0.72;
}

.admin-danger-disabled-notice {
  margin-top: 0.7rem !important;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88) !important;
}

.admin-danger-disabled-notice code {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.83rem;
  color: #fff;
}

.admin-danger-zone-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.admin-danger-zone h2 {
  margin: 0.35rem 0 0.6rem;
  color: #fff !important;
}

.admin-danger-zone p {
  margin: 0;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.82) !important;
}

.admin-danger-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-danger-trigger {
  min-width: 250px;
  align-self: center;
}

.admin-reset-modal[hidden] {
  display: none !important;
}

.admin-reset-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.admin-reset-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
}

.admin-reset-dialog {
  position: relative;
  width: min(100%, 760px);
  padding: 1.6rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(197, 191, 177, 0.4);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.admin-reset-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--secondary-dark);
  font-size: 1.5rem;
  line-height: 1;
}

.admin-reset-step {
  display: none;
}

.admin-reset-step.is-active {
  display: block;
}

.admin-reset-step h3 {
  margin: 0.45rem 0 0.8rem;
  color: var(--secondary-dark) !important;
}

.admin-reset-step p {
  color: var(--gray-700);
}

.admin-reset-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--gray-700);
}

.admin-reset-list li + li {
  margin-top: 0.55rem;
}

.admin-reset-phrase,
.admin-reset-final-warning {
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(197, 191, 177, 0.42);
}

.admin-reset-phrase {
  font-weight: 800;
  color: var(--secondary-dark);
  word-break: break-word;
}

.admin-reset-final-warning {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.admin-reset-final-warning strong {
  color: #991b1b;
}

.admin-reset-final-warning span,
.admin-reset-inline-error {
  color: var(--gray-700);
}

.admin-reset-inline-error {
  margin-top: 0.65rem;
  color: #b91c1c;
  font-weight: 600;
}

.admin-reset-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

body.modal-open {
  overflow: hidden;
}

h1,
.h1,
h2,
.h2 {
  color: var(--secondary-dark);
}

p {
  color: var(--gray-600);
}

.lead {
  line-height: 1.75;
}

.app-navbar {
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(197, 191, 177, 0.45);
}

.app-navbar .container {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(197, 191, 177, 0.4);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  box-shadow: 0 10px 28px rgba(16, 38, 61, 0.08);
  max-width: 100%;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 700;
  color: var(--gray-700) !important;
  padding: 0.7rem 1rem !important;
  margin: 0 0.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--secondary-color) !important;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(249, 115, 22, 0.1));
}

.nav-role-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-role-badge-admin {
  background: rgba(249, 115, 22, 0.14);
  color: var(--accent-dark);
}

.nav-role-badge-user {
  background: rgba(20, 184, 166, 0.14);
  color: var(--primary-dark);
}

.nav-cta,
.btn.btn-primary {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.22);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.nav-cta:hover,
.nav-cta:focus {
  background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
  transform: translateY(-1px);
}

.dropdown-menu {
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(197, 191, 177, 0.5);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.dropdown-item:hover {
  background-color: rgba(20, 184, 166, 0.12);
  color: var(--secondary-color);
}

.admin-form,
.auth-card,
.bien-detail-description,
.reservation-card,
.tarif-card,
.features-icons-item,
.testimonial-card,
.discover-card,
.listing-card,
.best-rated-card,
.type-card .card {
  background: var(--card-bg);
  border: 1px solid var(--card-border) !important;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.auth-container {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 24%), linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.auth-card {
  border-radius: 1.75rem;
}

.home-hero,
header.masthead {
  position: relative;
  min-height: 720px;
  padding: 7rem 0 5rem;
  background: linear-gradient(135deg, rgba(16, 38, 61, 0.72) 0%, rgba(15, 118, 110, 0.54) 42%, rgba(249, 115, 22, 0.38) 100%), url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?w=1800&h=1200&fit=crop&q=85') no-repeat center 35% !important;
  background-size: cover !important;
}

header.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 24%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.1), transparent 20%);
}

header.masthead .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

header.masthead h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.03em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

header.masthead .lead {
  margin: 0 auto;
  max-width: 90%;
  color: rgba(255, 255, 255, 0.88);
}

.home-search-section {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
  background: transparent !important;
}

.home-search-bar {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(197, 191, 177, 0.45);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(16, 38, 61, 0.18);
  overflow: hidden;
}

.home-search-bar .input-group-text,
.home-search-bar .form-control,
.home-search-bar .btn {
  background: transparent;
}

.search-suggestions-wrap {
  position: relative;
}

.search-suggestions-dropdown {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(197, 191, 177, 0.5);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 20px 40px rgba(16, 38, 61, 0.12);
  z-index: 1000;
}

.search-suggestions-dropdown-sm {
  border-top: 1px solid rgba(197, 191, 177, 0.5);
  border-radius: 1rem;
}

.advanced-filters-panel {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1.5rem;
  padding: 1.4rem;
  margin-top: 1rem;
  box-shadow: 0 18px 48px rgba(16, 38, 61, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
}

.search-filter-label {
  font-size: 0.95rem;
}

.city-card,
.type-card,
.clickable-card,
.best-rated-card,
.testimonial-card {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}

.city-card:hover,
.type-card:hover,
.clickable-card:hover,
.best-rated-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
}

.city-card-frame {
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.city-card-overlay {
  background: linear-gradient(to top, rgba(16, 38, 61, 0.82), transparent 76%);
}

.city-image,
.type-image,
.best-rated-card img,
.listing-card-image,
.carousel-item img {
  transition: transform 0.45s ease;
}

.city-card:hover .city-image,
.type-card:hover .type-image,
.best-rated-card:hover img,
.clickable-card:hover .listing-card-image,
.clickable-card:hover .carousel-item img {
  transform: scale(1.06);
}

.discover-card-media,
.listing-card-image,
.carousel-item img,
.object-fit-cover {
  height: 220px !important;
  object-fit: cover;
  object-position: center;
}

.listing-card {
  cursor: pointer;
}

.listing-feature-badge {
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(197, 191, 177, 0.4);
}

.listing-card-indicators {
  bottom: 8px;
}

.carousel-indicators [data-bs-target] {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.55) !important;
  border: none !important;
  opacity: 0.9 !important;
}

.carousel-indicators .active {
  width: 28px !important;
  border-radius: 999px !important;
  background-color: #ffffff !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 44px !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .carousel-control-prev,
.card:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 34px;
  height: 34px;
  background-color: rgba(16, 38, 61, 0.62);
  border-radius: 50%;
  padding: 8px;
}

.feature-icon {
  font-size: 3rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: 800;
}

.cta-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.app-footer {
  background: linear-gradient(135deg, #10263d 0%, #16324f 52%, #115e59 100%);
  color: var(--footer-text);
  padding: 3rem 0;
  margin-top: 3rem;
}

.app-footer a {
  color: var(--footer-link);
}

.app-footer a:hover {
  color: var(--footer-link-hover);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.footer-brand-text {
  font-size: 1.35rem;
  color: #fff;
}

.footer-copy,
.footer-tagline {
  color: var(--footer-text);
}

main > .container-fluid.px-4,
main > .container-fluid.mt-5.mb-5,
main .reservation-wrapper {
  position: relative;
  z-index: 1;
}

main > .container-fluid.px-4,
main > .container-fluid.mt-5.mb-5 {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

main h1.mt-4,
main > .container-fluid.mt-5.mb-5 h1,
.reservation-wrapper .page-title h1,
.list-header h2,
main h2,
main h3 {
  color: var(--secondary-dark);
  letter-spacing: -0.02em;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(197, 191, 177, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--gray-600);
}

.alert {
  border: 1px solid rgba(197, 191, 177, 0.55);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.alert-info {
  background: rgba(224, 242, 254, 0.78);
  color: #0c4a6e;
}

.alert-success {
  background: rgba(220, 252, 231, 0.82);
  color: #166534;
}

.alert-warning {
  background: rgba(254, 243, 199, 0.84);
  color: #92400e;
}

.alert-danger {
  background: rgba(254, 226, 226, 0.82);
  color: #991b1b;
}

.profile-card,
.selection-section,
.calendar-section,
.reservations-list,
.empty-state,
.form-content,
.collapse .card.card-body,
.reservation-wrapper .modal-content,
.bien-card {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(197, 191, 177, 0.5) !important;
  border-radius: 1.5rem !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: blur(14px);
}

.profile-card,
.collapse .card.card-body,
.form-content,
.selection-section,
.calendar-section,
.reservations-list,
.empty-state {
  padding: 1.5rem;
}

.card,
.modal-content {
  border: 1px solid rgba(197, 191, 177, 0.45);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
}

.card-header,
.reservation-wrapper .calendar-header,
.reservation-wrapper .list-header,
.form-header {
  background: linear-gradient(135deg, rgba(22, 50, 79, 0.94), rgba(15, 118, 110, 0.84)) !important;
  color: #fff !important;
  border: none !important;
}

.card-header {
  border-radius: 1.45rem 1.45rem 0 0 !important;
}

.profile-card .section-title,
.form-content h3,
.collapse .card.card-body h3,
.collapse .card.card-body h2,
.empty-state h3 {
  color: var(--secondary-dark) !important;
  border-bottom: 1px solid rgba(197, 191, 177, 0.5) !important;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-badge {
  background: linear-gradient(135deg, var(--accent-color), #dc2626) !important;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.form-control,
.form-select,
.custom-input,
.filter-autocomplete-input,
textarea {
  border-radius: 1rem !important;
  border: 1px solid rgba(197, 191, 177, 0.6) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 1px 2px rgba(20, 19, 16, 0.03);
  min-height: 48px;
}

.form-control:focus,
.form-select:focus,
.custom-input:focus,
.filter-autocomplete-input:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.7) !important;
  box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.12) !important;
}

textarea.form-control {
  min-height: 120px;
}

.btn.btn-secondary,
.btn.btn-warning,
.btn.btn-success,
.btn.btn-danger,
.btn.btn-outline-warning,
.btn-reserve-main,
.btn-edit,
.btn-delete,
.btn-modal,
.filter-reset-btn,
.reset-selection-btn {
  border-radius: 999px !important;
  border: none;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn.btn-success,
.btn-reserve-main,
.btn-edit,
.btn-modal.btn-confirm {
  background: linear-gradient(135deg, #166534, var(--primary-color)) !important;
  color: #fff !important;
}

.btn.btn-danger,
.btn-delete {
  background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
  color: #fff !important;
}

.btn.btn-warning,
.btn.btn-outline-warning,
.reset-selection-btn,
.filter-reset-btn {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #fff !important;
}

.btn.btn-secondary,
.btn-modal.btn-cancel {
  background: linear-gradient(135deg, #475569, #64748b) !important;
  color: #fff !important;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.action-buttons form {
  display: inline-flex !important;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: 1.35rem 1.35rem 0 0 !important;
  box-shadow: var(--shadow-sm);
}

.form-header h3,
.form-header .toggle-icon {
  color: #fff !important;
  margin: 0;
}

.form-content {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.sub-form-section,
.tarif-row,
.map-info,
.selected-item,
.selection-info,
.date-item,
.legend,
.filter-section {
  background: rgba(244, 239, 231, 0.74) !important;
  border: 1px solid rgba(197, 191, 177, 0.45) !important;
  border-radius: 1.1rem !important;
}

.sub-form-section,
.tarif-row,
.selection-info,
.filter-section {
  padding: 1rem !important;
}

.drop-zone,
.autocomplete-results,
.address-autocomplete-results,
.filter-autocomplete-results {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(197, 191, 177, 0.5) !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow-md) !important;
}

.autocomplete-results.show,
.selected-item.show {
  display: flex;
}

.autocomplete-results.show {
  display: block;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(197, 191, 177, 0.22);
  transition: background 0.2s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item-name {
  font-weight: 700;
  color: var(--secondary-dark);
}

.autocomplete-item-details,
.autocomplete-loading,
.autocomplete-no-results {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.autocomplete-loading,
.autocomplete-no-results {
  padding: 1rem;
  text-align: center;
}

.selected-item {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.selected-item .remove-btn {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 1.1rem;
}

.autocomplete-item:hover,
.address-autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(20, 184, 166, 0.12) !important;
}

.table,
.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 1.15rem;
}

.table thead th,
table.dataTable thead th {
  background: rgba(22, 50, 79, 0.92) !important;
  color: #fff !important;
  border-bottom: none !important;
  font-weight: 700;
}

.table tbody tr,
table.dataTable tbody tr {
  background: rgba(255, 255, 255, 0.74);
}

.table-hover tbody tr:hover,
table.dataTable tbody tr:hover,
.reservation-row:hover {
  background: rgba(20, 184, 166, 0.08) !important;
}

.table td,
.table th,
table.dataTable td,
table.dataTable th {
  vertical-align: middle;
  border-color: rgba(197, 191, 177, 0.35) !important;
}

.reservation-wrapper {
  max-width: 1440px;
  margin: 2rem auto 0;
  padding: 0 1rem 2rem;
}

.reservation-wrapper .page-title,
.reservation-wrapper .selection-section,
.reservation-wrapper .calendar-section,
.reservation-wrapper .reservations-list {
  margin-bottom: 1.5rem;
}

.reservation-wrapper .page-title {
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(22, 50, 79, 0.94), rgba(15, 118, 110, 0.84));
  border-radius: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.reservation-wrapper .page-title::before {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.reservation-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-kicker {
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.section-eyebrow {
  margin-bottom: 0.65rem;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.reservation-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.reservation-hero-chip {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.reservation-hero-value {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.reservation-hero-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.reservation-wrapper .section-intro {
  margin-bottom: 1.35rem;
}

.reservation-wrapper .section-intro h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.reservation-wrapper .section-intro p {
  margin: 0;
  max-width: 760px;
  color: var(--gray-600);
}

.reservation-wrapper .selection-grid {
  align-items: stretch;
}

.reservation-wrapper .select-group {
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(197, 191, 177, 0.35);
}

.reservation-wrapper .selection-info {
  background: linear-gradient(135deg, rgba(22, 50, 79, 0.96), rgba(15, 118, 110, 0.9)) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 1.4rem !important;
  box-shadow: 0 20px 45px rgba(22, 50, 79, 0.18);
}

.reservation-wrapper .selection-info h3,
.reservation-wrapper .selection-info #dateDebut,
.reservation-wrapper .selection-info #dateFin,
.reservation-wrapper .selection-info #duree,
.reservation-wrapper .selection-info .date-display > div,
.reservation-wrapper .selection-info .btn-reserve-main,
.reservation-wrapper .selection-info .reset-selection-btn {
  color: #fff !important;
}

.reservation-wrapper .selection-info .date-label {
  color: rgba(255, 255, 255, 0.72) !important;
}

.reservation-wrapper .date-display {
  flex-wrap: wrap;
}

.reservation-wrapper .date-item {
  min-width: 130px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.reservation-wrapper .tarif-info {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.reservation-wrapper .tarif-loading,
.reservation-wrapper .tarif-montant {
  color: #fff !important;
}

.reservation-wrapper .tarif-error {
  color: #fee2e2 !important;
}

.reservation-wrapper .calendar-header,
.reservation-wrapper .list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.4rem 1.4rem 0 0 !important;
}

.reservation-wrapper .calendar-title,
.reservation-wrapper .list-header h2 {
  margin: 0;
}

.reservation-wrapper .legend {
  padding: 0.8rem 1rem !important;
}

.reservation-wrapper .filter-section {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
}

.reservation-wrapper .filter-group {
  min-width: min(320px, 100%);
}

.reservation-wrapper #calendar {
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.reservation-wrapper .fc .fc-toolbar-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--secondary-dark);
}

.reservation-wrapper .fc .fc-button {
  border-radius: 999px;
  border: none;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  text-transform: none;
}

.reservation-wrapper .fc .fc-daygrid-day-frame {
  min-height: 100px;
}

.reservation-wrapper .reservations-table-shell {
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(197, 191, 177, 0.3);
}

.reservation-wrapper .list-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
}

.reservation-wrapper #tableMyReservations tbody td:first-child {
  font-weight: 800;
  color: var(--secondary-dark);
}

.reservation-wrapper .btn-edit,
.reservation-wrapper .btn-delete {
  min-width: 128px;
}

.reservation-wrapper .empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
}

.reservation-wrapper .empty-state p {
  margin: 0;
  font-size: 1rem;
}

.reservation-wrapper .page-title h1,
.reservation-wrapper .page-title p,
.reservation-wrapper .calendar-title,
.reservation-wrapper .list-header h2,
.reservation-wrapper .selectionInfo h3 {
  color: #fff !important;
}

.reservation-wrapper #calendar {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 1.25rem;
  padding: 1rem;
}

.bien-card {
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bien-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.bien-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.bien-card-body {
  padding: 1.15rem;
}

.bien-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.bien-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary-dark);
}

.bien-address,
.bien-info,
.empty-state p,
.page-title p {
  color: var(--gray-600) !important;
}

.empty-state i {
  color: rgba(15, 118, 110, 0.35) !important;
}

@media (min-width: 992px) and (max-width: 1279px) {
  .app-navbar .nav-link {
    padding: 0.55rem 0.65rem !important;
    font-size: 0.87rem;
  }
  .nav-role-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
}

@media (max-width: 991px) {
  .app-navbar .container {
    border-radius: 1.5rem;
  }

  .navbar-collapse {
    margin-top: 0.85rem;
    padding-top: 0.5rem;
  }

  .home-search-section {
    margin-top: -2.5rem;
  }

  header.masthead {
    min-height: 560px;
    background-attachment: scroll !important;
    padding-top: 6rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .action-buttons form,
  .action-buttons .btn {
    width: 100%;
  }

  .admin-danger-zone-header {
    flex-direction: column;
  }

  .admin-danger-trigger {
    width: 100%;
    min-width: 0;
  }

  .admin-reset-dialog {
    padding: 1.2rem;
  }

  .admin-reset-actions {
    flex-direction: column-reverse;
  }

  .admin-reset-actions .btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  header.masthead {
    min-height: 460px;
    padding: 6rem 0 3.5rem;
  }

  .hero-kicker {
    font-size: 0.7rem;
  }

  .home-search-bar {
    border-radius: 1.25rem;
  }

  .advanced-filters-panel {
    padding: 1rem;
  }

  .discover-card-media,
  .listing-card-image,
  .carousel-item img,
  .object-fit-cover,
  .city-card-frame {
    height: 190px !important;
  }

  main > .container-fluid.px-4,
  main > .container-fluid.mt-5.mb-5,
  .reservation-wrapper {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .reservation-hero-meta {
    grid-template-columns: 1fr;
  }

  .reservation-wrapper .calendar-header,
  .reservation-wrapper .list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reservation-wrapper .filter-section {
    width: 100%;
  }

  .reservation-wrapper .list-counter {
    min-width: auto;
  }

  .profile-card,
  .selection-section,
  .calendar-section,
  .reservations-list,
  .empty-state,
  .form-content,
  .collapse .card.card-body {
    padding: 1rem;
  }
}