/**
 * ThisPlace Public Styles
 * 
 * Main stylesheet for ThisPlace front-end components
 * Version: 1.0.0
 */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global font family - Poppins */
body, 
.thisplace-container,
.thisplace-article-content,
.thisplace-article-sidebar,
.thisplace-widget,
.thisplace-tab-button,
.thisplace-chip {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

.thisplace-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.thisplace-header {
    margin-bottom: 2rem;
}

.thisplace-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.thisplace-header .thisplace-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */

.thisplace-breadcrumb {
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.thisplace-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.thisplace-breadcrumb-item {
    display: flex;
    align-items: center;
}

.thisplace-breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.75rem;
    color: #6c757d;
}

.thisplace-breadcrumb-item a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}

.thisplace-breadcrumb-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

.thisplace-breadcrumb-current {
    color: #6c757d;
    font-weight: 500;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.thisplace-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.thisplace-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: thisplace-spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes thisplace-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Error States
   ========================================================================== */

.thisplace-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.thisplace-no-media,
.thisplace-no-articles {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border: 1px solid #ffeaa7;
    border-radius: 0.375rem;
    margin: 1rem 0;
    text-align: center;
}

/* ==========================================================================
   Article Layout
   ========================================================================== */

.thisplace-article-content {
    line-height: 1.6;
    color: #2c3e50;
}

.thisplace-article-content h1,
.thisplace-article-content h2,
.thisplace-article-content h3,
.thisplace-article-content h4,
.thisplace-article-content h5,
.thisplace-article-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.thisplace-article-content p {
    margin-bottom: 1.5rem;
}

.thisplace-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.thisplace-article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.thisplace-article-meta-item i {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ==========================================================================
   Related Articles
   ========================================================================== */

.thisplace-related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.thisplace-related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.thisplace-related-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.thisplace-related-item:hover {
    border-color: #007cba;
}

.thisplace-related-article-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.thisplace-related-article-title a {
    color: #2c3e50;
    text-decoration: none;
}

.thisplace-related-article-title a:hover {
    color: #007cba;
}

.thisplace-related-excerpt {
    color: #6c757d;
    line-height: 1.5;
}

/* ==========================================================================
   Place Articles
   ========================================================================== */

.thisplace-place-articles {
    margin: 2rem 0;
}

.thisplace-article-item {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.thisplace-article-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 123, 186, 0.1);
}

.thisplace-article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.thisplace-article-title a {
    color: #2c3e50;
    text-decoration: none;
}

.thisplace-article-title a:hover {
    color: #007cba;
}

.thisplace-article-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.thisplace-article-excerpt {
    color: #495057;
    line-height: 1.6;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .thisplace-container {
        padding: 0 15px;
    }
    
    .thisplace-header h1 {
        font-size: 2rem;
    }
    
    .thisplace-header .thisplace-subtitle {
        font-size: 1rem;
    }
    
    .thisplace-breadcrumb-item {
        font-size: 0.8rem;
    }
    
    .thisplace-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .thisplace-article-item {
        padding: 1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.thisplace-text-left {
    text-align: left;
}

.thisplace-text-right {
    text-align: right;
}

.thisplace-hidden {
    display: none;
}

.thisplace-visible {
    display: block;
}

.thisplace-clearfix::after {
    content: '';
    display: table;
    clear: both;
} 

/* Horizontal scrollable tabs */
.thisplace-category-tabs {
	display: flex;
	gap: 2rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0 1rem;
}
.thisplace-category-tabs::-webkit-scrollbar { display: none; }

/* Tab buttons with underline bars */
.thisplace-tab-button {
	position: relative;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	font-size: 1.1rem;
}

.thisplace-tab-button::after {
	content: "";
	display: block;
	height: 6px;
	border-radius: 4px;
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.thisplace-tab-button:hover::after,
.thisplace-tab-button.active::after {
	opacity: 1;
	transform: translateY(0);
}

/* Colors with Latest added */
.thisplace-tab-latest { color: #5B3F83 !important; }
.thisplace-tab-latest::after { background: #5B3F83; }
.thisplace-tab-news { color: #469FF4 !important; }
.thisplace-tab-news::after { background: #469FF4; }
.thisplace-tab-food { color: #86B345 !important; }
.thisplace-tab-food::after { background: #86B345; }
.thisplace-tab-nature { color: #FE8C2F !important; }
.thisplace-tab-nature::after { background: #FE8C2F; }
.thisplace-tab-business { color: #C80521 !important; }
.thisplace-tab-business::after { background: #C80521; }
.thisplace-tab-culture { color: #BB1B68 !important; }
.thisplace-tab-culture::after { background: #BB1B68; }

.thisplace-tab-button i { 
	color: currentColor; 
	font-size: 1.2rem;
}
/* ==========================================================================
   Article Cards on Place page (title → media → chips)
   ========================================================================== */
.thisplace-article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
    transition: box-shadow .2s ease, transform .2s ease;
}

.thisplace-article-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
    transform: translateY(-1px);
}

.thisplace-article-card .thisplace-article-title {
    font-size: 1.15rem;
    margin: 0 0 .75rem;
    line-height: 1.35;
}

.thisplace-article-card .thisplace-article-title a {
    color: #2c3e50;
    text-decoration: none;
}

.thisplace-article-card .thisplace-article-title a:hover {
    color: #007cba;
}

.thisplace-article-media {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f6f7;
    aspect-ratio: 16 / 9;
    margin: 0 0 .75rem;
}

.thisplace-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thisplace-article-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thisplace-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .25rem;
}

.thisplace-chip {
    display: inline-block;
    padding: .35rem .6rem;
    border-radius: 9999px;
    font-size: .8rem;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #e9ecef;
}

/* Category-tinted chips for Place homepage (subtle style) */
/* Food and Drink */
.thisplace-chip.chip-food-and-drink {
    background: rgba(134, 179, 69, 0.10);
    color: rgba(134, 179, 69, 0.95);
    border-color: rgba(134, 179, 69, 0.25);
    font-weight: 500;
}

/* News and Events */
.thisplace-chip.chip-news-and-events {
    background: rgba(70, 159, 244, 0.10);
    color: rgba(70, 159, 244, 0.95);
    border-color: rgba(70, 159, 244, 0.25);
    font-weight: 500;
}

/* Nature and Outdoors */
.thisplace-chip.chip-nature-and-outdoors {
    background: rgba(254, 140, 47, 0.10);
    color: rgba(254, 140, 47, 0.95);
    border-color: rgba(254, 140, 47, 0.25);
    font-weight: 500;
}

/* Community and Businesses */
.thisplace-chip.chip-community-and-businesses {
    background: rgba(200, 5, 33, 0.08);
    color: rgba(200, 5, 33, 0.90);
    border-color: rgba(200, 5, 33, 0.22);
    font-weight: 500;
}

/* Art and Culture */
.thisplace-chip.chip-art-and-culture {
    background: rgba(187, 27, 104, 0.10);
    color: rgba(187, 27, 104, 0.95);
    border-color: rgba(187, 27, 104, 0.25);
    font-weight: 500;
}

/* Hero overlay chips (bold white text style) */
.thisplace-hero-chip.chip-food-and-drink {
    background: rgba(134, 179, 69, 0.80);
    color: rgb(255, 255, 255);
    border-color: rgb(134, 179, 69);
    font-weight: 600;
}

.thisplace-hero-chip.chip-news-and-events {
    background: rgba(70, 159, 244, 0.80);
    color: rgb(255, 255, 255);
    border-color: rgb(70, 159, 244);
    font-weight: 600;
}

.thisplace-hero-chip.chip-nature-and-outdoors {
    background: rgba(254, 140, 47, 0.80);
    color: rgb(255, 255, 255);
    border-color: rgb(254, 140, 47);
    font-weight: 600;
}

.thisplace-hero-chip.chip-community-and-businesses {
    background: rgba(200, 5, 33, 0.80);
    color: rgb(255, 255, 255);
    border-color: rgb(200, 5, 33);
    font-weight: 600;
}

.thisplace-hero-chip.chip-art-and-culture {
    background: rgba(187, 27, 104, 0.80);
    color: rgb(255, 255, 255);
    border-color: rgb(187, 27, 104);
    font-weight: 600;
}

/* Map widget caption styling */
.thisplace-map-caption {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Event widget styling */
.thisplace-event-widget {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.thisplace-event-date {
    background: #007cba;
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.thisplace-event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.thisplace-event-month {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.thisplace-event-year {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.thisplace-event-details {
    flex: 1;
}

.thisplace-event-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.thisplace-event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.thisplace-event-time i {
    color: #007cba;
}

.thisplace-event-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .thisplace-article-card {
        padding: .75rem;
    }

    .thisplace-article-card .thisplace-article-title {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   Single Article Template Styles
   ========================================================================== */

/* Top Section: Title and Social Sharing */
.thisplace-article-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 2rem 0 1.5rem;
}

.thisplace-article-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.thisplace-article-main-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    font-weight: 700;
}

.thisplace-social-sharing {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.thisplace-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thisplace-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #fff;
}

.thisplace-share-whatsapp { background: #25D366; }
.thisplace-share-facebook { background: #1877F2; }
.thisplace-share-twitter { background: #1DA1F2; }
.thisplace-share-linkedin { background: #0A66C2; }
.thisplace-share-email { background: #6c757d; }

/* Hero Image Section */
.thisplace-article-hero {
    position: relative;
    margin-bottom: 3rem;
}

.thisplace-hero-media-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 12px;
}

.thisplace-hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thisplace-hero-tags-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 50%;
    z-index: 10;
}

.thisplace-hero-chip {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}

/* Main Content Grid */
/* .thisplace-article-main {
    padding: 2rem 0;
} */

.thisplace-article-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.thisplace-article-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #2c3e50;
}

.thisplace-article-content h1,
.thisplace-article-content h2,
.thisplace-article-content h3,
.thisplace-article-content h4 {
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thisplace-article-content h2 { font-size: 1.8rem; }
.thisplace-article-content h3 { font-size: 1.5rem; }
.thisplace-article-content h4 { font-size: 1.25rem; }

.thisplace-article-content p {
    margin-bottom: 1.5rem;
}

.thisplace-article-content ul,
.thisplace-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.thisplace-article-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar Widgets */
.thisplace-article-sidebar {
    background: #f1f3f5;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.thisplace-widget {
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.thisplace-widget:last-child {
    margin-bottom: 0;
}

.thisplace-widget h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thisplace-default-sidebar {
    text-align: center;
    color: #6c757d;
    padding: 2rem 1rem;
}

/* Article Footer */
.thisplace-article-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.thisplace-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .thisplace-article-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .thisplace-article-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .thisplace-article-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .thisplace-article-main-title {
        font-size: 2rem;
    }
    
    .thisplace-social-sharing {
        align-self: stretch;
        justify-content: center;
    }
    
    .thisplace-hero-tags-overlay {
        bottom: 0.75rem;
        right: 0.75rem;
        max-width: 70%;
    }
    
    .thisplace-hero-chip {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .thisplace-article-content {
        font-size: 1rem;
    }
    
    .thisplace-article-sidebar {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .thisplace-article-header {
        padding: 1.5rem 0 1rem;
    }
    
    .thisplace-article-main-title {
        font-size: 1.75rem;
    }
    
    .thisplace-share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .thisplace-hero-tags-overlay {
        bottom: 0.5rem;
        right: 0.5rem;
        max-width: 80%;
    }
}

/* Zoom slider styling for Article Composer */
.thisplace-zoom-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

#zoom-value {
    background: #007cba;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}