/* ============================================
   ACCOMMODATION HOME PAGE STYLES
   Following the project's theme-variables.css
   ============================================ */

/* Hero Section */
.accommodation-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.accommodation-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.accommodation-hero .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Search Bar */
.search-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: none;
}

.search-form .form-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.search-form .form-control {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-form .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 45, 0.1);
    outline: none;
}

.search-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.search-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
}

/* Quick Links - Grid */
.quick-links {
    margin: -30px auto 40px;
    position: relative;
    z-index: 5;
}

.quick-link-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary-light);
}

.quick-link-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.quick-link-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.quick-link-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Destination Cards */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.destination-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary-light);
}

.destination-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.destination-country {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.destination-count {
    font-size: 0.7rem;
    background: var(--bg-muted);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 0.5rem;
}

/* Featured Properties Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.property-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

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

.property-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--bg-muted);
}

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

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

.property-rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.property-body {
    padding: 1rem;
}

.property-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.property-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.property-price-period {
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--text-muted);
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

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

.trust-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trust-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-btn {
    background: white;
    color: var(--brand-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Community Host Alert */
.community-alert {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

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

.destination-card, .property-card, .quick-link-card {
    animation: fadeInUp 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .accommodation-hero {
        padding: 40px 0;
    }

    .accommodation-hero h1 {
        font-size: 1.8rem;
    }

    .search-card {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}