/* ═══════════════════════════════════════════════════════
   Vacation Page — Additional Styles
   Uses the existing site theme (main.css) as base
   ═══════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.vacation-hero {
    padding-top: 40px;
    padding-bottom: 30px;
}

.vacation-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.vacation-hero__desc {
    font-size: 1.05rem;
    opacity: 0.7;
    margin-bottom: 30px;
}

.vacation-search {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.vacation-search__input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--tg-border-color);
    background: var(--tg-body-bg-2, #f8f8f8);
    color: var(--tg-body-color);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.vacation-search__input:focus {
    border-color: var(--tg-primary-color, #3eb489);
}

.vacation-search__btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    background: var(--tg-theme-primary, #ff3366);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.vacation-search__btn:hover {
    background: #e6004d;
    opacity: 1;
}

/* ── Filters ─────────────────────────────────────────── */
.vacation-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.vacation-filter {
    padding: 8px 22px;
    border-radius: 30px;
    border: 1px solid var(--tg-border-color);
    background: transparent;
    color: var(--tg-body-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.vacation-filter:hover {
    border-color: var(--tg-theme-primary, #ff3366);
}

.vacation-filter.active {
    background: var(--tg-theme-primary, #ff3366);
    color: #fff;
    border-color: var(--tg-theme-primary, #ff3366);
}

/* ── Country Cards ───────────────────────────────────── */
.vacation-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--tg-border-color);
    background: var(--tg-body-bg-2, #fff);
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
}

.vacation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}

.vacation-card__img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.vacation-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vacation-card:hover .vacation-card__img img {
    transform: scale(1.05);
}

.vacation-card__flag {
    position: absolute;
    bottom: 10px;
    left: 12px;
}

.vacation-card__flag img {
    width: 32px;
    height: 22px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vacation-card__body {
    padding: 18px;
}

.vacation-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.vacation-card__desc {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.vacation-card__footer {
    padding: 12px 18px;
    border-top: 1px solid var(--tg-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.vacation-card__weather {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.vacation-card__explore {
    color: var(--tg-theme-primary, #ff3366);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vacation-card:hover .vacation-card__explore {
    gap: 10px;
}

/* ── Spot Detail ─────────────────────────────────────── */
.spot-detail__layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.spot-detail__blog {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tg-border-color);
    background: var(--tg-body-bg-2, #fff);
}

.spot-detail__hero-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.spot-detail__content {
    padding: 30px;
}

.spot-detail__content h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.spot-detail__content h3 {
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--tg-theme-primary, #ff3366);
}

.spot-detail__content p {
    margin-bottom: 14px;
    line-height: 1.7;
}

.spot-detail__content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.spot-detail__content ul li {
    padding: 6px 0 6px 20px;
    position: relative;
}

.spot-detail__content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--tg-theme-primary, #ff3366);
    font-weight: 700;
}

.spot-detail__flag-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.spot-detail__flag-row img {
    width: 48px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spot-detail__meta {
    opacity: 0.6;
    font-size: 0.9rem;
}

.spot-detail__breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.spot-detail__breadcrumb a {
    color: var(--tg-theme-primary, #ff3366);
    text-decoration: none;
}

.spot-detail__breadcrumb span {
    opacity: 0.5;
    margin: 0 6px;
}

/* ── Country Info Chips ──────────────────────────────── */
.country-info-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--tg-border-color);
    background: var(--tg-body-bg-2, #f5f5f5);
    font-size: 0.82rem;
}

/* ── Sidebar Widgets ─────────────────────────────────── */
.spot-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spot-widget {
    border-radius: 12px;
    border: 1px solid var(--tg-border-color);
    background: var(--tg-body-bg-2, #fff);
    padding: 20px;
}

.spot-widget__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

/* Weather widget */
.weather-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.weather-icon {
    width: 56px;
    height: 56px;
}

.weather-desc {
    font-size: 0.9rem;
    text-transform: capitalize;
    opacity: 0.7;
    margin-bottom: 10px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.weather-detail {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--tg-border-color);
    font-size: 0.8rem;
}

.weather-detail span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.5;
    margin-bottom: 2px;
}

/* Hotel / Flight / Attraction items */
.sidebar-item {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--tg-border-color);
    margin-bottom: 8px;
    transition: background 0.2s;
}

.sidebar-item:hover {
    background: var(--tg-body-bg-2, #f5f5f5);
}

.sidebar-item__name {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.sidebar-item__meta {
    font-size: 0.78rem;
    opacity: 0.6;
}

.sidebar-item__price {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    background: var(--tg-theme-primary, #ff3366);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    margin-top: 6px;
}

.sidebar-item__route {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--tg-border-color) 25%, transparent 50%, var(--tg-border-color) 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.long {
    width: 100%;
}

.skeleton-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.skeleton-card {
    height: 70px;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}



/* ── Book Now CTA ────────────────────────────────────── */
.spot-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 30px;
    background: var(--tg-theme-primary, #ff3366);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.spot-cta-btn:hover {
    background: #e6004d;
    color: #fff;
    text-decoration: none;
}

/* ── Mobile book bar ─────────────────────────────────── */
.mobile-book-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    background: var(--tg-body-bg-2, #fff);
    border-top: 1px solid var(--tg-border-color);
    z-index: 999;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-book-bar__dest {
    font-weight: 700;
    font-size: 1rem;
}

.mobile-book-bar__price {
    color: var(--tg-theme-primary, #ff3366);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .spot-detail__layout {
        grid-template-columns: 1fr;
    }

    .spot-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .vacation-search {
        flex-direction: column;
    }

    .spot-sidebar {
        grid-template-columns: 1fr;
    }

    .mobile-book-bar {
        display: flex;
    }

    .vacation-hero__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .vacation-filters {
        gap: 6px;
    }

    .vacation-filter {
        padding: 6px 14px;
        font-size: 0.82rem;
    }
}

/* ── Button Text Fix ────────────────────────────────── */
.vacation-search__btn,
.vacation-search__btn:hover,
.vacation-search__btn:focus,
.spot-cta-btn,
.spot-cta-btn:hover,
.spot-cta-btn:focus {
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════
   Dark Mode — Vacation & Spot Detail Pages
   ═══════════════════════════════════════════════════════ */

/* Search input */
[tg-theme="dark"] .vacation-search__input {
    background: #1a1a1a;
    border-color: #333;
    color: #e0e0e0;
}

/* Filter buttons */
[tg-theme="dark"] .vacation-filter {
    border-color: #333;
    color: #ccc;
    background: transparent;
}

[tg-theme="dark"] .vacation-filter:hover {
    border-color: #ff3366;
}

[tg-theme="dark"] .vacation-filter.active {
    background: #ff3366;
    color: #fff;
    border-color: #ff3366;
}

/* Country cards */
[tg-theme="dark"] .vacation-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[tg-theme="dark"] .vacation-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

[tg-theme="dark"] .vacation-card__body {
    color: #e0e0e0;
}

[tg-theme="dark"] .vacation-card__desc {
    color: #aaa;
}

[tg-theme="dark"] .vacation-card__footer {
    border-color: #2a2a2a;
    color: #ccc;
}

/* Spot detail blog section */
[tg-theme="dark"] .spot-detail__blog {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[tg-theme="dark"] .spot-detail__content {
    color: #e0e0e0;
}

[tg-theme="dark"] .spot-detail__content h2,
[tg-theme="dark"] .spot-detail__content h3 {
    color: #f0f0f0;
}

[tg-theme="dark"] .spot-detail__content h3 {
    color: #ff3366;
}

[tg-theme="dark"] .spot-detail__content p {
    color: #bbb;
}

[tg-theme="dark"] .spot-detail__meta {
    color: #888;
}

/* Sidebar widgets */
[tg-theme="dark"] .spot-widget {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[tg-theme="dark"] .spot-widget__title {
    color: #f0f0f0;
}

[tg-theme="dark"] .weather-temp {
    color: #f0f0f0;
}

[tg-theme="dark"] .weather-desc {
    color: #aaa;
}

[tg-theme="dark"] .weather-detail {
    border-color: #2a2a2a;
    color: #ccc;
}

[tg-theme="dark"] .weather-detail span {
    color: #888;
}

[tg-theme="dark"] .sidebar-item {
    border-color: #2a2a2a;
    color: #e0e0e0;
}

[tg-theme="dark"] .sidebar-item:hover {
    background: #222;
}

[tg-theme="dark"] .sidebar-item__name {
    color: #f0f0f0;
}

[tg-theme="dark"] .sidebar-item__meta {
    color: #888;
}

/* Country info chips */
[tg-theme="dark"] .country-chip {
    background: #222;
    border-color: #333;
    color: #ccc;
}

/* Breadcrumb */
[tg-theme="dark"] .spot-detail__breadcrumb {
    color: #888;
}

[tg-theme="dark"] .spot-detail__breadcrumb a {
    color: #ff3366;
}

/* Mobile book bar */
[tg-theme="dark"] .mobile-book-bar {
    background: #111;
    border-color: #2a2a2a;
}

[tg-theme="dark"] .mobile-book-bar__dest {
    color: #f0f0f0;
}