/* Tailwind-Only CSS File */
/* This file contains only essential styles that cannot be achieved with Tailwind utilities */
/* All other styling should use Tailwind classes */

/* SVG fill colors - these are used in SVG elements via class attributes */
.pink-colour {
  fill: #ff5050;
}

.primary-fill {
  fill: #ff5050;
}

.white-colour {
  fill: #fff;
}

.white-colour--fill {
  fill: #fff;
}

/* These are used in SVG symbols, keep for compatibility */
.green-colour {
  fill: #64c51a;
}

.green-light-colour {
  fill: #B0FF4A;
}

.yellow-colour {
  fill: #ffd700;
}

.blue-colour {
  fill: #49D1F1;
}

.blue-light-colour {
  fill: #A4E3F1;
}

.purple-colour {
  fill: #EB7AFF;
}

.purple-light-colour {
  fill: #F3AEFF;
}

.cream-colour {
  fill: #FF9064;
}

.cream-light-colour {
  fill: #FFB399;
}

.maroon-colour {
  fill: #791F3D;
}

.shadow-colour {
  fill: #782041;
}

/* Animation for dropdown fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#location:not(.hidden) {
  animation: fadeIn 0.2s ease-out;
}

/* Loading spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Profile tab navigation - active state */
.profile-tab.active {
  color: #ff5050;
  border-bottom-color: #ff5050;
  background-color: #ffe5e5;
  font-weight: 600;
}

/* Hide scrollbar for horizontal scrolling tabs */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* Modern Mobile Search Modal - Centered Overlay */
.mobile-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 16px;
}

.mobile-search-overlay:not(.hidden) {
    pointer-events: auto;
}

.mobile-search-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.mobile-search-overlay.hidden .mobile-search-modal {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
}

.mobile-search-overlay.hidden .mobile-search-backdrop {
    opacity: 0;
    pointer-events: none;
}

/* Backdrop */
.mobile-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-search-overlay:not(.hidden) .mobile-search-backdrop {
    opacity: 1;
}

/* Modal */
.mobile-search-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.mobile-search-overlay:not(.hidden) .mobile-search-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Header */
.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.mobile-search-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f9fafb;
    color: #6b7280;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-search-close-btn:active {
    background: #f3f4f6;
    transform: scale(0.95);
}

/* Content */
.mobile-search-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Search Form */
.mobile-search-form {
    margin-bottom: 24px;
}

.mobile-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.mobile-search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.mobile-search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s;
    min-height: 56px;
    box-sizing: border-box;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #ff5050;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 80, 80, 0.1);
}

.mobile-search-input:focus ~ .mobile-search-clear,
.mobile-search-input:not(:placeholder-shown) ~ .mobile-search-clear {
    display: flex;
}

.mobile-search-clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.mobile-search-clear:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.mobile-search-submit {
    width: 100%;
    padding: 16px 24px;
    background: #ff5050;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    box-shadow: 0 4px 12px rgba(255, 80, 80, 0.3);
}

.mobile-search-submit:active {
    background: #e63939;
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 80, 80, 0.3);
}

/* Quick Tips */
.mobile-search-tips {
    padding: 16px;
    background: #f0fdf4;
    border-left: 4px solid #86efac;
    border-radius: 12px;
    margin-top: 8px;
}

.mobile-search-tips p {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.mobile-search-tips ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.mobile-search-tips li {
    margin-bottom: 4px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .mobile-search-overlay {
        display: none;
    }
}

/* Modern Location Dropdown Styles */
.location-dropdown-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 8px;
    display: block;
}

.location-dropdown-container.hidden {
    display: none !important;
}

.location-dropdown {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-dropdown-results {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.location-dropdown-results::-webkit-scrollbar {
    width: 8px;
}

.location-dropdown-results::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.location-dropdown-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.location-dropdown-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.location-option-modern {
    padding: 14px 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
    background: white;
    position: relative;
}

.location-option-modern:last-child {
    border-bottom: none;
}

.location-option-modern:hover {
    background: #f9fafb;
    color: #111827;
    padding-left: 24px;
}

.location-option-modern:focus {
    outline: none;
    background: #fff5f5;
    color: #ff5050;
    font-weight: 500;
}

.location-option-modern:active {
    background: #fff5f5;
    transform: scale(0.98);
}

/* Add a subtle left border on hover for visual feedback */
.location-option-modern:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ff5050;
    border-radius: 0 2px 2px 0;
}

/* No results styling */
.location-dropdown-results .location__select:contains("No results") {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Ensure the results container has proper spacing */
.location__results {
    margin: 0;
    padding: 0;
}

