/* ====== GLOBAL STYLES ====== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
}

/* ====== HEADER STYLES ====== */

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    color: #45a049;
    transform: scale(1.05);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scorecard-btn,
.share-btn,
.gps-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scorecard-btn {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.5);
    display: none;
}

.scorecard-btn.active {
    display: flex;
}

.share-btn {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.5);
}

.gps-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
}

.scorecard-btn:hover,
.share-btn:hover,
.gps-btn:hover {
    transform: translateY(-1px);
}

.gps-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.gps-status {
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
}

.gps-status.active {
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ====== MAIN CONTENT STYLES ====== */

.main-content {
    padding: 20px;
}

/* Course Selection Card */
.course-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-selector {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    font-weight: 500;
    appearance: none;
    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 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

.course-details {
    display: none;
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

.course-details.active {
    display: block;
}

.course-tabs {
    display: none;
    margin-top: 15px;
    gap: 8px;
    flex-wrap: wrap;
}

.course-tabs.active {
    display: flex;
}

.course-tab {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-tab.selected {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid #4CAF50;
}

/* Current Distance Display */
.distance-display {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
}

.distance-display.active {
    display: block;
}

.current-hole {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.distance-value {
    font-size: 56px;
    font-weight: 900;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.distance-unit {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

.distance-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.hole-par {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Map Button */
.map-btn {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.map-btn:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: translateY(-1px);
}

.map-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ====== SCORING GPS SECTION STYLES ====== */

.scoring-section {
    background: rgba(76, 175, 80, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: none;
}

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

.scoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.scoring-header h3 {
    color: #4CAF50;
    font-size: 18px;
    margin: 0;
}

.scoring-status {
    background: rgba(76, 175, 80, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.scoring-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.scoring-info p {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.scoring-info ul {
    margin: 0;
    padding-left: 20px;
}

.scoring-info li {
    margin-bottom: 5px;
    opacity: 0.9;
}

/* ====== SHOT TRACKING SECTION STYLES ====== */

.shot-tracking-section {
    background: rgba(33, 150, 243, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    display: none;
}

.shot-tracking-section.active {
    display: block;
}

.shot-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.shot-tracking-header h3 {
    color: #2196F3;
    font-size: 18px;
    margin: 0;
}

.tee-section {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.tee-position-btn {
    background: rgba(156, 39, 176, 0.3);
    border: 1px solid rgba(156, 39, 176, 0.5);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tee-position-btn:hover:not(:disabled) {
    background: rgba(156, 39, 176, 0.5);
    transform: translateY(-1px);
}

.tee-position-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.current-shot-info {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.shot-number-display {
    background: rgba(33, 150, 243, 0.3);
    border: 1px solid rgba(33, 150, 243, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.shot-tracking-controls {
    display: grid;
    gap: 15px;
}

.club-selection {
    display: grid;
    gap: 8px;
}

.club-label {
    font-size: 14px;
    font-weight: 600;
    color: #E3F2FD;
}

.club-selector {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    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 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
}

.shot-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shot-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.record-shot-btn {
    background: rgba(76, 175, 80, 0.3);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.record-shot-btn:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.5);
    transform: translateY(-1px);
}

.record-shot-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.out-of-bounds-btn {
    background: rgba(255, 152, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 152, 0, 0.5);
}

.out-of-bounds-btn:hover {
    background: rgba(255, 152, 0, 0.5);
    transform: translateY(-1px);
}

.finish-hole-btn {
    background: rgba(76, 175, 80, 0.4);
    border: 2px solid rgba(76, 175, 80, 0.6);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: none;
}

.finish-hole-btn:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.finish-hole-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.shots-history {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.shots-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #E3F2FD;
}

.no-shots {
    text-align: center;
    opacity: 0.6;
    font-style: italic;
    font-size: 14px;
}

.shot-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #4CAF50;
}

.shot-item.putter-shot {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.shot-item.tee-position {
    border-left-color: #9C27B0;
    background: rgba(156, 39, 176, 0.1);
}

.shot-item.out-of-bounds {
    border-left-color: #FF5722;
    background: rgba(255, 87, 34, 0.1);
}

.putts-summary {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #FFE0B2;
}

.shot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.shot-number {
    font-weight: 700;
    color: #4CAF50;
}

.shot-club {
    font-weight: 600;
    color: #E3F2FD;
}

.out-of-bounds {
    color: #FF5722;
    font-size: 12px;
}

.shot-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    opacity: 0.8;
}

.shot-distance {
    color: #4CAF50;
    font-weight: 600;
}

.pin-distance {
    color: #2196F3;
}

.gps-accuracy {
    color: #FFC107;
}

.hole-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.hole-action-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hole-action-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-1px);
}

/* ====== EMPTY STATE STYLES ====== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
}

/* ====== HOLES GRID STYLES ====== */

.holes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.hole-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 8px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hole-card.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.05);
}

.hole-card.scored {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.hole-card.has-shots {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

.hole-card.has-shots.scored {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.hole-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hole-number {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hole-distance {
    font-size: 20px;
    font-weight: 600;
    color: #4CAF50;
}

.hole-par-small {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

.hole-score-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shots-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #2196F3;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ====== NAVIGATION STYLES ====== */

.hole-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    display: none;
}

.hole-nav.active {
    display: flex;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ====== INFO CARD STYLES ====== */

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.info-card.active {
    display: block;
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #4CAF50;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

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

/* ====== MODAL STYLES ====== */

/* Scorecard Modal */
.scorecard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.scorecard-container {
    width: 95vw;
    height: 90vh;
    max-width: 1000px;
    max-height: 800px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: white;
}

.scorecard-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.scorecard-title {
    font-size: 20px;
    font-weight: 700;
}

.scorecard-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.scorecard-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.scorecard-content {
    padding: 20px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.scorecard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.scorecard-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.scorecard-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #4CAF50;
    margin-bottom: 5px;
}

.scorecard-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.scorecard-table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.scorecard-table table {
    width: 100%;
    border-collapse: collapse;
}

.scorecard-table th,
.scorecard-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.scorecard-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 12px;
}

.score-par-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.score-albatros { background: #9C27B0; }
.score-eagle { background: #FF9800; }
.score-birdie { background: #2196F3; }
.score-par { background: rgba(255, 255, 255, 0.3); }
.score-bogey { background: #FFEB3B; color: #333; }
.score-double-bogey { background: #FF5722; }
.score-worse { background: #F44336; }

.round-complete {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.round-complete h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.round-complete-score {
    font-size: 48px;
    font-weight: 900;
    margin: 15px 0;
}

.scoring-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.scoring-action-btn {
    flex: none;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.save-score-btn {
    background: rgba(76, 175, 80, 0.3);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.save-score-btn:hover {
    background: rgba(76, 175, 80, 0.5);
    transform: translateY(-1px);
}

.clear-score-btn {
    background: rgba(244, 67, 54, 0.2);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.clear-score-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-1px);
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.map-container {
    width: 90vw;
    height: 80vh;
    max-width: 900px;
    max-height: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.shot-tracking-map-container {
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
}

.map-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-btn {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-btn:hover {
    background: rgba(76, 175, 80, 0.5);
    transform: translateY(-1px);
}

.map-title {
    font-size: 18px;
    font-weight: 600;
}

.map-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.map-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.map-content {
    height: calc(100% - 120px);
    position: relative;
}

#leafletMap,
#shotTrackingMap {
    width: 100%;
    height: 100%;
}

.map-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    color: #333;
    z-index: 1000;
}

.shot-map-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    color: #333;
    z-index: 1000;
    max-width: 250px;
}

.shot-map-legend {
    display: grid;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.legend-marker.hole-marker-map {
    background: #4CAF50;
    border: 2px solid white;
}

.legend-marker.shot-marker {
    background: #2196F3;
    border: 2px solid white;
}

.legend-marker.out-of-bounds {
    background: #FF5722;
}

.legend-line {
    width: 20px;
    height: 2px;
    background: #4CAF50;
    border-radius: 1px;
}

.map-distance {
    font-weight: 700;
    color: #4CAF50;
    font-size: 16px;
}

.map-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.map-control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.map-control-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* ====== CUSTOM MARKERS STYLES ====== */

.hole-marker {
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.hole-marker-map {
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tee-marker {
    background: #9C27B0;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.tee-marker-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-marker {
    background: #2196F3;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: pulse-marker 2s infinite;
}

.shot-marker {
    background: #2196F3;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.shot-marker.out-of-bounds {
    background: #FF5722;
    animation: pulse-warning 1s infinite;
}

.shot-marker-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse-marker {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-warning {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ====== UTILITY STYLES ====== */

/* Error message */
.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: #ffcdd2;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: none;
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====== RESPONSIVE STYLES ====== */

@media (max-width: 768px) {
    .holes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .distance-value {
        font-size: 48px;
    }

    .header-controls {
        gap: 10px;
    }

    .scorecard-btn,
    .share-btn,
    .gps-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .map-container,
    .scorecard-container {
        width: 95vw;
        height: 85vh;
        border-radius: 15px;
    }

    .shot-tracking-map-container {
        height: 80vh;
    }

    .map-header,
    .scorecard-header {
        padding: 12px 15px;
    }

    .map-title,
    .scorecard-title {
        font-size: 16px;
    }

    .map-info,
    .shot-map-info {
        font-size: 13px;
        padding: 10px 12px;
        max-width: 200px;
    }

    .shot-actions {
        flex-direction: column;
    }

    .shot-action-btn {
        min-width: auto;
    }

    .scorecard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .scorecard-table th,
    .scorecard-table td {
        padding: 8px 4px;
        font-size: 12px;
    }

    .shot-tracking-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .shot-map-legend {
        grid-template-columns: repeat(2, 1fr);
    }

    .scoring-actions {
        flex-direction: column;
    }

    .scoring-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 14px;
    }
    
    .course-tabs {
        justify-content: center;
    }

    .scorecard-btn,
    .share-btn,
    .gps-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .scorecard-stats {
        grid-template-columns: 1fr;
    }

    .shot-details {
        flex-direction: column;
        gap: 5px;
    }

    .shot-map-legend {
        grid-template-columns: 1fr;
    }

    .map-header-controls {
        flex-direction: column;
        gap: 5px;
    }

    .export-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}