/* Deniz Taksi Frontend Styles */
.deniz-taksi-form-container,
.deniz-taksi-grid-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.deniz-taksi-form-container h2,
.deniz-taksi-grid-container h2 {
    color: #04283D;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Form Styles */
#deniz-taksi-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group:nth-child(6),
.form-group:nth-child(7) {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #04283D;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #04283D;
    box-shadow: 0 0 0 3px rgba(4, 40, 61, 0.1);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #04283D;
    color: white;
}

.btn-primary:hover {
    background: #031a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 40, 61, 0.3);
}

/* Grid Styles */
#deniz-taksi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.taksi-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.taksi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #04283D;
}

.taksi-card h3 {
    color: #04283D;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.taksi-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.taksi-route .from-to {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taksi-route .arrow {
    color: #04283D;
    font-weight: bold;
    font-size: 1.2rem;
}

.taksi-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #04283D;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #04283D;
}

/* Response Messages */
#deniz-taksi-form-response {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.response-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.response-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #04283D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .deniz-taksi-form-container,
    .deniz-taksi-grid-container {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }
    
    #deniz-taksi-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group:nth-child(7),
    .form-group:nth-child(8) {
        grid-column: 1;
    }
    
    #deniz-taksi-grid {
        grid-template-columns: 1fr;
    }
    
    .deniz-taksi-form-container h2,
    .deniz-taksi-grid-container h2 {
        font-size: 1.5rem;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
    position: relative;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-top-color: var(--dt-primary, #04283D);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #04283D;
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal Styles */
.taksi-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.taksi-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.taksi-modal-header {
    background: #04283D;
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.taksi-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.taksi-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.taksi-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.taksi-modal-body {
    padding: 2rem;
}

.taksi-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.taksi-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.taksi-modal-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.taksi-modal-gallery img:hover {
    transform: scale(1.05);
}

.taksi-modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.taksi-modal-route {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.taksi-modal-route h4 {
    color: #04283D;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.taksi-modal-route .route-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.taksi-modal-route .route-arrow {
    color: #04283D;
    font-weight: bold;
    font-size: 1.2rem;
}

.taksi-modal-price {
    background: #04283D;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.taksi-modal-price .price-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.taksi-modal-price .price-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.taksi-modal-description {
    margin-bottom: 2rem;
}

.taksi-modal-description h4 {
    color: #04283D;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.taksi-modal-description p {
    line-height: 1.6;
    color: #495057;
}

.taksi-modal-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.taksi-modal-services h4 {
    color: #04283D;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.taksi-modal-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taksi-modal-services li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
    color: #495057;
}

.taksi-modal-services li:before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

.taksi-modal-services .excluded li:before {
    content: '✗';
    color: #dc3545;
}

.taksi-modal-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.taksi-modal-footer .btn {
    margin: 0 0.5rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .taksi-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .taksi-modal-body {
        padding: 1.5rem;
    }
    
    .taksi-modal-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .taksi-modal-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .taksi-modal-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .taksi-modal-gallery img {
        height: 80px;
    }
}

/* Destination Styles */
.taksi-modal-destinations {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.taksi-modal-destinations h4 {
    color: #04283D;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.destinations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.destination-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.destination-item .price {
    font-weight: 600;
    color: #04283D;
}

.destination-item .duration {
    font-size: 0.9rem;
    color: #6c757d;
}

.taksi-duration {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.25rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Admin Destination Rows */
.destination-row {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    margin-bottom: 15px;
}

.destination-row select,
.destination-row input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.destination-row .remove-destination {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.destination-row .remove-destination:hover {
    background: #c82333;
}

#add-destination {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-destination:hover {
    background: #218838;
}

/* Search Form Styles */
.deniz-taksi-search-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #e1e5e9;
}

.search-form-card h2 {
    color: var(--dt-primary, #04283D);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.search-description {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

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

.search-form .form-row {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.search-form .form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}

/* Kişi Sayısı alanı için özel genişlik */
.search-form .form-group:has(select[name="search_pax"]) {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 150px;
}

.search-form .form-group:last-child {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-end;
}

.search-form .form-group label {
    font-weight: 600;
    color: var(--dt-primary, #04283D);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-form .form-group input,
.search-form .form-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-form .form-group input:focus,
.search-form .form-group select:focus {
    outline: none;
    border-color: var(--dt-primary, #04283D);
    box-shadow: 0 0 0 3px rgba(4, 40, 61, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.search-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.search-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

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

.swap-btn {
    padding: 0.75rem;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dt-muted, #dcecfe);
    color: var(--dt-primary, #04283D);
    border: 2px solid var(--dt-primary, #04283D);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.swap-btn:hover {
    background: var(--dt-primary, #04283D);
    color: white;
    transform: rotate(180deg);
}

/* Search Results */
.search-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--dt-muted, #dcecfe);
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-header h3 {
    color: var(--dt-primary, #04283D);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.route-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.price-breakdown {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-main {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dt-primary, #04283D);
}

.price-currency {
    font-size: 1.5rem;
    color: var(--dt-primary, #04283D);
    margin-left: 0.5rem;
}

.price-details {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-whatsapp {
    background: #dcecfe;
    color: #04283D;
    border: 2px solid #04283D;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #04283D;
    color: #dcecfe;
    border-color: #04283D;
}

/* Grid WhatsApp buton stili */
.taksi-card .btn-success {
    background-color: #dcecfe !important;
    color: #04283D !important;
    border: 2px solid #04283D !important;
    transition: all 0.3s ease;
}

.taksi-card .btn-success:hover {
    background-color: #04283D !important;
    color: #dcecfe !important;
    border-color: #04283D !important;
}

/* Search Error */
.search-error {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

/* Loading States */
.btn-loading {
    display: none;
}

.search-btn.loading .btn-text {
    display: none;
}

.search-btn.loading .btn-loading {
    display: inline;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .search-form .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-form .form-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-form .form-group {
        min-width: auto;
    }
    
    .search-form .form-group:has(select[name="search_pax"]) {
        min-width: auto;
        max-width: none;
    }
    
    .search-form .form-group:last-child {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}
