/**
 * Public Booking Footer - Frontend Styling
 * 
 * Renders dynamic footer sections from Footer Builder v2.0
 * 
 * @version 2.0.0
 */

/* ==========================================================================
   Footer Container
   ========================================================================== */

.public-booking-footer {
    background: #1D1D1F;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid #34373b;
}

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

.footer-adaptive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px 32px;
    margin-bottom: 20px;
    align-items: start;
}

/* Ensure sections don't stretch unnecessarily */
@media (min-width: 769px) {
    .footer-adaptive-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, max-content));
        justify-content: start;
    }
}

.footer-section {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.footer-align-left {
    text-align: left;
}

.footer-align-center {
    text-align: center;
}

.footer-align-right {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-adaptive-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-section-title {
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .footer-adaptive-grid {
        gap: 24px;
    }
    
    .footer-section-title {
        font-size: 13px;
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   Row and Column Layout
   ========================================================================== */

.public-booking-footer .footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.public-booking-footer .footer-row:last-child {
    margin-bottom: 0;
}

.public-booking-footer .footer-column {
    flex: 1;
    min-width: 200px;
}

.public-booking-footer .footer-column-full {
    flex: 1 1 100%;
    max-width: 100%;
}

.public-booking-footer .footer-column-half {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.public-booking-footer .footer-column-third {
    flex: 1 1 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
}

.public-booking-footer .footer-column-quarter {
    flex: 1 1 calc(25% - 30px);
    max-width: calc(25% - 30px);
}

/* Alignment */
.public-booking-footer .footer-align-left {
    text-align: left;
}

.public-booking-footer .footer-align-center {
    text-align: center;
}

.public-booking-footer .footer-align-right {
    text-align: right;
}

/* Note: Section title styling is defined above in the main footer section */

/* ==========================================================================
   Contact Info Section
   ========================================================================== */

.public-booking-footer .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.public-booking-footer .contact-item {
    font-size: 14px;
    line-height: 1.6;
    color: #B8B8B8;
    word-break: break-word;
    overflow-wrap: break-word;
}

.public-booking-footer .contact-item a {
    color: var(--event-accent-color, #4FF6B1);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    max-width: 100%;
}

.public-booking-footer .contact-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.public-booking-footer .contact-email a::before {
    content: '';
    display: none;
}

.public-booking-footer .contact-phone a::before {
    content: '';
    display: none;
}


/* ==========================================================================
   Social Media Section
   ========================================================================== */

.public-booking-footer .footer-social-media {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.public-booking-footer .footer-align-center .footer-social-media {
    justify-content: center;
}

.public-booking-footer .footer-align-right .footer-social-media {
    justify-content: flex-end;
}

.public-booking-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.public-booking-footer .social-link .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.public-booking-footer .social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.public-booking-footer .social-link:hover {
    background: var(--event-accent-color, #4FF6B1);
    border-color: var(--event-accent-color, #4FF6B1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--event-secondary-color, #4FF6B1) 40%, transparent);
}

/* Icon Styles */
.public-booking-footer .footer-social-rounded .social-link {
    border-radius: 8px;
}

.public-booking-footer .footer-social-square .social-link {
    border-radius: 4px;
}

.public-booking-footer .footer-social-circle .social-link {
    border-radius: 50%;
}

/* Icon Sizes */
.public-booking-footer .footer-social-small .social-link {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.public-booking-footer .footer-social-small .social-link svg {
    width: 16px;
    height: 16px;
}

.public-booking-footer .footer-social-large .social-link {
    width: 48px;
    height: 48px;
    font-size: 24px;
}

.public-booking-footer .footer-social-large .social-link svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Navigation Section
   ========================================================================== */

.public-booking-footer .footer-navigation {
    font-size: 14px;
}

.public-booking-footer .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-booking-footer .footer-nav-item {
    margin: 0;
}

.public-booking-footer .footer-nav-link {
    color: #B8B8B8;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.public-booking-footer .footer-nav-link:hover {
    color: var(--event-accent-color, #4FF6B1);
    text-decoration: underline;
}

/* Inline Style */
.public-booking-footer .footer-nav-inline .footer-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

/* Grid Style */
.public-booking-footer .footer-nav-grid .footer-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.public-booking-footer .footer-newsletter {
    max-width: 500px;
}

.public-booking-footer .footer-align-center .footer-newsletter {
    margin: 0 auto;
}

.public-booking-footer .footer-align-right .footer-newsletter {
    margin-left: auto;
}

.public-booking-footer .newsletter-description {
    font-size: 14px;
    color: #B8B8B8;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.public-booking-footer .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.public-booking-footer .newsletter-input-group {
    display: flex;
    gap: 8px;
}

.public-booking-footer .newsletter-email-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.public-booking-footer .newsletter-email-input:focus {
    outline: none;
    border-color: var(--event-accent-color, #4FF6B1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-secondary-color, #4FF6B1) 20%, transparent);
    background: rgba(255, 255, 255, 0.08);
}

.public-booking-footer .newsletter-email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.public-booking-footer .newsletter-submit-btn {
    padding: 12px 32px;
    background: var(--event-accent-color, #4FF6B1);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.public-booking-footer .newsletter-submit-btn:hover {
    background: var(--event-accent-color, #4FF6B1);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--event-secondary-color, #4FF6B1) 40%, transparent);
}

.public-booking-footer .newsletter-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #B8B8B8;
    cursor: pointer;
}

.public-booking-footer .newsletter-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.public-booking-footer .newsletter-privacy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0 0 0;
}

.public-booking-footer .newsletter-privacy a {
    color: var(--event-accent-color, #4FF6B1);
    text-decoration: none;
}

.public-booking-footer .newsletter-privacy a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Custom HTML Section
   ========================================================================== */

.public-booking-footer .footer-custom-html {
    font-size: 14px;
    line-height: 1.6;
    color: #B8B8B8;
}

.public-booking-footer .footer-custom-html a {
    color: var(--event-accent-color, #4FF6B1);
    text-decoration: none;
}

.public-booking-footer .footer-custom-html a:hover {
    text-decoration: underline;
}

.public-booking-footer .footer-custom-html img {
    display: block;
    max-width: 100%;
    height: auto;
}

.public-booking-footer .footer-custom-html a img {
    display: block;
}

/* ==========================================================================
   Text Block Section
   ========================================================================== */

.public-booking-footer .footer-text-block {
    font-size: 14px;
    line-height: 1.8;
    color: #B8B8B8;
}

.public-booking-footer .footer-text-block h1,
.public-booking-footer .footer-text-block h2,
.public-booking-footer .footer-text-block h3,
.public-booking-footer .footer-text-block h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 12px;
}

.public-booking-footer .footer-text-block p {
    margin: 0 0 12px 0;
}

.public-booking-footer .footer-text-block a {
    color: var(--event-accent-color, #4FF6B1);
    text-decoration: none;
}

.public-booking-footer .footer-text-block a:hover {
    text-decoration: underline;
}

.public-booking-footer .footer-text-block ul,
.public-booking-footer .footer-text-block ol {
    margin: 0 0 12px 20px;
}

/* ==========================================================================
   Logo Section
   ========================================================================== */

.public-booking-footer .footer-logo {
    margin-bottom: 20px;
}

.public-booking-footer .footer-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.public-booking-footer .footer-align-center .footer-logo img {
    margin: 0 auto;
}

.public-booking-footer .footer-align-right .footer-logo img {
    margin-left: auto;
}

.public-booking-footer .footer-logo a {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.public-booking-footer .footer-logo a:hover {
    opacity: 0.8;
}

.public-booking-footer .footer-logo-full img {
    width: 100%;
}

/* ==========================================================================
   Divider Section
   ========================================================================== */

.public-booking-footer .footer-divider {
    width: 100%;
    grid-column: 1 / -1;
}

.public-booking-footer .footer-divider hr {
    border: none;
    margin: 0;
    width: 100%;
}

.public-booking-footer .footer-divider-small {
    margin: 20px 0 !important;
}

.public-booking-footer .footer-divider-medium {
    margin: 40px 0 !important;
}

.public-booking-footer .footer-divider-large {
    margin: 60px 0 !important;
}

@media (max-width: 768px) {
    .public-booking-footer .footer-divider-small {
        margin: 16px 0 !important;
    }
    
    .public-booking-footer .footer-divider-medium {
        margin: 28px 0 !important;
    }
    
    .public-booking-footer .footer-divider-large {
        margin: 40px 0 !important;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .public-booking-footer .footer-column-quarter {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .public-booking-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .public-booking-footer .footer-row {
        gap: 30px;
    }
    
    .public-booking-footer .footer-column,
    .public-booking-footer .footer-column-half,
    .public-booking-footer .footer-column-third,
    .public-booking-footer .footer-column-quarter {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .public-booking-footer .footer-align-left,
    .public-booking-footer .footer-align-right {
        text-align: left;
    }
    
    .public-booking-footer .footer-social-media {
        justify-content: flex-start;
    }
    
    .public-booking-footer .footer-nav-inline .footer-nav-list {
        flex-direction: column;
    }
    
    .public-booking-footer .newsletter-input-group {
        flex-direction: column;
    }
    
    .public-booking-footer .newsletter-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .public-booking-footer {
        padding: 30px 0 15px;
    }
    
    .public-booking-footer .footer-container {
        padding: 0 15px;
    }
    
    .public-booking-footer .footer-row {
        gap: 24px;
    }
    
    .public-booking-footer .footer-section-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   Quick Actions Section
   ========================================================================== */

.footer-actions-section {
    width: 100%;
    max-width: 300px;
    min-width: 0;
}

@media (max-width: 768px) {
    .footer-actions-section {
        max-width: 100%;
    }
}

.footer-actions-section h6 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-actions-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.footer-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--event-secondary-color, #4FF6B1) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--event-secondary-color, #4FF6B1) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.footer-action-icon svg {
    color: var(--event-accent-color, #4FF6B1);
    stroke: currentColor;
}

.footer-action-item:hover .footer-action-icon {
    background: color-mix(in srgb, var(--event-secondary-color, #4FF6B1) 20%, transparent);
    border-color: color-mix(in srgb, var(--event-secondary-color, #4FF6B1) 30%, transparent);
}

.footer-action-item span {
    color: #B8B8B8;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-action-item:hover span {
    color: #fff;
}

.footer-accessibility-btn,
.footer-cookie-preferences-btn,
.footer-back-to-top-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.footer-accessibility-btn:hover,
.footer-cookie-preferences-btn:hover,
.footer-back-to-top-btn:hover {
    background: none;
}

/* Legal Footer Section */
.footer-legal {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    margin-top: 40px;
}

.footer-legal .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #B8B8B8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

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

.footer-copyright {
    color: #777E90;
    font-size: 13px;
}

.footer-bottom-set-space {
    height: 20px;
}

/* Hide Osano Cookie Widget - Keep footer button only */
.osano-cm-widget {
    display: none !important;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.public-booking-footer a:focus {
    outline: 2px solid var(--event-accent-color, #4FF6B1);
    outline-offset: 2px;
}

.public-booking-footer input:focus,
.public-booking-footer button:focus {
    outline: 2px solid var(--event-accent-color, #4FF6B1);
    outline-offset: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .public-booking-footer {
        display: none;
    }
}

