/* ================================
   UTILITIES & DIVIDERS
   ================================ */

/* ================================
   DIVIDERS - UNIFIED iOS STYLE
   ================================ */

.section-divider,
.service-divider,
.sidebar-divider,
.article-divider,
.region-divider,
.tour-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 1.5rem 0;
    width: 100%;
}

/* Section divider with larger spacing for main content sections */
.section-divider {
    margin: 2rem 0;
}

/* Tour List Separator */
.tour-separator {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--border-divider);
}

.tour-divider-large {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), transparent);
    margin: 0.5rem 0;
    opacity: 0.3;
}

/* ================================
   REGION SECTIONS
   ================================ */

.region-filters {
    margin-bottom: 2rem;
}

.region-filters button {
    margin-right: var(--spacing-sm);
}

/* Region Section Headers */
.region-section {
    margin: 2rem 0 1rem 0;
}

.region-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--brand-primary);
    background: linear-gradient(135deg, var(--glass-bg-light), var(--glass-bg-subtle));
    border-radius: var(--radius-sm);
    padding-left: 1rem;
}

.region-divider {
    border: none;
    height: 1px;
    background: var(--brand-primary);
    margin: 0.5rem 0 1.5rem 0;
    opacity: 0.2;
}

/* ================================
   FLOATING CONTACT BUTTONS
   ================================ */

.float-contact {
    position: fixed;
    bottom: calc(2rem + 44px + 0.75rem);
    right: 1.5rem;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.float-contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.float-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    color: #fff;
    text-decoration: none;
}

.float-contact-btn.whatsapp { background: #25D366; }
.float-contact-btn.line     { background: #06C755; }
.float-contact-btn.email    { background: var(--brand-primary); }

/* Tooltip label */
.float-contact-btn::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 0.6rem);
    background: rgba(30, 30, 30, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.28rem 0.6rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.float-contact-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Toggle button */
.float-contact-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 1rem 0.52rem 0.75rem;
    border-radius: 2rem;
    border: 2px solid var(--brand-primary);
    background: #fff;
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 149, 217, 0.22);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Typewriter cursor */
.fc-cta-text::after {
    content: '|';
    display: inline-block;
    margin-left: 1px;
    font-weight: 400;
    animation: fc-blink 0.75s step-start infinite;
}

@keyframes fc-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.float-contact-toggle:hover {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 5px 16px rgba(0, 149, 217, 0.38);
}

.float-contact-toggle .fc-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    transition: none;
}

.fc-cta-text {
    display: inline-block;
    min-width: 9rem;
    text-align: left;
}

.float-contact-toggle .fc-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 0.1rem;
}

/* When expanded, chevron points up (already default); when collapsed → rotate 180deg = points down */
.float-contact.collapsed .fc-chevron {
    transform: rotate(180deg);
}
.float-contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    overflow: hidden;
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* Collapsed state */
.float-contact.collapsed .float-contact-items {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .float-contact {
        bottom: calc(1.25rem + 40px + 0.6rem);
        right: 1rem;
        gap: 0.4rem;
    }

    .float-contact-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .float-contact-toggle {
        font-size: 0.78rem;
        padding: 0.45rem 0.8rem 0.45rem 0.65rem;
    }

    .fc-cta-text {
        max-width: 110px;
    }

    .float-contact-items {
        max-height: 180px;
    }
}

/* Hide floating widgets when footer is in view */
body.footer-in-view .back-to-top,
body.footer-in-view .float-contact {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(12px) !important;
}

/* ================================
   BACK TO TOP BUTTON
   ================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 149, 217, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #007bb5;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 149, 217, 0.55);
}

.back-to-top i {
    color: #fff;
    pointer-events: none;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

/* Icon States */
.icon-success {
    color: var(--success);
    margin-right: 8px;
}

.icon-error {
    color: var(--error);
    margin-right: 8px;
}

/* Loading States */
.loading-center {
    text-align: center;
    padding: 50px;
}

/* Content sections spacing */
.container h1,
.container h3 {
    margin-bottom: 1rem;
}

.container h4 {
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.container p,
.container ul {
    margin-bottom: 1rem;
}