/* ───────────────────────────────────────────
   Site header (shared across all pages)
   ─────────────────────────────────────────── */

.menu-container {
    height: 60px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.site-logo {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1001;
}

.site-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.header-actions {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.add-place-btn {
    height: 40px;
    padding: 0 22px;
    background-color: #23d3d3;
    color: white;
    border: 1px solid #23d3d3;
    border-radius: 999px;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.add-place-btn .plus-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

/* Filled → outlined on hover. Border + icon + text all stay #23d3d3. */
.add-place-btn:hover {
    background-color: #ffffff;
    color: #23d3d3;
}

/* ───── Profile button (Airbnb-style) ───── */
.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Outfit', Arial, sans-serif;
    color: #222;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0);
    border-color: #6e6e6e;
}

.profile-avatar {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e6e;
}

.profile-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-menu {
    position: relative;
    display: inline-flex;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 170px;
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 10001;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.profile-dropdown-icon {
    width: 18px;
    height: 18px;
    color: #6e6e6e;
    flex-shrink: 0;
}

.profile-dropdown-item:hover {
    background-color: #f7f7f7;
}

.profile-dropdown-item--bold {
    font-weight: 600;
}

.profile-dropdown-divider {
    height: 1px;
    background-color: #ebebeb;
    margin: 6px 8px;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    color: #777777;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    padding: 20px 16px;
}

.menu li:hover {
    color: #23d3d3;
}

/* Top-level nav links (Travel / Beauty) — inherit color from parent <li>
   so hover still tints them while preserving the mega-menu hover behavior. */
.menu li .menu-link {
    color: inherit;
    text-decoration: none;
    font: inherit;
}

.mega-menu {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 60vw;
    height: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.mega-menu li {
    color: #333;
    font-size: 16px;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    background-color: #f9f9f9;
}

.mega-menu li:hover {
    color: #23d3d3;
    background-color: #f0f8f8;
    border-color: #23d3d3;
}

/* ───── Travel mega menu ───── */
.mega-menu--travel {
    display: block;
    width: 960px;
    max-width: 960px;
    height: auto;
    min-height: 400px;
    padding: 24px 32px;
    text-align: left;
}

.travel-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.travel-tab-list {
    display: flex;
    gap: 36px;
}

.travel-tab {
    color: #999;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
}

.travel-tab:hover {
    color: #23d3d3;
}

.travel-tab.active {
    color: #111;
    font-weight: 500;
}

.travel-all {
    color: #777;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.travel-all:hover {
    color: #23d3d3;
}

.travel-all-icon {
    width: 14px;
    height: 14px;
}

.travel-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.travel-card {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #f0f0f0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.travel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.travel-card-overlay {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: #222;
}

.travel-card-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 4px;
}

.travel-card-sub {
    font-size: 14px;
    font-weight: 400;
    color: #444;
}

.travel-card-eyebrow {
    font-size: 13px;
    font-weight: 400;
    color: #444;
    margin-bottom: 2px;
}

.by-category-title {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin-bottom: 12px;
}

.category-list {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.category-list a {
    color: #555;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-list a:hover {
    color: #23d3d3;
}

/* ───── Community variants ───── */
.community-header {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.travel-card--orange {
    background: linear-gradient(160deg, #ff8a4c 0%, #ff5a1f 100%);
}

.travel-card--lavender {
    background: linear-gradient(160deg, #d8d2ff 0%, #b6acff 100%);
}

.travel-card--indigo {
    background: linear-gradient(160deg, #7a80ea 0%, #4a50d6 100%);
}

.travel-card--colored .travel-card-overlay {
    color: white;
}

.travel-card-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 84px;
    height: 84px;
    color: white;
}

.community-links {
    display: flex;
    gap: 56px;
}

.community-links a {
    color: #555;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.community-links a:hover {
    color: #23d3d3;
}

.search-icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #777777;
    position: relative;
    z-index: 10000;
}

.search-icon:hover {
    color: #23d3d3;
    transform: scale(1.1);
}

.search-box {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: center;
    width: 320px;
    height: 50px;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}

.search-box.expanded {
    height: auto;
    min-height: 120px;
    width: 320px;
    border-radius: 25px;
    align-items: flex-start;
    padding: 0 20px 25px 20px;
}

.search-input {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    border: none;
    outline: none;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-buttons {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0 20px 0 20px;
}

.search-buttons-label {
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    text-align: left;
    margin-bottom: 4px;
}

.search-buttons-row {
    display: flex;
    gap: 16px;
}

.search-box.expanded .search-buttons {
    opacity: 1;
    visibility: visible;
}

.search-button {
    padding: 40px 12px;
    border: 1px solid #111111;
    border-radius: 20px;
    background-color: white;
    color: #111111;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #111111;
    color: white;
    border-color: #111111;
}

.search-icon:hover ~ .search-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}
