/* Vacation Rental site styles */

/* Color variables */
:root {
  --color-primary: #c08b5f;
  --color-secondary: #f1e6dc;
  --color-accent: #ff385c;
  --color-text: #333;
  --color-text-light: #767676;
  --color-border: #ddd;
  --color-bg-light: #f8f9fa;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;
}

/* Global styles */
body {
  color: var(--color-text);
}

.btn-tan {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-tan:hover {
  background-color: #a87a50;
  border-color: #a87a50;
  color: white;
}

.text-tan {
  color: var(--color-primary);
}

.bg-tan {
  background-color: var(--color-primary);
  color: white;
}

/* Property card styles */
.property-card {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.property-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-accent);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.property-price {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.property-features {
  display: flex;
  gap: 10px;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.property-location {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Favorite button styles */
.favorite-btn {
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 10;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn i {
  transition: color 0.2s;
}

.favorite-btn .fas.fa-heart {
  color: var(--color-accent);
}

.favorite-btn .far.fa-heart:hover {
  color: var(--color-accent);
}

/* Property gallery styles */
.property-gallery-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 4px;
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
}

.gallery-main {
  grid-row: span 2;
}

.gallery-main-image {
  height: 100%;
  width: 100%;
  position: relative;
  cursor: pointer;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: 4px;
}

.gallery-grid-item {
  height: 100%;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-grid-item:hover img {
  transform: scale(1.05);
}

.gallery-more {
  position: relative;
}

.gallery-more-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Gallery modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1050;
  padding: 20px;
}

.gallery-modal.active {
  display: block;
}

.gallery-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  color: white;
}

.gallery-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.gallery-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image-container {
  position: relative;
  width: 100%;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.gallery-nav-prev,
.gallery-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.gallery-nav-prev {
  left: 10px;
}

.gallery-nav-next {
  right: 10px;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-thumbnails {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 10px 0;
  margin-top: 10px;
}

.gallery-thumbnail {
  width: 80px;
  height: 60px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  border: 2px solid transparent;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: white;
}

/* Weekly availability calendar */
.availability-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.week-block {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.week-block.available {
  background-color: #e8f4ea;
}

.week-block.unavailable {
  background-color: #f8e0e0;
  text-decoration: line-through;
  opacity: 0.7;
  cursor: not-allowed;
}

.week-block.past {
  background-color: #f5f5f5;
  opacity: 0.5;
  cursor: not-allowed;
}

.week-block.selected {
  border: 2px solid var(--color-accent);
  background-color: #fff0f4;
}

.week-dates {
  font-weight: 600;
  margin-bottom: 5px;
}

.week-price {
  color: var(--color-accent);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .property-gallery-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .gallery-main {
    height: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }
  
  .availability-calendar {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}