/**
 * HOBEGE Plugin - Frontend Styles
 *
 * @package Hobege_Plugin
 */

/* ================================================
   CSS Variables
   ================================================ */
:root {
    --hobege-primary: #47BAB2;
    --hobege-primary-dark: #3a9a93;
    --hobege-dark: #1E2A3A;
    --hobege-dark-light: #2A3A4A;
    --hobege-text: #333333;
    --hobege-text-light: #666666;
    --hobege-white: #ffffff;
    --hobege-border: #e0e0e0;
    --hobege-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --hobege-radius: 8px;
    --hobege-transition: all 0.3s ease;
}

/* ================================================
   Apartment Card Styles
   ================================================ */
.hobege-apartment-card {
    background: var(--hobege-white);
    border-radius: var(--hobege-radius);
    overflow: hidden;
    box-shadow: var(--hobege-shadow);
    transition: var(--hobege-transition);
}

.hobege-apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hobege-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hobege-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hobege-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--hobege-transition);
}

.hobege-apartment-card:hover .hobege-card-image img {
    transform: scale(1.05);
}

.hobege-card-content {
    padding: 20px;
}

.hobege-card-location {
    font-size: 12px;
    color: var(--hobege-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.hobege-card-title {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: var(--hobege-dark);
}

.hobege-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.hobege-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--hobege-text-light);
}

.hobege-card-meta i {
    color: var(--hobege-primary);
}

.hobege-card-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--hobege-dark);
}

.hobege-card-price .price-period {
    font-size: 14px;
    font-weight: 400;
    color: var(--hobege-text-light);
}

/* ================================================
   Apartments Grid
   ================================================ */
.hobege-apartment-grid {
    display: grid;
    gap: 30px;
}

.hobege-grid-cols-1 { grid-template-columns: 1fr; }
.hobege-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hobege-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hobege-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ================================================
   Apartment Gallery
   ================================================ */
.hobege-apartment-gallery {
    display: grid;
    gap: 10px;
}

.hobege-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hobege-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hobege-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hobege-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--hobege-radius);
    cursor: pointer;
    transition: var(--hobege-transition);
}

.hobege-gallery-item:hover img {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ================================================
   Apartment Features
   ================================================ */
.hobege-apartment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.hobege-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: var(--hobege-white);
    border-radius: var(--hobege-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hobege-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--hobege-primary);
    font-size: 24px;
}

.hobege-feature-label {
    font-size: 12px;
    color: var(--hobege-text-light);
    margin-bottom: 5px;
}

.hobege-feature-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--hobege-dark);
}

/* ================================================
   Amenities
   ================================================ */
.hobege-apartment-amenities {
    display: grid;
    gap: 30px;
}

.hobege-amenities-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hobege-amenities-cols-3 { grid-template-columns: repeat(3, 1fr); }

.hobege-amenity-category h4 {
    color: var(--hobege-dark);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hobege-primary);
}

.hobege-amenity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hobege-amenity-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--hobege-text);
}

.hobege-amenity-list li i {
    color: var(--hobege-primary);
}

/* ================================================
   Pricing Table
   ================================================ */
.hobege-pricing-table {
    background: var(--hobege-white);
    border-radius: var(--hobege-radius);
    overflow: hidden;
    box-shadow: var(--hobege-shadow);
}

.hobege-pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.hobege-pricing-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--hobege-border);
}

.hobege-pricing-table tr:last-child td {
    border-bottom: none;
}

.hobege-pricing-table td:first-child {
    color: var(--hobege-text-light);
}

.hobege-pricing-table td:last-child {
    text-align: right;
    color: var(--hobege-dark);
}

/* ================================================
   Apartment Map
   ================================================ */
.hobege-apartment-map {
    border-radius: var(--hobege-radius);
    overflow: hidden;
    box-shadow: var(--hobege-shadow);
}

.hobege-apartment-map iframe {
    display: block;
}

/* ================================================
   Booking Button
   ================================================ */
.hobege-booking-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--hobege-primary);
    color: var(--hobege-white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--hobege-radius);
    transition: var(--hobege-transition);
}

.hobege-booking-button:hover {
    background: var(--hobege-primary-dark);
    color: var(--hobege-white);
}

/* ================================================
   Filter Form
   ================================================ */
.hobege-apartment-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    background: var(--hobege-white);
    border-radius: var(--hobege-radius);
    box-shadow: var(--hobege-shadow);
    margin-bottom: 40px;
}

.hobege-apartment-filter .filter-group {
    flex: 1;
    min-width: 150px;
}

.hobege-apartment-filter label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hobege-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hobege-apartment-filter select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--hobege-border);
    border-radius: var(--hobege-radius);
    font-size: 14px;
    color: var(--hobege-text);
    background: var(--hobege-white);
}

.hobege-apartment-filter button {
    align-self: flex-end;
    padding: 12px 30px;
}

/* ================================================
   Contact Form
   ================================================ */
.hobege-contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.hobege-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hobege-contact-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.hobege-contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--hobege-dark);
}

.hobege-contact-form input,
.hobege-contact-form textarea,
.hobege-contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--hobege-border);
    border-radius: var(--hobege-radius);
    font-size: 16px;
    transition: var(--hobege-transition);
}

.hobege-contact-form input:focus,
.hobege-contact-form textarea:focus,
.hobege-contact-form select:focus {
    outline: none;
    border-color: var(--hobege-primary);
    box-shadow: 0 0 0 3px rgba(71, 186, 178, 0.1);
}

.hobege-contact-form .form-privacy {
    margin: 20px 0;
}

.hobege-contact-form .form-privacy label {
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hobege-contact-form .form-privacy input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

/* ================================================
   Similar Apartments
   ================================================ */
.hobege-similar-apartments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--hobege-border);
}

.hobege-similar-apartments h3 {
    font-size: 24px;
    color: var(--hobege-dark);
    margin: 0 0 30px;
}

/* ================================================
   Hero Section (Widgets)
   ================================================ */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 42, 58, 0.85) 0%, rgba(30, 42, 58, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--hobege-white);
    padding: 40px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px;
}

.hero-content p {
    font-size: 20px;
    margin: 0 0 30px;
    opacity: 0.9;
}

/* ================================================
   Buttons (Global)
   ================================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--hobege-radius);
    transition: var(--hobege-transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--hobege-primary-dark);
    color: var(--hobege-white);
}

.btn-outline-accent {
    background: transparent;
    color: var(--hobege-white);
    border: 2px solid var(--hobege-primary);
}

.btn-outline-accent:hover {
    background: var(--hobege-primary);
    color: var(--hobege-white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* ================================================
   Sections (Static Widgets)
   ================================================ */
.intro-section {
    padding: 80px 0;
}

.intro-section .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--hobege-white);
    padding: 40px 30px;
    border-radius: var(--hobege-radius);
    box-shadow: var(--hobege-shadow);
    text-align: center;
    transition: var(--hobege-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(71, 186, 178, 0.1);
    border-radius: 50%;
    color: var(--hobege-primary);
}

.service-card h3 {
    margin: 0 0 15px;
    color: var(--hobege-dark);
}

.service-card p {
    margin: 0;
    color: var(--hobege-text-light);
}

.contact-section {
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
    margin: 0 0 40px;
    color: var(--hobege-dark);
}

.stats-section {
    padding: 60px 0;
    background: var(--hobege-dark);
    color: var(--hobege-white);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--hobege-primary);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ================================================
   Container
   ================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
    .hobege-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .hero-content h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    .hobege-grid-cols-3,
    .hobege-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    
    .hobege-apartment-filter {
        flex-direction: column;
    }
    
    .hobege-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 16px; }
    
    .stats-grid { gap: 30px; }
    .stat-number { font-size: 36px; }
}

@media (max-width: 480px) {
    .hobege-grid-cols-2,
    .hobege-grid-cols-3,
    .hobege-grid-cols-4 { grid-template-columns: 1fr; }
    
    .hobege-gallery-cols-3,
    .hobege-gallery-cols-4 { grid-template-columns: repeat(2, 1fr); }
    
    .hobege-amenities-cols-2,
    .hobege-amenities-cols-3 { grid-template-columns: 1fr; }
}

/* ================================================
   No Results
   ================================================ */
.hobege-no-apartments {
    text-align: center;
    padding: 60px 20px;
    color: var(--hobege-text-light);
    font-size: 18px;
}

