/* ===== Casagrande Elementor Widgets – Frontend Styles ===== */

/* Shared helpers */
.cg-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.cg-btn-primary {
  display: inline-block; background: #4caf50; color: #fff;
  padding: 12px 28px; border-radius: 4px; font-weight: 600;
  font-size: 13px; text-transform: uppercase; text-decoration: none;
  transition: background 0.3s;
}
.cg-btn-primary:hover { background: #388e3c; color: #fff; }

/* Fade-in animation */
.cg-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.cg-fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.cg-hero {
  position: relative; height: 75vh; min-height: 500px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
}
.cg-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.25); }

.cg-booking-bar {
  position: relative; z-index: 10; background: #fff;
  border-radius: 8px 8px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 20px 30px; display: flex; align-items: flex-end; gap: 16px;
  max-width: 900px; width: 100%; margin: 0 auto; transform: translateY(1px);
}
.cg-best-price { font-size: 12px; color: #4caf50; font-weight: 600; text-align: center; line-height: 1.3; min-width: 80px; }
.cg-field { flex: 1; }
.cg-field label { display: block; font-size: 11px; color: #4caf50; font-weight: 600; margin-bottom: 4px; text-transform: lowercase; }
.cg-field input, .cg-field select {
  width: 100%; border: none; border-bottom: 2px solid #e0e0e0;
  padding: 8px 4px; font-size: 15px; color: #333; background: transparent; outline: none; transition: border-color 0.3s;
}
.cg-field input:focus, .cg-field select:focus { border-bottom-color: #4caf50; }
.cg-btn-reserve {
  background: #4caf50; color: #fff; border: none; padding: 12px 32px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; border-radius: 4px;
  cursor: pointer; letter-spacing: 1px; transition: background 0.3s; white-space: nowrap;
}
.cg-btn-reserve:hover { background: #388e3c; }

/* ── ABOUT ──────────────────────────────────────────────────────────────── */
.cg-about-section { display: flex; min-height: 600px; }
.cg-about-text {
  flex: 1; padding: 80px 60px;
  background-size: cover; background-position: center; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  background-color: #f3f3f3;
}
.cg-about-text .cg-subtitle { font-size: 14px; color: #999; font-weight: 400; margin-bottom: 8px; }
.cg-about-text h1 { font-size: 42px; font-weight: 700; color: #222; margin-bottom: 20px; line-height: 1.2; }
.cg-about-text p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 12px; max-width: 520px; }
.cg-guarantee { font-size: 12px; color: #4caf50; margin-top: 12px; font-weight: 600; }

.cg-about-gallery { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: #f5f5f5; }
.cg-about-gallery a { overflow: hidden; border-radius: 4px; display: block; }
.cg-about-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cg-about-gallery a:hover img { transform: scale(1.05); }

/* ── FEATURES ───────────────────────────────────────────────────────────── */
.cg-features { padding: 60px 0; background: #fff; }
.cg-features .cg-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.cg-feature-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cg-feature-item img { width: 48px; height: 48px; object-fit: contain; }
.cg-feature-item h3 { font-size: 14px; font-weight: 600; color: #333; line-height: 1.4; }

/* ── ROOMS ──────────────────────────────────────────────────────────────── */
.cg-rooms-section { padding: 80px 0; background: #f9f9f9; }
.cg-section-header { text-align: center; margin-bottom: 40px; }
.cg-section-header .cg-label { font-size: 12px; color: #999; text-transform: lowercase; letter-spacing: 1px; }
.cg-section-header h2 { font-size: 32px; font-weight: 700; color: #222; margin: 8px 0 16px; text-transform: uppercase; }
.cg-section-header p { max-width: 700px; margin: 0 auto; font-size: 14px; color: #666; line-height: 1.7; }

.cg-room-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.cg-room-tab { padding: 10px 20px; border: 2px solid #e0e0e0; background: #fff; border-radius: 4px; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; transition: all 0.3s; }
.cg-room-tab:hover, .cg-room-tab.active { border-color: #4caf50; color: #4caf50; background: #f0faf0; }

.cg-room-card { display: none; max-width: 900px; margin: 0 auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.cg-room-card.active { display: flex; }
.cg-room-image { flex: 1; min-height: 350px; }
.cg-room-image img { width: 100%; height: 100%; object-fit: cover; }
.cg-room-info { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.cg-room-info h2 { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 24px; }
.cg-room-amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.cg-amenity { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #555; }
.cg-amenity-dot { color: #4caf50; font-weight: 700; flex-shrink: 0; }

/* ── SERVICES ───────────────────────────────────────────────────────────── */
.cg-services-section { padding: 80px 0; background: #fff; }
.cg-services-section .cg-container { display: flex; gap: 50px; align-items: center; }
.cg-services-text { flex: 1; }
.cg-services-text .cg-label { font-size: 12px; color: #999; text-transform: lowercase; letter-spacing: 1px; }
.cg-services-text h2 { font-size: 30px; font-weight: 700; color: #222; margin: 8px 0 20px; }
.cg-services-text p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 20px; }
.cg-services-list { list-style: none; padding: 0; margin-bottom: 24px; }
.cg-services-list li { font-size: 14px; color: #555; padding: 6px 0 6px 20px; position: relative; }
.cg-services-list li::before { content: '✓'; position: absolute; left: 0; color: #4caf50; font-weight: 700; }
.cg-services-gallery { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cg-services-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; transition: transform 0.3s; }
.cg-services-gallery img:hover { transform: scale(1.03); }

/* ── MAP ────────────────────────────────────────────────────────────────── */
.cg-map-section { position: relative; }
.cg-map-iframe { width: 100%; height: 450px; border: none; display: block; }

/* ── LOCATION ───────────────────────────────────────────────────────────── */
.cg-location-section { padding: 80px 0; background: #f9f9f9; }
.cg-location-section .cg-container { display: flex; gap: 50px; align-items: center; }
.cg-location-image { flex: 1; }
.cg-location-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.cg-location-text { flex: 1; }
.cg-location-text h2 { font-size: 30px; font-weight: 700; color: #222; margin-bottom: 20px; }
.cg-location-text p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 14px; }

/* ── TESTIMONIALS ───────────────────────────────────────────────────────── */
.cg-testimonials { padding: 80px 0; background: #fff; overflow: hidden; }
.cg-testimonials-track { display: flex; gap: 24px; animation: cg-scroll 30s linear infinite; width: max-content; }
.cg-testimonials-track:hover { animation-play-state: paused; }
.cg-testimonial-card { background: #f9f9f9; border-radius: 8px; padding: 30px; min-width: 360px; max-width: 400px; flex-shrink: 0; }
.cg-tcard-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cg-tcard-header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.cg-tcard-header h4 { font-size: 16px; font-weight: 600; color: #222; margin: 0; }
.cg-testimonial-card p { font-size: 13px; color: #666; line-height: 1.7; font-style: italic; margin-bottom: 14px; }
.cg-stars { height: 16px; }
.cg-author { font-size: 13px; font-weight: 600; color: #333; margin-top: 8px; }
@keyframes cg-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── NEWSLETTER ─────────────────────────────────────────────────────────── */
.cg-newsletter { padding: 60px 0; background: #2d2d2d; color: #fff; }
.cg-newsletter .cg-container { text-align: center; }
.cg-newsletter h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; text-transform: uppercase; }
.cg-newsletter-form { display: flex; gap: 12px; max-width: 700px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.cg-newsletter-form input { flex: 1; min-width: 180px; padding: 12px 16px; border: 1px solid #555; border-radius: 4px; background: transparent; color: #fff; font-size: 14px; outline: none; transition: border-color 0.3s; }
.cg-newsletter-form input::placeholder { color: #999; }
.cg-newsletter-form input:focus { border-color: #4caf50; }
.cg-btn-subscribe { background: #4caf50; color: #fff; border: none; padding: 12px 32px; font-size: 14px; font-weight: 700; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: background 0.3s; }
.cg-btn-subscribe:hover { background: #388e3c; }
.cg-consent { font-size: 12px; color: #999; margin-top: 14px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .cg-about-section, .cg-services-section .cg-container, .cg-location-section .cg-container { flex-direction: column; }
  .cg-about-text { padding: 50px 30px; }
  .cg-about-text h1 { font-size: 32px; }
  .cg-room-card.active { flex-direction: column; }
  .cg-features .cg-container { grid-template-columns: repeat(2, 1fr); }
  .cg-booking-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; border-radius: 8px; transform: translateY(-50%); }
}
@media (max-width: 576px) {
  .cg-features .cg-container { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cg-room-amenities { grid-template-columns: 1fr; }
  .cg-testimonial-card { min-width: 280px; }
  .cg-about-gallery { grid-template-columns: 1fr; }
  .cg-newsletter-form { flex-direction: column; }
}
