:root {
  --copy: #004A69;
  --gray: #333333;
  --light-gray: #cccccc;
  --hover: #487D93;
  --background: #A5DFF7;
  --mountain: #459400;
  --grass: #97CA3C;
  --mountain-text: #DFFFC3;
  --grass-text: #074100;
  --nav-background: #FFDC00;
  --white: #FFFFFF;
  --region-ni: #8CFF0C;
  --region-no: #0C7FFF;
  --region-ea: #F8FF0C;
  --region-so: #FF0CEC;
  --region-we: #FF890C;
  --listing-bg: #97CA3C20;
}

body {
  margin: 0;
}

body.home {
  background-image: url('/images/clouds.png');
  background-repeat: repeat-x;
  background-position: top;
  background-color: var(--background);
}

body.standard {
  background-image: url('/images/clouds-blue.png');
  background-repeat: repeat-x;
  background-position: top;
  background-color: var(--white);
}

a:link, a:visited {
  color: var(--copy);
}

a:hover, a:active {
  color: var(--hover) !important;
  text-decoration: none;
}

h1, h2 {
  font-size: 3em;
}

h1, h2, h3, h4, h5, ul, label {
  font-family: "Cal Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

p {
   font-family: Calibri, 'Trebuchet MS', sans-serif;
}

.remix-bullets {
  list-style: none;
  padding-left: 0;
}

.remix-bullets li {
  position: relative;
  padding-left: 1.5em;
}

.remix-bullets li::before {
  content: "\ea6e"; /* Unicode for ri-arrow-right-s-line */
  font-family: "remixicon";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  color: #333;
}

.no-bullets, .icons {
  list-style: none;
  padding-left: 0;
}


.btn-primary {
  background: var(--copy) !important;
  border-color: var(--copy);
  color: var(--white) !important;
  font-family: "Cal Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.btn-success {
  background: var(--mountain) !important;
  border-color: var(--mountain);
  color: var(--mountain-text) !important;
  font-family: "Cal Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.btn-outline-primary {
  color: var(--copy);
  border-color: var(--copy);
  font-family: "Cal Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--copy);
  border-color: var(--copy);
  color: var(--white) !important;
}

.booking-cancel-btn {
  font-family: "Cal Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.booking-cancel-btn:hover,
.booking-cancel-btn:focus {
  filter: brightness(110%);
}


/* Full-width background sections */
header,
footer,
section {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  margin: 0px;
  padding: 0px;
}

/* Inner containers centered with max width */
.inner {
  margin: 0 auto;
  padding: 0 1rem; /* Responsive padding */
}

header {
  height: 250px;
}

.content {
  background: var(--white);
}

.home-second {
  background-image: url('/images/mountain.png');
  background-repeat: repeat-x;
  background-position: top;
  color: var(--mountain-text);
}

body.home .home-second {
    background-color: var(--background);
}

body.standard .home-second {
    background-color: var(--white);
}

.home-third {
  background-image: url('/images/grass.png');
  background-repeat: repeat-x;
  background-position: top;
  background-color: var(--mountain);
  color: var(--grass-text);
}

/* Use block-specific link colors on the home page rather than the global hover blue. */
.home-first a:not(.btn),
.home-second a:not(.btn),
.home-third a:not(.btn) {
  text-decoration: none;
}

.home-first a:not(.btn):link,
.home-first a:not(.btn):visited,
.home-first a:not(.btn):focus {
  color: var(--copy);
}

.home-first a:not(.btn):hover,
.home-first a:not(.btn):active {
  color: #2f6f89 !important;
}

.home-second a:not(.btn):link,
.home-second a:not(.btn):visited,
.home-second a:not(.btn):focus {
  color: var(--mountain-text);
}

.home-second a:not(.btn):hover,
.home-second a:not(.btn):active {
  color: #b7f28c !important;
}

.home-third a:not(.btn):link,
.home-third a:not(.btn):visited,
.home-third a:not(.btn):focus {
  color: var(--grass-text);
}

.home-third a:not(.btn):hover,
.home-third a:not(.btn):active {
  color: #0a5f00 !important;
}

.home-first h2 a,
.home-second h2 a,
.home-third h2 a,
.home-first h2 a:hover,
.home-second h2 a:hover,
.home-third h2 a:hover,
.home-first h2 a:focus,
.home-second h2 a:focus,
.home-third h2 a:focus {
  color: inherit;
  text-decoration: none;
}

footer {
  background-image: url('/images/sand.png');
  background-repeat: repeat-x;
  background-position: top;
  background-color: var(--grass);
  background-size: auto 250px;
  padding-top: 50px;
}

body.standard footer {
  background-color: var(--white);
}

.nav {
  margin: 0px 10px;
  padding-top: 6px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  font-size: 1.1em;
}

.header-navigation {
  background: var(--nav-background);
}

.header-membership {
  background: var(--white);
  position: absolute;
}

.search {
  color: var(--copy);
}

.list-group-item.my-bookings-btn {
  background-color: var(--copy);
  border-color: var(--copy);
  color: var(--white) !important;
}

.list-group-item.my-bookings-btn:hover,
.list-group-item.my-bookings-btn:focus {
  background-color: var(--hover);
  border-color: var(--hover);
  color: var(--white) !important;
}

img.home {
  float: left;
  display: inline;
  width: 200px;
  height: 140px;
  border: 10px solid white;
  margin-right: 20px;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(-4deg);
}

.quill-editor {
  height: 100px;
  overflow-y: auto;
}

.quill-editor-big {
  height: 300px;
  overflow-y: auto;
}

#dropZone {
  border-radius: 3px;
  background-color: var(--light-gray);
}

.image-editor {
  border: 10px solid var(--light-gray);
}

.image-data {
  text-decoration: none !important;
}

.rally-image-container {
    flex-shrink: 0;
    width: 200px; /* Adjust width as needed */
    display: flex;
    align-items: stretch;
    border: 10px solid var(--light-gray);
    transform: rotate(4deg);
}

.rally-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.region {
  position: absolute;
  top: -100;
  right: 0;
}

/* Tile layout for FilePond previews */
.filepond--panel-root {
    background-color: white;
}

.filepond--list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filepond--item {
  width: 214px; /* Adjust thumbnail size */
  flex: 0 0 auto;
}

.filepond--image-preview-wrapper {
  height: 200px;
  overflow: hidden;
}


.ql-editor,
.ql-container .ql-editor {
  padding-left: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-family: Calibri, 'Trebuchet MS', sans-serif;
  line-height: 1.5;
}
.ql-editor h1,
.ql-container .ql-editor h1,
.rich-content h1 {
  font-size: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}
.ql-editor h2,
.ql-container .ql-editor h2,
.rich-content h2 {
  font-size: 1.25em;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}
.ql-editor h3,
.ql-container .ql-editor h3,
.rich-content h3 {
  font-size: 1.1em;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}
.ql-editor h4,
.ql-container .ql-editor h4,
.rich-content h4 {
  font-size: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}
.ql-editor h5,
.ql-container .ql-editor h5,
.rich-content h5 {
  font-size: 0.85em;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}
.ql-editor h6,
.ql-container .ql-editor h6,
.rich-content h6 {
  font-size: 0.75em;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}
.ql-editor h1, .ql-editor h2, .ql-editor h3, .ql-editor h4, .ql-editor h5,
.ql-container .ql-editor h1, .ql-container .ql-editor h2, .ql-container .ql-editor h3, .ql-container .ql-editor h4, .ql-container .ql-editor h5,
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4, .rich-content h5 {
  font-family: "Cal Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
  margin-left: 0;
}

.ql-editor > *:first-child,
.ql-container .ql-editor > *:first-child,
.rich-content > *:first-child {
  margin-top: 0;
}

.ql-editor p,
.ql-container .ql-editor p,
.rich-content p {
  font-family: Calibri, 'Trebuchet MS', sans-serif;
  margin-bottom: 0.75rem;
}

.quill-editor .ql-editor,
.quill-editor-big .ql-editor {
  padding: 8px 10px !important;
  border: 1px solid #d6dbe4;
  border-radius: 4px;
}

.card {
  border: 1px solid var(--copy) !important;
  overflow: hidden; /* Ensures child elements respect the rounding */

}

.card-region {
  background-color: var(--copy) !important;
  color: var(--background) !important;
}

.card-header a:link, .card-header a:hover, .card-header a:visited {
  color: white;
  text-decoration: none;
}

h4.white {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.card-button:hover {
  filter: brightness(85%);
  cursor: pointer;
}

.membership-card {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.membership-card .card-body {
  height: 100%;
}

.membership-card h4 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.listing {
  border: 1px solid var(--grass) !important;
  background: var(--listing-bg);
}

.listing .card-header  {
  background-color: var(--grass);
  border: 0;
  color: var(--grass-text);
}

.booking-message-card {
  border-color: var(--copy) !important;
}

.booking-message-card .card-header,
.booking-message-header {
  background-color: var(--copy) !important;
  color: var(--white) !important;
  border: 0;
}

.booking-listing.booking-status-pending {
  border-color: #d97706 !important;
  background: #fff7ed;
}

.booking-listing.booking-status-pending .card-header {
  background-color: #d97706;
  color: #ffffff;
}

.booking-listing.booking-status-confirmed {
  border-color: var(--copy) !important;
  background: #eff6ff;
}

.booking-listing.booking-status-confirmed .card-header {
  background-color: var(--copy);
  color: #ffffff;
}

.booking-status-pill {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Content page styles */

/* Modern content page styling */
.content-header {
  /* Removed blue left border */
}

.main-content-wrapper {
  line-height: 1.8;
}

.main-content h1, .main-content h2, .main-content h3 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.main-content p {
  margin-bottom: 1.5rem;
  color: #495057;
}

/* Enhanced image gallery */
.image-gallery-scroll {
  scrollbar-width: thin;
  scrollbar-color: #004A69 #f8f9fa;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
}

.image-gallery-scroll::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 5px;
}

.image-gallery-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #004A69, #003a54);
  border-radius: 5px;
}

.image-gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #003a54, #002a40);
}

.image-thumbnail:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.image-thumbnail {
    flex-shrink: 0;
  transition: all 0.3s ease;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
  border-color: #004A69;
}

.document-item a:hover .card-title {
  color: #004A69 !important;
}

/* Shadowbox card styling */
.shadowbox-card {
  background: white;
  border: 1px solid rgba(0, 74, 105, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 74, 105, 0.08), 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: all 0.3s ease;
}

.shadowbox-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 74, 105, 0.12), 0 6px 25px rgba(0, 0, 0, 0.08);
}

.rally-soft-card:hover {
  transform: none;
  box-shadow: 0 10px 40px rgba(0, 74, 105, 0.08), 0 4px 20px rgba(0, 0, 0, 0.05);
}

.rally-soft-card .rally-meta-list {
  margin-left: 0;
  padding-left: 0;
}

.rally-soft-card .rally-meta-item {
  font-size: 0.95rem;
  line-height: 1.35;
}

.rally-soft-card .rally-meta-item i {
  font-size: 0.95em;
  width: 1em;
  text-align: center;
}

/* Form content styling */
.shadowbox-card ul,
.shadowbox-card ol {
  margin-left: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.shadowbox-card ul li,
.shadowbox-card ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-weight: normal;
}

.shadowbox-card ul {
  list-style-type: disc;
}

.shadowbox-card ol {
  list-style-type: decimal;
}

.shadowbox-card ul ul,
.shadowbox-card ol ol,
.shadowbox-card ul ol,
.shadowbox-card ol ul {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

/* Card headers with gradients */
.card-header.bg-primary {
  background: linear-gradient(135deg, #004A69, #003a54) !important;
}

.card-header.bg-success {
  background: linear-gradient(135deg, #004A69, #003a54) !important;
}

/* Shadows and rounded corners */
.rounded-lg {
  border-radius: 0.75rem !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/* Typography improvements */
.display-5 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Content spacing */
.container {
  max-width: 1140px;
}

/* Hide mobile navigation elements on desktop */
@media (min-width: 800px) {
  .mobile-nav-button,
  .mobile-nav-checkbox {
    display: none !important;
  }
  
  /* Hide mobile logo on desktop */
  .mobile-logo-container {
    display: none !important;
  }
  
  /* Show desktop logo */
  header .p-2 {
    display: block !important;
  }
  
  .header-navigation,
  .header-membership {
    display: flex !important;
    position: static !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: row !important;
  }
  
  /* Restore original desktop backgrounds */
  .header-navigation {
    background: var(--nav-background) !important;
    margin-right: 1rem !important;
  }
  
  .header-membership {
    background: var(--white) !important;
  }
}

@media (min-width: 768px) {
  .main-content-wrapper {
    padding: 3rem !important;
  }
  
  .content-header {
    padding: 2rem !important;
  }
}

/* Child pages styling */
.child-pages-section .btn-outline-primary:hover {
  background-color: #004A69 !important;
  border-color: #004A69 !important;
  color: white !important;
}

.child-pages-section .btn-outline-primary {
  transition: all 0.3s ease;
}
/* Content page styles moved from template */
.content-title {
    color: #004A69;
}

.hero-banner-img {
    height: 250px;
    object-fit: cover;
}

.border-top-custom {
    border-top: 1px solid #e9ecef;
}

.cccf-text-color {
    color: #004A69;
}

.child-page-link {
    border-color: #004A69;
    color: #004A69;
}

.member-lock-icon {
    font-size: 0.8em;
}

.cccf-gradient-header {
    background: linear-gradient(135deg, #004A69, #003a54) !important;
}

.gallery-flex-container {
    min-width: max-content;
}

.gallery-thumbnail-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-modal-body {
    min-height: 60vh;
}

.slideshow-img {
    max-height: 80vh;
    object-fit: contain;
}

.document-icon {
    font-size: 3rem;
    color: #004A69;
}

/* Header navigation spacing */
.header-navigation .nav-item,
.header-membership .nav-item {
    margin-right: 0.5rem;
}

.header-navigation .nav-item:last-child,
.header-membership .nav-item:last-child {
    margin-right: 0;
}

/* Reduce navigation link padding to save horizontal space */
.header-navigation .nav-link,
.header-membership .nav-link {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Admin dashboard button hover effect */
.admin-dashboard-btn:hover {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Keep admin rally filter borders consistently dark blue in all states. */
.rally-filter-btn {
  border-width: 2px !important;
}

.rally-filter-btn,
.rally-filter-btn:hover,
.rally-filter-btn:focus,
.rally-filter-btn:active,
.rally-filter-btn.active,
.show > .rally-filter-btn.dropdown-toggle {
  border-color: var(--copy) !important;
}

/* Mobile responsiveness for screens under 800px */
@media (max-width: 799px) {
    /* Remove all width constraints on mobile */
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    .inner {
        padding: 0 0.5rem !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    /* Fix header flexbox and container constraints */
    header .d-flex {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    header .container {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Hide regions section on homepage for mobile */
    .region {
        display: none !important;
    }
    
    /* Make sidebar stack under main content on other pages */
    .row {
        flex-direction: column;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Ensure ALL Bootstrap columns use full width on mobile */
    .col-9, .col-3,
    .col-1, .col-2, .col-4, .col-5, .col-6, .col-7, .col-8, .col-10, .col-11, .col-12,
    [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Ensure main content containers use full width */
    .main-content-wrapper,
    .content-header,
    .shadowbox-card {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Override any responsive Bootstrap classes */
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-md-12,
    .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-9, .col-lg-12,
    .col-sm-3, .col-sm-4, .col-sm-6, .col-sm-8, .col-sm-9, .col-sm-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Adjust homepage layout when regions are hidden */
    body.home .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix search form - completely override constraints */
    .search {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .search .row {
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .search .row .col-4,
    .search .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 1rem;
        padding: 0 0.5rem !important;
    }
    
    .search .col-12 {
        padding: 0 0.5rem !important;
        width: 100% !important;
        max-width: none !important;
        flex: 0 0 100% !important;
    }
    
    .search .form-control,
    .search .form-select,
    .search select,
    .search input[type="text"],
    .search input[type="email"],
    .search input[type="password"] {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
    
    .search .form-group {
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 1rem;
    }
    
    /* Override any Bootstrap column constraints in search */
    .search [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Ensure proper mobile navigation */
    .nav {
        flex-wrap: wrap;
        margin: 0;
    }
    
    /* Mobile dropdown navigation */
    .mobile-nav-checkbox {
        display: none;
    }
    
    .mobile-nav-button {
        display: block !important;
        background: var(--nav-background);
        color: var(--copy);
        padding: 0.5rem 1rem;
        cursor: pointer;
        border-radius: 5px;
        margin-bottom: 0.5rem;
        font-family: "Cal Sans", sans-serif;
        font-weight: 200;
        border: 1px solid rgba(0, 74, 105, 0.2);
        user-select: none;
    }
    
    .mobile-nav-button:hover {
        background-color: var(--copy);
        color: var(--white);
    }
    
    /* Hide nav items by default on mobile */
    .header-navigation,
    .header-membership {
        display: none !important;
        flex-direction: column !important;
        background: var(--white);
        border: 1px solid rgba(0, 74, 105, 0.2);
        border-radius: 5px;
        padding: 0.5rem !important;
        margin-bottom: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* Show nav items when checkbox is checked */
    .mobile-nav-checkbox:checked ~ .header-navigation,
    .mobile-nav-checkbox:checked ~ .header-membership {
        display: flex !important;
    }
    
    .mobile-nav-container {
        position: relative;
        width: auto !important;
        margin-right: 1rem;
    }
    
    /* Style mobile nav items vertically */
    .header-navigation .nav-item,
    .header-membership .nav-item {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .header-navigation .nav-link,
    .header-membership .nav-link {
        padding: 0.75rem !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(0, 74, 105, 0.1);
        font-size: 1rem !important;
    }
    
    .header-navigation .nav-link:hover,
    .header-membership .nav-link:hover {
        background-color: var(--background);
        color: var(--copy) !important;
    }
    
    /* Mobile logo positioning */
    .mobile-logo-container {
        display: block !important;
        padding: 1rem 0 !important;
    }
    
    .mobile-logo {
        max-width: 200px;
        height: auto;
    }
    
    /* Homepage sections - add padding above on mobile */
    .home-first,
    .home-second,
    .home-third {
        padding-top: 2rem !important;
    }
    
    /* Hide desktop logo on mobile */
    header .p-2 {
        display: none !important;
    }
    
    /* Reduce header height on mobile */
    header {
        height: auto !important;
        min-height: 280px;
        padding-bottom: 1rem;
    }
    
    /* Adjust image sizing for mobile */
    img.home {
        width: 150px;
        height: 105px;
        margin-right: 15px;
    }
    
    /* Improve button and form spacing on mobile */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Adjust map image in sidebar for mobile */
    .map-image {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve mobile typography */
    h1, h2 {
        font-size: 2.2em;
    }
    
    /* Mobile-friendly card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Ensure proper image gallery scaling */
    .rally-image-container {
        width: 150px;
    }
    
    .gallery-thumbnail-img {
        width: 120px;
        height: 120px;
    }
}