:root {
    --color-background: #F8FAFC;
    --color-primary: #5c80f6;
    --color-seat-available: #E2E8F0;
    --color-seat-window:  #000080;
    --color-seat-booked: #EF4444;
    --color-seat-senior: #8B5CF6;
    --color-seat-ladies: #EC4899;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --shadow-card: 0 0 20px rgba(0, 0, 0, 0.05);
    --color-seat-selected: var(--color-primary);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 0.20rem;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    padding-bottom: calc(1rem + 120px);
    margin-bottom: 2rem;
}

.card {
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    display: none;
}

.card.active {
    display: block;
}

.card.hidden {
    opacity: 0;
    visibility: hidden;
}

.header {
    padding: 1.5rem;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.header p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

.seat-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.boat-layout {
    width: 100%;
    height: auto;
    max-width: 400px;
    pointer-events: all;
}

.seat {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text);
    transition: transform 0.2s ease;
}

.seat:hover {
    transform: scale(1.1);
}

.seat.available { background-color: var(--color-seat-available); }
.seat.booked { background-color: var(--color-seat-booked); cursor: not-allowed; color: rgba(255, 255, 255, 0.8); }
.seat.selected { background-color: var(--color-primary); color: white; }

.legend {
    padding: 0 2rem 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    color: var(--color-text-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-color {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.legend-color.available { background-color: var(--color-seat-available); }
.legend-color.window { background-color: var(--color-seat-window); }
.legend-color.booked { background-color: var(--color-seat-booked); }
.legend-color.senior { background-color: var(--color-seat-senior); }
.legend-color.ladies { background-color: var(--color-seat-ladies); }
.legend-color.selected { background-color: var(--color-primary); }

.footer {
    border-top: 1px solid #F3F4F6;
    padding: 1.5rem;
}

.summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 0 0 0.25rem 0;
}

.value {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.proceed-button {
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.proceed-button:hover {
    background-color: rgba(92, 120, 246, 0.9);
}

select {
    transition: all 0.2s ease;
    transform-origin: top;
    cursor: pointer;
}

select:focus {
    transform: scaleY(1.02);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

select option {
    padding: 0.75rem;
    transition: background-color 0.2s ease;
}

select option:hover {
    background-color: var(--color-background);
}

select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(92, 128, 246, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.passenger-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 93%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    background-color: white;
}

.passenger-icon-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.passenger-icon {
    color: var(--color-text-light);
}

.passenger-info {
    font-size: 0.875rem;
    color: var(--color-text);
}

.passenger-age {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.counter-button {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
    background-color: white;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-display {
    font-size: 0.875rem;
    min-width: 1rem;
    text-align: center;
}

.counter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.passenger-form-input {
    width: 93%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    font-size: 0.875rem;
    background-color: white;
    margin-bottom: 0.5rem;
}

.passenger-form-group {
    margin-bottom: 1.5rem;
}

.continue-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #F3F4F6;
}

.continue-button {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.continue-button:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.continue-button:hover {
    background-color: rgba(92, 128, 246, 0.9);
}

/* Tippy themes */
.tippy-box[data-theme~='error'] {
    background-color: #EF4444;
    color: white;
}

.tippy-box[data-theme~='error'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #EF4444;
}

.tippy-box[data-theme~='success'] {
    background-color: #10B981;
    color: white;
}

.tippy-box[data-theme~='success'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #10B981;
}

.trip-container {
    padding: 1rem;
}

.trip-card {
    width: 100%;
    padding: 0rem 1rem 1rem 1rem;
    border-radius: 0.75rem;
    /* border-bottom: 2px dashed #E2E8F0; */
    box-sizing: border-box;
}

.trip-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trip-header {
    text-align: center;
    padding: 7px;
    border-radius: 0.75rem;
    box-sizing: border-box;
    margin: 0 -16px;
}

.trip-header h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.trip-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.trip-location-title {

    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.trip-location-island {
    font-size: 0.875rem;
    color: black;
    margin: 0;
}

.trip-location-datetime {
    font-size: 0.75rem;
    color: black;
    margin: 0;
}

.trip-seats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #F3F4F6;
}

.trip-seats p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 0;
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #F3F4F6;
}

.trip-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 50%;
}

.trip-price p {
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

.trip-book {
    width: 50%;
    text-align: right;
}

.book-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.book-button:hover {
    background-color: rgba(92, 128, 246, 0.9);
}

.ts-wrapper {
    width: 100%;
}

.ts-control {
    padding: 0.75rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 0.875rem !important;
    background-color: white !important;
}

.ts-dropdown {
    border-radius: 0.75rem !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin-top: 4px !important;
}

.ts-dropdown .option {
    padding: 0.75rem !important;
}

.ts-dropdown .active {
    background-color: #F3F4F6 !important;
    color: var(--color-text) !important;
}

.ts-dropdown .create {
    padding: 0.75rem !important;
}

/* SVG specific styles */
#boat-svg rect {
    pointer-events: all;
    cursor: pointer;
}

#boat-svg rect[data-seat-number]:not([data-status="booked"]) {
    fill: var(--color-seat-available);
}

#boat-svg rect[data-status="booked"] {
    fill: var(--color-seat-booked);
    cursor: not-allowed;
}

#boat-svg rect[data-status="selected"] {
    fill: var(--color-seat-selected);
}


@font-face {
    font-family: 'Adobe Gothic Std B';
    src: url('/assets/fonts/AdobeGothicStdB.otf') format('opentype');
}

.yrsa {
    font-family: "Yrsa", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }



text {
    font-family: "Yrsa", serif;
    font-weight: 400;
    font-style: bold;
}
