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

      html {
        overflow-x: clip;
        max-width: 100%;
        width: 100%;
      }

      body {
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        background: var(--bg-primary);
        min-height: 100vh;
        color: var(--text-primary);
        line-height: 1.6;
        transition: background-color 0.3s ease, color 0.3s ease;
        overflow-x: clip;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overscroll-behavior-x: none;
      }
      @media (prefers-color-scheme: dark) {
        .results-table .course-card {
          background: var(--search-bg);
          border-color: var(--search-border);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .results-table .course-card:hover {
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
          border-color: var(--search-border);
        }
      }

      /* Dark mode button styles - white buttons with black text */
      @media (prefers-color-scheme: dark) {
        .best-match-book-btn,
        .best-match-share-btn,
        .tee-time-book-btn,
        .tee-time-share-btn {
          background: #ffffff !important;
          color: #000000 !important;
        }

        .best-match-book-btn:hover,
        .best-match-share-btn:hover,
        .tee-time-book-btn:hover,
        .tee-time-share-btn:hover {
          background: #e5e5e5 !important;
        }
      }

      /* Remove min-height on mobile to prevent extra scrolling */
      @media (max-width: 768px) {
        body {
          min-height: auto;
        }
      }

              .container {
          max-width: 100% !important; /* Don't limit container width */
          margin: 0 auto;
          padding: 1rem;
          padding-top: 5.5rem;
          padding-bottom: 0;
          overflow-y: auto;
          overflow-x: hidden;
          flex: 1;
        }

        @media (max-width: 768px) {
          .container {
            padding: 0;
            padding-top: 4.5rem;
            padding-bottom: 0;
          }
        }

              .nav {
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          display: flex;
          justify-content: space-between;
          align-items: center;
          background: var(--bg-primary);
          padding: 1rem 2rem;
          z-index: 1000;
          transition: background-color 0.3s ease;
        }

        @media (max-width: 768px) {
          .nav {
            padding: 0.5rem 1rem;
          }
        }

                    .nav-brand {
        color: var(--text-primary);
        font-size: 1.5rem;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: color 0.3s ease;
      }

        .nav-brand-text {
          margin-left: 8px;
        }

      .nav-actions {
        display: flex;
        gap: 0.75rem;
        align-items: center;
      }

      .nav-btn {
        background: transparent;
        color: var(--text-primary);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
      }

      .nav-btn:hover {
        background: var(--hover-bg);
      }

      .nav-btn.primary {
        background: var(--accent);
        color: var(--accent-text);
      }

      .nav-btn.primary:hover {
        background: #333333;
      }

      .nav-user {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 500;
        color: var(--text);
      }

      .user-name {
        font-weight: 600;
        color: var(--accent);
      }

      /* Main Content Container - ChatGPT-style vertical centering when no results */
      .main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center when no results */
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100% !important; /* Ensure no width constraints */
        box-sizing: border-box;
        min-height: calc(100vh - 200px); /* Account for nav and footer */
      }

      /* When results are present, switch to flex-start so results appear below search */
      .main-content:has(.results-panel:has(.results-table[style*="display: table"])) {
        justify-content: flex-start !important;
        padding-top: 2rem !important;
      }
      
      .main-content:has(.results-panel:has(.mock-banner[style*="display: block"])) {
        justify-content: flex-start !important;
        padding-top: 2rem !important;
      }

      @media (max-width: 768px) {
        .main-content {
          /* Fill the first screen so search is the only thing above the fold */
          min-height: calc(100dvh - 64px);
          justify-content: center;
          padding: 1rem 1rem 2.5rem;
          flex: 0 0 auto;
        }

        .results-main-content {
          min-height: auto !important;
        }

        /* Once results appear, drop the full-viewport spacer */
        .main-content:has(.results-panel:has(.results-table[style*="display: table"])),
        .main-content:has(.results-panel:has(.mock-banner[style*="display: block"])),
        .main-content:has(.results-cards:not([hidden])) {
          min-height: auto;
          justify-content: flex-start;
          padding-top: 1.25rem;
          padding-bottom: 1rem;
        }
      }

      .header {
        text-align: center;
        padding: 0 0 1.5rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 1.25rem;
      }

      .header p {
        font-size: clamp(2.25rem, 4.5vw, 3rem);
        color: var(--text-primary);
        font-weight: 600;
        letter-spacing: -0.03em;
        line-height: 1.15;
        margin: 0;
        transition: color 0.3s ease;
        text-align: center;
        width: 100%;
      }

      @media (max-width: 768px) {
        .header {
          padding: 0 0 0.5rem 0;
          margin-bottom: 0.5rem;
        }
        .header p {
          /* One line on mobile; still larger than showcase "Ask. Match. Play." (~1.1rem) */
          font-size: clamp(1.35rem, 4.8vw, 1.85rem);
          font-weight: 600;
          white-space: nowrap;
          letter-spacing: -0.04em;
        }
      }

      /* Search Mode Selector Styles */
      .search-mode-selector {
        display: none; /* Hidden - AI Mode is now the only option */
        justify-content: center;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 700px;
      }

      .mode-tabs {
        display: flex;
        background: var(--secondary);
        border-radius: 50px;
        padding: 0.25rem;
        border: 2px solid var(--border);
        box-shadow: var(--shadow);
      }

      .mode-tab {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 25px;
        background: transparent;
        color: var(--text-light);
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
      }

      .mode-tab:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.5);
      }

      .mode-tab.active {
        background: var(--accent);
        color: var(--accent-text);
        box-shadow: var(--shadow);
      }

      .mode-icon {
        width: 1.25rem;
        height: 1.25rem;
      }

      .mode-text {
        font-size: 0.95rem;
      }

      /* Search Section Styles */
      .search-section {
        display: none;
        animation: fadeIn 0.3s ease;
      }

      .search-section.active {
        display: block;
      }

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

      .search-bar {
        background: var(--search-bg);
        border-radius: var(--radius);
        padding: 2rem;
        box-shadow: var(--shadow);
        margin-bottom: 2rem;
        width: 100%;
        border: 1px solid var(--search-border);
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
        transition: background-color 0.3s ease, border-color 0.3s ease;
        box-sizing: border-box;
      }

      @media (max-width: 768px) {
        .search-bar {
          padding: 1rem;
          margin: 0 0.5rem 2rem 0.5rem;
          width: calc(100% - 1rem);
          max-width: none;
        }
      }

      @media (max-width: 480px) {
        .search-bar {
          padding: 0.75rem;
          margin: 0 0.25rem 1.5rem 0.25rem;
          width: calc(100% - 0.5rem);
        }
      }

      .search-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        text-align: center;
        transition: color 0.3s ease;
      }

      .search-subtitle {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-bottom: 2rem;
        text-align: center;
        transition: color 0.3s ease;
      }

      .search-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
      }

      .form-row {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
      }

      .form-group {
        flex: 1;
        min-width: 150px;
      }

      @media (max-width: 768px) {
        .form-group {
          min-width: 120px;
          flex: 1 1 calc(50% - 0.25rem);
        }
        
        .form-row {
          gap: 0.5rem;
        }
      }

      @media (max-width: 480px) {
        .form-group {
          min-width: 100px;
          flex: 1 1 100%;
        }
        
        .form-row {
          flex-direction: column;
        }
      }

      @media (max-width: 480px) {
        .form-group {
          min-width: 100px;
        }
      }

      /* Reduce spacing between form groups in modals */
      .modal .form-group {
        margin-bottom: 0.75rem;
      }

      .modal .form-group:last-child {
        margin-bottom: 0;
      }

      .form-group label {
        display: block;
        margin-bottom: 0.25rem;
        font-weight: 500;
        color: var(--text-primary);
        font-size: 0.9rem;
        transition: color 0.3s ease;
      }

      .modern-input,
      .modern-select {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid var(--search-border);
        border-radius: var(--radius-sm);
        font-size: 1rem;
        transition: all 0.2s ease;
        background: var(--search-bg);
        color: var(--text-primary);
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
      }

      .modern-input:focus,
      .modern-select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
      }

      .modern-select {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.5rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        padding-right: 2.5rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
      }

      .form-actions {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
      }

      .modern-btn {
        background: var(--bg-primary);
        color: var(--text-primary);
        border: 1px solid var(--border-primary);
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        min-height: 45px;
        max-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none; /* Remove underline from links */
      }

      .modern-btn:hover {
        background: var(--hover-bg);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }

      .modern-btn:active {
        transform: translateY(0);
      }

      .modern-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
      }

      /* Primary button styling (Book Now, etc.) - accent color */
      .modern-btn:not(.share-btn) {
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent);
      }

      .modern-btn:not(.share-btn):hover {
        background: var(--primary-light);
        border-color: var(--primary-light);
        color: var(--accent-text);
      }

      /* Share button styling - blue */
      .share-btn {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
      }

      .share-btn:hover {
        background: #2563eb;
        border-color: #2563eb;
      }

      .results-panel {
        background: transparent;
        padding: 0;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem auto 0 auto;
        box-sizing: border-box;
      }

      @media (max-width: 768px) {
        .results-panel {
          padding: 0;
          max-width: 100%;
          margin-top: 1rem;
        }
      }

      @media (max-width: 480px) {
        .results-panel {
          padding: 0;
          max-width: 100%;
          margin-top: 1rem;
        }
      }

      .results-count {
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.5rem;
        color: var(--text-secondary);
        font-size: 1rem;
        font-weight: 500;
        min-height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
      }



      .results-table {
        width: 100%;
        margin-top: 2rem;
        border-collapse: collapse;
        background: var(--search-bg);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        border: 1px solid var(--search-border);
        transition: background-color 0.3s ease, border-color 0.3s ease;
      }

      .results-table thead {
        display: table-header-group;
      }

      .results-table tbody {
        display: table-row-group;
      }

      .results-table th {
        background: var(--bg-secondary);
        padding: 0.75rem 0;
        text-align: left;
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.9rem;
        transition: color 0.3s ease;
      }
      
      .results-table th:first-child {
        padding-left: 0;
        padding-right: 1rem;
      }
      
      .results-table th:last-child {
        padding-left: 1rem;
        padding-right: 0;
      }
      
      .results-table th:not(:first-child):not(:last-child) {
        padding-left: 1rem;
        padding-right: 1rem;
      }

      .results-table tr {
        cursor: default;
        transition: none;
      }

      .results-table tr:hover {
        background: transparent;
      }

      .results-table tr.clickable {
        cursor: default;
      }

      .results-table tr.clickable:hover {
        background: transparent;
      }

      .results-table td {
        padding: 0.75rem 0;
        vertical-align: middle;
        color: var(--text-primary);
        transition: color 0.3s ease;
        text-align: left;
      }
      
      .results-table td:first-child {
        padding-left: 0;
        padding-right: 1rem;
        vertical-align: top;
      }
      
      .results-table td:last-child {
        padding-left: 1rem;
        padding-right: 0;
      }
      
      .results-table td:not(:first-child):not(:last-child) {
        padding-left: 1rem;
        padding-right: 1rem;
      }

      /* Set explicit column widths to match Best Match grid */
      .results-table td:nth-child(1),
      .results-table th:nth-child(1) {
        width: 40%;
        min-width: 200px;
      }

      .results-table td:nth-child(2),
      .results-table th:nth-child(2) {
        width: 18%;
      }

      .results-table td:nth-child(3),
      .results-table th:nth-child(3) {
        width: 12%;
      }

      .results-table td:nth-child(4),
      .results-table th:nth-child(4) {
        width: 30%;
      }

      /* New column styles */
      .tee-times-info {
        text-align: left;
      }
      
      .price-range-info, .holes-info {
        text-align: center;
      }

      .tee-times-count {
        font-weight: 600;
        color: var(--text-primary);
        background: var(--bg-secondary);
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-size: 0.9rem;
      }

      .price-range {
        font-weight: 600;
        color: var(--text-primary);
        background: var(--bg-secondary);
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-size: 0.9rem;
      }

      .holes {
        font-weight: 600;
        color: var(--text-primary);
        background: var(--bg-secondary);
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-size: 0.9rem;
      }

      .view-details-btn {
        background: var(--accent);
        color: var(--accent-text);
        border: none;
        padding: 0.5rem;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-right: 0.5rem;
      }

      .view-details-btn:hover {
        background: #333333;
        transform: translateY(-1px);
      }

      /* Shared result card layout (Best Match + other courses) */
      .result-course-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 0.35rem;
        min-width: 0;
      }

      .result-course-card .course-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
        width: 100%;
        min-width: 0;
      }

      .result-course-card .course-name {
        display: block;
        width: 100%;
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.25;
        color: var(--text-primary);
      }

      .result-course-card .course-location {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 0.85rem;
        font-weight: 500;
        line-height: 1.3;
        color: var(--text-secondary);
        text-align: left;
      }

      .result-course-card .course-details-mobile,
      .result-course-card .tee-times-list {
        margin: 0;
        padding: 0;
        width: 100%;
        flex: 0 0 auto;
        min-height: 0;
      }

      .tee-times-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
      }

      .tee-times-empty {
        padding: 0.25rem 0;
        color: var(--text-secondary);
        font-size: 0.85rem;
      }

      .tee-time-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--border-primary);
      }

      .tee-time-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }

      .tee-time-row:first-child {
        padding-top: 0.15rem;
      }

      .tee-time-primary {
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
        min-width: 0;
        flex: 0 1 auto;
      }

      .tee-time-value {
        font-weight: 500;
        font-size: 0.9rem;
        color: var(--text-primary);
        white-space: nowrap;
      }

      .tee-time-price {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--text-primary);
        white-space: nowrap;
      }

      .tee-time-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.4rem;
        flex: 0 0 auto;
        margin-left: auto;
      }

      .tee-time-book-btn,
      .tee-time-share-btn,
      .best-match-book-btn,
      .best-match-share-btn {
        background: #000000;
        color: white;
        border: none;
        padding: 0.3rem 0.65rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.8rem;
        font-weight: 600;
        line-height: 1.35;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        transition: background 0.2s ease;
      }

      .tee-time-book-btn:hover,
      .tee-time-share-btn:hover,
      .best-match-book-btn:hover,
      .best-match-share-btn:hover {
        background: #333333;
      }

      .results-cards {
        display: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }

      .results-cards:not([hidden]) {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
      }

      .best-match-table {
        display: none;
      }

      .results-panel,
      .alternatives-table-container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
      }

      @media (max-width: 768px) {
        html,
        body,
        .container,
        .main-content,
        .nlp-search-section,
        .results-panel,
        .alternatives-table-container {
          overflow-x: hidden;
          max-width: 100%;
          width: 100%;
        }

        html {
          overflow-x: hidden;
          /* Avoid 100vw — it includes chrome that appears on focus/keyboard and causes sideways scroll */
          width: 100%;
        }

        .results-table {
          display: none !important;
        }

        .results-cards:not([hidden]) {
          display: flex !important;
          flex-direction: column;
          gap: 0.65rem;
          width: 100%;
          max-width: 100%;
          padding: 0;
          box-sizing: border-box;
        }

        .alternatives-table-container {
          padding: 0;
        }

        .nlp-composer,
        .nlp-input-container,
        .perfect-match {
          max-width: 100% !important;
          width: 100% !important;
          min-width: 0 !important;
          box-sizing: border-box;
        }
      }

      @media (min-width: 769px) {
        .results-cards {
          display: none !important;
        }

        .results-table[hidden] {
          display: none !important;
        }

        .results-table:not([hidden]) {
          display: table !important;
        }
      }

      /* Light desktop results table */
      @media (min-width: 769px) {
        .results-table {
          width: 100%;
          margin-top: 0;
          border-collapse: collapse;
          table-layout: fixed;
          background: transparent;
          border-radius: 0;
          box-shadow: none;
          overflow: visible;
          border: none;
        }

        .results-table .col-course { width: 38%; }
        .results-table .col-time { width: 18%; }
        .results-table .col-price { width: 14%; }
        .results-table .col-actions { width: 30%; }

        .results-table thead {
          display: table-header-group;
        }

        .results-table th {
          background: transparent;
          padding: 0.4rem 0.75rem 0.55rem;
          text-align: left;
          font-weight: 600;
          font-size: 0.72rem;
          letter-spacing: 0.04em;
          text-transform: uppercase;
          color: var(--text-secondary);
          border-bottom: 1px solid var(--border-primary);
        }

        .results-table th:first-child {
          padding-left: 0;
        }

        .results-table th:last-child {
          padding-right: 0;
          text-align: right;
        }

        .results-table td {
          padding: 0.85rem 0.75rem;
          vertical-align: top;
          border-bottom: 1px solid var(--border-primary);
          background: transparent;
          color: var(--text-primary);
        }

        .results-table td:first-child {
          padding-left: 0;
        }

        .results-table td:last-child {
          padding-right: 0;
        }

        .results-table tr:last-child td {
          border-bottom: none;
        }

        .results-table tr:hover,
        .results-table tr.clickable:hover {
          background: transparent;
        }

        .table-course-cell {
          display: flex;
          flex-direction: column;
          gap: 0.1rem;
          min-width: 0;
        }

        .table-course-cell .course-name {
          font-size: 0.95rem;
          font-weight: 600;
          line-height: 1.25;
          color: var(--text-primary);
        }

        .table-course-cell .course-location {
          font-size: 0.82rem;
          font-weight: 500;
          color: var(--text-secondary);
        }

        .table-stack {
          display: flex;
          flex-direction: column;
        }

        .table-stack-item {
          min-height: 2rem;
          display: flex;
          align-items: center;
          font-size: 0.9rem;
          margin-bottom: 0.45rem;
        }

        .table-stack-item.is-last {
          margin-bottom: 0;
        }

        .table-stack-item.table-stack-actions {
          gap: 0.4rem;
          justify-content: flex-end;
        }

        .results-table td:nth-child(3) .table-stack-item {
          font-weight: 600;
        }

        .alternatives-table-container {
          margin-top: 0;
          gap: 0.35rem;
        }

        .alternatives-message {
          margin: 1.15rem 0 0.35rem;
          padding: 0;
        }

        .alternatives-message p {
          font-size: 0.88rem;
          line-height: 1.35;
        }

        /* Best Match uses the same table columns as other courses */
        .perfect-match.result-course-card {
          display: flex;
          flex-direction: column;
          align-items: stretch;
          gap: 0.35rem;
          background: transparent;
          border: none;
          border-bottom: 1px solid var(--border-primary);
          border-radius: 0;
          box-shadow: none;
          padding: 0 0 0.85rem;
          margin: 0;
        }

        .perfect-match .best-match-badge {
          align-self: flex-start;
          width: fit-content;
          max-width: max-content;
          margin: 0;
        }

        .perfect-match .best-match-mobile {
          display: none;
        }

        .perfect-match .best-match-table {
          display: table !important;
          margin: 0;
          width: 100%;
        }

        .perfect-match .best-match-table td {
          border-bottom: none;
          padding-top: 0.35rem;
          padding-bottom: 0.15rem;
          vertical-align: middle;
        }
      }

      @media (max-width: 768px) {
        .perfect-match .best-match-table {
          display: none !important;
        }

        .perfect-match .best-match-mobile {
          display: flex;
          flex-direction: column;
          gap: 0.35rem;
          width: 100%;
        }
      }

      /* Mobile keeps cards; hide desktop table */

      .badge {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        font-weight: 500;
      }

      .badge.holes {
        background: #eff6ff;
        color: #1d4ed8;
      }

      .badge.players {
        background: #f0fdf4;
        color: var(--success);
      }

      .price {
        font-weight: 600;
        color: var(--text);
        font-size: 1rem;
      }

      .course-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
      }

      .course-name {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 1.1rem;
        line-height: 1.3;
        transition: color 0.3s ease;
      }





      .perfect-match {
        background: var(--search-bg);
        border: 1px solid var(--search-border);
        border-radius: 12px;
        padding: 0.75rem;
        margin: 0 0 0.65rem 0;
        color: var(--text-primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }

      @media (max-width: 768px) {
        .perfect-match {
          margin: 0 0 0.65rem 0;
          padding: 0.65rem 0.75rem;
        }

        .alternatives-table-container {
          padding: 0;
        }
      }

      @media (max-width: 480px) {
        .perfect-match {
          margin: 0 0 0.65rem 0;
          padding: 0.65rem 0.75rem;
        }

        .alternatives-table-container {
          padding: 0;
        }
      }

      .perfect-match-content {
        margin-bottom: 0;
      }

      .best-match-badge {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        gap: 0.3rem;
        padding: 0.25rem 0.55rem;
        background: rgba(139, 92, 246, 0.1);
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-radius: 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: #8b5cf6;
        margin: 0 0 0.1rem 0;
        box-sizing: border-box;
      }

      .best-match-badge .sparkle-icon {
        width: 0.875rem;
        height: 0.875rem;
        fill: currentColor;
        flex-shrink: 0;
      }

      /* Card chrome for mobile results; desktop uses light table below */
      @media (max-width: 768px) {
        .results-cards:not([hidden]) {
          display: flex;
          flex-direction: column;
          gap: 0.65rem;
          width: 100%;
          max-width: 100%;
          padding: 0;
          box-sizing: border-box;
        }

        .results-cards .course-card,
        .perfect-match.result-course-card {
          display: flex;
          flex-direction: column;
          width: 100%;
          max-width: 100%;
          box-sizing: border-box;
          background: var(--search-bg);
          border-radius: 12px;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
          border: 1px solid var(--search-border);
          padding: 0.65rem 0.75rem;
          gap: 0.35rem;
          cursor: default;
          overflow: hidden;
          min-width: 0;
        }

        .perfect-match {
          margin: 0 0 0.65rem 0;
        }
      }

      .ai-header {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
      }



      .perfect-match-content p {
        margin: 0;
        line-height: 1.5;
        color: var(--text-primary);
      }



      .perfect-match .actions {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
      }

      .alternatives-table-container {
        width: 100%;
        max-width: 100%;
        margin-top: 0.35rem;
        margin-left: auto;
        margin-right: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
        box-sizing: border-box;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
      }

      .alternatives-message {
        margin: 0;
        padding: 0.15rem 0 0;
        background: transparent;
        border: none;
      }

      .alternatives-message p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.85rem;
        line-height: 1.4;
      }

      .alternatives-table-container .results-table {
        margin-top: 0;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }
      
      .alternatives-table-container .results-table th {
        background: transparent !important;
      }

      .no-perfect-match-message {
        background: var(--bg-secondary);
        border: 1px solid var(--border-primary);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
      }

      .no-perfect-match-message .message-content p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.95rem;
        line-height: 1.5;
      }

      .tee-times-available {
        color: var(--accent);
        font-weight: 500;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
      }

      .tee-times-available::before {
        content: '⏰';
        font-size: 0.8rem;
      }

      .location-info {
        color: var(--text-secondary);
        font-size: 0.95rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 0.25rem;
        transition: color 0.3s ease;
      }



      .action-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
      }

      .action-btn {
        background: var(--bg-primary);
        border: 1px solid var(--border-primary);
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
        height: 36px;
        text-decoration: none;
        color: var(--text-primary);
        white-space: nowrap;
      }

      .action-btn:hover {
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      }

      .action-btn.website-btn:hover {
        background: #3b82f6;
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
      }

      .action-btn.phone-btn:hover {
        background: #10b981;
        border-color: #10b981;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      }


      .tee-time {
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        font-weight: 600;
        color: var(--accent);
      }

      .no-results-card {
        text-align: center;
        padding: 3rem 2rem;
        color: var(--text-light);
        font-size: 1.1rem;
        background: var(--card-bg);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--card-border);
        grid-column: 1 / -1;
      }

      .no-results {
        text-align: center;
        padding: 3rem;
        color: var(--text-light);
        font-size: 1.1rem;
      }

      .mock-banner {
        background: var(--card-bg);
        color: var(--text-primary);
        padding: 1rem;
        border-radius: var(--radius);
        margin-bottom: 1rem;
        text-align: center;
        font-weight: 500;
        box-shadow: var(--shadow-lg);
        border-left: 4px solid var(--warning);
      }

      .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255,255,255,.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
        margin-right: 0.5rem;
      }

      @keyframes spin {
        to { transform: rotate(360deg); }
      }

      .native-checkout-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(15, 23, 42, 0.28);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
      }

      .native-checkout-backdrop.open {
        opacity: 1;
        pointer-events: auto;
      }

      .native-checkout {
        position: fixed;
        z-index: 1001;
        top: 0;
        right: 0;
        width: min(420px, calc(100% - 40px));
        height: 100%;
        max-height: 100dvh;
        background: var(--bg-primary);
        color: var(--text-primary);
        border-left: 1px solid var(--border-primary);
        box-shadow: -22px 0 60px rgba(15, 23, 42, 0.18);
        overflow: auto;
        transform: translateX(105%);
        transition: transform 0.2s ease;
      }

      .native-checkout.open {
        transform: translateX(0);
      }

      .native-checkout-head {
        padding: 1.25rem;
        border-bottom: 1px solid var(--border-primary);
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
      }

      .native-checkout-eyebrow {
        display: block;
        color: var(--text-secondary);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: uppercase;
        margin-bottom: 0.35rem;
      }

      .native-checkout-title {
        margin: 0;
        color: var(--text-primary);
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.2;
      }

      .native-checkout-close {
        width: 38px;
        height: 38px;
        border: 1px solid var(--border-primary);
        border-radius: 8px;
        background: var(--bg-primary);
        color: var(--text-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
      }

      .native-checkout-section {
        padding: 1.25rem;
        border-bottom: 1px solid var(--border-primary);
      }

      .native-checkout-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.5rem 0;
        color: var(--text-secondary);
        font-size: 0.95rem;
        font-weight: 600;
      }

      .native-checkout-row strong {
        color: var(--text-primary);
        text-align: right;
      }

      .native-checkout-box {
        border: 1px solid var(--border-primary);
        border-radius: 8px;
        background: var(--bg-secondary);
        padding: 0.9rem;
        color: var(--text-secondary);
        font-size: 0.95rem;
        line-height: 1.45;
      }

      .native-checkout-box strong {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text-primary);
        font-size: 1rem;
        margin-bottom: 0.35rem;
      }

      .native-checkout-primary {
        width: 100%;
        height: 46px;
        border: 1px solid var(--accent);
        background: var(--accent);
        color: var(--accent-text);
        border-radius: 8px;
        font-weight: 700;
        margin-top: 0.9rem;
        cursor: pointer;
      }

      .native-checkout-primary:disabled {
        cursor: not-allowed;
        opacity: 0.54;
      }

      .native-checkout-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin-top: 0.75rem;
        border: 1px solid var(--border-primary);
        border-radius: 8px;
        color: var(--text-primary);
        background: var(--bg-primary);
        text-decoration: none;
        font-weight: 700;
      }

      @media (max-width: 768px) {
        .container {
          padding: 0 !important;
          padding-top: 3.5rem !important;
          padding-bottom: 0 !important;
        }

        .main-content {
          padding: 1rem 0.5rem 2.5rem !important;
          width: 100%;
          flex: 0 0 auto !important;
          /* Keep search as the first-screen focus; showcase stays below the fold */
          justify-content: center !important;
          min-height: calc(100dvh - 64px) !important;
        }

        .main-content:has(.results-panel:has(.results-table[style*="display: table"])),
        .main-content:has(.results-panel:has(.mock-banner[style*="display: block"])),
        .main-content:has(.results-cards:not([hidden])) {
          min-height: auto !important;
          justify-content: flex-start !important;
          padding-top: 1.25rem !important;
          padding-bottom: 1rem !important;
        }

        /* Keyboard open: pin search near the top so the composer stays above the keyboard */
        body.search-focused .main-content {
          min-height: auto !important;
          justify-content: flex-start !important;
          padding-top: 0.75rem !important;
          padding-bottom: 1rem !important;
        }

        body.search-focused .header {
          margin-bottom: 0.35rem;
          padding-bottom: 0.25rem;
        }

        body.search-focused .feature-showcase {
          display: none;
        }

        .nav {
          flex-direction: row;
          gap: 1rem;
          text-align: center;
          padding: 1rem;
        }

        .nav-brand-text {
          display: none;
        }

        .nav-actions {
          flex-direction: row;
          gap: 0.5rem;
        }

        .nav-btn {
          display: none;
        }

        .nav-btn.about-btn {
          display: inline-block;
          font-size: 0.85rem;
          padding: 0.4rem 0.75rem;
        }

        .nav-icon-btn {
          display: flex;
          width: 44px;
          height: 44px;
          font-size: 1.2rem;
        }

        .header {
          padding: 0 1rem 0.5rem;
        }

        .header p {
          font-size: clamp(1.35rem, 4.8vw, 1.85rem);
          font-weight: 600;
          margin-bottom: 0;
          white-space: nowrap;
          letter-spacing: -0.04em;
        }

        .nlp-input-container {
          max-width: 100% !important;
          width: 100% !important;
          margin: 0 0 0.25rem 0 !important;
          padding: 0 !important;
        }

        .nlp-input {
          min-height: 28px !important;
          max-height: 180px !important;
          padding: 0.35rem 0.75rem 0.35rem 0 !important;
          font-size: 16px !important; /* Must be >= 16px to stop iOS focus zoom */
          width: 100% !important;
          min-width: 0 !important;
          max-width: 100% !important;
          box-sizing: border-box !important;
        }

        .nlp-composer {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          overflow: hidden;
          box-sizing: border-box !important;
        }

        .nlp-search-btn {
          width: 36px !important;
          height: 36px !important;
          min-height: 36px !important;
          max-height: 36px !important;
          margin: 0 !important;
          padding: 0 !important;
          position: static !important;
          transform: none !important;
        }

        /* Mobile: hide desktop table; cards rendered in #results-cards */
        .results-table {
          display: none !important;
        }

        .native-checkout {
          top: auto;
          right: 0;
          bottom: 0;
          left: 0;
          width: 100%;
          height: auto;
          max-height: 88vh;
          border-left: 0;
          border-top: 1px solid var(--border-primary);
          border-radius: 16px 16px 0 0;
          box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.22);
          transform: translateY(105%);
        }

        .native-checkout.open {
          transform: translateY(0);
        }

        .course-name {
          font-size: 1rem;
          font-weight: 600;
          margin-bottom: 0.25rem;
        }

        .location-info {
          font-size: 0.9rem;
          color: var(--text-secondary);
          margin-bottom: 0.25rem;
        }

        .action-buttons {
          justify-content: flex-start;
          flex-wrap: wrap;
          gap: 0.5rem;
          margin-top: 0.25rem;
        }

        .action-btn {
          padding: 0.5rem 0.75rem;
          font-size: 0.85rem;
        }
      }

      .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        z-index: 1000;
        animation: fadeIn 0.2s ease;
      }

      /* Enhanced dark mode backdrop */
      @media (prefers-color-scheme: dark) {
        .modal {
          background: rgba(0, 0, 0, 0.8);
          backdrop-filter: blur(12px);
        }
      }

      .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .modal-content {
        background: var(--modal-bg);
        border-radius: 12px;
        padding: 0;
        max-width: 700px;
        width: 90%;
        height: 600px;
        overflow: hidden;
        box-shadow: var(--modal-shadow);
        animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        border: 1px solid var(--modal-border);
      }

      @keyframes slideUp {
        from { opacity: 0; transform: translateY(20px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
      }

      .modal-close {
        position: absolute;
        top: 16px;
        left: 16px;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #ffffff;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 300;
        z-index: 10;
      }

      .modal-close:hover {
        background: var(--hover-bg);
        color: var(--text-primary);
      }

      /* Enhanced dark mode for modal close button */
      @media (prefers-color-scheme: dark) {
        .modal-close {
          color: var(--text-primary);
        }

        .modal-close:hover {
          background: var(--hover-bg);
          color: var(--text-primary);
        }
      }

      .settings-container {
        display: flex;
        height: 100%;
      }

      .settings-sidebar {
        width: 200px;
        background: var(--sidebar-bg);
        border-right: 1px solid var(--sidebar-border);
        padding: 60px 0 0 0;
        transition: background-color 0.3s ease, border-color 0.3s ease;
      }

      .nav-item {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 14px;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
      }

      .nav-item:hover {
        background: var(--hover-bg);
      }

      .nav-item.active {
        background: var(--active-bg);
      }

      .nav-icon {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        color: var(--text-primary);
      }

      .settings-content {
        flex: 1;
        background: var(--modal-bg);
        padding: 60px 24px 24px 24px;
        overflow-y: auto;
        transition: background-color 0.3s ease;
      }

      /* Homepage login uses shared .auth-card from login.css */
      #login-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }

      /* Hide login modal on mobile - redirect to page instead */
      @media (max-width: 768px) {
        #login-modal {
          display: none !important;
        }
      }

      .content-title {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 32px 0;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
      }

      .settings-section {
        margin-bottom: 32px;
      }

      .setting-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-primary);
        transition: border-color 0.3s ease;
        gap: 20px;
      }

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

      .setting-label {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        width: 140px;
        flex-shrink: 0;
      }

      .setting-control {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
      }

      .settings-input {
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 6px;
        padding: 0.75rem 1rem;
        color: var(--input-text);
        font-size: 14px;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        min-width: 200px;
        max-width: 250px;
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        box-sizing: border-box;
      }

      .settings-input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
      }

      .settings-select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
      }

      .settings-input[readonly] {
        background: var(--bg-secondary);
        color: var(--text-secondary);
        cursor: not-allowed;
      }

      .settings-select {
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 6px;
        padding: 0.75rem 1rem;
        color: var(--input-text);
        font-size: 14px;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        min-width: 200px;
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        cursor: pointer;
      }

      .settings-select:focus {
        outline: none;
        border-color: #000000;
      }

      .settings-divider {
        height: 1px;
        background: var(--border-primary);
        margin: 24px 0;
        transition: background-color 0.3s ease;
      }

      .settings-btn {
        background: var(--bg-primary);
        color: var(--text-primary);
        border: 1px solid var(--border-primary);
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        min-width: 80px;
        height: 36px;
        box-sizing: border-box;
        transition: all 0.2s ease;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .settings-btn.primary {
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent);
      }

      .settings-btn:hover {
        background: var(--hover-bg);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }

      .settings-btn.primary:hover {
        background: var(--primary-light);
        border-color: var(--primary-light);
        color: var(--accent-text);
      }

      /* Enhanced dark mode button styles */
      @media (prefers-color-scheme: dark) {
        .settings-btn:hover {
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }
      }


      .setting-description {
        font-size: 13px;
        color: var(--text-secondary);
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        max-width: 300px;
      }







      .tab-content {
        display: none;
      }

      .tab-content.active {
        display: block;
      }

      .course-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
      }

      .course-website {
        color: var(--primary);
        text-decoration: none;
        font-size: 0.8rem;
      }

      .course-website:hover {
        text-decoration: underline;
      }

      .tee-times-available {
        color: var(--success);
        font-size: 0.8rem;
        font-weight: 600;
      }

      .location-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
      }

      .course-phone {
        color: var(--text-light);
        font-size: 0.8rem;
      }






      .action-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
      }

      .action-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
        font-size: 1.2rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
      }

      .action-btn:hover {
        background: var(--secondary);
        transform: scale(1.1);
      }

      .action-btn.website-btn {
        color: var(--primary);
      }

      .action-btn.phone-btn {
        color: var(--success);
      }




      .course-details-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 1.5rem;
      }

      .course-details-section {
        background: var(--secondary);
        padding: 1.5rem;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
      }

      .course-details-section h3 {
        color: var(--primary);
        margin-bottom: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
      }

      .course-details-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .course-details-section li {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .course-details-section li:last-child {
        border-bottom: none;
      }

      .course-details-section .label {
        font-weight: 500;
        color: var(--text);
      }

      .course-details-section .value {
        color: var(--text-light);
        text-align: right;
      }

      /* Player availability styling */
      .course-details-section li.single-player {
        background: rgba(220, 53, 69, 0.1);
        border-left: 3px solid var(--danger);
      }

      .course-details-section li.double-player {
        background: rgba(255, 193, 7, 0.1);
        border-left: 3px solid var(--warning);
      }

      .course-details-section li.full-group {
        background: rgba(40, 167, 69, 0.1);
        border-left: 3px solid var(--success);
      }

      .course-details-section li.estimated-availability {
        background: rgba(108, 117, 125, 0.1);
        border-left: 3px solid var(--text-light);
        font-style: italic;
      }



      .slide-panel {
        display: none !important; /* Legacy course-details drawer — retired */
        position: fixed;
        top: 0;
        right: -500px;
        width: 500px;
        height: 100vh;
        background: var(--modal-bg);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: right 0.3s ease;
        overflow-y: auto;
      }

      .slide-panel.show {
        right: 0;
      }

      .slide-panel-header {
        position: sticky;
        top: 0;
        background: var(--modal-bg);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-primary);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 10;
      }

      .slide-panel-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
      }

      .slide-panel-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-secondary);
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .slide-panel-close:hover {
        background: var(--secondary);
        color: var(--text);
      }

      .slide-panel-content {
        padding: 1.5rem;
      }

      /* Course details styling */
      .course-details-section {
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
      }

      .course-details-section h3 {
        color: var(--text-primary);
        margin-bottom: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
      }

      .course-details-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .course-details-section li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-primary);
        background: var(--bg-primary);
        margin-bottom: 0.5rem;
        border-radius: 6px;
        transition: all 0.2s ease;
      }

      .course-details-section li:last-child {
        border-bottom: none;
        margin-bottom: 0;
      }

      .course-details-section li:hover {
        background: var(--hover-bg);
        border-color: var(--accent);
      }

      .course-details-section .label {
        font-weight: 500;
        color: var(--text-primary);
      }

      .course-details-section .value {
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      @media (max-width: 768px) {
        .slide-panel {
          width: 100%;
          right: -100%;
        }

        /* Table is already simplified to 3 columns on all devices */

        /* Make remaining columns more prominent on mobile */
        .results-table th,
        .results-table td {
          padding: 0.75rem 0.5rem;
          font-size: 0.9rem;
        }

        .course-name {
          font-size: 1rem;
        }

        .action-buttons {
          gap: 0.25rem;
        }

        .action-btn {
          width: 2rem;
          height: 2rem;
          font-size: 1rem;
        }

        /* Mobile search box adjustments */
        .nlp-input-container {
          flex-direction: column;
          gap: 1rem;
          max-width: 100%;
          width: 100%;
          min-width: 0;
          padding: 0;
        }

        .nlp-input {
          padding: 0.35rem 0.75rem 0.35rem 0 !important;
          font-size: 16px !important;
          min-height: 28px !important;
          min-width: 0 !important;
          max-width: 100% !important;
        }

        .nlp-search-btn {
          width: 36px !important;
          height: 36px !important;
          min-height: 36px !important;
          max-height: 36px !important;
          padding: 0 !important;
        }

        .header p {
          font-size: clamp(1.35rem, 4.8vw, 1.85rem);
          font-weight: 600;
          margin-bottom: 0;
          white-space: nowrap;
          letter-spacing: -0.04em;
        }
      }

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

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

      .booking-options {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
      }

      .booking-option-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
        text-decoration: none;
        border-radius: var(--radius-sm);
        font-weight: 600;
        transition: all 0.3s ease;
      }

      .booking-option-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
      }

      .booking-note {
        color: var(--text-light);
        font-size: 0.9rem;
        text-align: center;
        margin-top: 1rem;
        font-style: italic;
      }

      @media (max-width: 768px) {
        .course-details-section li .value {
          display: flex;
          flex-direction: column;
          gap: 0.25rem;
          align-items: flex-end;
        }

        .nlp-input-container {
          width: 100% !important;
          max-width: 100% !important;
          padding: 0 !important;
        }

        .nlp-input {
          padding: 0.35rem 0.75rem 0.35rem 0 !important;
          font-size: 16px !important; /* <16px triggers iOS focus zoom → horizontal scroll */
          width: 100% !important;
          min-width: 0 !important;
          max-width: 100% !important;
          min-height: 28px !important;
        }

        .nlp-search-btn {
          position: static !important;
          width: 36px !important;
          height: 36px !important;
          min-height: 36px !important;
          max-height: 36px !important;
          padding: 0 !important;
        }

        .typeahead-suggestions {
          max-height: 200px !important;
          font-size: 0.9rem !important;
        }

        .typeahead-suggestion {
          padding: 0.75rem 1rem !important;
          font-size: 0.9rem !important;
        }

        /* Override inline styles on mobile */
        .nlp-input-container[style*="min-width: 800px"] {
          min-width: auto !important;
        }

        /* Force mobile-friendly container */
        .nlp-input-container {
          min-width: auto !important;
          max-width: 100% !important;
          width: 100% !important;
        }

        /* Override any inline styles on mobile */
        .nlp-input-container[style] {
          min-width: auto !important;
          max-width: 100% !important;
          width: 100% !important;
        }
      }

      /* AI search composer — Cursor / ChatGPT-style unified input */
      .nlp-search-section {
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 0;
      }

      @media (min-width: 769px) {
        .nlp-search-section {
          max-width: min(56vw, 820px);
          width: min(56vw, 820px);
        }
      }

      .nlp-input-container {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        box-sizing: border-box;
      }

      @media (max-width: 768px) {
        .nlp-search-section {
          max-width: 100%;
          width: 100%;
          padding: 0 0.5rem 0.25rem;
        }
      }

      @media (max-width: 480px) {
        .nlp-search-section {
          padding: 0 0.4rem 0.25rem;
        }
      }

      .nlp-composer {
        position: relative;
        display: flex;
        align-items: flex-end;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 56px;
        padding: 0.65rem 0.65rem 0.65rem 1.1rem;
        border: 1px solid var(--search-border);
        border-radius: 24px;
        background: var(--search-bg);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        box-sizing: border-box;
        overflow: hidden;
      }

      .nlp-composer:focus-within {
        border-color: var(--accent);
        background: var(--bg-primary);
        box-shadow: none;
      }

      @media (prefers-color-scheme: dark) {
        .nlp-composer:focus-within {
          box-shadow: none;
        }
      }

      .nlp-input-wrapper {
        display: contents;
      }

      .nlp-input {
        flex: 1;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 28px;
        max-height: 160px;
        margin: 0;
        padding: 0.35rem 0.75rem 0.35rem 0;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--text-primary);
        font-size: 16px;
        font-family: inherit;
        line-height: 1.45;
        resize: none;
        overflow-x: hidden;
        overflow-y: auto;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        word-break: break-word;
        outline: none;
      }

      .nlp-input::placeholder {
        color: var(--text-light);
      }

      .nlp-search-btn {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: var(--accent);
        color: var(--accent-text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
      }

      .nlp-search-btn:hover:not(:disabled) {
        background: var(--primary-light);
        transform: none;
        box-shadow: none;
      }

      .nlp-search-btn:disabled {
        background: var(--bg-tertiary);
        color: var(--text-tertiary);
        cursor: not-allowed;
        opacity: 1;
      }

      @media (prefers-color-scheme: dark) {
        .nlp-search-btn:disabled {
          background: #2a2a2a;
          color: #666666;
        }
      }

      .nlp-search-icon {
        width: 18px;
        height: 18px;
        display: block;
      }

      .nlp-search-spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top-color: currentColor;
        border-radius: 50%;
        animation: nlp-spin 0.7s linear infinite;
      }

      .nlp-search-btn.is-loading .nlp-search-icon {
        display: none;
      }

      .nlp-search-btn.is-loading .nlp-search-spinner {
        display: block;
      }

      @keyframes nlp-spin {
        to { transform: rotate(360deg); }
      }

      @media (max-width: 768px) {
        .nlp-composer {
          border-radius: 22px;
          min-height: 52px;
          padding: 0.55rem 0.55rem 0.55rem 1rem;
          max-width: 100%;
          min-width: 0;
          overflow: hidden;
        }

        .nlp-composer:focus-within {
          box-shadow: none;
        }

        .nlp-input {
          max-height: 180px;
          font-size: 16px !important;
          min-width: 0 !important;
          max-width: 100% !important;
        }

        .nlp-search-section,
        .nlp-input-container,
        .search-section,
        .main-content {
          max-width: 100%;
          min-width: 0;
          overflow-x: hidden;
        }
      }

      /* AI Thinking indicator */
      .ai-thinking {
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.5rem;
        color: var(--text-secondary);
        font-size: 1rem;
        font-weight: 500;
        min-height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
      }

      .inline-error {
        color: var(--error-inline, #c45555);
        font-weight: 500;
      }

      .settings-inline-error {
        margin: 0.75rem 0 0;
        font-size: 0.875rem;
        line-height: 1.4;
      }

      .settings-inline-error[hidden] {
        display: none !important;
      }

      @media (max-width: 768px) {
        .ai-thinking {
          padding: 0.15rem 0.25rem;
          margin-top: 0.15rem;
          margin-bottom: 0;
        }
      }

      /* Glistening effect for thinking state — visible in light and dark */
      .thinking-text {
        background: linear-gradient(
          90deg,
          var(--text-tertiary),
          var(--text-primary),
          var(--text-tertiary)
        );
        background-size: 200% 100%;
        animation: glisten 2s ease-in-out infinite;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        display: inline-block;
      }

      @keyframes glisten {
        0% {
          background-position: 100% 0;
        }
        100% {
          background-position: -100% 0;
        }
      }

      /* Search Mode Selector Styles */
      .search-mode-selector {
        display: none; /* Hidden - AI Mode is now the only option */
        justify-content: center;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 700px;
      }

      .mode-tabs {
        display: flex;
        background: var(--secondary);
        border-radius: 50px;
        padding: 0.25rem;
        border: 2px solid var(--border);
        box-shadow: var(--shadow);
      }

      .mode-tab {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 25px;
        background: transparent;
        color: var(--text-light);
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
      }

      .mode-tab:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.5);
      }

      .mode-tab.active {
        background: var(--accent);
        color: var(--accent-text);
        box-shadow: var(--shadow);
      }

      .mode-icon {
        width: 1.25rem;
        height: 1.25rem;
      }

      .mode-text {
        font-size: 0.95rem;
      }

      /* Search Section Styles */
      .search-section {
        display: none;
        animation: fadeIn 0.3s ease;
      }

      .search-section.active {
        display: block;
      }

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


      /* Fix mode tabs for dark mode */
      .mode-tabs {
        background: var(--bg-secondary) !important;
        border: 2px solid var(--border-primary) !important;
      }

      .mode-tab {
        color: var(--text-secondary) !important;
      }

      .mode-tab:hover {
        color: var(--text-primary) !important;
        background: rgba(255, 255, 255, 0.1) !important;
      }

      .mode-tab.active {
        background: var(--search-bg) !important;
        color: var(--text-primary) !important;
      }

      /* Footer */
      .footer {
        margin-top: auto;
        padding: 1rem;
        background: transparent;
        border-top: none;
        text-align: center;
        flex-shrink: 0;
      }

      .footer-content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
      }

      .footer-note {
        color: var(--text-secondary);
        font-size: 0.9rem;
      }

      .footer-separator {
        color: var(--text-secondary);
        font-size: 0.9rem;
        opacity: 0.6;
      }

      .footer-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        padding: 0.5rem 0.5rem;
        border-radius: var(--radius-sm);
      }

      .footer-link:hover {
        color: var(--text-primary);
        background: var(--hover-bg);
      }

      .footer-icon {
        width: 18px;
        height: 18px;
        fill: currentColor;
      }

      .footer-text {
        font-weight: 500;
      }

      @media (max-width: 768px) {
        .footer {
          padding: 0.5rem 1rem;
        }

        .footer-link {
          font-size: 0.85rem;
          padding: 0.4rem 0.375rem;
        }

        .footer-icon {
          width: 16px;
          height: 16px;
        }
      }

      /* Feature Showcase Section */
      .feature-showcase {
        padding: 5rem 1.5rem 6rem;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-primary);
      }

      .feature-showcase-inner {
        max-width: 1120px;
        margin: 0 auto;
      }

      .feature-showcase-header {
        max-width: 640px;
        margin: 0 auto 3.5rem;
        text-align: center;
      }

      .feature-showcase-title {
        font-size: clamp(1.35rem, 2.5vw, 1.75rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--text-primary);
        margin: 0 0 0.65rem;
        line-height: 1.25;
      }

      .feature-showcase-subtitle {
        font-size: 1rem;
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.55;
      }

      .feature-block {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 3.5rem;
        margin-bottom: 5.5rem;
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s ease, transform 0.7s ease;
      }

      .feature-block.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .feature-block:last-child {
        margin-bottom: 0;
      }

      .feature-block.reverse {
        grid-template-columns: 0.85fr 1.15fr;
      }

      .feature-block.reverse .feature-content {
        order: -1;
      }

      .feature-content {
        max-width: 420px;
      }

      .feature-heading {
        font-size: clamp(1.5rem, 2.5vw, 1.9rem);
        font-weight: 700;
        letter-spacing: -0.025em;
        color: var(--text-primary);
        margin: 0 0 0.85rem;
        line-height: 1.2;
      }

      .feature-description {
        font-size: 1.05rem;
        color: var(--text-secondary);
        line-height: 1.65;
        margin: 0;
      }

      .product-stage-frame {
        position: relative;
        padding: 1.15rem;
        border-radius: 22px;
        background:
          radial-gradient(120% 95% at 12% 8%, rgba(92, 122, 98, 0.32), transparent 52%),
          radial-gradient(110% 90% at 88% 86%, rgba(72, 96, 118, 0.26), transparent 48%),
          linear-gradient(160deg, #1a1a1a 0%, #101010 55%, #161616 100%);
      }

      @media (prefers-color-scheme: light) {
        .product-stage-frame {
          background:
            radial-gradient(120% 95% at 12% 8%, rgba(92, 122, 98, 0.18), transparent 52%),
            radial-gradient(110% 90% at 88% 86%, rgba(72, 96, 118, 0.14), transparent 48%),
            linear-gradient(160deg, #f3f3f3 0%, #ebebeb 55%, #f6f6f6 100%);
        }
      }

      .product-stage {
        position: relative;
        border: 1px solid var(--border-primary);
        border-radius: 16px;
        background: var(--bg-secondary);
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
        min-height: 320px;
      }

      @media (prefers-color-scheme: dark) {
        .product-stage {
          background: #111111;
          border-color: #2a2a2a;
          box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
        }
      }

      .product-stage-chrome {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--border-primary);
        background: var(--bg-tertiary);
      }

      @media (prefers-color-scheme: dark) {
        .product-stage-chrome {
          background: #171717;
          border-bottom-color: #2a2a2a;
        }
      }

      .product-stage-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border-secondary);
      }

      .product-stage-title {
        margin-left: 0.35rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-tertiary);
        letter-spacing: 0.02em;
      }

      .product-stage-body {
        padding: 1.25rem;
        min-height: 260px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.9rem;
      }

      .demo-search-box {
        display: flex;
        align-items: flex-end;
        gap: 0.65rem;
        background: var(--search-bg);
        border: 1px solid var(--search-border);
        border-radius: 22px;
        padding: 0.7rem 0.7rem 0.7rem 1.05rem;
      }

      .demo-search-text {
        flex: 1;
        font-size: 0.95rem;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        min-height: 1.45em;
        padding: 0.25rem 0;
      }

      .demo-search-text::after {
        content: "Tee time near Palo Alto tomorrow morning under $60";
        visibility: hidden;
        display: block;
        height: 0;
        overflow: hidden;
      }

      .demo-cursor {
        display: inline-block;
        width: 2px;
        height: 1.15em;
        background: var(--text-primary);
        animation: blink 1s step-end infinite;
        vertical-align: middle;
        margin-left: 1px;
      }

      @keyframes blink {
        0%, 50% { opacity: 1; }
        51%, 100% { opacity: 0; }
      }

      .demo-search-btn {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: var(--text-primary);
        color: var(--bg-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        cursor: default;
      }

      .demo-search-btn::before {
        content: "";
        width: 14px;
        height: 14px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 19V5M12 5l-6 6M12 5l6 6' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 19V5M12 5l-6 6M12 5l6 6' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      }

      .demo-thinking {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 1.5rem;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .demo-thinking.visible {
        opacity: 1;
      }

      .demo-thinking-text {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-secondary);
      }

      .demo-thinking-text.is-active {
        background: linear-gradient(90deg, var(--text-tertiary), var(--text-primary), var(--text-tertiary));
        background-size: 200% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: demo-glisten 2s ease-in-out infinite;
      }

      @keyframes demo-glisten {
        0% { background-position: 100% 0; }
        100% { background-position: -100% 0; }
      }

      .demo-results {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
      }

      .demo-card {
        background: var(--bg-primary);
        border: 1px solid var(--border-primary);
        border-radius: 12px;
        padding: 1rem 1.1rem;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      }

      @media (prefers-color-scheme: dark) {
        .demo-card {
          background: #0a0a0a;
          border-color: #2f2f2f;
        }

        .demo-search-box {
          background: #0a0a0a;
          border-color: #333333;
        }

        .demo-share-btn {
          border-color: #3a3a3a;
        }

        .demo-toast {
          background: #1a1a1a;
          border-color: #333333;
        }
      }

      .demo-card.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .demo-card.best-match {
        border-color: var(--text-primary);
        box-shadow: 0 0 0 1px var(--text-primary);
      }

      .demo-card.best-match.is-emphasized {
        animation: demo-match-pulse 2.4s ease-in-out infinite;
      }

      @keyframes demo-match-pulse {
        0%, 100% { box-shadow: 0 0 0 1px var(--text-primary); }
        50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-primary) 18%, transparent); }
      }

      .demo-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        border: 1px solid var(--border-primary);
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-size: 0.7rem;
        font-weight: 650;
        padding: 0.3rem 0.55rem;
        border-radius: 999px;
        margin-bottom: 0.65rem;
      }

      .demo-badge svg {
        width: 11px;
        height: 11px;
      }

      .demo-course-name {
        font-size: 1rem;
        font-weight: 650;
        color: var(--text-primary);
        margin-bottom: 0.2rem;
      }

      .demo-course-location {
        font-size: 0.82rem;
        color: var(--text-secondary);
        margin-bottom: 0.7rem;
      }

      .demo-tee-time-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding-top: 0.7rem;
        border-top: 1px solid var(--border-primary);
      }

      .demo-time {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
      }

      .demo-price-book {
        display: flex;
        align-items: center;
        gap: 0.55rem;
      }

      .demo-price {
        font-size: 0.9rem;
        font-weight: 650;
        color: var(--text-primary);
      }

      .demo-book-btn,
      .demo-share-btn {
        background: var(--text-primary);
        color: var(--bg-primary);
        border: none;
        border-radius: 7px;
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
        font-weight: 650;
        cursor: default;
        transition: transform 0.15s ease, opacity 0.15s ease;
      }

      .demo-share-btn {
        background: transparent;
        color: var(--text-primary);
        border: 1px solid var(--border-primary);
      }

      .demo-book-btn.clicked,
      .demo-share-btn.clicked {
        transform: scale(0.96);
        opacity: 0.75;
      }

      .demo-toast {
        align-self: flex-start;
        border: 1px solid var(--border-primary);
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-radius: 999px;
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
        font-weight: 600;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.3s ease, transform 0.3s ease;
      }

      .demo-toast.visible {
        opacity: 1;
        transform: translateY(0);
      }

      @media (max-width: 900px) {
        .feature-showcase {
          /* Starts below the fold; keep it compact when scrolled into view */
          padding: 1.75rem 1rem 2.5rem;
          margin-top: 0;
          overflow-x: hidden;
          border-top: 1px solid var(--border-primary);
        }

        .feature-showcase-header {
          margin-bottom: 1rem;
        }

        .feature-showcase-title {
          font-size: 1.1rem;
          font-weight: 600;
        }

        .feature-showcase-subtitle {
          font-size: 0.85rem;
          line-height: 1.4;
        }

        .feature-block,
        .feature-block.reverse {
          grid-template-columns: 1fr;
          gap: 0.65rem;
          margin-bottom: 1.5rem;
          min-width: 0;
        }

        .feature-block.reverse .feature-content {
          order: 0;
        }

        .feature-content {
          max-width: none;
        }

        .feature-heading {
          font-size: 1rem;
          margin-bottom: 0.3rem;
        }

        .feature-description {
          font-size: 0.85rem;
          line-height: 1.4;
        }

        .product-stage-frame {
          max-width: 100%;
          width: 100%;
          padding: 0.35rem;
          border-radius: 12px;
          box-sizing: border-box;
          min-width: 0;
        }

        .product-stage {
          min-height: 0;
          max-width: 100%;
          width: 100%;
          box-sizing: border-box;
          border-radius: 10px;
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .product-stage-chrome {
          padding: 0.4rem 0.55rem;
        }

        .product-stage-body {
          min-height: 0;
          padding: 0.55rem;
          min-width: 0;
        }

        .demo-search-box {
          max-width: 100%;
          min-width: 0;
          box-sizing: border-box;
        }

        .demo-search-text {
          font-size: 0.8rem;
          min-width: 0;
        }

        .demo-search-text::after {
          content: none;
        }

        .demo-card {
          opacity: 1;
          transform: none;
        }
      }

      /* Fix header overlap on mobile — padding handled in .main-content block above */
      @media (max-width: 768px) {
        .header {
          margin-bottom: 0.75rem;
        }
      }
