/* ========== General Page Layout ========== */
div#content>.ast-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

div#primary {
    margin: 0 !important;
}

.venue-recommender-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========== Form Container Styling ========== */
.venue-form-container {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.venue-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* ========== Form Fields ========== */
.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
    height: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Validation States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.form-group.error .error-message {
    display: block;
}

/* ========== Form Actions ========== */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========== Results Section ========== */
.venue-results-section {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 4rem 0;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #e9ecef;
}

.results-title h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.results-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.new-search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.new-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ========== Search Summary ========== */
.search-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.search-summary h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.search-summary p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ========== Venue Cards Grid ========== */
.venue-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========== Individual Venue Card ========== */
.venue-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
}

.venue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========== Card Header ========== */
.venue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    flex-direction: column;
}

.venue-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

/* ========== Card Body ========== */
.venue-card-body {
    padding: 1.5rem;
}

.venue-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.venue-description {
    margin-bottom: 1.5rem;
}

.venue-description p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.venue-investment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.investment-label {
    font-weight: 600;
    color: #495057;
}

.investment-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1.05rem;
}

/* ========== Features Section ========== */
.venue-features {
    margin-bottom: 1.5rem;
}

.venue-features h4,
.venue-vibe h4,
.venue-reviews h4,
.venue-best-for h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.features-list li {
    background: #e3f2fd;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1565c0;
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0.5rem;
    color: #1976d2;
    font-weight: bold;
}

/* ========== Other Sections ========== */
.venue-vibe,
.venue-reviews,
.venue-best-for {
    margin-bottom: 1.5rem;
}

.venue-vibe p,
.venue-best-for p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.venue-reviews blockquote {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem 1rem;
    margin: 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== Card Footer ========== */
.venue-card-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

.details-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.share-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

/* Results Footer */
.results-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.disclaimer {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    text-align: center;
}

.disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

/* ========== Error & No Results ========== */
.error-container {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.error-content h3 {
    color: #721c24;
    margin-bottom: 1rem;
}

.error-content p {
    color: #721c24;
    margin-bottom: 1.5rem;
}

.retry-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.no-results {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.no-results h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results p {
    color: #856404;
    margin: 0;
    font-size: 1.1rem;
}

/* ========== Accessibility & Responsive ========== */
@media (max-width: 1024px) {
    .venue-results-section {
        padding: 2rem 0;
    }

    .venue-form-container {
        padding: 2rem 1rem;
    }

    .venue-form-wrapper {
        padding: 2rem;
    }

    .venue-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    .venue-form-wrapper {
        padding: 1rem;
    }

    .results-container {
        padding: 0 1rem;
    }

    .form-header h1 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .venue-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .venue-card-footer {
        flex-direction: column;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .search-summary {
        padding: 1.5rem;
    }

    .venue-card {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .venue-form-wrapper {
        padding: 0.5rem;
    }

    .venue-card-body {
        padding: 1rem;
    }

    .venue-card-header {
        padding: 0.75rem 1rem;
    }

    .venue-card-footer {
        padding: 1rem;
    }

    .venue-card {
        padding: 0.75rem;
    }
}

/* Focus states for accessibility */
.submit-button:focus,
.retry-button:focus,
.new-search-button:focus,
.contact-btn:focus,
.details-btn:focus,
.action-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Fix emoji display issues */
.emoji {
    width: auto !important;
    height: auto !important;
    display: inline !important;
    vertical-align: baseline !important;
}

/* Hide WordPress emoji images in favor of text emojis */
/* img.emoji {
    display: none !important;
} */

/* Ensure text emojis display properly */
.venue-card-body h4::before,
.investment-label::before,
.contact-btn::before,
.details-btn::before {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}