/* Shared Styles for KnotNow - Common across all pages */
@import url("https://use.typekit.net/yum0osq.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    /* Reserve scrollbar space so logo doesn't jump when switching between pages with different content heights */
    scrollbar-gutter: stable;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    padding: 0 20px 20px 20px;
    min-height: 100vh;
}

/* Container - consistent site-wide (single source of truth) */
.container {
    max-width: min(1200px, 100%);
    margin: 0 auto;
    width: 100%;
}

/* Mobile hamburger - hidden on desktop, shown only in mobile media query */
.mobile-hamburger-btn {
    display: none;
}

/* Navigation */
.top-nav, .top-nav-enhanced {
    padding: 16px 20px 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Desktop: single horizontal row (works with or without .nav-inner-wrap) */
.top-nav-enhanced {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    font-family: "maple-web", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}
@media (min-width: 769px) {
    .top-nav-enhanced {
        font-size: 1rem;
    }
}

.top-nav-enhanced .nav-inner-wrap {
    max-width: min(1200px, 100%);
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo {
    height: 64px;
    width: auto;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-search-mobile-link {
    display: none;
}

.nav-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 8px 16px;
    min-width: 200px;
    transition: all 0.2s;
}

.nav-search-box:focus-within {
    border-color: rgba(212, 59, 149, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.nav-search-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
    flex-shrink: 0;
}

.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: inherit;
    font-family: inherit;
    outline: none;
    padding: 0;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Search results dropdown: system font (not maple) for readability */
.nav-search-results,
.nav-search-results .nav-search-result-item,
.nav-search-results .nav-search-section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.nav-search-results.active {
    display: block;
}

.nav-search-result-item {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-search-result-item:last-child {
    border-bottom: none;
}

.nav-search-result-item:hover {
    background: rgba(212, 59, 149, 0.15);
    color: #ffffff;
}

.nav-search-result-name {
    font-size: 0.9rem;
}

.nav-search-no-results {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.nav-search-section {
    padding: 8px 0;
}

.nav-search-section:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 12px;
}

.nav-search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 16px 4px;
}

.nav-search-result-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 8px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-link {
    background: transparent;
    border: 1px solid #444;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #666;
}

.nav-link-btn {
    border: none;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Enhanced Navigation with Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-btn:hover {
    background: rgba(212, 59, 149, 0.15);
    border-color: rgba(212, 59, 149, 0.3);
}

.nav-dropdown-btn.active {
    background: rgba(212, 59, 149, 0.2);
    border-color: #d43b95;
}

.nav-favs-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-dropdown-icon {
    font-size: 1rem;
}

.nav-dropdown-btn-text-only {
    background: transparent;
    border: none;
    padding: 8px 12px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-dropdown-btn-text-only:hover {
    background: rgba(212, 59, 149, 0.1);
    color: #ffffff;
}

.nav-link-text {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: inherit;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-link-text:hover {
    background: rgba(212, 59, 149, 0.1);
    color: #ffffff;
}

.nav-dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown-btn.active .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}

/* Favourites dropdown - wider with spacing */
.nav-dropdown-menu-favourites {
    min-width: 350px;
    width: 350px;
    padding: 8px;
}

.nav-dropdown-menu-favourites .nav-dropdown-item-favourite {
    margin-bottom: 8px;
    border-radius: 6px;
}

.nav-dropdown-menu-favourites .nav-dropdown-item-favourite:last-child {
    margin-bottom: 0;
}

/* Forecasts dropdown - sidebar navigation */
.nav-dropdown-forecasts {
    position: relative;
}

.nav-dropdown-forecasts .nav-dropdown-menu {
    position: fixed;
    top: 84px; /* Below navigation bar */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    bottom: auto;
    max-width: 1200px;
    width: calc(100% - 40px);
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-dropdown-forecasts .nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown content: system font (not maple) for readability */
.forecasts-nav-sidebar,
.forecasts-nav-sidebar .forecasts-nav-column-title,
.forecasts-nav-sidebar .forecasts-nav-item,
.forecasts-nav-sidebar .forecasts-nav-item-name,
.forecasts-nav-sidebar .forecasts-nav-item-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.forecasts-nav-sidebar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.forecasts-nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.forecasts-nav-breadcrumb-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.forecasts-nav-breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.forecasts-nav-breadcrumb-item.forecasts-nav-breadcrumb-active {
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
}

.forecasts-nav-breadcrumb-item svg {
    width: 16px;
    height: 16px;
}

.forecasts-nav-logo-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.forecasts-nav-logo-icon path {
    fill: #d43b95;
}

.forecasts-nav-chevron {
    width: 7px;
    height: 13px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.forecasts-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forecasts-nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.forecasts-nav-link {
    color: #d43b95;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forecasts-nav-link:hover {
    color: #ff66ff;
}

.forecasts-nav-columns {
    display: grid;
    grid-template-columns: 140px 240px 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Locations column - 3 columns layout */
.forecasts-nav-column:last-child {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    align-content: start;
}

.forecasts-nav-column:last-child .forecasts-nav-column-title {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.forecasts-nav-column:last-child .forecasts-nav-item {
    margin-bottom: 2px;
}

.forecasts-nav-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Regions column - prevent text wrapping */
.forecasts-nav-column:nth-child(2) .forecasts-nav-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Locations column - special 3-column layout (only for the last column) */
.forecasts-nav-column:last-child:has(.forecasts-nav-item-link) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    align-content: start;
}

.forecasts-nav-column:last-child:has(.forecasts-nav-item-link) .forecasts-nav-column-title {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.forecasts-nav-column-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forecasts-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forecasts-nav-item-wrapper {
    position: relative;
    margin-bottom: 0;
}

.forecasts-nav-item-wrapper:hover .forecasts-nav-item {
    background: rgba(212, 59, 149, 0.2);
    color: #ffffff;
}

/* Wrapper for hover areas */
.forecasts-nav-item-wrapper {
    padding: 0;
}

.forecasts-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease;
    font-size: 0.82rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
}

.forecasts-nav-item-name {
    flex: 1;
}

.forecasts-nav-item-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-left: 8px;
    flex-shrink: 0;
}

.forecasts-nav-item:hover {
    background: rgba(212, 59, 149, 0.15);
    color: #ffffff;
}

.forecasts-nav-item-empty {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 0;
    line-height: 1.3;
}

.forecasts-nav-item-active {
    background: rgba(212, 59, 149, 0.25);
    color: #d43b95;
    font-weight: 600;
}

.forecasts-nav-item-link {
    color: rgba(255, 255, 255, 0.9);
}

.forecasts-nav-item-link:hover {
    background: rgba(212, 59, 149, 0.2);
    color: #d43b95;
}

/* Forecast data in navigation location rows */
.forecasts-nav-location-row {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.forecasts-nav-location-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    width: 100%;
}

.forecasts-nav-location-name {
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.forecasts-nav-location-forecast {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
}

.forecasts-nav-forecast-loading {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.forecasts-nav-forecast-error {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.forecasts-nav-forecast-data {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #ffffff;
}

.forecasts-nav-forecast-wind {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.forecasts-nav-wind-arrow {
    font-size: 1rem;
}

.forecasts-nav-wind-dir {
    font-weight: 600;
}

.forecasts-nav-wind-speed {
    font-weight: 600;
}

.forecasts-nav-forecast-weather {
    display: flex;
    align-items: center;
    gap: 4px;
}

.forecasts-nav-weather-icon {
    font-size: 1rem;
}

.forecasts-nav-temperature {
    font-weight: 500;
}

.forecasts-nav-item-sub {
    padding-left: 28px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.forecasts-nav-sublist {
    margin-left: 12px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.forecasts-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.forecasts-nav-close {
    display: none; /* Hide X button - use logo instead */
}

.nav-dropdown-menu-wide {
    min-width: 400px;
    max-width: 600px;
}

/* Forecasts dropdown - full width from button left edge to right edge */
.nav-dropdown-forecasts {
    position: relative;
}

.nav-dropdown-forecasts .nav-dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    right: auto;
    min-width: auto;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin-left: 0;
    margin-right: 0;
}

/* Nearby spots dropdown - reasonable width, aligned with button */
.nav-dropdown-nearby .nav-dropdown-menu {
    left: 0;
    min-width: 300px;
    max-width: 400px;
}

.nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-item-name {
    flex: 1;
}

.nav-dropdown-item-remove,
.nav-dropdown-item-fav {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.2s;
    margin-left: 8px;
}

.nav-dropdown-item-remove:hover {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.nav-dropdown-item-fav:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.nav-dropdown-item-fav.added {
    color: #4caf50;
}

.nav-dropdown-item-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.favourites-login-prompt .favourites-login-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.favourites-login-prompt .favourites-login-link:hover {
    color: #ffffff;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* Wide dropdown menu for multi-column layouts */
.nav-dropdown-menu-wide {
    min-width: 500px;
    max-width: 800px;
}

.nav-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}

.nav-dropdown-column {
    padding: 8px 0;
}

.nav-dropdown-column-title {
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.nav-dropdown-item-sub {
    padding-left: 28px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.nav-dropdown-item-favourite {
    padding: 0 !important;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.nav-dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Favourites forecast data display */
.favourites-nav-location-row {
    padding: 0 !important;
    margin-bottom: 8px;
    border-radius: 6px;
}

.favourites-nav-location-row:last-child {
    margin-bottom: 0;
}

.favourites-nav-location-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    width: 100%;
    flex: 1;
}

.favourites-nav-location-name {
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.favourites-nav-location-forecast {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
}

.favourites-nav-forecast-loading {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.favourites-nav-forecast-error {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.favourites-nav-forecast-data {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #ffffff;
}

.favourites-nav-forecast-wind {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.favourites-nav-wind-arrow {
    font-size: 1rem;
}

.favourites-nav-wind-dir {
    font-weight: 600;
}

.favourites-nav-wind-speed {
    font-weight: 600;
}

.favourites-nav-forecast-weather {
    display: flex;
    align-items: center;
    gap: 4px;
}

.favourites-nav-weather-icon {
    font-size: 1rem;
}

.favourites-nav-temperature {
    font-weight: 500;
}

.nav-dropdown-item-rating {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Auth section */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-auth-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-auth-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.nav-auth-btn .nav-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nav-auth-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.nav-auth-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-auth-link:hover {
    color: #ffffff;
}

.nav-auth-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Favourite button on location pages – when NOT used as tab (tab version styled in global.css) */
.location-favourite-btn:not(.location-nav-tab-favourite) {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 40px;
    height: 40px;
}

.location-favourite-btn:not(.location-nav-tab-favourite):hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.location-favourite-btn:not(.location-nav-tab-favourite).active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.location-favourite-btn:not(.location-nav-tab-favourite) svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Rating badges in dropdown */
.nav-dropdown-item-rating.rating-excellent {
    color: #4caf50;
}

.nav-dropdown-item-rating.rating-good {
    color: #81c784;
}

.nav-dropdown-item-rating.rating-fair {
    color: #ffb74d;
}

.nav-dropdown-item-rating.rating-poor {
    color: #f44336;
}

/* Community Planning Widget */
.planning-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.planning-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.planning-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.planning-widget-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.planning-widget-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.planning-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.planning-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.planning-btn-wing {
    border-color: rgba(76, 175, 80, 0.5);
}

.planning-btn-wing:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.planning-btn-windsurf {
    border-color: rgba(33, 150, 243, 0.5);
}

.planning-btn-windsurf:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196f3;
}

.planning-btn-active {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.planning-widget-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.planning-widget-group {
    margin-bottom: 12px;
}

.planning-widget-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.planning-widget-users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.planning-user {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.planning-widget-comments {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.planning-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.planning-comments-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.planning-comment-toggle {
    background: transparent;
    border: none;
    color: #ffa500;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.planning-comment-toggle:hover {
    color: #ffb84d;
}

.planning-comments-list {
    margin-top: 12px;
}

.planning-comment {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 8px;
}

.planning-comment-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.planning-comment-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.planning-comment-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.planning-comment-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.planning-comment-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.planning-comment-input:focus {
    outline: none;
    border-color: #ffa500;
}

.planning-comment-submit {
    align-self: flex-end;
    padding: 8px 16px;
    background: #ffa500;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.planning-comment-submit:hover {
    background: #ffb84d;
}

/* Header */
header {
    margin-bottom: 40px;
    padding: 30px 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.header-conditions-accent {
    width: 4px;
    min-height: 60px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 16px;
}

.header-conditions-accent.poor {
    background-color: #f44336;
}

.header-conditions-accent.poor-to-fair {
    background-color: #ff9800;
}

.header-conditions-accent.fair {
    background-color: #ffb74d;
}

.header-conditions-accent.fair-to-good {
    background-color: #81c784;
}

.header-conditions-accent.good {
    background-color: #4caf50;
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.header-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: none;
}

.header-breadcrumbs {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

.header-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-breadcrumbs a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.header-breadcrumbs span {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.3);
}

.ideal-conditions {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.ideal-conditions-label {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.ideal-conditions-customise {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.ideal-conditions-customise:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.disclaimer-title {
    font-weight: 600;
    color: #ff9800;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.location-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.location-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.location-footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.location-footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.location-footer-description p {
    margin-bottom: 16px;
}

/* Spot Guide Sections */
.spot-guide-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Ideal Conditions */
.spot-guide-ideal-conditions {
    margin-bottom: 40px;
}

.ideal-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ideal-condition-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ideal-condition-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #ff4500;
}

.ideal-condition-icon svg {
    width: 100%;
    height: 100%;
}

.ideal-condition-content {
    flex: 1;
}

.ideal-condition-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ideal-condition-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Best winging conditions (forecast pages) – classy dark style to match footer */
.forecast-ideal-conditions {
    margin-top: 40px;
    margin-bottom: 40px;
}

.forecast-ideal-conditions h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.forecast-condition-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.forecast-condition-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.forecast-condition-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.forecast-condition-card a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    font-size: 0.85rem;
    margin-top: 8px;
    display: inline-block;
}

.forecast-condition-card a:hover {
    color: #ffffff;
}

/* Weather icon SVGs – centred, light grey/white */
.weather-band-hour-icon,
.wind-band-mobile-weather-icon,
.weekly-summary-weather-icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Spot Guide Description */
.spot-guide-description {
    margin-bottom: 40px;
}

.spot-guide-intro-para {
    font-size: 1.5rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 0 0 1em 0;
}

.spot-guide-description-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.spot-guide-local-knowledge {
    margin-top: 48px;
    margin-bottom: 40px;
    padding: 32px 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 59, 149, 0.1) 0%, rgba(212, 59, 149, 0.05) 100%);
    border: 1px solid rgba(212, 59, 149, 0.2);
}

.spot-guide-local-knowledge .spot-guide-section-title {
    color: #ffffff;
    margin-bottom: 16px;
}

.spot-guide-local-knowledge-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-top: 0;
    font-size: 1rem;
}

.spot-guide-local-knowledge-text a {
    color: #d43b95;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.spot-guide-local-knowledge-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Nearby Spots Section */
.spot-guide-nearby {
    margin-top: 48px;
    margin-bottom: 40px;
}

.nearby-spots-section {
    margin: 40px auto;
    max-width: 1200px;
    overflow-x: hidden;
}

/* FAVS dropdown removed from nav - replaced by favourites bar below */
.nav-dropdown-favourites {
    display: none !important;
}

/* Group page top bar: breadcrumbs on first line, favs on second (never same row) */
.group-page-top-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.group-page-top-bar .header-breadcrumbs {
    margin-bottom: 0;
    width: 100%;
}
.group-page-top-bar .favourites-section {
    margin-top: 0;
    width: 100%;
}

/* Favourites bar (below nav) - ♥ FAVS : prefix + spots on same line, single row */
.favourites-section {
    margin: 0 0 4px 0;
    padding: 2px 0;
    overflow-x: hidden;
    min-height: 0;
}

.favourites-section .favourites-bar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.favourites-section .favourites-bar-prefix {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.favourites-section .favourites-bar-login-prompt {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.favourites-section .favourites-bar-login-prompt:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.favourites-section .favourites-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.favourites-section .favourites-bar-card {
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.favourites-section .favourites-bar-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.favourites-section .favourites-bar-name {
    color: #ffffff !important;
}

.favourites-section .favourites-bar-wind-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 36px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

.favourites-section .favourites-bar-wind-box.rating-1 { background-color: #dc4a6d; }
.favourites-section .favourites-bar-wind-box.rating-2 { background-color: #eda641; }
.favourites-section .favourites-bar-wind-box.rating-3 { background-color: #006736; }
.favourites-section .favourites-bar-wind-box.rating-4 { background-color: #2592c2; }
.favourites-section .favourites-bar-wind-box.rating-5 { background-color: #592e83; }

.nearby-spots-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.nearby-spots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 1200px) {
    .nearby-spots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .nearby-spots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .nearby-spots-grid {
        grid-template-columns: 1fr;
    }
}

.nearby-spot-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.nearby-spot-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    transition: color 0.2s;
}

.nearby-spot-name:hover {
    color: #d43b95;
}

.nearby-spot-forecast-card {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.nearby-spot-forecast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nearby-spot-forecast-card:hover * {
    color: #ffffff !important;
}

.nearby-spot-forecast-card.rating-5 {
    background-color: rgba(89, 46, 131, 0.15); /* #592e83 */
}

.nearby-spot-forecast-card.rating-5:hover {
    background-color: rgba(89, 46, 131, 0.25);
}

.nearby-spot-forecast-card.rating-4 {
    background-color: rgba(37, 146, 194, 0.15); /* #2592c2 */
}

.nearby-spot-forecast-card.rating-4:hover {
    background-color: rgba(37, 146, 194, 0.25);
}

.nearby-spot-forecast-card.rating-3 {
    background-color: rgba(0, 103, 54, 0.15); /* #006736 */
}

.nearby-spot-forecast-card.rating-3:hover {
    background-color: rgba(0, 103, 54, 0.25);
}

.nearby-spot-forecast-card.rating-2 {
    background-color: rgba(237, 166, 65, 0.15); /* #eda641 */
}

.nearby-spot-forecast-card.rating-2:hover {
    background-color: rgba(237, 166, 65, 0.25);
}

.nearby-spot-forecast-card.rating-1 {
    background-color: rgba(220, 74, 109, 0.15); /* #dc4a6d */
}

.nearby-spot-forecast-card.rating-1:hover {
    background-color: rgba(220, 74, 109, 0.25);
}

.nearby-spot-date {
    font-weight: 600;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    width: 100%;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.nearby-spot-date:hover {
    color: #d43b95;
}

/* Date styling based on rating - matches weekly-summary-day-label */
.nearby-spot-forecast-card.rating-5 .nearby-spot-date {
    background-color: #592e83;
}

.nearby-spot-forecast-card.rating-4 .nearby-spot-date {
    background-color: #2592c2;
}

.nearby-spot-forecast-card.rating-3 .nearby-spot-date {
    background-color: #006736;
}

.nearby-spot-forecast-card.rating-2 .nearby-spot-date {
    background-color: #eda641;
}

.nearby-spot-forecast-card.rating-1 .nearby-spot-date {
    background-color: #dc4a6d;
}

.nearby-spot-wind {
    text-align: center;
    margin-bottom: 4px;
}

.nearby-spot-tide {
    color: #cccccc;
    font-size: 0.7rem;
    text-align: center;
    margin-top: auto;
}

.nearby-spot-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.nearby-spot-wind-loading,
.nearby-spot-tide-loading,
.nearby-spot-weather-loading {
    color: #888;
}

.nearby-spot-distance {
    font-weight: 600;
    color: #ff4500;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Location Links in SEO Text – white + underline (including same-page link) */
.location-footer-seo a.location-link,
.location-footer-seo a.location-link.same-page-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s, opacity 0.2s;
}

.location-footer-seo a.location-link:hover,
.location-footer-seo a.location-link.same-page-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Location cross links (14-Day, Full Guide, Tide Times, Water Quality) – footer-style */
.location-cross-links {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.location-cross-links > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.location-cross-link,
.location-page-nav-button {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: inline-block;
}

.location-cross-link:hover,
.location-page-nav-button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.location-page-nav-bottom {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.location-page-nav-bottom > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Full Guide CTA (About section) – same classy style as cross links */
.full-guide-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.full-guide-button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

/* Spot Guide Details */
.spot-guide-details {
    margin-top: 48px;
    margin-bottom: 40px;
}

.spot-guide-detail-item {
    margin-bottom: 32px;
}

.spot-guide-detail-item-full {
    margin-bottom: 40px;
}

.spot-guide-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
    margin: 0 0 12px 0;
}

.spot-guide-detail-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.spot-guide-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .spot-guide-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .spot-guide-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Spot Descriptors (Ratings with Scale Bars) */
.spot-guide-descriptors {
    margin-bottom: 40px;
}

.spot-descriptors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.spot-descriptor-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spot-descriptor-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.spot-descriptor-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.spot-descriptor-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Apple-style three-up cards */
.spot-cards {
    margin-bottom: 40px;
}

.spot-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.spot-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.spot-card-icon {
    width: 40px;
    height: 40px;
    color: #ff4500;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spot-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spot-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.spot-card-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.spot-card-body {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.6;
}


/* Guide Notes */
.spot-guide-notes {
    margin-bottom: 40px;
}

.spot-guide-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.spot-guide-note {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spot-guide-note-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.spot-guide-note-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Map Link */
.spot-guide-map-link {
    margin-top: 20px;
    margin-bottom: 40px;
}

.spot-guide-map-button {
    display: inline-block;
    padding: 12px 24px;
    background: #ff4500;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.spot-guide-map-button:hover {
    background: #ff5500;
}

/* Footer Navigation Section */
.footer-nav {
    padding: 160px 20px;
    background-color: #1a1a1a;
}

/* Footer Search Section */
.footer-search-section {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-search-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-search-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.footer-search-box {
    position: relative;
}

.footer-search-input {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background-color: #2a2a2a;
    color: #ffffff;
    transition: all 0.2s;
}

.footer-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-search-input:focus {
    outline: none;
    border-color: #d43b95;
    background-color: #333;
}

.footer-search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* Footer Search Results */
.footer-search-box {
    position: relative;
}

.footer-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.footer-search-results.active {
    display: block;
}

.footer-search-section-group {
    padding: 8px 0;
}

.footer-search-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    margin-bottom: 4px;
}

.footer-search-result-item {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-search-result-item:last-child {
    border-bottom: none;
}

.footer-search-result-item:hover {
    background: rgba(212, 59, 149, 0.15);
    color: #ffffff;
}

.footer-search-result-name {
    font-size: 0.9rem;
    display: block;
}

.footer-search-result-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    display: block;
}

.footer-search-no-results {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Tablet + mobile: compact nav so it fits (iPad Mini 768×1024, iPad landscape 1024×768) */
@media (max-width: 1024px) {
    /* Mobile nav: hide nav-center (forecasts/favourites dropdowns), show hamburger where present */
    .top-nav-enhanced .nav-center {
        display: none !important;
    }

    /* Unjumble top bar: compact search + auth so they fit in one row */
    .top-nav-enhanced {
        padding: 10px 12px 8px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .top-nav-enhanced .nav-inner-wrap {
        gap: 8px;
        min-width: 0;
    }
    .nav-logo .site-logo {
        height: 56px;
    }
    .nav-search {
        margin: 0 4px;
        flex: 0 1 auto;
        min-width: 0;
    }
    .nav-search-mobile-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 8px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.6);
        flex-shrink: 0;
    }
    .nav-search-mobile-link:hover {
        border-color: rgba(212, 59, 149, 0.5);
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }
    .nav-search-box {
        display: none !important;
    }
    .nav-search-box:not(:focus-within) .nav-search-input {
        width: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
    }
    .nav-search-box:focus-within {
        width: 140px;
        border-radius: 24px;
        padding: 8px 12px;
    }
    .nav-search-box:focus-within .nav-search-input {
        width: 100%;
        padding: 0 0 0 4px;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-search-icon {
        margin-right: 0;
    }
    .nav-search-box:focus-within .nav-search-icon {
        margin-right: 8px;
    }
    .nav-auth {
        gap: 4px;
        flex-shrink: 0;
    }
    .nav-auth-btn {
        padding: 6px;
    }
    .nav-auth-btn svg,
    .nav-auth-btn .nav-user-avatar {
        width: 18px;
        height: 18px;
    }
    .nav-auth-text {
        font-size: 0.75rem;
    }
    .nav-auth-link {
        white-space: nowrap;
    }

    /* Reduce body padding so nav + content fit viewport */
    body {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Show hamburger so forecasts/favourites/blog/about are in slide-out menu */
    .mobile-hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        margin-left: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .mobile-hamburger-btn .hamburger-bar {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: transform 0.2s, opacity 0.2s;
    }
    .mobile-hamburger-btn.active .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-hamburger-btn.active .hamburger-bar:nth-child(2) { opacity: 0; }
    .mobile-hamburger-btn.active .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .footer-search-title {
        font-size: 2rem;
    }
    
    .footer-search-subtitle {
        font-size: 1rem;
    }

    /* Header: prevent title/fav overlap, give header-text room for fav button */
    header {
        padding-right: 0;
        padding-top: 12px;
    }
    .header-text {
        padding-right: 52px; /* Space for fav button */
        min-width: 0;
    }
    .header-title {
        font-size: 1.15rem;
        line-height: 1.25;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    /* Location favourite btn: when used as tab (location-nav-tab-favourite), styles are in global.css */
    .location-favourite-btn:not(.location-nav-tab-favourite) {
        top: 6px;
        right: 6px;
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    .location-favourite-btn:not(.location-nav-tab-favourite) svg {
        width: 18px;
        height: 18px;
    }

    /* Breadcrumbs: smaller, single line with ellipsis so they don't split awkwardly */
    .header-breadcrumbs {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .header-breadcrumbs a,
    .header-breadcrumbs span {
        white-space: nowrap;
    }

    /* Nav tabs: prevent overflow, allow wrap with consistent gap */
    .location-nav-tabs {
        margin-top: 10px;
    }
    .location-nav-tabs-main .location-nav-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Best winging conditions + forecast ideal conditions: stack cards on mobile */
    .forecast-ideal-conditions-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .ideal-conditions-grid {
        grid-template-columns: 1fr;
    }
    .mobile-hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .mobile-hamburger-btn .hamburger-bar {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: transform 0.2s, opacity 0.2s;
    }
    .mobile-hamburger-btn.active .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-hamburger-btn.active .hamburger-bar:nth-child(2) { opacity: 0; }
    .mobile-hamburger-btn.active .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9999;
        display: none;
        align-items: flex-start;
        justify-content: flex-end;
    }
    .mobile-nav-overlay.open { display: flex; }
    .mobile-nav-panel {
        width: 100%;
        max-width: 360px;
        height: 100%;
        background: #1a1a1a;
        overflow-y: auto;
        padding: 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }
    .mobile-nav-accordion-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }
    .mobile-nav-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    .mobile-nav-accordion-content.open {
        max-height: 500px;
        overflow-y: auto;
        padding-left: 16px;
        padding-bottom: 12px;
    }
    .mobile-nav-region-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        text-align: left;
        cursor: pointer;
    }
    .mobile-nav-region-link {
        display: block;
        padding: 10px 0;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.9rem;
    }
    .mobile-nav-region-link:hover { color: #d43b95; }
    .mobile-nav-regions {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    .mobile-nav-regions.open { max-height: 400px; overflow-y: auto; }
    .mobile-nav-link {
        display: block;
        padding: 14px 0;
        color: #fff;
        text-decoration: none;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .mobile-nav-link:hover { color: #d43b95; }
    .mobile-nav-section {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .mobile-nav-section-title {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 8px;
    }
    .mobile-nav-section .mobile-nav-link {
        padding: 10px 0;
        border-bottom: none;
    }
}

/* Content prose - for About, Terms, Privacy, etc. (replaces inline styles) */
.content-prose {
    max-width: 800px;
    margin: 0 auto;
}
.content-prose h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #ffffff;
}
.content-prose h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #ffffff;
}
.content-prose h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}
.content-prose p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}
.content-prose ul {
    margin-bottom: 16px;
    padding-left: 24px;
}
.content-prose a {
    color: #ff4500;
}
.content-prose a:hover {
    text-decoration: underline;
}
.content-prose section {
    margin-bottom: 40px;
}
.content-prose .intro-line {
    font-size: 1.15rem;
    margin-bottom: 24px;
}
.content-prose .content-body {
    line-height: 1.8;
}
.content-prose .contact-block {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 24px;
}
.content-prose .contact-block h3 {
    margin-bottom: 12px;
}
.content-prose .contact-block p {
    margin: 0;
}

.footer-nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
}

.footer-nav-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-nav-link:hover {
    color: #d43b95;
}

.footer-nav-link.secondary {
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Legacy rating styles (for backward compatibility) */
.location-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.location-rating-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-rating-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-rating-value {
    display: flex;
    gap: 4px;
    align-items: center;
}

.knot-rating {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.knot-rating.filled {
    background: #ff4500;
    border-color: #ff4500;
}

.footer-breadcrumb {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-breadcrumb span:not(:has(a)) {
    color: rgba(255, 255, 255, 0.5);
}

.general-footer {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    /* Consistent viewport: reduced padding so content fills more of the screen */
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .top-nav {
        flex-wrap: wrap;
    }

    .nav-actions {
        flex-wrap: wrap;
    }

    .location-ratings {
        grid-template-columns: 1fr;
    }

    .ideal-conditions-grid {
        grid-template-columns: 1fr;
    }

    .spot-descriptors-grid {
        grid-template-columns: 1fr;
    }

    .spot-guide-notes-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Water quality historical rating (moved from inline styles) */
.water-quality-historical-rating {
    background-color: #3a3a3a !important;
    border-radius: 12px !important;
    padding: 24px !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
}