/* Rental Details Page Styles */

/* Converted all @apply directives to standard CSS properties */
/* CSS custom properties for consistent theming */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #f59e0b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Base body styling */
body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
}

/* Card styling - converted from @apply */
.card {
  background-color: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

/* Map styling - converted from @apply */
#map,
#pickup-map {
  height: 100%;
}

.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 250px;
  box-shadow: var(--shadow-soft);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#pickup-map {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  margin-top: 0.75rem;
  height: 150px;
  min-height: 200px;
  display: none;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12rem;
  background-color: var(--gray-100);
  color: var(--gray-600);
  border-radius: 8px;
  border: 2px dashed var(--gray-200);
}

/* Gallery images */
.gallery-image {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Form input styling - converted from @apply */
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Button styling - converted from @apply */
.btn {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

.btn-primary {
  color: white;
  background-color: var(--primary);
  border: none;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
}

.btn-primary:disabled {
  background-color: var(--gray-200);
  color: var(--gray-600);
  cursor: not-allowed;
}

.btn-secondary {
  color: var(--gray-800);
  background-color: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background-color: var(--gray-200);
}

/* Reserve button specific styling */
#reserve-btn {
  transition: all 0.3s ease;
  transform: translateY(0);
}

#reserve-btn:not(:disabled):hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

#reserve-btn:disabled {
  box-shadow: none;
  transform: none;
}

/* Address validation styling - converted from @apply */
.address-validation {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.address-validation.address-valid {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.address-validation.address-invalid {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Pickup location container - converted from @apply and matching pickup-date styling */
.pickup-location-container {
  position: relative;
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: var(--gray-800);
}

.pickup-location-container gmp-place-autocomplete {
  background-color: white;
  color: var(--gray-800);
  width: 100%;
}

.pickup-location-container input {
  width: 100%;
  border: none;
  background-color: transparent;
  color: var(--gray-800);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.pickup-location-container input::placeholder {
  color: var(--gray-600);
}

.pickup-location-container input:focus {
  outline: none;
  box-shadow: none;
}

.pickup-location-container .fa-search,
.pickup-location-container i {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600) !important;
  font-size: 0.875rem;
  pointer-events: none;
}

/* Ensure all pickup location sub-elements have consistent styling */
.pickup-location-container *,
.pickup-location-container .icon,
.pickup-location-container i,
.pickup-location-container .text-gray-500,
.pickup-location-container .text-gray-600,
.pickup-location-container .text-gray-400 {
  color: var(--gray-600) !important;
}

.pickup-location-container label {
  color: var(--gray-800) !important;
  font-weight: 500;
}

/* Google Places Autocomplete styling */
.pac-container {
  background-color: white;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
}

.pac-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.pac-item:hover {
  background-color: var(--gray-50);
}

.pac-item-selected {
  background-color: var(--gray-100);
}

.pac-matched {
  font-weight: 600;
  color: var(--primary);
}

/* Widget container styling with white background and black content - converted from @apply */
.widget-container {
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #000000;
}

.widget-container *,
.widget-container .icon,
.widget-container i,
.widget-container .text-gray-500,
.widget-container .text-gray-600,
.widget-container .text-gray-400 {
  color: #000000 !important;
}

/* Notification styling - converted from @apply */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 50;
  max-width: 24rem;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background-color: #10b981;
  color: white;
}

.notification.error {
  background-color: #ef4444;
  color: white;
}

.notification.info {
  background-color: #3b82f6;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Form validation states - converted from @apply */
.form-field-valid {
  border-color: #86efac;
}

.form-field-valid:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.form-field-invalid {
  border-color: #fca5a5;
}

.form-field-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Utility classes - converted from @apply */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--gray-100);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Date/time container */
.datetime-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  #pickup-map {
    height: 10rem;
  }

  .map-container {
    height: 12rem;
  }

  .widget-container {
    padding: 0.75rem;
  }

  .datetime-container {
    grid-template-columns: 1fr;
  }
}
