/**
 * CESI Homepage Styles
 */

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #00a86b;
    --accent-color: #ffa500;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
}

/* Global Styles */
#cesi-homepage {
    /* Removed overflow-x: hidden to prevent double scrollbar issues */
}

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

.section-title {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.7rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.3rem;
}

.view-all:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #00915c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-sm {
    padding: 10px 24px;
    font-size: 1.1rem;
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* New Hero Section - Clean Design */
.cesi-hero-new {
    padding: 60px 0 80px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column - Search */
.hero-search-section {
    position: sticky;
    top: 100px;
}

.hero-main-title {
    font-size: 3.9rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.7rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.search-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.search-field-group {
    margin-bottom: 20px;
}

.search-field-group label,
.filter-col label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.search-input,
.search-select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.35rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.search-checkboxes {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-search-primary {
    width: 100%;
    padding: 18px 28px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-search-primary:hover {
    background: #00915c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.3);
}

.quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 1.25rem;
}

.quick-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--secondary-color);
}

.quick-links span {
    color: var(--border-color);
}

/* Right Column - Recent Updates */
.hero-updates-section {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.updates-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.view-all-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #00915c;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.update-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.update-card-left {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.update-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.update-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.update-info h3 {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.update-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0 0 5px 0;
}

.update-time {
    font-size: 1.15rem;
    color: var(--text-light);
    margin: 0;
}

.update-card-right {
    flex-shrink: 0;
    margin-left: 15px;
}

.update-score {
    text-align: center;
    background: white;
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 70px;
    border: 2px solid var(--primary-color);
}

.update-score .score-value {
    display: block;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
    color: var(--primary-color);
}

.update-score .score-label {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
}

.no-updates {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 1.3rem;
}

/* Old Standalone Search Section - No longer used (integrated into hero) */
/*
.cesi-search-section {
    padding: 80px 0;
    background: white;
}
*/

/* Old Standalone Alerts Section - No longer used (integrated into hero) */
/*
.cesi-alerts-section {
    padding: 60px 0;
    background: var(--light-bg);
}
*/

/* Scores Overview */
.cesi-scores-overview {
    padding: 80px 0;
    background: white;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.score-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.score-icon {
    font-size: 3.6rem;
    margin-bottom: 15px;
}

.score-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.score-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.score-range {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

/* CESI Certification Banner */
.cesi-certification-banner {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 3px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.cesi-certification-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 168, 107, 0.15) 100%);
    pointer-events: none;
}

.certification-badge {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

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

.certification-content h3 {
    font-size: 2.7rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.certification-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: white;
    opacity: 0.95;
    font-size: 1.4rem;
}

/* Trending Resorts */
.cesi-trending-resorts {
    padding: 80px 0;
    background: var(--light-bg);
}

.resorts-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.resort-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resort-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resort-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.resort-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resort-card:hover .resort-thumbnail img {
    transform: scale(1.05);
}

.certified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resort-card-content {
    padding: 25px;
}

.resort-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.resort-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resort-title a:hover {
    color: var(--secondary-color);
}

.resort-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.25rem;
}

.resort-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resort-scores {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: var(--light-bg);
    border-radius: 5px;
}

.score-label {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.score-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Resorts Sortable Section */
.cesi-resorts-sortable {
    padding: 80px 0;
    background: white;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

.resorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.resort-grid-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resort-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.resort-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certified-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 7px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resort-card-body {
    padding: 20px;
}

.resort-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.resort-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.resort-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.resort-card-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.overall-score {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.score-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.score-max {
    font-size: 1.2rem;
    color: var(--text-light);
}

.score-label {
    font-size: 1rem;
    color: var(--text-light);
}

.resort-card-scores-mini {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.mini-score {
    display: flex;
    flex-direction: column;
}

.mini-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.mini-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.resort-card-cta {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.resort-card-cta:hover {
    color: var(--secondary-color);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Report Issue Section */
.cesi-report-issue-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.cesi-report-issue-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 168, 107, 0.15) 100%);
    pointer-events: none;
}

.report-issue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.report-issue-text {
    position: relative;
    z-index: 1;
}

.report-issue-text h2 {
    font-size: 3.4rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.report-issue-text p {
    font-size: 1.6rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: white;
    opacity: 0.95;
}

.issue-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.issue-type {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 1.3rem;
}

.issue-icon {
    font-size: 1.8rem;
}

.report-issue-visual {
    position: relative;
    z-index: 1;
}

/* Contact Section */
.cesi-contact-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--primary-color);
    font-size: 2.7rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.method-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.contact-method h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.45rem;
}

.contact-method a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

#contact-form-message {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-search-section {
        position: static;
    }

    .hero-main-title {
        font-size: 2.65rem;
    }
}

@media (max-width: 992px) {
    .report-issue-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .report-issue-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.3rem;
    }

    .cesi-hero-new {
        padding: 40px 0 60px;
    }

    .hero-main-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .search-box {
        padding: 20px;
    }

    .search-filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-checkboxes {
        flex-direction: column;
        gap: 12px;
    }

    .hero-updates-section {
        padding: 20px;
    }

    .update-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .update-card-right {
        margin-left: 0;
        align-self: stretch;
    }

    .update-score {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background: white;
        border: 2px solid var(--primary-color);
    }

    .update-score .score-value,
    .update-score .score-label {
        display: inline;
        font-size: 1.1rem;
        color: var(--primary-color);
    }

    .update-score .score-label {
        font-size: 0.85rem;
        color: var(--text-light);
    }

    .resorts-carousel,
    .resorts-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
    }

    .cesi-certification-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .search-box {
        padding: 15px;
    }

    .quick-links {
        flex-direction: column;
        gap: 8px;
    }

    .quick-links span {
        display: none;
    }

    .update-thumbnail {
        width: 60px;
        height: 60px;
    }

    .update-info h3 {
        font-size: 1.1rem;
    }
}
