/* Lomondview Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap');

/* ============================================
   Global Foundations & Design Tokens
   ============================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-color: #059669;
    --accent-light: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --dark-bg: #1a1d20;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

.text-bg-cabin {
    color: #fff;
    background-color: #f97316;
}

.btn-cabin {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f97316;
    --bs-btn-border-color: #f97316;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ea580c;
    --bs-btn-hover-border-color: #ea580c;
    --bs-btn-focus-shadow-rgb: 249, 115, 22;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c2410c;
    --bs-btn-active-border-color: #c2410c;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #f97316;
    --bs-btn-disabled-border-color: #f97316;
}

.btn-outline-cabin {
    --bs-btn-color: #f97316;
    --bs-btn-border-color: #f97316;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #f97316;
    --bs-btn-hover-border-color: #f97316;
    --bs-btn-focus-shadow-rgb: 249, 115, 22;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ea580c;
    --bs-btn-active-border-color: #ea580c;
    --bs-btn-disabled-color: #f97316;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #f97316;
}

.image-modal-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.plan-alert-container {
    min-height: 2.75rem;
}

.plan-alert-container .alert {
    margin-bottom: 0;
}

.print-frame {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border: 0;
    visibility: hidden;
}

.image-modal-badges .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    width: 100%;
    text-align: center;
    border-radius: 999px;
}

/* Optimize modal image for iOS Safari memory constraints */
#modalPlanImage {
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    width: auto;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    #modalPlanImage {
        max-height: 70vh;
    }
}

@keyframes accordionHeaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordionBodyFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

/* ============================================
   Footer Styles - Two-row sticky footer
   ============================================ */
footer {
    margin-top: auto;
    height: 80px;
    display: flex;
    flex-direction: column;
}

.footer-upper,
.footer-lower {
    display: flex;
    align-items: center;
}

.footer-upper {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    flex: 1 0 50%;
    color: rgba(255, 255, 255, 0.9);
}

.footer-lower {
    background: #4091bf;
    flex: 1 0 50%;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

/* Footer text styling */
.footer-meta,
.footer-links a,
.footer-meta a,
.footer-copy {
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* DataTables column visibility dropdown styling */
.dt-button-collection .dt-button.buttons-columnVisibility {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    color: var(--text-dark) !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.dt-button-collection .dt-button.buttons-columnVisibility::after {
    display: none !important; /* Remove default checkmark */
}

/* Visible columns get blue background */
.dt-button-collection .dt-button.buttons-columnVisibility.active,
.dt-button-collection button.dt-button.buttons-columnVisibility.active {
    background-color: rgba(37, 99, 235, 0.12) !important;
    color: var(--text-dark) !important;
}

/* Hidden columns stay plain */
.dt-button-collection .dt-button.buttons-columnVisibility:not(.active),
.dt-button-collection button.dt-button.buttons-columnVisibility:not(.active) {
    background-color: transparent !important;
    color: var(--text-dark) !important;
}

/* Hover state - change text color */
.dt-button-collection .dt-button.buttons-columnVisibility:not(.active):hover,
.dt-button-collection button.dt-button.buttons-columnVisibility:not(.active):hover {
    background-color: rgba(15, 23, 42, 0.06) !important; /* light grey */
}

/* Active hover state */
.dt-button-collection .dt-button.buttons-columnVisibility.active:hover,
.dt-button-collection button.dt-button.buttons-columnVisibility.active:hover {
    background-color: rgba(37, 99, 235, 0.18) !important;
    color: var(--text-dark) !important;
}

.footer-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links {
    gap: 1.5rem !important;
}

.footer-links a,
.footer-meta a {
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a {
    position: relative;
    text-decoration: none !important;
}

/* Animated underline on hover */
.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05);
}

.footer-links a:hover::after,
.footer-links a:focus::after {
    width: 100%;
}

.footer-meta span,
.footer-meta a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-meta a:hover,
.footer-meta a:focus {
    color: var(--accent-light) !important;
}

/* Footer icon colors */
.footer-meta i {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-icon-location { color: var(--primary-light) !important; }
.footer-icon-phone { color: var(--accent-color) !important; }
.footer-icon-web { color: var(--primary-dark) !important; }

.footer-copy {
    margin-top: 0.75rem;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Service Card Styles - Touch-friendly */
.service-card-link,
.service-card {
    transition: all 0.3s ease;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.service-card {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Hover and touch active states */
.service-card-link:hover .service-card,
.service-card-link:active .service-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.service-card h5 {
    transition: color 0.3s ease;
}

.service-card-link:hover .service-card h5,
.service-card-link:active .service-card h5 {
    color: var(--primary-color);
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1.5rem auto;
}

/* Logo Styling */
.logo-main {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Tagline styling */
.tagline {
    font-family: 'Georgia', 'Garamond', serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-left: 4rem;
    color: var(--text-dark);
}

/* Service Icons */
.service-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ============================================
   Navigation - Desktop & Mobile
   ============================================ */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: none;
    padding: 0.25rem 0;
    position: relative;
    z-index: 1030;
}

.navbar-brand,
.navbar-toggler {
    position: relative;
    z-index: 1031;
}

.navbar-brand {
    font-size: 2.2rem;
    font-weight: 900;
    color: #014A8C !important;
    text-decoration: none;
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    letter-spacing: 0.06em;
    font-stretch: expanded;
    transition: var(--transition);
}

.navbar-brand .designs-suffix {
    font-size: 0.45em;
    vertical-align: baseline;
    position: relative;
    top: 0.1em;
}

.navbar-brand:hover {
    color: #486813 !important;
    transform: scale(1.02);
}

/* Mobile Hamburger Menu Button */
.navbar-toggler {
    border: 2px solid #014A8C;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(1, 74, 140, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(1, 74, 140, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Desktop Navigation Links */
.navbar-nav .nav-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.7rem !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #486813;
    transition: width 0.4s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #486813 !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    font-weight: 900;
}

/* ============================================
   Hero Section - Accordion Slider
   Interactive panels that expand on hover/auto-rotate
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.accordion-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
}

.accordion-panel {
    position: relative;
    height: 100%;
    cursor: pointer;
    flex: 0.21; /* Closed panels ~15% each */
    transition: flex 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: flex;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* Improves touch responsiveness */
}

.accordion-panel.active {
    flex: 1; /* Active panel ~70% */
}

/* --- Accordion panel states: background, overlay, and text positioning --- */
.accordion-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.accordion-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accordion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.accordion-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
    transition: all 0.6s ease;
}

.accordion-panel.active .accordion-content {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3rem;
}

.accordion-header {
    text-align: center;
    opacity: 1;
    animation: none;
}

/* Closed panels: vertical text */
.accordion-panel:not(.active) .accordion-header {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0;
    opacity: 1;
    animation: none;
}

/* Active panel: horizontal text */
.accordion-panel.active .accordion-header {
    writing-mode: horizontal-tb;
    text-align: left;
    margin-bottom: 0.2rem;
    opacity: 0;
    animation: accordionHeaderFadeIn 0.6s ease forwards;
    animation-delay: 0.6s;
}

/* Hide "Lomond View" prefix when closed, show only single word */
.accordion-panel:not(.active) .accordion-header .title-prefix {
    display: none;
    opacity: 0;
    animation: none;
}

.accordion-panel.active .accordion-header .title-prefix {
    display: inline;
    opacity: 0;
    animation: accordionHeaderFadeIn 0.6s ease forwards;
    animation-delay: 0.6s;
}

/* Accordion header titles - closed panels (vertical text, bottom-left) */
.accordion-panel:not(.active) .accordion-header h3 {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    animation: none;
}

/* Accordion header titles - active panel (horizontal text, full title) */
.accordion-panel.active .accordion-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    animation: accordionHeaderFadeIn 0.6s ease forwards;
    animation-delay: 0.6s;
}

/* Icons inside accordion body */
.accordion-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* Subtitle styling */
.accordion-subtitle {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    opacity: 0;
    font-style: italic;
    font-weight: 300;
    animation: none;
}

.accordion-panel.active .accordion-subtitle {
    opacity: 0;
    animation: accordionBodyFadeIn 0.6s ease forwards;
    animation-delay: 0.8s;
}

.accordion-panel:not(.active) .accordion-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease 0.1s, opacity 0.4s ease;
    width: 100%;
    display: none;
    position: relative;
}

.accordion-panel.active .accordion-body {
    max-height: 200px;
    opacity: 1;
    display: block;
    transition: max-height 0.5s ease 0.3s, opacity 0.6s ease 0.4s;
    position: relative;
}

.accordion-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.accordion-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Original Carousel (hidden by default) */
.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-caption {
    position: static;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.carousel-caption .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Service Cards */
.card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.125);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-card i {
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.1);
}

/* ============================================
   About Page Highlight Cards
   Shared utility classes to mirror Bootstrap combos
   ============================================ */
.about-card {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
}

.about-card h3,
.about-card h4,
.about-card h5 {
    font-weight: 700;
}

.about-card--primary { border-left-color: var(--bs-primary, #0d6efd); }
.about-card--success { border-left-color: var(--bs-success, #198754); }
.about-card--info { border-left-color: var(--bs-info, #0dcaf0); }

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

/* ============================================
   Responsive Design - Mobile & Tablet Optimizations
   Breakpoints: 1024px (iPad), 768px (Tablet), 576px (Mobile)
   ============================================ */

/* iPad & Tablet Portrait (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Improve touch targets - minimum 44x44px for accessibility */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Service cards - better spacing for touch */
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-card-link {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Tagline adjustment for tablets */
    .tagline {
        margin-left: 2rem;
        font-size: 1.1rem;
    }
    
    /* Footer - stack on tablets */
    .footer-meta {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .footer-links {
        gap: 1rem !important;
    }
}

/* Tablet & Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Keep navbar brand and toggler on same row */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: clamp(1.1rem, 5vw, 1.6rem);
        z-index: 1031;
    }
    
    .navbar-brand .designs-suffix {
        font-size: 0.55em;
        margin-left: 0.25rem !important;
    }
    
    .navbar-toggler {
        z-index: 1031;
        position: relative;
    }
    
    /* Mobile Navigation Menu */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 4.5rem 2rem 2rem; /* Reduced top padding for tighter spacing */
        z-index: 1030;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-collapse.collapsing {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    /* Mobile Menu Links */
    .navbar-nav {
        gap: 0.5rem;
        margin-top: 0; /* Removed extra margin for tighter spacing */
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        font-size: 1.5rem;
        padding: 1rem 0.5rem !important;
        min-height: 60px;
        display: flex;
        align-items: center;
        color: #014A8C !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none; /* Remove underline animation on mobile */
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(1, 74, 140, 0.1);
        border-radius: 0.5rem;
        color: #486813 !important;
    }
    
    /* Close button effect */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(1, 74, 140, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
    }
    
    /* Accordion Slider - keep horizontal layout on mobile */
    .accordion-slider {
        height: 175px;
        flex-direction: row;
    }
    
    .accordion-panel {
        flex: 0.21;
        min-height: auto;
    }
    
    .accordion-panel.active {
        flex: 1;
        min-height: auto;
    }
    
    /* Reset vertical text for mobile */
    .accordion-header {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
    
    .accordion-content {
        padding: 1rem;
    }
    
    .accordion-panel.active .accordion-content {
        padding: 1.25rem 1.75rem 0.75rem;
    }
    
    .accordion-icon {
        display: block;
        width: 30px;
        height: 30px;
        margin-bottom: 0.5rem;
    }
    
    .accordion-panel.active .accordion-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .accordion-header h3 {
        font-size: 1.2rem;
    }
    
    .accordion-panel.active .accordion-header h3 {
        font-size: 1.8rem;
    }
    
    .accordion-panel:not(.active) .accordion-subtitle {
        opacity: 0;
        display: none;
    }
    
    .accordion-panel.active .accordion-subtitle {
        font-size: 0.85rem;
        display: block;
        white-space: nowrap;
    }

    .accordion-panel.active .accordion-body {
        margin-top: 0.5rem;
    }
    
    .accordion-panel:not(.active) .accordion-body {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        display: none;
    }
    
    .accordion-panel.active .accordion-body {
        max-height: 400px;
        opacity: 1;
        display: block;
    }
    
    .accordion-body h4 {
        font-size: 1.2rem;
    }
    
    .accordion-body p {
        font-size: 0.9rem;
    }
    
    .feature-list {
        margin-bottom: 1rem;
    }
    
    .accordion-actions {
        flex-direction: column;
    }
    
    .accordion-actions .btn {
        min-width: auto;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    /* Navbar - full width toggle button */
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        font-size: 1.5rem;
    }
    
    /* Contact form - full width inputs */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Contact details list spacing */
    .contact-list > li + li {
        margin-top: 1.5rem;
    }
    
    /* Tagline - center on mobile */
    .tagline {
        margin-left: 0;
        text-align: center;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Mobile Phones - Extra optimizations */
    .accordion-slider {
        height: 155px;
        flex-direction: row;
    }
    
    .accordion-panel {
        min-height: auto;
        flex: 0.21;
    }
    
    .accordion-panel.active {
        min-height: auto;
        flex: 1;
    }
    
    .accordion-content {
        padding: 0.75rem;
    }
    
    .accordion-panel.active .accordion-content {
        padding: 1.1rem 1.5rem 0.5rem;
    }
    
    .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .accordion-panel.active .accordion-header h3 {
        font-size: 1.4rem;
    }
    
    .accordion-panel.active .accordion-subtitle {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .accordion-panel.active .accordion-body {
        margin-top: 0.4rem;
    }
    
    .accordion-body h4 {
        font-size: 1.1rem;
    }
    
    .accordion-body p {
        font-size: 0.85rem;
    }
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Custom DataTables Styling */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 0.375rem 0.75rem;
}

.table {
    border-radius: var(--border-radius);
}

/* DataTables responsive - ensure proper overflow handling */
#plansTable_wrapper {
    overflow-x: auto;
    max-width: 100%;
}

/* Constrain table container to prevent overflow */
#tableViewContent {
    overflow-x: auto;
    max-width: 100%;
}

/* Make table columns more compact */
#plansTable {
    width: 100% !important;
}

#plansTable td {
    padding: 0.5rem 0.4rem;
    font-size: 0.9rem;
}

/* Keep header padding larger to accommodate sort arrows */
#plansTable th {
    padding: 0.5rem 1.5rem 0.5rem 0.4rem;
    font-size: 0.9rem;
}

/* Compact thumbnail column */
#plansTable .plan-thumbnail {
    width: 80px !important;
    max-width: 80px;
}

/* Column visibility dropdown - indicate auto-hidden columns */
.dt-button-collection .dt-button.responsive-hidden {
    opacity: 0.7;
    font-style: italic;
}

.dt-button-collection .responsive-indicator {
    font-size: 0.75em;
    font-style: italic;
}

.table th {
    background-color: var(--light-bg);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Search Form Styling */
.search-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-form .form-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.search-form .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Admin Panel Styling */
.admin-sidebar {
    background: linear-gradient(180deg, var(--primary-color) 0%, #0b5ed7 100%);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-main {
    background: var(--light-bg);
    min-height: 100vh;
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Hide number input spinners */
input[type=number].no-spinner::-webkit-outer-spin-button,
input[type=number].no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number].no-spinner {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Smooth noUiSlider animations */
.noUi-handle {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.noUi-handle:hover {
    transform: scale(1.1);
}

.noUi-handle:active {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.noUi-connect {
    transition: background 0.15s ease-out;
}

/* Plan type mobile button group layout */
.plan-type-group-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.plan-type-group-mobile .btn {
    flex: 1 1 calc(50% - 0.5rem);
    width: auto;
}

@media (max-width: 420px) {
    .plan-type-group-mobile .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (min-width: 576px) {
    .plan-type-group-mobile .btn {
        flex: 1 1 calc(25% - 0.5rem);
    }
}

@supports (display: grid) {
    .plan-type-group-mobile {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .plan-type-group-mobile .btn {
        width: 100%;
        flex: initial;
    }
}

/* Grid plan card columns */
.plan-card-col {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .plan-card-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1250px) {
    .plan-card-col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 767.98px) {
    #tableView {
        display: none !important;
    }

    .btn-group:has(#tableView, #gridView) {
        display: none !important;
    }

    #gridViewContent {
        display: block !important;
    }

    #gridView,
    #gridViewContent {
        display: block !important;
    }

    #tableViewContent,
    #tableView {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .carousel,
    footer,
    .btn,
    .admin-sidebar {
        display: none !important;
    }
    
    .admin-main {
        background: white !important;
    }
}
