/* ======================================================
   TRIP GALLERY PAGE  —  trip-gallery.css
   ====================================================== */

/* ── Base overrides for this page ── */
.tg-body {
    padding-top: 0;
    overflow-x: hidden;
}

/* ── Navbar (always solid on this page) ── */
.tg-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-background) !important;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

.tg-nav-logo { color: var(--color-text-primary) !important; }
.tg-nav-link  { color: var(--color-text-primary) !important; }
.tg-nav-link:hover { color: var(--color-accent) !important; }
.tg-navbar .hamburger span { background-color: var(--color-text-primary) !important; }

/* ── Main wrapper — space for fixed navbar ── */
.tg-main {
    padding-top: var(--navbar-height);
}

/* ======================================================
   HERO BANNER
   ====================================================== */
.tg-hero {
    position: relative;
    height: 380px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(192,21,15,.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(192,21,15,.15) 0%, transparent 50%);
}

.tg-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}

.tg-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.tg-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    transition: color .25s;
    text-decoration: none;
}

.tg-back-btn:hover { color: #fff; }

.tg-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: .75rem;
    line-height: 1.1;
}

.tg-hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    max-width: 500px;
    margin: 0 auto;
}

/* ======================================================
   SECTION HEADERS (shared)
   ====================================================== */
.tg-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tg-section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: .6rem;
    letter-spacing: -.3px;
}

.tg-section-header p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ======================================================
   PHOTO GALLERY — masonry grid
   ====================================================== */
.tg-gallery-section {
    padding: 5rem 0 4rem;
    background: var(--color-background-secondary);
}

.tg-masonry-grid {
    columns: 4;
    column-gap: .85rem;
}

/* ── Loading / empty states ── */
.tg-gallery-loading {
    column-span: all;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    animation: tgPulse 1.4s ease-in-out infinite;
}

.tg-gallery-loading i  { font-size: 2.5rem; color: var(--color-accent); }
.tg-gallery-loading p  { font-size: .95rem; }
.tg-gallery-empty      { text-align: center; padding: 3rem 1rem; color: var(--color-text-secondary); }

@keyframes tgPulse {
    0%,100% { opacity: 1; }
    50%     { opacity: .35; }
}

.tg-gallery-item {
    break-inside: avoid;
    margin-bottom: .85rem;
    border-radius: .85rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
}

.tg-gallery-item img {
    width: 100%;
    display: block;
    border-radius: 1rem;
    transition: transform .45s ease, filter .3s ease;
    filter: brightness(.92);
}

.tg-gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1);
}

.tg-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 50%);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity .3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
}

.tg-gallery-item:hover .tg-gallery-overlay {
    opacity: 1;
}

/* Trip name label hidden — user wants photos only */
.tg-gallery-label {
    display: none;
}

.tg-gallery-zoom {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    opacity: 0;
    transform: scale(.7);
    transition: all .3s ease;
}

.tg-gallery-item:hover .tg-gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ======================================================
   ALL POPULAR TRIPS — card grid
   ====================================================== */
.tg-trips-section {
    padding: 5rem 0;
    background: var(--color-background);
}

.tg-trips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.tg-trip-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.tg-trip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.tg-trip-thumb {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.tg-trip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.tg-trip-card:hover .tg-trip-thumb img {
    transform: scale(1.07);
}

.tg-trip-arrow {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    opacity: 0;
    transform: scale(.6);
    transition: all .3s ease;
}

.tg-trip-card:hover .tg-trip-arrow {
    opacity: 1;
    transform: scale(1);
}

.tg-trip-body {
    padding: 1.1rem 1.25rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.tg-trip-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.tg-trip-desc {
    font-size: .82rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tg-trip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
}

.tg-trip-cta {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
    transition: gap .2s ease;
}

.tg-trip-card:hover .tg-trip-cta { gap: .5rem; }

.tg-trip-badge {
    font-size: .72rem;
    font-weight: 600;
    background: rgba(192,21,15,.08);
    color: var(--color-accent);
    padding: .25rem .65rem;
    border-radius: 2rem;
}

/* ======================================================
   CTA STRIP
   ====================================================== */
.tg-cta-strip {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 4rem 0;
}

.tg-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.tg-cta-text h3 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .4rem;
}

.tg-cta-text p {
    color: rgba(255,255,255,.7);
    font-size: .95rem;
}

.tg-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tg-wa-btn {
    background: #25d366 !important;
    border-color: #25d366 !important;
}

.tg-wa-btn:hover {
    background: #1ebe5d !important;
    box-shadow: 0 4px 15px rgba(37,211,102,.35) !important;
}

/* ======================================================
   FOOTER
   ====================================================== */
.tg-footer {
    background: var(--color-background-secondary);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.tg-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .85rem;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}

.tg-footer-links {
    display: flex;
    gap: 1.5rem;
}

.tg-footer-links a {
    color: var(--color-text-secondary);
    transition: color .25s;
    text-decoration: none;
}

.tg-footer-links a:hover { color: var(--color-accent); }

/* ======================================================
   LIGHTBOX
   ====================================================== */
.tg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tg-lightbox.open {
    display: flex;
}

.tg-lb-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tg-lb-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: .75rem;
    display: block;
}

.tg-lb-caption {
    color: rgba(255,255,255,.8);
    margin-top: .85rem;
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
}

.tg-lb-close,
.tg-lb-prev,
.tg-lb-next {
    position: fixed;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .2s;
    z-index: 10000;
}

.tg-lb-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
}

.tg-lb-prev,
.tg-lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
}

.tg-lb-prev { left: 1.25rem; }
.tg-lb-next { right: 1.25rem; }

.tg-lb-close:hover,
.tg-lb-prev:hover,
.tg-lb-next:hover {
    background: rgba(255,255,255,.25);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1100px) {
    .tg-trips-grid { grid-template-columns: repeat(3, 1fr); }
    .tg-masonry-grid { columns: 3; }
}

@media (max-width: 768px) {
    .tg-hero { height: 280px; }
    .tg-hero-content h1 { font-size: 2.25rem; }
    .tg-masonry-grid { columns: 2; column-gap: .6rem; }
    .tg-gallery-item { margin-bottom: .6rem; }
    .tg-trips-grid { grid-template-columns: repeat(2, 1fr); }
    .tg-section-header h2 { font-size: 1.75rem; }
    .tg-cta-inner { flex-direction: column; text-align: center; }
    .tg-cta-buttons { justify-content: center; }
    .tg-footer-inner { flex-direction: column; text-align: center; }
    .tg-lb-prev { left: .5rem; }
    .tg-lb-next { right: .5rem; }
}

@media (max-width: 480px) {
    .tg-masonry-grid { columns: 2; column-gap: .5rem; }
    .tg-gallery-item { margin-bottom: .5rem; border-radius: .6rem; }
    .tg-trips-grid { grid-template-columns: 1fr; }
    .tg-hero-content h1 { font-size: 1.85rem; }
}
