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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: block;
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.fade.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    outline: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.modal-header .close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-title {
    margin: 0;
    line-height: 1.5;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.modal-title img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 10px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-body .form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #FF6B35;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.modal-body .btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 10px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.modal-body .btn-primary {
    color: #fff;
    background-color: #FF6B35;
    border-color: #FF6B35;
}

.modal-body .btn-primary:hover {
    background-color: #E55A2B;
    border-color: #E55A2B;
    transform: translateY(-1px);
}

/* Hidden class for modals */
.modal.hidden {
    display: none !important;
}

/* Ripple effect for buttons */
.btn-primary,
.btn-secondary,
.btn-download,
.btn-login,
.btn-buy-now,
.btn-organizers-features,
.btn-watch-regatta,
.btn-see-details,
.btn-support-call {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* AUTH & REGISTER/LOGIN PAGES */
.header {
    height: 80px;
    min-height: 80px;
}

main {
    padding-top: 80;
}

.auth-container, #register-login-container {
    max-width: 480px;
    margin: 0 auto 100px auto;
    border-radius: 24px;
    padding: 48px 40px 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.auth-container .auth-title, #register-login-container .auth-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-container .auth-title img, #register-login-container .auth-title img {
    height: 40px;
    width: auto;
    margin: 0;
}

.auth-container .auth-title h1, #register-login-container .auth-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2196F3;
    margin: 0;
}

.auth-form, #register-login-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group, #register-login-container .form-group {
    width: 100%;
    margin-bottom: 0;
}

.auth-form input, #register-login-container input.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #dbeafe;
    font-size: 1.08rem;
    background: #f8fbff;
    color: #222;
    transition: border 0.2s;
    font-family: inherit;
    margin-bottom: 0;
}

.auth-form input::placeholder, #register-login-container input.form-control::placeholder {
    color: #b0b8c9;
    opacity: 1;
}

.auth-form input:focus, #register-login-container input.form-control:focus {
    border: 1.5px solid #4295ec;
    outline: none;
    background: #fff;
}

.auth-form .submit-button, #register-login-container .submit-button {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    border: none;
    border-radius: 18px;
    padding: 16px 0;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.auth-form .submit-button:hover, #register-login-container .submit-button:hover {
    background: linear-gradient(135deg, #E55A2B, #D44A1A);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.18);
}

.auth-form .btn-link, #register-login-container .btn-link {
    color: #2196F3;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
}

.auth-form .btn-link:hover, #register-login-container .btn-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

.auth-form .alert, #register-login-container .alert {
    width: 100%;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.98rem;
    margin-bottom: 10px;
    font-family: inherit;
}

.auth-form .alert-danger, #register-login-container .alert-danger {
    background: #ffeaea;
    color: #d32f2f;
    border: 1px solid #ffbdbd;
}

.auth-form .form-check, #register-login-container .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.auth-form label, #register-login-container label {
    font-size: 1rem;
    color: #222;
    font-family: inherit;
}

.auth-form .text-center, #register-login-container .text-center {
    text-align: center;
}

.auth-form .brand-button, #register-login-container .brand-button {
    width: 100%;
}

.auth-form .submit-facebook-connect, #register-login-container .submit-facebook-connect {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 16px;
    padding: 14px 0;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.auth-form .submit-facebook-connect:hover, #register-login-container .submit-facebook-connect:hover {
    background: linear-gradient(135deg, #E55A2B, #D44A1A);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.18);
}

.auth-form .separator, #register-login-container .separator {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 28px 0 18px 0;
    position: relative;
}

.auth-form .separator hr, #register-login-container .separator hr {
    flex: 1;
    border: none;
    border-top: 1.5px solid #e3e3e3;
    margin: 0;
}

.auth-form .separator span, #register-login-container .separator span {
    color: #888;
    font-size: 1rem;
    background: #fff;
    padding: 0 18px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: inherit;
}

.auth-form .form-description, #register-login-container .form-description {
    color: #444;
    font-size: 0.98rem;
    margin-top: 2px;
    margin-bottom: 2px;
    font-family: inherit;
}

.auth-form .form-description.important, #register-login-container .form-description.important {
    color: #FF6B35;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .header {
        height: 60px;
        min-height: 60px;
    }

    main {
        padding-top: 70px;
    }

    .auth-container, #register-login-container {
        max-width: 98vw;
        padding: 18px 6px 18px 6px;
        border-radius: 12px;
    }

    .auth-container h1, #register-login-container h1 {
        font-size: 1.2rem;
    }
}

/* STATIC CONTENT PAGES (pl. privacy, terms, about, stb.) */
.content-page, .content-static-page, .static-content-wrapper {
    max-width: 820px;
    margin: 60px auto 60px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(66, 149, 236, 0.10), 0 1.5px 8px 0 rgba(66, 149, 236, 0.06);
    padding: 48px 48px 48px 48px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #222;
}

.content-page h1, .content-static-page h1, .static-content-wrapper h1 {
    color: #2196F3;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

.content-page h2, .content-static-page h2, .static-content-wrapper h2 {
    color: #2196F3;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 18px;
}

.content-page p, .content-static-page p, .static-content-wrapper p,
.content-page ul, .content-static-page ul, .static-content-wrapper ul,
.content-page ol, .content-static-page ol, .static-content-wrapper ol {
    color: #222;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.content-page a, .content-static-page a, .static-content-wrapper a {
    color: #2196F3;
    text-decoration: underline;
    transition: color 0.2s;
}

.content-page a:hover, .content-static-page a:hover, .static-content-wrapper a:hover {
    color: #1565c0;
}

.content-page ul, .content-static-page ul, .static-content-wrapper ul {
    padding-left: 24px;
    margin-bottom: 18px;
}

.content-page li, .content-static-page li, .static-content-wrapper li {
    margin-bottom: 8px;
    font-size: 1.08rem;
    color: #222;
}

@media (max-width: 700px) {
    .content-page, .content-static-page, .static-content-wrapper {
        padding: 18px 6px 18px 6px;
        border-radius: 12px;
    }
    .content-page h1, .content-static-page h1, .static-content-wrapper h1 {
        font-size: 1.2rem;
    }
}

.content-box-section {
    margin: 40px 0;
}

.content-box-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(66, 149, 236, 0.10);
    padding: 32px 32px 32px 32px;
    margin-bottom: 32px;
}

.content-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.content-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196F3;
    margin: 0;
}

.content-box-content {
    font-size: 1.08rem;
    color: #222;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .content-box-section {
        margin: 20px 0;
    }
    .content-box-content {
        font-size: 1rem;
    }
    .content-box-title {
        font-size: 1.1rem;
    }
    .content-box-container {
        padding: 12px 8px 12px 8px;
        border-radius: 10px;
    }
}

.content-page-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.content-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.content-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.content-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    padding: 50px 0;
    text-align: center;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.content-page-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.img-circle {
    border-radius: 50% !important;
}

#create-event-modal .modal-body .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
#create-event-modal .modal-body .row > .col-sm-6 {
  flex: 1 1 0;
  min-width: 0;
  max-width: 50%;
}
#create-event-modal .modal-dialog {
  width: 95%;
  max-width: 1200px;
  min-width: 800px;
}
#create-event-modal #homeport-map {
  width: 100%;
  height: 320px;
  min-height: 220px;
  max-height: 400px;
  border-radius: 10px;
  margin-top: 8px;
  z-index: 1;
  position: relative;
  background: #e9ecef;
}
#create-event-modal #homeport-search-input-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320px;
  z-index: 2;
  pointer-events: none;
  background: transparent;
  display: none;
}
#create-event-modal .homeport-map-wrapper {
  position: relative;
  width: 100%;
}
#create-event-modal #homeport-search-input {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 95%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pac-container {
  z-index: 99999 !important;
}
@media (max-width: 600px) {
  #create-event-modal .modal-body .row {
    flex-direction: column;
    gap: 0;
  }
  #create-event-modal .modal-body .row > .col-sm-6 {
    max-width: 100%;
  }
}
