/* ==========================================================================
   ASMALLWORLD Demo - Custom Styles
   Luxury travel aesthetic with Bootstrap 5
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Brand Colors
   -------------------------------------------------------------------------- */
:root {
    --asw-primary: #1a5fb4;
    --asw-primary-dark: #144a8a;
    --asw-dark: #1a1a2e;
    --asw-text: #2d3748;
    --asw-text-muted: #6b7280;
    --asw-light: #f8f9fa;
    --asw-gold: #c9a962;
    --asw-success: #10b981;
    --asw-border: #e5e7eb;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--asw-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.brand-text {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--asw-dark);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    padding: 1rem 0;
}

.navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--asw-text);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

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

.navbar .btn-primary {
    background-color: var(--asw-primary);
    border-color: var(--asw-primary);
    font-weight: 500;
    font-size: 0.85rem;
}

.navbar .btn-primary:hover {
    background-color: var(--asw-primary-dark);
    border-color: var(--asw-primary-dark);
}

/* --------------------------------------------------------------------------
   Hero Sections
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Search Bar (Collection Page)
   -------------------------------------------------------------------------- */
.search-bar {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.search-bar .form-control,
.search-bar .form-select {
    border: 1px solid var(--asw-border);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.search-bar .form-control:focus,
.search-bar .form-select:focus {
    border-color: var(--asw-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 180, 0.15);
}

.search-bar .btn-search {
    background-color: var(--asw-primary);
    border-color: var(--asw-primary);
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.search-bar .btn-search:hover {
    background-color: var(--asw-primary-dark);
    border-color: var(--asw-primary-dark);
}

/* --------------------------------------------------------------------------
   Hotel Cards
   -------------------------------------------------------------------------- */
.hotel-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hotel-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

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

.hotel-card .hotel-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--asw-dark);
}

.hotel-card .hotel-location {
    color: var(--asw-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.hotel-card .hotel-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hotel-card .benefit-badge {
    background-color: var(--asw-light);
    color: var(--asw-text);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* --------------------------------------------------------------------------
   Membership Page
   -------------------------------------------------------------------------- */
.membership-tier {
    border: 2px solid var(--asw-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.membership-tier:hover {
    border-color: var(--asw-primary);
    box-shadow: 0 10px 40px rgba(26, 95, 180, 0.15);
}

.membership-tier.featured {
    border-color: var(--asw-primary);
    position: relative;
}

.membership-tier.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--asw-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.membership-tier .tier-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--asw-dark);
}

.membership-tier .tier-price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--asw-primary);
}

.membership-tier .tier-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--asw-text-muted);
}

.membership-tier .benefit-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.membership-tier .benefit-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--asw-text);
    font-size: 0.9rem;
}

.membership-tier .benefit-list li::before {
    content: '\f26a';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--asw-success);
}

.membership-tier .btn-tier {
    width: 100%;
    padding: 0.75rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Auth Pages (Login/Join)
   -------------------------------------------------------------------------- */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--asw-text-muted);
    margin-bottom: 2rem;
}

.auth-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--asw-text);
}

.auth-card .form-control,
.auth-card .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--asw-border);
    border-radius: 0.5rem;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--asw-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 180, 0.15);
}

.auth-card .btn-auth {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--asw-primary);
    border-color: var(--asw-primary);
    font-weight: 500;
}

.auth-card .btn-auth:hover {
    background-color: var(--asw-primary-dark);
    border-color: var(--asw-primary-dark);
}

.auth-card .auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--asw-text-muted);
    font-size: 0.85rem;
}

.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--asw-border);
}

.auth-card .auth-divider span {
    padding: 0 1rem;
}

.auth-card .auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-card .auth-link a {
    color: var(--asw-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-card .auth-link a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Benefits Section
   -------------------------------------------------------------------------- */
.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--asw-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: var(--asw-primary);
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--asw-dark);
}

.section-subtitle {
    color: var(--asw-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--asw-primary);
    border-color: var(--asw-primary);
}

.btn-primary:hover {
    background-color: var(--asw-primary-dark);
    border-color: var(--asw-primary-dark);
}

.btn-outline-primary {
    color: var(--asw-primary);
    border-color: var(--asw-primary);
}

.btn-outline-primary:hover {
    background-color: var(--asw-primary);
    border-color: var(--asw-primary);
}

/* --------------------------------------------------------------------------
   Partner Logos
   -------------------------------------------------------------------------- */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0.6;
}

.partner-logos img {
    height: 30px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-gold {
    color: var(--asw-gold);
}

.bg-light-blue {
    background-color: #f0f7ff;
}

/* ==========================================================================
   Collection Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Collection Hero
   -------------------------------------------------------------------------- */
.collection-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
}

.collection-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(26, 26, 46, 0.75) 100%);
}

.collection-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Collection Logo */
.collection-logo-wrapper {
    text-align: center;
    margin-bottom: 2.5rem;
}

.collection-logo {
    margin-bottom: 0.75rem;
}

.collection-logo .logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
}

.collection-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: white;
    opacity: 0.85;
    margin: 0;
}

/* Collection Search Box */
.collection-search-box {
    background: white;
    border-radius: 0.5rem;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 950px;
    margin: 0 auto;
    overflow: hidden;
}

.collection-search-form {
    display: flex;
    align-items: stretch;
}

.search-field {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--asw-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-field:last-child {
    border-right: none;
}

.search-field-destination {
    flex: 1.5;
    min-width: 0;
}

.search-field-dates {
    flex: 1.2;
}

.search-field-guests {
    flex: 1;
}

.search-field-button {
    padding: 0.75rem;
    border-right: none;
    display: flex;
    align-items: center;
}

.search-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--asw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input-wrapper i {
    color: var(--asw-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-input,
.search-select {
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--asw-dark);
    background: transparent;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: var(--asw-text-muted);
}

.search-select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1rem;
}

.search-dates-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.search-date i {
    color: var(--asw-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-dates-separator {
    color: var(--asw-text-muted);
    font-size: 0.8rem;
}

.btn-search-submit {
    background-color: var(--asw-dark);
    border: none;
    color: white;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-search-submit i {
    font-size: 0.9rem;
}

.btn-search-submit:hover {
    background-color: #2d2d4a;
}

/* Mobile search form */
@media (max-width: 991px) {
    .collection-search-form {
        flex-direction: column;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--asw-border);
        padding: 1rem;
    }

    .search-field:last-child {
        border-bottom: none;
    }

    .search-field-button {
        padding: 1rem;
    }

    .btn-search-submit {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .collection-hero {
        min-height: 400px;
        padding: 2rem 0;
    }

    .collection-logo .logo-text {
        font-size: 2rem;
    }

    .collection-tagline {
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------------------------------
   Collection Benefits
   -------------------------------------------------------------------------- */
.collection-benefits {
    padding: 2.5rem 0;
    background: white;
    border-bottom: 1px solid var(--asw-border);
}

.benefit-item {
    padding: 0.5rem;
}

.benefit-icon {
    margin-bottom: 0.5rem;
}

.benefit-icon i {
    font-size: 1.75rem;
    color: var(--asw-dark);
}

.benefit-item h6 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--asw-dark);
    margin: 0;
    line-height: 1.3;
}

.benefits-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--asw-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .collection-benefits {
        padding: 1.5rem 0;
    }

    .benefit-icon i {
        font-size: 1.5rem;
    }

    .benefit-item h6 {
        font-size: 0.7rem;
    }

    .benefits-disclaimer {
        font-size: 0.65rem;
        margin-top: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Collection Sections
   -------------------------------------------------------------------------- */
.collection-section {
    padding: 3rem 0;
}

.collection-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--asw-dark);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .collection-section {
        padding: 2rem 0;
    }

    .collection-section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Collection Cards
   -------------------------------------------------------------------------- */
.collection-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    height: 100%;
}

.collection-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.collection-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

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

.collection-card:hover .collection-card-image img {
    transform: scale(1.03);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--asw-dark);
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.6rem;
    border-radius: 0.25rem;
}

.collection-card-body {
    padding: 0.875rem;
}

.collection-card-body h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--asw-dark);
    margin-bottom: 0.15rem;
}

.collection-card-body .location {
    font-size: 0.8rem;
    color: var(--asw-text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .collection-card-body {
        padding: 0.65rem;
    }

    .collection-card-body h5 {
        font-size: 0.8rem;
    }

    .collection-card-body .location {
        font-size: 0.7rem;
    }

    .card-badge {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        left: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   Signup CTA Section
   -------------------------------------------------------------------------- */
.collection-signup {
    padding: 4rem 0;
    background: var(--asw-light);
}

.signup-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.signup-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--asw-dark);
    margin-bottom: 0.75rem;
}

.signup-content p {
    color: var(--asw-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-signup {
    display: inline-block;
    background: var(--asw-dark);
    color: white;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    background: #2d2d4a;
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .collection-signup {
        padding: 3rem 0;
    }

    .signup-content h2 {
        font-size: 1.35rem;
    }

    .signup-content p {
        font-size: 0.85rem;
    }
}

/* --------------------------------------------------------------------------
   Bespoke Section
   -------------------------------------------------------------------------- */
.collection-bespoke {
    position: relative;
    padding: 4rem 0;
    background-image: url('https://images.unsplash.com/photo-1540541338287-41700207dee6?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

.collection-bespoke .bespoke-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.75) 100%);
}

.collection-bespoke .container {
    position: relative;
    z-index: 1;
}

.collection-bespoke h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.collection-bespoke .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.collection-bespoke .bespoke-description {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 1.5rem;
}

.btn-bespoke {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-bespoke:hover {
    background: white;
    color: var(--asw-dark);
    text-decoration: none;
}

@media (max-width: 768px) {
    .collection-bespoke {
        padding: 3rem 0;
    }

    .collection-bespoke h2 {
        font-size: 1.5rem;
    }

    .collection-bespoke .lead {
        font-size: 0.95rem;
    }

    .collection-bespoke .bespoke-description {
        font-size: 0.9rem;
    }
}
