/*
Theme Name: Ira Holidays Theme
Theme URI: https://iraholidays.com
Author: Ira Holidays
Author URI: https://iraholidays.com
Description: Premium travel agency theme converted from Lovable UI - supports Pods custom fields for tour packages
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ira-holidays
Tags: travel, tours, custom-post-types, pods
*/

/* ========================================
   GOOGLE FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES (from Lovable index.css)
   ======================================== */
:root {
    --background: 0 0% 100%;
    --foreground: 220 20% 15%;
    --card: 0 0% 100%;
    --card-foreground: 220 20% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 220 20% 15%;
    --primary: 23 100% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 20% 15%;
    --secondary-foreground: 0 0% 100%;
    --muted: 220 14% 96%;
    --muted-foreground: 220 10% 45%;
    --accent: 23 100% 50%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 23 100% 50%;
    --radius: 0.5rem;
    
    /* Custom travel theme colors */
    --gold: 23 100% 50%;
    --gold-dark: 23 100% 42%;
    --navy: 220 30% 15%;
    --navy-light: 220 20% 25%;
    --cream: 40 30% 97%;
    --orange: 23 100% 50%;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(220 30% 15% / 0.7), hsl(220 30% 15% / 0.4));
    --gradient-gold: linear-gradient(135deg, hsl(23 100% 50%), hsl(23 100% 42%));
    --gradient-dark: linear-gradient(180deg, hsl(220 30% 15%), hsl(220 30% 10%));
    
    /* Shadows */
    --shadow-card: 0 4px 20px hsl(220 30% 15% / 0.08);
    --shadow-card-hover: 0 8px 30px hsl(220 30% 15% / 0.15);
    --shadow-gold: 0 4px 20px hsl(23 100% 50% / 0.3);
    
    /* Font families */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   UTILITY CLASSES (Tailwind-like)
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-4 { padding: 1rem; }

.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }

.w-full { width: 100%; }
.h-20 { height: 5rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-8 { bottom: 2rem; }
.right-8 { right: 2rem; }
.z-50 { z-index: 50; }

.block { display: block; }
.hidden { display: none; }
.inline-block { display: inline-block; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.transition-colors { transition: color 0.2s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.5s ease; }

.cursor-pointer { cursor: pointer; }

.border-t { border-top: 1px solid hsl(var(--border)); }
.border-b { border-bottom: 1px solid hsl(var(--border)); }
.border-2 { border-width: 2px; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* ========================================
   COLOR CLASSES
   ======================================== */
.bg-background { background-color: hsl(var(--background)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }

.text-secondary { color: hsl(var(--secondary)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-white { color: #ffffff; }

.border-primary { border-color: hsl(var(--primary)); }
.border-border { border-color: hsl(var(--border)); }

/* ========================================
   COMPONENT STYLES
   ======================================== */

/* Top Bar */
.top-bar {
    width: 100%;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar a:hover {
    color: hsl(var(--primary));
}

/* Main Header */
.main-header {
    width: 100%;
    background-color: hsl(var(--background));
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid hsl(var(--border));
}

.main-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.header-inner {
    padding: 0 1rem;
}

.logo-box {
    background-color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    display: inline-flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: hsl(var(--primary-foreground));
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;
    color: hsl(var(--primary-foreground) / 0.8);
    margin-top: -2px;
}

/* Navigation */
.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--secondary));
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: hsl(var(--primary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* CTA Button */
.cta-button {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--secondary));
    font-weight: 600;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: hsl(var(--secondary));
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.site-footer {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.footer-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li + li {
    margin-top: 0.75rem;
}

.footer-links a {
    color: hsl(var(--secondary-foreground) / 0.7);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: hsl(var(--primary));
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: hsl(var(--secondary-foreground) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item svg {
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-value {
    font-size: 0.875rem;
    color: hsl(var(--secondary-foreground) / 0.7);
}

.footer-bottom {
    border-top: 1px solid hsl(var(--secondary-foreground) / 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: hsl(var(--secondary-foreground) / 0.6);
}

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

.legal-links a {
    font-size: 0.875rem;
    color: hsl(var(--secondary-foreground) / 0.6);
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: hsl(var(--primary));
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s ease;
    z-index: 50;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: hsl(var(--secondary));
}

/* ========================================
   PACKAGE CARD STYLES
   ======================================== */
.package-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    display: block;
}

.package-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover img {
    transform: scale(1.1);
}

.package-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2), transparent);
}

.package-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 1rem;
}

.package-card-title {
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.package-card-badge {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Tour Card (for archive/single) */
.tour-card {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.tour-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.tour-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-image img {
    transform: scale(1.1);
}

.tour-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

.tour-card-body {
    padding: 1.25rem;
}

.tour-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: hsl(var(--secondary));
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.tour-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tour-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.tour-card-rating .star {
    color: #fbbf24;
    font-size: 0.875rem;
}

.tour-card-rating .rating-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-left: 0.25rem;
}

.tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.tour-card-price {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.tour-card-price strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.tour-card-btn {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.tour-card-btn:hover {
    opacity: 0.9;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px hsl(23 100% 50% / 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-outline {
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* ========================================
   ARCHIVE PAGE STYLES
   ======================================== */
.archive-header {
    background: var(--gradient-dark);
    color: hsl(var(--secondary-foreground));
    padding: 4rem 0;
    text-align: center;
}

.archive-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: hsl(var(--secondary-foreground) / 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
}

/* ========================================
   SINGLE PAGE STYLES
   ======================================== */
.single-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.single-hero-content {
    color: #fff;
    max-width: 800px;
}

.single-hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.single-content {
    padding: 3rem 0;
}

.single-sidebar {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 6rem;
}

.single-price-box {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 1rem;
}

.single-price-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.single-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (min-width: 768px) {
    .header-inner {
        padding: 0 2rem;
    }
    
    .grid-cols-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .package-card-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 3rem;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .cta-button {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .grid-cols-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .single-layout {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
