/* Yatra Yatri - Custom Styles */

:root {
    --sage-green: #E8F5E9;
    --warm-beige: #FFF9F0;
    --charcoal: #1A1A1A;
    --white: #FFFFFF;
    --gold: #C89968;
    --text-gray: #4A5568;
    --border-light: #E2E8F0;
}

* {
    scroll-behavior: smooth;
}

/* Typography */
.font-body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.text-accent {
    font-family: 'Great Vibes', cursive;
}

/* Color Utilities */
.bg-sage-green {
    background-color: var(--sage-green);
}

.bg-warm-beige {
    background-color: var(--warm-beige);
}

.bg-charcoal {
    background-color: var(--charcoal);
}

.bg-gold {
    background-color: var(--gold);
}

.text-gold {
    color: var(--gold);
}

.text-charcoal {
    color: var(--charcoal);
}

.text-gray-700 {
    color: var(--text-gray);
}

.border-light {
    border-color: var(--border-light);
}

/* Hero Section Carousel */
.hero-carousel {
    width: 100%;
    height: 100%;
}

.hero-image {
    animation: kenBurns 8s ease-in-out infinite;
}

.hero-image:nth-child(2) {
    animation-delay: 8s;
}

.hero-image:nth-child(3) {
    animation-delay: 16s;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth Transitions */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Package Cards */
.package-card {
    overflow: hidden;
    border-radius: 0.5rem;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation Hover */
nav a:not(.text-white):hover {
    color: var(--gold);
}

/* Button Styles */
button, .btn, a[role="button"] {
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.bg-gold:hover {
    background-color: #c49263;
}

/* Form Inputs */
input, select, textarea {
    transition: all 0.3s ease;
    border: 2px solid #ddd;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 163, 115, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll Animations */
[data-aos="fade-up"] {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Menu */
@media (max-width: 768px) {
    #mobile-nav {
        animation: slideDown 0.3s ease;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials & Gallery */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Accordion */
details summary {
    user-select: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    font-weight: 700;
}

/* Sticky Navigation */
nav {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

nav.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Dark Mode (Optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    nav {
        background-color: rgba(42, 42, 42, 0.95);
    }

    input, select, textarea {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }

    .bg-warm-beige {
        background-color: #2a2a2a;
    }

    .bg-sage-green {
        background-color: #1e3a2a;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Utilities */
.text-opacity-80 {
    opacity: 0.8;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Loading States */
button:active {
    transform: scale(0.98);
}

/* Print Styles */
@media print {
    nav, footer, .whatsapp-button {
        display: none;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Smooth Page Transitions */
::selection {
    background-color: var(--gold);
    color: var(--white);
}

/* Hero Scroll Indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Image Lazy Load */
img[loading="lazy"] {
    opacity: 0.8;
}

img[loading="lazy"].loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.1) 0%, rgba(232, 241, 232, 0.1) 100%);
}

/* Container Queries (Modern CSS) */
@supports (container-type: inline-size) {
    .adaptive-grid {
        container-type: inline-size;
    }

    @container (min-width: 700px) {
        .card {
            padding: 2rem;
        }
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c49263;
}

/* Links */
a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.no-underline:hover {
    text-decoration: none;
}

/* Badges & Tags */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-gold {
    background-color: var(--gold);
    color: var(--white);
}

.badge-sage {
    background-color: var(--sage-green);
    color: var(--charcoal);
}

/* Footer Links */
footer a:hover {
    color: var(--white);
    text-decoration: none;
}

/* Placeholder Styling */
::placeholder {
    color: #999;
    opacity: 0.7;
}

/* Max Widths */
.prose {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}
/* ===== PINTEREST-STYLE MASONRY ===== */
#packages-gallery {
    display: columns;
}

.pinterest-pin {
    break-inside: avoid;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--sage-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pinterest-pin:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.pinterest-pin.tall {
    height: 500px;
}

.pinterest-pin.medium {
    height: 400px;
}

.pinterest-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pinterest-pin:hover img {
    transform: scale(1.08);
}

/* Gradient overlay for hover effect */
.pinterest-pin > div > div:nth-child(2) {
    transition: opacity 0.3s ease;
}

/* Pin text content */
.pinterest-pin:hover h3 {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star rating animation */
.pinterest-pin:hover .text-gold {
    animation: twinkle 0.6s ease-out;
}

@keyframes twinkle {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Select box styling for modern look */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

select:hover {
    border-color: var(--gold);
}

select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

/* Responsive columns */
@media (max-width: 1024px) {
    #packages-gallery {
        columns: 2;
    }
}

@media (max-width: 640px) {
    #packages-gallery {
        columns: 1;
    }
    
    .pinterest-pin.tall {
        height: 350px;
    }
    
    .pinterest-pin.medium {
        height: 300px;
    }
}

/* Pin content fade in on hover */
.pinterest-pin > div > div:nth-child(3) {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pinterest-pin:hover > div > div:nth-child(3) {
    opacity: 1;
}

/* Tag badge entrance animation */
.pinterest-pin:hover > div > div:nth-child(2) {
    animation: badgeSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes badgeSlide {
    from {
        opacity: 0;
        transform: translate(20px, -20px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Button scale effect on hover */
.pinterest-pin a:active {
    transform: scale(0.95);
}

/* Smooth transition for all interactive elements */
.group {
    position: relative;
}

.group img {
    will-change: transform;
}

/* Pinterest-Inspired Home UI */
.pinterest-hero-bg {
    background: radial-gradient(1200px circle at 10% 10%, rgba(212, 163, 115, 0.25) 0%, rgba(245, 232, 211, 0.9) 40%, rgba(232, 241, 232, 0.8) 100%);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid rgba(26, 26, 26, 0.12);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pill:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 153, 104, 0.35);
}

.pin-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--sage-green);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    break-inside: avoid;
}

.pin-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.pin-card:hover img {
    transform: scale(1.06);
}

.pin-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.85) 100%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pin-overlay-visible {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.pin-card:hover .pin-overlay {
    opacity: 1;
}

.pin-overlay p {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pin-overlay span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.board-card {
    width: 280px;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(44, 44, 44, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.board-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.board-card div {
    padding: 1rem 1.25rem 1.25rem;
}

.board-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
}

.board-card p {
    font-size: 0.9rem;
    color: #666;
}

.step-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(44, 44, 44, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
}

.step-card h3 {
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .pin-card {
        border-radius: 1rem;
    }
    
    .board-card {
        width: 240px;
    }
    
    .step-card {
        padding: 0.875rem 1rem;
    }
    
    .step-card span {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }
    
    /* Ensure text is readable on mobile */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Better button sizes for mobile */
    button, a.bg-gold, a.bg-charcoal {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Optimize masonry columns */
    .columns-3 {
        columns: 1 !important;
    }
    
    .columns-2 {
        columns: 1 !important;
    }
    
    /* Better spacing on mobile */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .columns-3 {
        columns: 2 !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Enhanced visibility for reviews and testimonials */
.review-text {
    color: var(--charcoal);
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--text-gray);
    font-weight: 600;
}

/* Better button contrast */
.btn-primary {
    background-color: var(--gold);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(200, 153, 104, 0.3);
}

.btn-primary:hover {
    background-color: #B5824F;
    box-shadow: 0 6px 16px rgba(200, 153, 104, 0.4);
}