/* ================================================================
   activity-details.css — Tra-V
   Handles: body base, navbar, travel-plan sidebar, preview boxes,
            roadmap item cards (rendered by JS into .travel-plan)
   Main layout + glass effects → css/detail-liquid-glass.css
   ================================================================ */

/* ── BASE ────────────────────────────────────────────────────── */
body {
  font-family: inika, 'Poppins', sans-serif;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
footer { text-align: center; }

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #E6FFE6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
	height: 30px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Section */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-size: 2.3rem;
    font-weight: bold;
    color: #000;
    transition: transform 0.3s ease-in-out;
}

.navbar-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar-logo:hover {
    transform: scale(1.1);
}

/* Navigation Menu */
.navbar-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-top: 15px;
    padding: 0;
	flex-wrap: wrap;
}

.navbar-links .nav-link {
    text-decoration: none;
    color: black;
    font-size: 1.0rem;
    font-weight: 500;
    padding: 10px 20px;
    background-color: #E6FFE6;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.navbar-links .nav-link:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
}

/* Hamburger Menu */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.navbar-toggle span {
    width: 35px;
    height: 4px;
    background: white;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .navbar-links {
        flex-direction: column;
        background: #16A085;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        display: none;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }
}



/* Sous-menu déroulant */
/* 🌿 Dropdown modernisé */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    min-width: 230px;
    padding: 12px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #2C3E50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border-left: 4px solid transparent;
}

.dropdown-link::after {
    content: '➜';
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
    font-size: 0.95rem;
    color: #2C3E50;
}

.dropdown-link:hover {
    background-color: #d4ffe1;
    padding-left: 28px;
    border-left: 4px solid #2ECC71;
    border-radius: 0 10px 10px 0;
}

.dropdown-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* 🎯 Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: none;
        border-radius: 12px;
        padding: 0;
        width: 100%;
    }

    .navbar ul.active .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style du bouton de déconnexion */
.logout-btn {
    margin-left: 10px;
    padding: 6px 12px;
    background-color: #dc3545; /* Rouge */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Effet au survol */
.logout-btn:hover {
    background-color: #b02a37; /* Rouge foncé */
}

/* user-nav handled by navbar-liquid-glass.css */

/* ── TRAVEL PLAN SIDEBAR ─────────────────────────────────────── */
.travel-plan:not(.travel-plan-shell) {
  position: fixed;
  right: 18px; top: 90px;
  width: 260px;
  max-height: calc(100vh - 120px);
  padding: 18px;
  background: rgba(228,248,231,.76);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 26px;
  box-shadow: 0 24px 52px rgba(18,41,28,.12), inset 0 1px 0 rgba(255,255,255,.62);
  overflow-y: auto; scrollbar-width: none; z-index: 90;
}
.travel-plan:not(.travel-plan-shell)::-webkit-scrollbar { display: none; }
.travel-plan:not(.travel-plan-shell) h2 { font-size: 1.05rem; font-weight: 700; color: #184a31; margin: 0 0 14px; text-align: center; }
.travel-plan:not(.travel-plan-shell) ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.travel-plan:not(.travel-plan-shell) ul li {
  background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.40);
  border-radius: 16px; padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
  cursor: pointer; transition: transform .18s;
}
.travel-plan:not(.travel-plan-shell) ul li:hover { transform: translateY(-1px); }
.travel-plan:not(.travel-plan-shell) li { transition: none; padding: 0; border-radius: 0; background: transparent; border: none; box-shadow: none; }
.travel-plan:not(.travel-plan-shell) li:hover { transform: none; }
.travel-plan:not(.travel-plan-shell) #travel-plan-list .empty-message {
  font-size: .9rem; font-style: italic; color: #5d7668; text-align: center;
  padding: 14px; border: 1px dashed rgba(128,180,140,.36);
  border-radius: 12px; background: rgba(244,252,245,.80);
}

/* ── ROADMAP DROPDOWNS ───────────────────────────────────────── */
.housings-dropdown, .restaurants-dropdown { scrollbar-width: none; overflow-y: auto; }

/* ── ROADMAP ITEM CARDS ──────────────────────────────────────── */
.added-housing-item,
.added-activity-item,
.added-restaurant-item,
.added-region-item {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 14px; padding: 10px;
  box-shadow: 0 4px 12px rgba(18,41,28,.08);
  position: relative; min-height: 68px;
}
.added-activity-item { overflow: hidden; }
.added-housing-item .housing-name,
.added-restaurant-item .restaurant-name {
  font-size: .93rem; font-weight: 700; color: #1b3828; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 86%;
}
.activity-name {
  font-size: .93rem !important; font-weight: 700 !important; color: #1b3828 !important;
  margin: 0 !important; max-width: 86%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.activity-name:hover { animation: scrollText 8s linear infinite; }
@keyframes scrollText {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-60%); }
  100% { transform: translateX(0); }
}
.added-housing-item .housing-dates,
.activity-dates, .restaurant-date-time,
.activity-profile, .restaurant-profiles {
  font-size: .78rem; color: #5a7468; margin: 2px 0 0;
}
.restaurant-date-time { position: static; bottom: auto; }
.housing-price, .activity-price { font-size: .78rem; color: #5a7468; position: static !important; top: auto !important; }
.housing-dates { position: static; top: auto; }
.remove-housing-btn,
.remove-activity-btn,
.remove-restaurant-btn {
  background: none; border: none; cursor: pointer;
  padding: 2px; transition: transform .2s;
  position: absolute; right: 8px; top: 8px; left: auto;
}
.remove-housing-btn:hover,
.remove-activity-btn:hover,
.remove-restaurant-btn:hover { transform: scale(1.18); }
.delete-icon { width: 18px; height: 18px; }
.regions-dropdown { margin-bottom: 14px; }
.added-region-item { min-height: 48px; }
.added-region-item .region-name { font-size: .9rem; font-weight: 700; color: #1b3828; margin: 0; position: static; }
.added-region-item:hover { background: rgba(210,245,218,.60) !important; }
.added-region-item .dates-and-action { display: flex; justify-content: space-between; align-items: center; }
.added-region-item .remove-region-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto; display: flex; align-items: center; transition: transform .2s;
}
.added-region-item .remove-region-btn:hover { transform: scale(1.12); }
.total-price-item {
  background: rgba(255,255,255,.60) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 12px !important; padding: 10px 14px !important;
  font-size: .88rem !important; font-weight: 700 !important;
  color: #184a31 !important; text-align: center !important;
}

/* ── PREVIEW BOXES ───────────────────────────────────────────── */
#activity-preview-box,
#housing-preview-box {
  position: absolute; width: 238px; padding: 10px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.46); border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0,0,0,.10);
  z-index: 9999; display: flex; flex-direction: column; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
#activity-preview-box:not(.hidden),
#housing-preview-box:not(.hidden) { opacity: 1; pointer-events: auto; }
#preview-image-box,
#housing-preview-image { width: 100%; height: 108px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
#preview-title-box,
#housing-preview-title {
  font-size: .84rem; color: #1b3828; font-weight: 700; text-align: center;
  max-width: 200px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.activity-offer-section {
    margin-bottom: 18px;
}

.activity-offer-wrapper {
    margin-top: 10px;
}

.activity-offer-meta {
    margin: 10px 4px 0;
    font-size: 0.92rem;
    color: #476654;
    line-height: 1.45;
}
