/* FILE: assets/css/components.css (Revised) */

#hamburger-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1.2rem;
    padding: 2px 8px;
    cursor: pointer;
    color: var(--primary-color);
}

.logo { 
    font-size: 23px; 
    font-weight: bold; 
    color: var(--primary-color); 
    text-decoration: none; 
}

.country-tabs { 
    display: flex; 
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px; 
    overflow-x: auto;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.country-tabs::-webkit-scrollbar {
    display: none;
}

/* MODIFIED: Renamed class for generic sidebar links */
.sidebar-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.sidebar-link:hover {
    background-color: var(--subtle-bg);
}

.sidebar-link.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* NEW: Styles for the signup button inside the sidebar */
.signup-btn-sidebar {
    background: var(--primary-color);
    color: white !important;
    text-align: center;
    font-weight: 500;
    margin-top: 0.5rem;
}
.signup-btn-sidebar:hover {
    background: var(--primary-hover);
}


.country-tab { 
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 4px 10px; 
    font-size: 13px; 
    background: rgba(255,255,255,0.6); 
    border: 1px solid var(--border-color); 
    border-radius: 18px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-weight: 500; 
    color: var(--text-secondary); 
    text-align: center; 
    white-space: nowrap;
}
.country-tab:hover { 
    background-color: #fff; 
}
.country-tab.active { 
    background: var(--primary-color); 
    color: var(--light-bg); 
    border-color: var(--primary-color); 
}

.nav-items { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    justify-self: end; 
}
.nav-item { 
    padding: 5px 10px; 
    font-size: 13px; 
    text-decoration: none; 
    color: var(--text-secondary); 
    transition: all 0.3s ease; 
    font-weight: 500; 
    border-radius: 5px; 
}
.nav-item:hover { 
    background: rgba(255,255,255,0.8); 
    color: var(--primary-color); 
}

.signup-btn { 
    padding: 6px 13px; 
    font-size: 13px; 
    background: var(--primary-color); 
    color: var(--light-bg); 
    border: none; 
    border-radius: 5px; 
    font-weight: 600; 
    cursor: pointer; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    white-space: nowrap;
}
.signup-btn:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(13,110,253,0.2); 
}

.destination-tile { 
    display: flex; 
    align-items: center; 
    background: rgba(255,255,255,0.7); 
    border: 1px solid var(--border-color); 
    border-radius: 7px; 
    padding: 11px; 
    margin-bottom: 6px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.destination-tile:hover { 
    border-color: var(--primary-color); 
    background: #fff; 
}
.destination-tile.selected { 
    border-color: var(--primary-color); 
    background-color: var(--subtle-bg); 
}

.tile-image {
    width: 72px;
    height: 72px;
    border-radius: 5px;
    margin-right: 14px;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.tile-image.placeholder::after {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    color: var(--text-secondary);
}
.tile-info { 
    flex-grow: 1; 
    min-width: 0; 
}
.tile-name { 
    font-weight: 600; 
    font-size: 13px; 
    color: var(--text-primary); 
}
.tile-sub-info { 
    font-size: 11px; 
    color: var(--text-secondary); 
}
.tile-price { 
    font-size: 13px; 
    font-weight: bold; 
    color: var(--primary-color); 
}

.interest-menu { 
    display: flex; 
    gap: 6px; 
    padding-bottom: 11px; 
    margin-bottom: 11px; 
    border-bottom: 1px solid var(--border-color); 
    overflow-x: auto; 
    scrollbar-width: thin; 
}
.interest-tag { 
    padding: 5px 11px; 
    font-size: 13px; 
    font-weight: 500; 
    background: #f8f9fa;
    color: var(--text-secondary); 
    border-radius: 18px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    white-space: nowrap; 
    border: 1px solid var(--border-color); 
}
.interest-tag:hover { 
    background-color: #fff; 
    color: var(--primary-color); 
    border-color: var(--primary-color);
}
.interest-tag.active { 
    background: var(--primary-color); 
    color: var(--light-bg); 
    border-color: var(--primary-color); 
}

.filters-bar { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 9px; 
    align-items: center; 
}
.filter-dropdown { 
    position: relative; 
}
.filter-btn { 
    background: #f8f9fa; 
    border: 1px solid var(--border-color); 
    border-radius: 5px; 
    padding: 5px 8px; 
    font-size: 13px; 
    font-weight: 500; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}
.filter-btn:hover { 
    background: #e9ecef; 
}
.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 110%; 
    left: 0; 
    background: var(--light-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 7px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    z-index: 10; 
    padding: 11px; 
    min-width: 203px; 
}
.filter-dropdown.open .dropdown-content { 
    display: block; 
}
.dropdown-content h4 { 
    font-size: 14px; 
    margin-bottom: 7px; 
}
.dropdown-content label { 
    display: flex; 
    align-items: center; 
    margin-bottom: 6px; 
    font-size: 13px; 
    cursor: pointer; 
}
.dropdown-content input[type="checkbox"] { 
    margin-right: 7px; 
    accent-color: var(--primary-color); 
}
.price-range-display { 
    font-weight: 600; 
    color: var(--primary-color); 
    text-align: center; 
    font-size: 14px; 
    margin-bottom: 7px; 
}
#priceRange { 
    width: 100%; 
    cursor: pointer; 
}
.reset-filters-btn { 
    background: none; 
    border: none; 
    color: var(--primary-color); 
    font-size: 12px; 
    cursor: pointer; 
    margin-left: auto; 
}

.welcome-content { 
    text-align: center; 
    padding: 49px 16px; 
    color: var(--text-secondary); 
}
.welcome-icon { 
    font-size: 39px; 
    margin-bottom: 13px; 
}

.details-image { 
    width: 100%; 
    height: 203px; 
    background-color: #e9ecef; 
    border-radius: 11px; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-size: cover; 
    background-position: center;
}
.image-overlay-stats { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); 
    color: white; 
    display: flex; 
    justify-content: space-around; 
    padding: 11px 8px; 
    text-align: center; 
}
.overlay-stat .value { 
    font-size: 14px; 
    font-weight: 600; 
}
.overlay-stat .label { 
    font-size: 11px; 
    opacity: 0.9; 
}

.sticky-info-card { 
    background: white; 
    border: 1px solid var(--border-color); 
    border-radius: 11px; 
    padding: 12px; 
    margin-top: 12px; 
}
.sticky-info-card h4 { 
    font-size: 14px; 
    font-weight: 600; 
    margin-bottom: 8px; 
}
.sticky-info-card p { 
    font-size: 13px; 
    color: var(--text-secondary); 
    line-height: 1.5; 
}

.traveler-guide-box { 
    background: #f8f9fa; 
    border: 1px solid var(--border-color); 
    border-radius: 7px; 
    padding: 12px; 
    margin-top: 12px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}
.guide-item { 
    display: flex; 
    align-items: center; 
    font-size: 13px; 
}
.guide-item-full {
    grid-column: span 2;
    display: flex;
    align-items: center;
    font-size: 13px;
}
.guide-item .icon, .guide-item-full .icon { 
    font-size: 16px; 
    margin-right: 8px; 
}
.guide-item .label, .guide-item-full .label { 
    font-weight: 600; 
    margin-right: 4px; 
}

.details-right-column h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.itinerary-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    flex-shrink: 0;
}
.itinerary-tab { 
    padding: 5px 13px; 
    font-size: 13px; 
    font-weight: 500; 
    background: #e9ecef; 
    color: var(--text-secondary); 
    border-radius: 18px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}
.itinerary-tab:hover { 
    background-color: #dce0e4; 
}
.itinerary-tab.active { 
    background-color: var(--primary-color); 
    color: var(--light-bg); 
}

.plan-card { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    background: white; 
    padding: 11px; 
    border-radius: 7px; 
    border: 1px solid var(--border-color); 
    width: 100%; 
    text-align: left; 
    margin-bottom: 10px; 
}
.plan-header { 
    display: flex; 
    width: 100%; 
    align-items: center; 
    gap: 12px; 
}
.plan-info { 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.vendor-name {
    font-size: 13px;
    font-weight: normal;
    color: var(--text-secondary);
}

.plan-actions { 
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.plan-price {
    font-size: 16px; 
    font-weight: bold; 
    color: #D32F2F;
    margin-left: 9px;
}

.view-details-btn {
    background: var(--subtle-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
    text-align: center;
}

.view-details-btn:hover {
    background: var(--primary-color);
    color: var(--light-bg);
}

.view-deal-btn { 
    background: var(--primary-color); 
    color: white; 
    text-decoration: none; 
    padding: 6px 13px; 
    border-radius: 5px; 
    font-size: 13px; 
    font-weight: 500; 
    display: inline-block; 
    transition: background 0.2s; 
}

.toggle-itinerary-btn { 
    background: #e7f5ff;
    border: 1px solid #b3d7ff;
    color: #0056b3;
    font-size: 11px; 
    font-weight: 600; 
    padding: 5px 9px; 
    border-radius: 14px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.toggle-itinerary-btn:hover { 
    background-color: #d0eaff;
}

.itinerary-details { 
    display: none; 
    width: 100%; 
    padding-top: 12px; 
    margin-top: 12px; 
    border-top: 1px solid var(--border-color); 
}
.itinerary-day { 
    margin-bottom: 8px; 
    padding: 6px; 
    border-radius: 4px; 
    border-bottom: 1px dashed var(--border-color); 
    cursor: pointer; 
    transition: background-color 0.2s; 
}
.itinerary-day:hover { 
    background-color: #e9ecef; 
}
.itinerary-day .day-title { 
    font-weight: 600; 
    color: var(--text-primary); 
    font-size: 13px;
}
.itinerary-day .day-desc { 
    font-size: 12px; 
    color: var(--text-secondary); 
    padding-left: 8px; 
}

.overlay-container { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    max-width: 365px; 
    height: 100%; 
    background: var(--light-bg); 
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
    z-index: 1000; 
    transition: right 0.4s ease-in-out; 
    display: flex; 
    flex-direction: column; 
}
.overlay-container.is-open { 
    right: 0; 
}
.overlay-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 13px 16px; 
    border-bottom: 1px solid var(--border-color); 
    flex-shrink: 0; 
}
.overlay-title { 
    font-size: 14px; 
    font-weight: 600; 
}
.overlay-close-btn { 
    font-size: 20px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text-secondary); 
}
.overlay-content { 
    padding: 16px; 
    overflow-y: auto; 
    flex-grow: 1; 
}
.overlay-image { 
    width: 100%; 
    height: 162px; 
    background-color: #e9ecef; 
    border-radius: 7px; 
    margin-bottom: 12px; 
    background-size: cover; 
    background-position: center; 
}
.overlay-section-title { 
    font-weight: 600; 
    margin-top: 16px; 
    margin-bottom: 8px; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 4px; 
    font-size: 13px; 
}
.overlay-section-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 5px 9px 5px;
}
.overlay-list-item { 
    display: flex; 
    align-items: start; 
    font-size: 13px; 
    color: var(--text-secondary); 
    margin-bottom: 6px; 
}
.overlay-list-item::before { 
    content: '✓'; 
    color: var(--primary-color); 
    margin-right: 7px; 
    font-weight: bold; 
    font-size: 14px;
}

.message-container { 
    width: 100%; 
    text-align: center; 
    padding: 32px 16px; 
    color: var(--text-secondary); 
    font-size: 13px; 
    background: rgba(255,255,255,0.5); 
    border-radius: 7px; 
}