@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --secondary: #0ea5e9; /* Sky */
    --accent: #f43f5e; /* Rose */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Sticky Header & Nav */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    margin: 0 -20px 40px;
    padding: 20px 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.btn-primary-small {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.85rem !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Trending Section */
.trending-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    opacity: 0.8;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.trending-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

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

.trending-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    color: #fff;
}

.trending-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.trending-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.trending-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.3);
}

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

.search-section {
    margin-bottom: 60px;
}

.search-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-section h1 { font-size: 2.5rem; }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .share-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .search-container {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative; /* For autocomplete positioning */
}

/* Autocomplete Dropdown */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.autocomplete-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

.autocomplete-item .loc-name {
    font-weight: 600;
    color: #fff;
}

.autocomplete-item .loc-country {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

/* Modern Date Picker Polish */
input[type="date"] {
    position: relative;
    padding-right: 40px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.input-group::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.5;
    background-size: contain;
    background-repeat: no-repeat;
}

#city-group::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3C/svg%3E");
}

.date-group::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/xml' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 54px;
}

/* Trust Section */
.trust-section {
    margin: 80px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.trust-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.trust-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.trust-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    margin-bottom: 100px;
}

.newsletter-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 60px;
    border-radius: 32px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
}

.newsletter-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-container p {
    opacity: 0.9;
    margin-bottom: 35px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--bg-main);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #000;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
}

.footer-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 12px;
}

.footer-grid ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-grid ul li a:hover {
    color: #fff;
}

.footer-disclosure {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-disclosure p {
    margin-bottom: 20px;
}

.footer-disclosure strong {
    color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 10px;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.breadcrumbs li::after {
    content: '/';
    margin-left: 10px;
    opacity: 0.5;
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #fff;
}

/* Social Sharing */
.share-bar {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Filters Bar */
.filters-section {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

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

.filters-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.filter-group select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

.star-filters {
    display: flex;
    gap: 8px;
}

.star-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.star-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
}

/* Results Grid */
#hotel-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Hotel Card */
.hotel-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.hotel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hotel-card:hover .hotel-image {
    transform: scale(1.05);
}

.hotel-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hotel-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.hotel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rating {
    color: #fbbf24;
    font-size: 0.9rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Amenities & Badges */
.hotel-amenities {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.amenity {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-top {
    background: var(--accent);
    color: #fff;
}

.badge-urgency {
    background: #f97316; /* Orange for urgency */
    color: #fff;
}

.saving-tag {
    background: #ef4444; /* Red for savings */
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 8px;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #10b981; /* Green for trust */
    margin-top: 10px;
    font-weight: 600;
}

/* Floating Book Button for Mobile */
@media (max-width: 768px) {
    .mobile-sticky-book {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(10px);
        padding: 15px 20px;
        z-index: 2000;
        border-top: 1px solid var(--glass-border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.btn-book {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-book:hover {
    background: #fff;
    color: var(--bg-dark);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 350px;
    border-radius: 20px;
    background: var(--bg-card);
}

/* --- Blog & Guides --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff !important;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}

.guide-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.guide-content {
    padding: 25px;
    flex-grow: 1;
}

.guide-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.guide-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #fff !important;
}

.guide-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}
