/* 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; 
}

/* NEW: Styles for the dedicated country tab container */
.country-tabs-container {
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.country-tabs-container::-webkit-scrollbar { 
    display: none; /* Safari and Chrome */
}

.country-tabs { 
    display: flex; 
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
}

.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;
}

.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-center .nav-item {
    padding: 5px 10px; 
    font-size: 1rem;
    text-decoration: none; 
    color: var(--text-secondary); 
    transition: all 0.3s ease; 
    font-weight: 500; 
    border-radius: 5px; 
}

.nav-items-center .nav-item:hover {
    background: rgba(255,255,255,0.8); 
    color: var(--primary-color); 
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.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: 0; /* REMOVED margin/padding */
    margin-bottom: 0;
    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;
}
.activity-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    flex-shrink: 0;
}
.activity-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; 
}
.activity-tab:hover { 
    background-color: #dce0e4; 
}
.activity-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; 
}
.activity-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.activity-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.activity-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
}
.activity-info {
    flex-grow: 1;
}
.activity-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}
.activity-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}
.activity-card .view-details-btn {
    background-color: var(--subtle-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.overlay-section-content.tip {
    background-color: #e7f5ff;
    border-left: 3px solid #0056b3;
    padding: 0.75rem;
    border-radius: 4px;
}

.google-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.google-login-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.google-logo {
    width: 16px;
    height: 16px;
}

.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: var(--text-secondary);
}

.user-profile-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.user-profile-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.user-profile-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

.logout-btn {
    color: #dc3545 !important;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: #fff5f5 !important;
    color: #dc3545 !important;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 4px 8px;
    font-size: 13px;
    background: transparent;
    width: 150px; /* Reduced width */
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: var(--primary-color);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-type {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.search-result-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.reviews-container {
    padding: 16px 0;
}

.reviews-stats {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.average-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
}

.rating-stars {
    color: #ffc107;
    font-size: 20px;
}

.rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.review-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.review-form-container {
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.review-form-container h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rating-input label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

.review-text-input label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.review-text-input textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.submit-review-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-review-btn:hover {
    background: var(--primary-hover);
}

.login-prompt {
    text-align: center;
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.login-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding: 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-rating {
    color: #ffc107;
    font-size: 16px;
}

.review-text {
    line-height: 1.5;
    color: var(--text-primary);
}

.no-reviews-message {
    text-align: center;
    padding: 32px;
    color: var(--text-secondary);
}

.no-reviews-message h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}