/* National Font - USGA Brand Typography */
@font-face {
    font-family: 'National';
    src: url('../fonts/NationalWeb-Thin.woff2') format('woff2'),
         url('../fonts/NationalWeb-Thin.woff') format('woff'),
         url('../fonts/NationalWeb-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'National';
    src: url('../fonts/NationalWeb-Regular.woff2') format('woff2'),
         url('../fonts/NationalWeb-Regular.woff') format('woff'),
         url('../fonts/NationalWeb-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'National';
    src: url('../fonts/NationalWeb-Medium.woff2') format('woff2'),
         url('../fonts/NationalWeb-Medium.woff') format('woff'),
         url('../fonts/NationalWeb-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'National';
    src: url('../fonts/NationalWeb-Semibold.woff2') format('woff2'),
         url('../fonts/NationalWeb-Semibold.woff') format('woff'),
         url('../fonts/NationalWeb-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'National';
    src: url('../fonts/NationalWeb-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* USGA Brand Colors */
:root {
    --usga-blue: #00365F;
    --usga-red: #DA1A31;
    --usga-white: #FFFFFF;
    --usga-silver: #C0C0C0;
    --usga-silver-light: #E8E8E8;
    --usga-silver-dark: #A0A0A0;
    --usga-gold: #B8860B;

    /* Bootstrap overrides */
    --bs-primary: #00365F;
    --bs-primary-rgb: 0, 54, 95;
    --bs-danger: #DA1A31;
    --bs-danger-rgb: 218, 26, 49;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'National', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--usga-silver-light);
    font-size: 16px;
}

/* Bootstrap Accordion Customization */
.accordion-button {
    background-color: var(--usga-silver-light);
    color: var(--usga-blue);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--usga-blue);
    color: var(--usga-white);
    box-shadow: inset 0 -1px 0 var(--usga-red);
}

.accordion-button:focus {
    border-color: var(--usga-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 54, 95, 0.25);
}

.accordion-button:hover {
    background-color: var(--usga-blue);
    color: var(--usga-white);
}

.accordion-button.collapsed:hover {
    background-color: var(--usga-silver);
}

.accordion-item {
    border-color: var(--usga-silver);
}

.accordion-body {
    background-color: var(--usga-white);
}

/* Bootstrap Alert Customization */
.alert-info {
    background-color: #e3f2fd;
    border-color: var(--usga-blue);
    color: var(--usga-blue);
}

/* Bootstrap List Group */
.list-group-item {
    border-color: var(--usga-silver-light);
}

.list-group-numbered > li::before {
    color: var(--usga-blue);
    font-weight: bold;
}

/* Google Maps Embed - Responsive */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    .map-container {
        height: 300px;
    }
}

/* Google Maps Style Directions */
.directions-detail {
    background-color: var(--usga-white);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--usga-silver-light);
}

.directions-start h6,
.directions-end h6 {
    color: var(--usga-blue);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.direction-step {
    display: flex;
    align-items-flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--usga-silver-light);
}

.direction-step:last-of-type {
    border-bottom: none;
}

.step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 1rem;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    flex: 1;
}

.step-instruction {
    font-size: 0.95rem;
    color: #202124;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.step-distance {
    font-size: 0.875rem;
    color: #5f6368;
}

.destination-marker {
    flex-shrink: 0;
}

.directions-detail .alert-warning {
    background-color: #fff4e5;
    border-color: #ffd966;
    color: #7c4f00;
    font-size: 0.875rem;
    padding: 0.75rem;
}

.directions-detail .alert-warning .bi {
    font-size: 1.25rem;
}

@media (max-width: 767px) {
    .directions-detail {
        padding: 1rem;
    }

    .direction-step {
        padding: 0.75rem 0;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        margin-right: 0.75rem;
    }
}

/* Container - Mobile First */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Header Banner */
.header-banner-wrapper {
    width: 100%;
    background-color: #02416B;
    padding: 0;
    margin: 0;
    line-height: 0;
    text-align: center;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .header-banner {
        max-width: 100%;
    }
}

/* Navigation */
.main-nav {
    background-color: var(--usga-white);
    border-bottom: 3px solid var(--usga-red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    display: flex;
    justify-content: space-around;
    padding: 0;
}

.nav-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--usga-blue);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-btn:hover {
    background-color: var(--usga-silver-light);
}

.nav-btn.active {
    color: var(--usga-red);
    border-bottom-color: var(--usga-red);
    background-color: var(--usga-silver-light);
}

@media (min-width: 768px) {
    .nav-btn {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* Main Content */
.main-content {
    padding: 1.5rem 0;
    min-height: calc(100vh - 300px);
}

/* Section Management */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Welcome Message */
.welcome-message {
    line-height: 1.8;
}

.welcome-message p {
    margin-bottom: 1rem;
}

.welcome-message .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.welcome-message strong {
    color: var(--usga-blue);
}

@media (min-width: 768px) {
    .welcome-message .lead {
        font-size: 1.25rem;
    }
}

/* Cards */
.card {
    background-color: var(--usga-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background-color: var(--usga-blue);
    color: var(--usga-white);
    padding: 1rem 1.25rem;
    border-bottom: 3px solid var(--usga-red);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .card-header h3 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* Images */
.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Lot Selector */
.lot-selector {
    margin-bottom: 1.5rem;
}

.lot-selector label {
    display: block;
    color: var(--usga-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.lot-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--usga-silver);
    border-radius: 6px;
    background-color: var(--usga-white);
    color: var(--usga-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lot-select:focus {
    outline: none;
    border-color: var(--usga-blue);
    box-shadow: 0 0 0 3px rgba(0, 54, 95, 0.1);
}

/* Lot Details */
#lot-details {
    margin-top: 1.5rem;
}

.lot-detail-card {
    background-color: var(--usga-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lot-detail-card .card-header {
    background-color: var(--usga-red);
    color: var(--usga-white);
}

.directions-list {
    list-style: none;
    padding: 0;
}

.directions-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--usga-silver-light);
    display: flex;
    align-items: start;
}

.directions-list li:last-child {
    border-bottom: none;
}

.direction-number {
    background-color: var(--usga-blue);
    color: var(--usga-white);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.direction-text {
    flex: 1;
}

/* Lots Grid */
.lots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

@media (min-width: 1024px) {
    .lots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lot-card {
    background-color: var(--usga-silver);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lot-card:hover {
    background-color: var(--usga-blue);
    color: var(--usga-white);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lot-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--usga-blue);
}

.lot-card:hover h4 {
    color: var(--usga-white);
}

.lot-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Shuttle Info */
.shuttle-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--usga-silver-light);
    border-left: 4px solid var(--usga-blue);
    border-radius: 4px;
}

.shuttle-info h4 {
    color: var(--usga-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.shuttle-info ul {
    list-style: none;
    padding: 0;
}

.shuttle-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.shuttle-info li:before {
    content: "→";
    color: var(--usga-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Shuttle Table */
.shuttle-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.shuttle-table th,
.shuttle-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--usga-silver);
}

.shuttle-table th {
    background-color: var(--usga-silver-light);
    color: var(--usga-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.shuttle-table tbody tr:hover {
    background-color: var(--usga-silver-light);
}

@media (max-width: 767px) {
    .shuttle-table {
        font-size: 0.85rem;
    }

    .shuttle-table th,
    .shuttle-table td {
        padding: 0.5rem;
    }
}

/* Parking Table - Desktop/Tablet View */
.desktop-view {
    display: block;
}

.mobile-view {
    display: none;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
}

.parking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 650px;
}

.parking-table th,
.parking-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border: 1px solid var(--usga-silver);
}

.parking-table th {
    background-color: var(--usga-blue);
    color: var(--usga-white);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.3;
}

.parking-table tbody tr:hover {
    background-color: var(--usga-silver-light);
}

.parking-table tbody tr {
    background-color: var(--usga-white);
}

.parking-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.parking-table tfoot tr {
    background-color: var(--usga-silver-light);
    font-weight: bold;
}

.parking-table tfoot td {
    color: var(--usga-blue);
    border-top: 3px solid var(--usga-red);
}

/* Mobile Card View */
.parking-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.parking-card {
    background-color: var(--usga-white);
    border: 2px solid var(--usga-silver);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.parking-card-header {
    background-color: var(--usga-blue);
    color: var(--usga-white);
    padding: 0.75rem 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.parking-card-body {
    padding: 1rem;
}

.parking-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--usga-silver-light);
}

.parking-detail:last-child {
    border-bottom: none;
}

.parking-detail.parking-total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--usga-red);
    border-bottom: none;
    font-weight: bold;
    font-size: 1.05rem;
}

.detail-label {
    color: var(--usga-blue);
    font-weight: 600;
}

.detail-value {
    color: #333;
    text-align: right;
}

.parking-summary {
    border: 3px solid var(--usga-red);
}

.parking-summary .parking-card-header {
    background-color: var(--usga-red);
}

/* Responsive behavior */
@media (max-width: 767px) {
    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .parking-card-header {
        font-size: 1rem;
        padding: 0.6rem 0.85rem;
    }

    .parking-card-body {
        padding: 0.85rem;
    }

    .parking-detail {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .parking-table {
        font-size: 0.8rem;
    }

    .parking-table th {
        font-size: 0.8rem;
    }
}

/* Walking Time Badge */
.walking-time {
    display: inline-block;
    background-color: var(--usga-gold);
    color: var(--usga-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Alert Box */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: var(--usga-blue);
    color: var(--usga-blue);
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Footer */
.footer {
    background-color: var(--usga-blue);
    color: var(--usga-white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-usga-blue {
    color: var(--usga-blue);
}

.text-usga-red {
    color: var(--usga-red);
}

.bg-usga-blue {
    background-color: var(--usga-blue);
    color: var(--usga-white);
}

.bg-usga-red {
    background-color: var(--usga-red);
    color: var(--usga-white);
}

/* Clickable table rows */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: #f8f9fa;
}

.clickable-row td:last-child {
    text-align: center;
    width: 40px;
}

.lot-details-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 3px solid #003A70;
}

.lot-details-container .map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Lot directions images - display at full quality - OVERRIDE ALL */
img[src*='directions.png'],
img[src*='directions.png'][style],
.directions-image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 15px 0 !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile accordion body - remove padding to allow full-width images */
.mobile-view .accordion-body {
    padding: 10px 0 !important;
}

.mobile-view .accordion-body img[src*='directions.png'],
.mobile-view .accordion-body img[src*='directions.png'][style] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin: 10px 0 !important;
}

/* Desktop table expanded rows */
.lot-details-container img[src*='directions.png'],
.lot-details-container img[src*='directions.png'][style] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Desktop - can have some max-width on large screens */
@media (min-width: 992px) {
    .lot-details-container img[src*='directions.png'],
    .lot-details-container img[src*='directions.png'][style] {
        max-width: 1200px !important;
        min-width: auto !important;
        margin: 15px auto !important;
    }
}

