/*
Theme Name: Apartment Jana
Description: Beautiful rental apartment website theme for Rijeka, Croatia. Features modern design, responsive layout, and booking integration.
Version: 1.0
Author: Apartment Jana
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #ef4444;
  color: white;
}

.btn-secondary:hover {
  background-color: #dc2626;
}

.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
  background: transparent;
}

.btn-outline:hover {
  background-color: #eff6ff;
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 4rem;
  width: 200px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #2563eb;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  padding: 5rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-gallery img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Amenities Section */
.amenities {
  background: white;
  padding: 5rem 0;
}

.amenities h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.amenity-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: box-shadow 0.3s ease;
}

.amenity-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
  width: 2rem;
  height: 2rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

/* Bedrooms Section */
.bedrooms {
  background: #f9fafb;
  padding: 5rem 0;
}

.bedroom-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.bedroom-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.bedroom-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.bedroom-info {
  padding: 1.5rem;
}

.bedroom-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* Location Section */
.location {
  background: white;
  padding: 5rem 0;
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-info {
  background: #eff6ff;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.nearby-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.nearby-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
}

/* Map Section */
.map-section {
  background: white;
  padding: 5rem 0;
}

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

.map-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
}

.map-card.blue {
  background: #eff6ff;
}

.map-card.green {
  background: #f0fdf4;
}

.map-card.purple {
  background: #faf5ff;
}

.map-buttons {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.map-buttons .btn {
  margin: 0 0.5rem;
}

/* Contact Section */
.contact {
  background: #f9fafb;
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Contact Form 7 Custom Styling */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form-control {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  background-color: white !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.wpcf7-form-control:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.wpcf7-textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

.wpcf7-select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 0.5rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.5em 1.5em !important;
  padding-right: 2.5rem !important;
}

.wpcf7-submit {
  width: 100% !important;
  background-color: #2563eb !important;
  color: white !important;
  padding: 0.75rem 2rem !important;
  border: none !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}

.wpcf7-submit:hover {
  background-color: #1d4ed8 !important;
}

.wpcf7-submit:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

/* Form row styling for Contact Form 7 */
.cf7-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.cf7-form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

/* Success/Error Messages */
.wpcf7-response-output {
  margin: 1rem 0 !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  font-weight: 500 !important;
}

.wpcf7-mail-sent-ok {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

.wpcf7-not-valid-tip {
  color: #dc2626 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cf7-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #2563eb;
  margin-right: 0.75rem;
}

/* Footer */
.site-footer {
  background: #111827;
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Gallery Section - FooGallery Integration */
.gallery-section {
  background: white;
  padding: 5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .location-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .map-buttons .btn {
    display: block;
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-features {
    grid-template-columns: 1fr;
  }
  
  .amenities h2 {
    font-size: 2rem;
  }
}