@charset "utf-8";
/**
 * How Timeshare Works - Enhancement Stylesheet
 * Created: 2026-02-06
 * Purpose: Modernize styling, improve mobile UX, enhance SEO & accessibility
 * Loads after style-mini.css to override/enhance base styles
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
   ======================================== */

:root {
    /* Primary Colors */
    --color-primary: #000F48;
    --color-primary-light: #1a2d6b;
    --color-primary-dark: #00082a;

    /* Accent Colors */
    --color-accent: #0066cc;
    --color-accent-hover: #0052a3;
    --color-accent-light: #3385d6;

    /* Neutral Colors */
    --color-bg-light: #F0F1F1;
    --color-bg-white: #FFFFFF;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.08);

    /* Text Colors */
    --color-text-primary: #000F48;
    --color-text-secondary: #666666;
    --color-text-light: #999999;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}


/* ========================================
   TYPOGRAPHY IMPROVEMENTS
   ======================================== */

/* Fix mobile font-size issues */
html {
    font-size: 100%; /* Reset to standard 16px */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-size: 1rem; /* 16px base */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive font scaling */
@media (min-width: 769px) and (max-width: 1024px) {
    html { font-size: 17px; }
}

@media (min-width: 1025px) {
    html { font-size: 18px; }
}

/* Improve heading hierarchy */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.page-title {
    font-size: 2rem;
    margin-top: 0 !important; /* Prevent large gap above */
    margin-bottom: var(--spacing-md) !important; /* Reduced from lg */
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

.page-sub-titles {
    font-size: 1.5rem;
    margin-top: var(--spacing-md) !important; /* Reduced from xl to prevent large gaps */
    margin-bottom: var(--spacing-md) !important;
}


/* ========================================
   MOBILE NAVIGATION ENHANCEMENTS
   ======================================== */

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 12px 16px;
    cursor: pointer;
    position: fixed;
    top: 8px;
    right: 16px;
    z-index: 999999999;
    transition: transform var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-icon {
    display: block;
    font-size: 32px;
    line-height: 1;
}

/* Fix navigation touch targets */
nav li {
    padding: 16px 12px !important;
    margin: 0 !important;
    min-height: 44px; /* WCAG minimum touch target */
}

@media (min-width: 768px) {
    nav li {
        padding: 20px 16px !important;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    #top-menu-background nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #000;
        transition: right var(--transition-normal);
        overflow-y: auto;
        box-shadow: -4px 0 12px rgba(0,0,0,0.3);
    }

    #top-menu-background nav.active {
        right: 0;
    }

    nav {
        display: block !important;
        width: 100% !important;
        font-size: 16px !important;
    }

    nav ul {
        display: block !important;
        padding-top: 60px;
    }

    nav li {
        width: 100% !important;
        float: none !important;
        display: block !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        border-left: none !important;
        padding: 18px 24px !important;
        text-align: left !important;
        margin: 0 !important;
    }

    nav li a {
        display: block;
        font-size: 18px !important;
    }

    /* Close button when menu is open */
    nav.active + .mobile-menu-toggle .hamburger-icon::before {
        content: '✕';
        font-size: 36px;
    }

    nav.active + .mobile-menu-toggle .hamburger-icon {
        display: none;
    }
}


/* ========================================
   ENHANCED BOX STYLING
   ======================================== */

.main-box {
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px var(--color-shadow);
    margin-bottom: var(--spacing-lg);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    background: var(--color-bg-white);
}

.main-box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.main-box-text {
    padding: var(--spacing-xl);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .main-box-text {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

.main-box-text p {
    margin-bottom: 1.2em;
}

.main-box-text p:last-child {
    margin-bottom: 0;
}


/* ========================================
   IMPROVED LINK STYLING
   ======================================== */

/* Body content links */
.body-links a,
.main-box-text a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.body-links a:hover,
.main-box-text a:hover {
    color: var(--color-accent-hover);
    border-bottom-color: var(--color-accent-hover);
}

.body-links a:focus,
.main-box-text a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Navigation inline links (related pages) */
.page-sub-titles + .center a,
.page-sub-titles + div a {
    display: inline-block;
    padding: 10px 18px;
    margin: 6px 4px;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.page-sub-titles + .center a:hover,
.page-sub-titles + div a:hover {
    background: #e9ecef;
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,102,204,0.15);
}

/* External links indicator */
a[href^="http"]:not([href*="howtimeshareworks.com"])::after {
    content: " ↗";
    font-size: 0.85em;
    opacity: 0.6;
}


/* ========================================
   BUTTON & FORM IMPROVEMENTS
   ======================================== */

.btn,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn:active,
button[type="submit"]:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
    width: 100%;
    max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}


/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 999999999;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Improve list readability */
.list,
ul.list,
ol.list {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.list li,
ul.list li,
ol.list li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}


/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 0.85;
    visibility: visible;
}

#back-to-top:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}


/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */

.breadcrumbs {
    padding: var(--spacing-md) 0;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: inline;
    color: var(--color-text-secondary);
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: var(--spacing-sm);
    color: var(--color-text-light);
    font-weight: bold;
}

.breadcrumbs a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
    color: var(--color-text-primary);
    font-weight: 500;
}


/* ========================================
   MOBILE HEADER IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    #header {
        margin-top: 50px !important; /* Account for fixed mobile nav */
    }

    .header-text {
        font-size: 1.6em !important;
        text-shadow: 0.03em 0.03em 0.05em #000,
                     0 0 0.3em rgba(0,0,0,0.9) !important;
    }

    #site-title-wrapper {
        top: 50% !important;
    }
}


/* ========================================
   TABLE IMPROVEMENTS
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    font-size: 0.95rem;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--color-primary);
}

tr:hover {
    background: #f8f9fa;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 8px 12px;
    }
}


/* ========================================
   UTILITY CLASSES
   ======================================== */

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-light {
    color: var(--color-text-light);
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }


/* ========================================
   SOCIAL SHARE BUTTONS
   ======================================== */

.social-share-title-desktop,
.social-share-buttons {
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.social-share-title-desktop a,
.social-share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.social-share-title-desktop a:hover,
.social-share-buttons a:hover {
    transform: scale(1.1);
    opacity: 0.85;
}


/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    #top-menu-background,
    .mobile-menu-toggle,
    #back-to-top,
    .social-share-title-desktop,
    .social-share-buttons,
    nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .main-box {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}


/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for animations */
#back-to-top,
.mobile-menu-toggle,
#top-menu-background nav {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ========================================
   DARK MODE SUPPORT (Future Enhancement)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --color-bg-light: #1a1a1a;
        --color-bg-white: #2d2d2d;
        --color-text-primary: #e0e0e0;
        --color-text-secondary: #b0b0b0;
        --color-border: #404040;
    }

    body {
        background-color: var(--color-bg-light);
        color: var(--color-text-primary);
    }

    .main-box {
        background: var(--color-bg-white);
    }
    */
}


/* ========================================
   FIXES FOR SPACING AND NAVIGATION SIZE
   ======================================== */

/* Fix navigation font sizes - make them MUCH larger */
nav {
    font-size: 1.3rem !important; /* Increased from 1.1rem */
}

nav a {
    font-size: 1.25rem !important; /* Increased from 1.05rem */
}

@media (min-width: 768px) {
    nav {
        font-size: 1.5rem !important; /* Increased from 1.25rem */
    }

    nav a {
        font-size: 1.4rem !important; /* Increased from 1.15rem */
    }
}

@media (min-width: 1024px) {
    nav {
        font-size: 1.75rem !important; /* Increased from 1.4rem */
    }

    nav a {
        font-size: 1.6rem !important; /* Increased from 1.25rem */
    }
}

/* Fix header positioning - ensure it clears fixed navigation on all screen sizes */
@media (min-width: 769px) {
    #header {
        margin-top: 60px !important; /* Ensure header clears fixed nav on tablet/desktop */
    }
}

@media (min-width: 1024px) {
    #header {
        margin-top: 70px !important; /* Extra space for larger nav on desktop */
    }
}

/* Fix breadcrumb spacing - reduce large gaps */
.breadcrumbs {
    margin: 8px 0 !important;
    padding: 8px 12px !important;
}

/* Hide breadcrumbs FAQ link when inappropriately displayed */
.breadcrumbs li:nth-child(2):only-of-type {
    display: none;
}

/* Fix large gaps around ads */
.adbox {
    margin: 16px 0 !important; /* Reduced from potential large values */
}

.main-box + .adbox,
.adbox + .main-box {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

/* Reduce excessive spacing in content */
.body-text br + br {
    display: none; /* Remove double line breaks that create large gaps */
}

.top-three-percent {
    height: 16px !important; /* Reduced from 3% which could be large */
}

.point-3-em-top {
    margin-top: 16px !important; /* Standardized spacing */
}

/* Fix any other large margin/padding issues */
.main-box {
    margin: 16px auto !important;
    padding: 20px !important; /* Reduced from 24px */
}

/* Reduce spacing above all headers to prevent large gaps */
h1, h2, h3, h4, h5, h6 {
    margin-top: 12px !important; /* Reduced spacing */
    margin-bottom: 12px !important;
}

.main-box h1:first-child,
.main-box h2:first-child {
    margin-top: 0 !important; /* No gap at top of boxes */
}

/* ========================================
   END OF ENHANCEMENTS
   ======================================== */
