/* CSS Variables — sourced from brand palette */
:root {
    /* Backgrounds */
    --background:           #faf8f5;   /* whitesmoke-200 */
    --card:                 #ffffff;

    /* Text */
    --foreground:           #2a2a2a;   /* black-200 */
    --muted-foreground:     #6b6b63;   /* dimgray-200 */

    /* Brand greens */
    --primary:              #2a5934;   /* darkolivegreen-100 */
    --primary-foreground:   #ffffff;
    --color-sage:           #4a5d4a;   /* darkslategray-200 */
    --color-dark-green:     #1b4332;   /* darkslategray-100 */

    /* Neutrals */
    --color-sand:           #e8dcc8;   /* antiquewhite-100 */
    --color-cream:          #faf8f5;   /* whitesmoke-200 */
    --color-stone:          #4a4a42;   /* darkslategray-300 */
    --color-stone-light:    #6b6b63;   /* dimgray-200 */
    --color-border:         #d4cfc4;   /* lightgray-100 */
    --muted:                #e8e5df;   /* gainsboro-100 */

    /* Accent / CTA */
    --color-accent:         #c17b5c;   /* darksalmon-100 */

    /* Brand typography */
    --color-brand-text:     #4a4a42;   /* darkslategray-300 */
    --color-brand-accent:   #8b9b7e;   /* darkseagreen-100 */

    /* Legacy aliases */
    --border:               #d4cfc4;
    --input:                #d4cfc4;
    --ring:                 #4a5d4a;
    --accent:               #e8dcc8;
    --accent-foreground:    #2a2a2a;
    --secondary:            #4a5d4a;
    --secondary-foreground: #ffffff;
    --card-foreground:      #2a2a2a;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    /* Reserve space for fixed-top navbar to prevent CLS */
    padding-top: 70px;
}

/* Ensure fonts use swap so text is visible during webfont load */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-display: swap;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 64px;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-brand-text);
    letter-spacing: -0.02em;
}

.brand-accent {
    color: var(--color-brand-accent);
}

.nav-link {
    color: var(--color-brand-text) !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent) !important;
}

/* Override Bootstrap's rounded button defaults site-wide */
.btn {
    --bs-btn-border-radius: 3px;
    border-radius: 3px !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-lg {
    --bs-btn-border-radius: 3px;
    padding: 0.65rem 2rem;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary,
.btn-dark-green {
    background-color: var(--color-dark-green);
    border-color: var(--color-dark-green);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
}

.btn-primary:hover,
.btn-dark-green:hover {
    background-color: #153628;
    border-color: #153628;
    color: #ffffff;
}

.btn-outline-primary {
    border-color: var(--color-dark-green);
    color: var(--color-dark-green);
    background-color: transparent;
    font-weight: 600;
    border-radius: 4px;
}

.btn-outline-primary:hover {
    background-color: var(--color-dark-green);
    border-color: var(--color-dark-green);
    color: #ffffff;
}

/* btn-accent kept for legacy usage only — prefer btn-dark-green */
.btn-accent {
    background-color: var(--color-dark-green);
    border-color: var(--color-dark-green);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
}

.btn-accent:hover {
    background-color: #153628;
    border-color: #153628;
    color: #ffffff;
}

.btn-outline-accent {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
}

.btn-outline-accent:hover {
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(80vh - 88px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../public/hero-golf-course.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.20) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    border-radius: 1rem;
    border: none;
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
}

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

.course-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

/* Utility classes */
.bg-cream {
    background-color: var(--color-cream);
}

.bg-sand {
    background-color: var(--color-sand);
}

.bg-dark-green {
    background-color: var(--color-dark-green);
}

.text-sage {
    color: var(--color-sage);
}

.text-primary-custom {
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: #FAF8F5;
    border-color: #E8DCC8;
}

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

/* Forms */
.form-control, .form-select {
    border-color: var(--border);
    border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 0.2rem rgba(74, 93, 74, 0.25);
}

/* Course Detail Hero */
.course-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #2a5934 0%, #4a7c5a 100%);
    overflow: hidden;
}

.course-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.course-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}

.course-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2.5rem 0;
}

.course-hero-location {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}

.course-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.course-hero-info {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.course-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.85rem;
    color: #ffffff;
}

.star-icon {
    color: #f5c842;
    font-size: 0.9rem;
}

/* Admin Portal Styles */
.admin-main {
    min-height: 100vh;
    background-color: #FAF8F3;
    padding-top: 5rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: #6B6B6B;
    font-size: 1.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
}

.stat-label {
    color: #6B6B6B;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2A2A2A;
    margin: 0;
}

.stat-value-accent {
    color: #4A5D4A;
}

.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
    text-decoration: none;
    transition: border-color 0.2s;
}

.admin-card:hover {
    border-color: #4A5D4A;
}

.admin-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.admin-card-desc {
    color: #6B6B6B;
    margin: 0;
}

/* Admin Claims */
.claims-list {
    display: grid;
    gap: 1.5rem;
}

.claim-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
}

.claim-header {
    margin-bottom: 1rem;
}

.claim-course-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.claim-date {
    color: #6B6B6B;
    font-size: 0.875rem;
    margin: 0;
}

.claim-details {
    margin-bottom: 1rem;
}

.claim-details p {
    color: #2A2A2A;
    margin-bottom: 0.25rem;
}

.claim-message {
    margin-top: 0.5rem;
}

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

.btn-approve {
    padding: 0.5rem 1rem;
    background-color: #4A5D4A;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-approve:hover {
    background-color: #3d4d3d;
}

.btn-deny {
    padding: 0.5rem 1rem;
    background-color: #E8E5DF;
    color: #2A2A2A;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-deny:hover {
    background-color: #d4cfc4;
}

.claim-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.claim-status-approved {
    background-color: #4A5D4A;
    color: #FFFFFF;
}

.claim-status-denied {
    background-color: #6B6B6B;
    color: #FFFFFF;
}

.claim-status-pending {
    background-color: #E8E5DF;
    color: #2A2A2A;
}

/* Admin Courses */
.search-box {
    margin-bottom: 2rem;
}

.admin-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D4CFC4;
    border-radius: 4px;
    font-size: 1rem;
}

.courses-list {
    display: grid;
    gap: 1rem;
}

.course-row {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-info {
    flex: 1;
}

.course-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #2A2A2A;
    margin-bottom: 0.25rem;
}

.course-location {
    color: #6B6B6B;
    font-size: 0.875rem;
    margin: 0;
}

.btn-edit {
    padding: 0.5rem 1rem;
    background-color: #4A5D4A;
    color: #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-edit:hover {
    background-color: #3d4d3d;
    color: #FFFFFF;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.btn-pagination {
    padding: 0.5rem 1rem;
    background-color: #4A5D4A;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-pagination:disabled {
    background-color: #E8E5DF;
    color: #6B6B6B;
    cursor: not-allowed;
}

.btn-pagination:not(:disabled):hover {
    background-color: #3d4d3d;
}

.pagination-info {
    padding: 0.5rem 1rem;
    color: #2A2A2A;
}

/* Admin Users */
.users-list {
    display: grid;
    gap: 1rem;
}

.user-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.user-info {
    flex: 1;
}

.user-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.user-email {
    color: #6B6B6B;
    margin-bottom: 0.25rem;
}

.user-meta {
    color: #6B6B6B;
    font-size: 0.875rem;
    margin: 0;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background-color: #4A5D4A;
    color: #FFFFFF;
}

.status-suspended {
    background-color: #6B6B6B;
    color: #FFFFFF;
}

.btn-toggle {
    padding: 0.5rem 1rem;
    background-color: #E8E5DF;
    color: #2A2A2A;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-toggle:hover {
    background-color: #d4cfc4;
}

/* Advertiser Portal Styles */
.advertiser-main {
    min-height: 100vh;
    background-color: #FAF8F3;
    padding-top: 5rem;
}

.advertiser-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.advertiser-header {
    margin-bottom: 2rem;
}

.advertiser-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.advertiser-subtitle {
    color: #6B6B6B;
    font-size: 1.125rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background-color: transparent;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2A2A2A;
}

.section-title-large {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #2A2A2A;
    margin-bottom: 1.5rem;
}

.course-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
    margin-bottom: 1rem;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.course-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.course-location {
    color: #6B6B6B;
    font-size: 0.875rem;
    margin: 0;
}

.course-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-featured {
    background-color: #4A5D4A;
    color: #FFFFFF;
}

.badge-active {
    background-color: #10b981;
    color: #FFFFFF;
}

.badge-inactive {
    background-color: #E8E5DF;
    color: #6B6B6B;
}

.badge-pending {
    background-color: #E8E5DF;
    color: #2A2A2A;
}

.badge-approved {
    background-color: #10b981;
    color: #FFFFFF;
}

.badge-denied {
    background-color: #ef4444;
    color: #FFFFFF;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background-color: #E8E5DF;
    color: #2A2A2A;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #d4cfc4;
    color: #2A2A2A;
}

.btn-primary {
    padding: 0.5rem 1rem;
    background-color: #4A5D4A;
    color: #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #3d4d3d;
    color: #FFFFFF;
}

.claim-card-small {
    background-color: #FFFFFF;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
    margin-bottom: 1rem;
}

.claim-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2A2A2A;
    margin-bottom: 0.25rem;
}

.claim-date {
    font-size: 0.75rem;
    color: #6B6B6B;
    margin-bottom: 0.5rem;
}

/* Listings */
.listing-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
    margin-bottom: 1.5rem;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.listing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.listing-location {
    color: #6B6B6B;
    margin: 0;
}

.listing-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #D4CFC4;
    position: relative;
}

.pricing-card-featured {
    border-color: #4A5D4A;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #4A5D4A;
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: bold;
    color: #4A5D4A;
    margin-bottom: 1rem;
}

.pricing-period {
    font-size: 1rem;
    font-weight: normal;
    color: #6B6B6B;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #2A2A2A;
}

.pricing-highlight {
    color: #4A5D4A;
    font-weight: 500;
}

.btn-pricing {
    width: 100%;
    padding: 0.75rem;
    background-color: #E8E5DF;
    color: #2A2A2A;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-pricing:hover {
    background-color: #d4cfc4;
}

.btn-pricing-primary {
    background-color: #4A5D4A;
    color: #FFFFFF;
}

.btn-pricing-primary:hover {
    background-color: #3d4d3d;
}

/* Subscriptions */
.subscription-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #D4CFC4;
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.subscription-info {
    flex: 1;
}

.subscription-course {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #2A2A2A;
    margin-bottom: 0.5rem;
}

.subscription-plan,
.subscription-renew {
    color: #6B6B6B;
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6B6B6B;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
    background-color: #fee;
    border-radius: 8px;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #FFFFFF;
    border-radius: 8px;
}

.empty-state p {
    color: #6B6B6B;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.input-group-text {
    border-color: var(--border);
    color: var(--muted-foreground);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
}

/* Course Details Page Styles */
.hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.95;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.details-section {
    background-color: white;
    padding: 4rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.details-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    color: var(--foreground);
}

.detail-value a {
    color: var(--primary);
    text-decoration: none;
}

.detail-value a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.course-description-section {
    background-color: var(--background);
    padding: 4rem 0;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.main-content {
    padding-right: 2rem;
}

.course-subsection {
    margin-bottom: 3rem;
}

.course-subsection h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.sidebar-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-address {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

.quick-facts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-fact-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.quick-fact-row:last-child {
    border-bottom: none;
}

.quick-fact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.quick-fact-value {
    font-size: 0.875rem;
    color: var(--foreground);
    text-align: right;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--accent);
    border-radius: 0.5rem;
}

.amenity-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.amenity-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .details-grid,
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-content {
        padding-right: 0;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Results */
.filter-card {
    background: white;
    border-radius: 1rem;
    border: none;
}

.result-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.badge-custom {
    background-color: var(--color-sand);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Login Page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    padding: 3rem 1rem;
}

.login-card {
    max-width: 400px;
    width: 100%;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* About Page */
.stats-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.value-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

/* Contact Page */
.contact-info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.alert-success-custom {
    background-color: var(--color-sand);
    color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Secondary nav link hover */
#secondary-nav a:hover {
    color: var(--color-accent) !important;
}

/* Bootstrap form overrides — ensure form-control inherits site font and sizing */
.form-control,
.form-select {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
    background-color: #fff;
    color: var(--foreground);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

/* Page sections — remove extra top padding since header spacer handles offset */
.page-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Dashboard / profile card resets */
.card {
    border-radius: 0.75rem;
}

.card-body {
    padding: 1.75rem;
}

/* Ensure btn-accent works as Bootstrap .btn */
.btn.btn-accent,
a.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
}

.btn.btn-accent:hover,
a.btn-accent:hover {
    background-color: #a8634a;
    border-color: #a8634a;
    color: #fff;
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination .page-link {
    color: var(--color-brand-text);
    background-color: transparent;
    border-color: var(--color-border);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    transition: background 0.2s, color 0.2s;
}

.pagination .page-link:hover {
    background-color: var(--color-sand);
    border-color: var(--color-border);
    color: var(--color-brand-text);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: var(--color-stone-light);
    background-color: transparent;
    border-color: var(--color-border);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    background-color: #faf8f5 !important;
    color: var(--color-brand-text);
}

.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e8dcc8;
    color: #4a4a42;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer .social-icon:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.footer .text-muted {
    color: var(--color-stone-light) !important;
}

.footer .border-top {
    border-color: var(--color-border) !important;
}

/* ── Secondary Nav ──────────────────────────────────────── */
#secondary-nav {
    background-color: #faf8f5;
    border-bottom: 1px solid #e0dbd4;
}

.secondary-nav-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-brand-text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.secondary-nav-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Highlight current page link */
.secondary-nav-link.active {
    color: var(--color-accent);
}

/* Auth Pages (Login/Signup) */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    padding: 2rem;
}

.auth-card {
    max-width: 500px;
    width: 100%;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.auth-subtitle {
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-footer-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Legal Pages (Privacy, Terms, Cookies) */
.legal-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background-color: var(--background);
}

.legal-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.legal-date {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.legal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--foreground);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Location/Near Me Pages */
.location-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
}

.course-card-horizontal {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.course-card-img-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    transition: transform 0.5s ease;
}

.course-card-horizontal:hover .course-card-img-horizontal {
    transform: scale(1.05);
}

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

.course-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.distance-badge {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.course-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.course-card-location {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Utility Classes */
.btn-sage {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-sage:hover {
    background-color: #3d4d3d;
    border-color: #3d4d3d;
    color: white;
}

.btn-outline-sage {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline-sage:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.bg-sage {
    background-color: var(--primary);
    color: white;
}

/* Logo */
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-brand-text);
    letter-spacing: -0.02em;
}

/* Footer */
.footer {
  background-color: #FAF8F5;
  border-top: 1px solid var(--border);
  padding: 0;
  margin-top: 0;
  }

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .legal-title {
        font-size: 2.5rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
}
